Integrand size = 27, antiderivative size = 66 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\sec (c+d x)}{a^2 d}-\frac {\sec ^3(c+d x)}{a^2 d}+\frac {2 \sec ^5(c+d x)}{5 a^2 d}-\frac {2 \tan ^5(c+d x)}{5 a^2 d} \] Output:
sec(d*x+c)/a^2/d-sec(d*x+c)^3/a^2/d+2/5*sec(d*x+c)^5/a^2/d-2/5*tan(d*x+c)^ 5/a^2/d
Time = 1.18 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.27 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\sec (c+d x) (40-65 \cos (c+d x)-8 \cos (2 (c+d x))+13 \cos (3 (c+d x))+40 \sin (c+d x)-52 \sin (2 (c+d x))+8 \sin (3 (c+d x)))}{80 a^2 d (1+\sin (c+d x))^2} \] Input:
Integrate[(Sin[c + d*x]*Tan[c + d*x]^2)/(a + a*Sin[c + d*x])^2,x]
Output:
(Sec[c + d*x]*(40 - 65*Cos[c + d*x] - 8*Cos[2*(c + d*x)] + 13*Cos[3*(c + d *x)] + 40*Sin[c + d*x] - 52*Sin[2*(c + d*x)] + 8*Sin[3*(c + d*x)]))/(80*a^ 2*d*(1 + Sin[c + d*x])^2)
Time = 0.53 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.06, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3354, 3042, 3352, 2009}
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 \frac {\sin (c+d x) \tan ^2(c+d x)}{(a \sin (c+d x)+a)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sin (c+d x)^3}{\cos (c+d x)^2 (a \sin (c+d x)+a)^2}dx\) |
\(\Big \downarrow \) 3354 |
\(\displaystyle \frac {\int \sec ^3(c+d x) (a-a \sin (c+d x))^2 \tan ^3(c+d x)dx}{a^4}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\sin (c+d x)^3 (a-a \sin (c+d x))^2}{\cos (c+d x)^6}dx}{a^4}\) |
\(\Big \downarrow \) 3352 |
\(\displaystyle \frac {\int \left (a^2 \sec (c+d x) \tan ^5(c+d x)-2 a^2 \sec ^2(c+d x) \tan ^4(c+d x)+a^2 \sec ^3(c+d x) \tan ^3(c+d x)\right )dx}{a^4}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {2 a^2 \tan ^5(c+d x)}{5 d}+\frac {2 a^2 \sec ^5(c+d x)}{5 d}-\frac {a^2 \sec ^3(c+d x)}{d}+\frac {a^2 \sec (c+d x)}{d}}{a^4}\) |
Input:
Int[(Sin[c + d*x]*Tan[c + d*x]^2)/(a + a*Sin[c + d*x])^2,x]
Output:
((a^2*Sec[c + d*x])/d - (a^2*Sec[c + d*x]^3)/d + (2*a^2*Sec[c + d*x]^5)/(5 *d) - (2*a^2*Tan[c + d*x]^5)/(5*d))/a^4
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig [(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F reeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && IGtQ[m, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(a/g)^(2* m) Int[(g*Cos[e + f*x])^(2*m + p)*((d*Sin[e + f*x])^n/(a - b*Sin[e + f*x] )^m), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && ILtQ[m, 0]
Result contains complex when optimal does not.
Time = 0.48 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.29
method | result | size |
risch | \(\frac {4 i {\mathrm e}^{4 i \left (d x +c \right )}+2 \,{\mathrm e}^{5 i \left (d x +c \right )}-4 \,{\mathrm e}^{3 i \left (d x +c \right )}-\frac {4 i}{5}-\frac {6 \,{\mathrm e}^{i \left (d x +c \right )}}{5}}{\left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{5} \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) d \,a^{2}}\) | \(85\) |
derivativedivides | \(\frac {\frac {4}{5 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {2}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {1}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {1}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {16}{64 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+64}-\frac {1}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d \,a^{2}}\) | \(100\) |
default | \(\frac {\frac {4}{5 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {2}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {1}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {1}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {16}{64 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+64}-\frac {1}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d \,a^{2}}\) | \(100\) |
Input:
int(sin(d*x+c)*tan(d*x+c)^2/(a+a*sin(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
2/5*(10*I*exp(4*I*(d*x+c))+5*exp(5*I*(d*x+c))-10*exp(3*I*(d*x+c))-2*I-3*ex p(I*(d*x+c)))/(exp(I*(d*x+c))+I)^5/(exp(I*(d*x+c))-I)/d/a^2
Time = 0.07 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.15 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\cos \left (d x + c\right )^{2} - 2 \, {\left (\cos \left (d x + c\right )^{2} + 1\right )} \sin \left (d x + c\right ) - 3}{5 \, {\left (a^{2} d \cos \left (d x + c\right )^{3} - 2 \, a^{2} d \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 2 \, a^{2} d \cos \left (d x + c\right )\right )}} \] Input:
integrate(sin(d*x+c)*tan(d*x+c)^2/(a+a*sin(d*x+c))^2,x, algorithm="fricas" )
Output:
1/5*(cos(d*x + c)^2 - 2*(cos(d*x + c)^2 + 1)*sin(d*x + c) - 3)/(a^2*d*cos( d*x + c)^3 - 2*a^2*d*cos(d*x + c)*sin(d*x + c) - 2*a^2*d*cos(d*x + c))
\[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\int \frac {\sin {\left (c + d x \right )} \tan ^{2}{\left (c + d x \right )}}{\sin ^{2}{\left (c + d x \right )} + 2 \sin {\left (c + d x \right )} + 1}\, dx}{a^{2}} \] Input:
integrate(sin(d*x+c)*tan(d*x+c)**2/(a+a*sin(d*x+c))**2,x)
Output:
Integral(sin(c + d*x)*tan(c + d*x)**2/(sin(c + d*x)**2 + 2*sin(c + d*x) + 1), x)/a**2
Leaf count of result is larger than twice the leaf count of optimal. 164 vs. \(2 (62) = 124\).
Time = 0.03 (sec) , antiderivative size = 164, normalized size of antiderivative = 2.48 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {4 \, {\left (\frac {4 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {5 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}}{5 \, {\left (a^{2} + \frac {4 \, a^{2} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {5 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {5 \, a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {4 \, a^{2} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {a^{2} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}}\right )} d} \] Input:
integrate(sin(d*x+c)*tan(d*x+c)^2/(a+a*sin(d*x+c))^2,x, algorithm="maxima" )
Output:
4/5*(4*sin(d*x + c)/(cos(d*x + c) + 1) + 5*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 1)/((a^2 + 4*a^2*sin(d*x + c)/(cos(d*x + c) + 1) + 5*a^2*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 - 5*a^2*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 - 4* a^2*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 - a^2*sin(d*x + c)^6/(cos(d*x + c) + 1)^6)*d)
Time = 0.22 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.42 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {5}{a^{2} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}} - \frac {5 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 30 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 80 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 50 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 11}{a^{2} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}^{5}}}{20 \, d} \] Input:
integrate(sin(d*x+c)*tan(d*x+c)^2/(a+a*sin(d*x+c))^2,x, algorithm="giac")
Output:
-1/20*(5/(a^2*(tan(1/2*d*x + 1/2*c) - 1)) - (5*tan(1/2*d*x + 1/2*c)^4 + 30 *tan(1/2*d*x + 1/2*c)^3 + 80*tan(1/2*d*x + 1/2*c)^2 + 50*tan(1/2*d*x + 1/2 *c) + 11)/(a^2*(tan(1/2*d*x + 1/2*c) + 1)^5))/d
Time = 31.46 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.68 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\frac {4\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{5}+\frac {16\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{5}+4\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{a^2\,d\,\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )-\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )\,{\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}^5} \] Input:
int((sin(c + d*x)*tan(c + d*x)^2)/(a + a*sin(c + d*x))^2,x)
Output:
((4*cos(c/2 + (d*x)/2)^6)/5 + (16*cos(c/2 + (d*x)/2)^5*sin(c/2 + (d*x)/2)) /5 + 4*cos(c/2 + (d*x)/2)^4*sin(c/2 + (d*x)/2)^2)/(a^2*d*(cos(c/2 + (d*x)/ 2) - sin(c/2 + (d*x)/2))*(cos(c/2 + (d*x)/2) + sin(c/2 + (d*x)/2))^5)
Time = 0.16 (sec) , antiderivative size = 160, normalized size of antiderivative = 2.42 \[ \int \frac {\sin (c+d x) \tan ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {10 \cos \left (d x +c \right ) \sin \left (d x +c \right )^{2} \tan \left (d x +c \right )-\cos \left (d x +c \right ) \sin \left (d x +c \right )^{2}+20 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \tan \left (d x +c \right )-2 \cos \left (d x +c \right ) \sin \left (d x +c \right )+10 \cos \left (d x +c \right ) \tan \left (d x +c \right )-\cos \left (d x +c \right )-14 \sin \left (d x +c \right )^{3}-18 \sin \left (d x +c \right )^{2}-2 \sin \left (d x +c \right )+4}{10 \cos \left (d x +c \right ) a^{2} d \left (\sin \left (d x +c \right )^{2}+2 \sin \left (d x +c \right )+1\right )} \] Input:
int(sin(d*x+c)*tan(d*x+c)^2/(a+a*sin(d*x+c))^2,x)
Output:
(10*cos(c + d*x)*sin(c + d*x)**2*tan(c + d*x) - cos(c + d*x)*sin(c + d*x)* *2 + 20*cos(c + d*x)*sin(c + d*x)*tan(c + d*x) - 2*cos(c + d*x)*sin(c + d* x) + 10*cos(c + d*x)*tan(c + d*x) - cos(c + d*x) - 14*sin(c + d*x)**3 - 18 *sin(c + d*x)**2 - 2*sin(c + d*x) + 4)/(10*cos(c + d*x)*a**2*d*(sin(c + d* x)**2 + 2*sin(c + d*x) + 1))