Integrand size = 30, antiderivative size = 164 \[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=\frac {\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m}}{f (5+2 m)}+\frac {2 \cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m}}{c f \left (15+16 m+4 m^2\right )}+\frac {2 \cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-1-m}}{c^2 f (5+2 m) \left (3+8 m+4 m^2\right )} \] Output:
cos(f*x+e)*(a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-3-m)/f/(5+2*m)+2*cos(f*x+ e)*(a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-2-m)/c/f/(4*m^2+16*m+15)+2*cos(f* x+e)*(a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-1-m)/c^2/f/(5+2*m)/(4*m^2+8*m+3 )
Time = 0.35 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.66 \[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=\frac {\sec (e+f x) (a (1+\sin (e+f x)))^{1+m} (c-c \sin (e+f x))^{-m} \left (7+12 m+4 m^2-2 (3+2 m) \sin (e+f x)+2 \sin ^2(e+f x)\right )}{a c^3 f (1+2 m) (3+2 m) (5+2 m) (-1+\sin (e+f x))^2} \] Input:
Integrate[(a + a*Sin[e + f*x])^m*(c - c*Sin[e + f*x])^(-3 - m),x]
Output:
(Sec[e + f*x]*(a*(1 + Sin[e + f*x]))^(1 + m)*(7 + 12*m + 4*m^2 - 2*(3 + 2* m)*Sin[e + f*x] + 2*Sin[e + f*x]^2))/(a*c^3*f*(1 + 2*m)*(3 + 2*m)*(5 + 2*m )*(-1 + Sin[e + f*x])^2*(c - c*Sin[e + f*x])^m)
Time = 0.63 (sec) , antiderivative size = 162, normalized size of antiderivative = 0.99, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3042, 3222, 3042, 3222, 3042, 3221}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3}dx\) |
\(\Big \downarrow \) 3222 |
\(\displaystyle \frac {2 \int (\sin (e+f x) a+a)^m (c-c \sin (e+f x))^{-m-2}dx}{c (2 m+5)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3}}{f (2 m+5)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 \int (\sin (e+f x) a+a)^m (c-c \sin (e+f x))^{-m-2}dx}{c (2 m+5)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3}}{f (2 m+5)}\) |
\(\Big \downarrow \) 3222 |
\(\displaystyle \frac {2 \left (\frac {\int (\sin (e+f x) a+a)^m (c-c \sin (e+f x))^{-m-1}dx}{c (2 m+3)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)}\right )}{c (2 m+5)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3}}{f (2 m+5)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {2 \left (\frac {\int (\sin (e+f x) a+a)^m (c-c \sin (e+f x))^{-m-1}dx}{c (2 m+3)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)}\right )}{c (2 m+5)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3}}{f (2 m+5)}\) |
\(\Big \downarrow \) 3221 |
\(\displaystyle \frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-3}}{f (2 m+5)}+\frac {2 \left (\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-1}}{c f (2 m+1) (2 m+3)}\right )}{c (2 m+5)}\) |
Input:
Int[(a + a*Sin[e + f*x])^m*(c - c*Sin[e + f*x])^(-3 - m),x]
Output:
(Cos[e + f*x]*(a + a*Sin[e + f*x])^m*(c - c*Sin[e + f*x])^(-3 - m))/(f*(5 + 2*m)) + (2*((Cos[e + f*x]*(a + a*Sin[e + f*x])^m*(c - c*Sin[e + f*x])^(- 2 - m))/(f*(3 + 2*m)) + (Cos[e + f*x]*(a + a*Sin[e + f*x])^m*(c - c*Sin[e + f*x])^(-1 - m))/(c*f*(1 + 2*m)*(3 + 2*m))))/(c*(5 + 2*m))
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(n_), x_Symbol] :> Simp[b*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*( (c + d*Sin[e + f*x])^n/(a*f*(2*m + 1))), x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && EqQ[m + n + 1, 0] && Ne Q[m, -2^(-1)]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(n_), x_Symbol] :> Simp[b*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*( (c + d*Sin[e + f*x])^n/(a*f*(2*m + 1))), x] + Simp[(m + n + 1)/(a*(2*m + 1) ) Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n, x], x] /; Free Q[{a, b, c, d, e, f, m, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && ILtQ[Simplify[m + n + 1], 0] && NeQ[m, -2^(-1)] && (SumSimplerQ[m, 1] || !SumSimplerQ[n, 1])
\[\int \left (a +\sin \left (f x +e \right ) a \right )^{m} \left (c -c \sin \left (f x +e \right )\right )^{-3-m}d x\]
Input:
int((a+sin(f*x+e)*a)^m*(c-c*sin(f*x+e))^(-3-m),x)
Output:
int((a+sin(f*x+e)*a)^m*(c-c*sin(f*x+e))^(-3-m),x)
Time = 0.11 (sec) , antiderivative size = 101, normalized size of antiderivative = 0.62 \[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=-\frac {{\left (2 \, \cos \left (f x + e\right )^{3} + 2 \, {\left (2 \, m + 3\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (4 \, m^{2} + 12 \, m + 9\right )} \cos \left (f x + e\right )\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 3}}{8 \, f m^{3} + 36 \, f m^{2} + 46 \, f m + 15 \, f} \] Input:
integrate((a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-3-m),x, algorithm="fricas" )
Output:
-(2*cos(f*x + e)^3 + 2*(2*m + 3)*cos(f*x + e)*sin(f*x + e) - (4*m^2 + 12*m + 9)*cos(f*x + e))*(a*sin(f*x + e) + a)^m*(-c*sin(f*x + e) + c)^(-m - 3)/ (8*f*m^3 + 36*f*m^2 + 46*f*m + 15*f)
\[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=\int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \left (- c \left (\sin {\left (e + f x \right )} - 1\right )\right )^{- m - 3}\, dx \] Input:
integrate((a+a*sin(f*x+e))**m*(c-c*sin(f*x+e))**(-3-m),x)
Output:
Integral((a*(sin(e + f*x) + 1))**m*(-c*(sin(e + f*x) - 1))**(-m - 3), x)
\[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 3} \,d x } \] Input:
integrate((a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-3-m),x, algorithm="maxima" )
Output:
integrate((a*sin(f*x + e) + a)^m*(-c*sin(f*x + e) + c)^(-m - 3), x)
\[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 3} \,d x } \] Input:
integrate((a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-3-m),x, algorithm="giac")
Output:
integrate((a*sin(f*x + e) + a)^m*(-c*sin(f*x + e) + c)^(-m - 3), x)
Time = 17.41 (sec) , antiderivative size = 149, normalized size of antiderivative = 0.91 \[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=-\frac {2\,{\left (a\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^m\,\left (15\,\cos \left (e+f\,x\right )-\cos \left (3\,e+3\,f\,x\right )-6\,\sin \left (2\,e+2\,f\,x\right )+24\,m\,\cos \left (e+f\,x\right )+8\,m^2\,\cos \left (e+f\,x\right )-4\,m\,\sin \left (2\,e+2\,f\,x\right )\right )}{c^3\,f\,{\left (-c\,\left (\sin \left (e+f\,x\right )-1\right )\right )}^m\,\left (8\,m^3+36\,m^2+46\,m+15\right )\,\left (15\,\sin \left (e+f\,x\right )+6\,\cos \left (2\,e+2\,f\,x\right )-\sin \left (3\,e+3\,f\,x\right )-10\right )} \] Input:
int((a + a*sin(e + f*x))^m/(c - c*sin(e + f*x))^(m + 3),x)
Output:
-(2*(a*(sin(e + f*x) + 1))^m*(15*cos(e + f*x) - cos(3*e + 3*f*x) - 6*sin(2 *e + 2*f*x) + 24*m*cos(e + f*x) + 8*m^2*cos(e + f*x) - 4*m*sin(2*e + 2*f*x )))/(c^3*f*(-c*(sin(e + f*x) - 1))^m*(46*m + 36*m^2 + 8*m^3 + 15)*(15*sin( e + f*x) + 6*cos(2*e + 2*f*x) - sin(3*e + 3*f*x) - 10))
\[ \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-3-m} \, dx=-\frac {\int \frac {\left (a +a \sin \left (f x +e \right )\right )^{m}}{\left (-\sin \left (f x +e \right ) c +c \right )^{m} \sin \left (f x +e \right )^{3}-3 \left (-\sin \left (f x +e \right ) c +c \right )^{m} \sin \left (f x +e \right )^{2}+3 \left (-\sin \left (f x +e \right ) c +c \right )^{m} \sin \left (f x +e \right )-\left (-\sin \left (f x +e \right ) c +c \right )^{m}}d x}{c^{3}} \] Input:
int((a+a*sin(f*x+e))^m*(c-c*sin(f*x+e))^(-3-m),x)
Output:
( - int((sin(e + f*x)*a + a)**m/(( - sin(e + f*x)*c + c)**m*sin(e + f*x)** 3 - 3*( - sin(e + f*x)*c + c)**m*sin(e + f*x)**2 + 3*( - sin(e + f*x)*c + c)**m*sin(e + f*x) - ( - sin(e + f*x)*c + c)**m),x))/c**3