Integrand size = 35, antiderivative size = 743 \[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=-\frac {\sqrt {a-b+c} \arctan \left (\frac {\sqrt {a-b+c} \tan (d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}\right )}{2 e}+\frac {\tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{3 e}+\frac {(b-3 c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{3 \sqrt {c} e \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )}-\frac {\sqrt [4]{a} (b-3 c) E\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{3 c^{3/4} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}+\frac {\sqrt [4]{a} \left (\sqrt {a} (b-2 c)+2 a \sqrt {c}-2 (2 b-3 c) \sqrt {c}\right ) \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{6 \left (\sqrt {a}-\sqrt {c}\right ) c^{3/4} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \operatorname {EllipticPi}\left (-\frac {\left (\sqrt {a}-\sqrt {c}\right )^2}{4 \sqrt {a} \sqrt {c}},2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{4 \sqrt [4]{a} \left (\sqrt {a}-\sqrt {c}\right ) \sqrt [4]{c} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \] Output:
-1/2*(a-b+c)^(1/2)*arctan((a-b+c)^(1/2)*tan(e*x+d)/(a+b*tan(e*x+d)^2+c*tan (e*x+d)^4)^(1/2))/e+1/3*tan(e*x+d)*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2) /e+1/3*(b-3*c)*tan(e*x+d)*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2)/c^(1/2)/ e/(a^(1/2)+c^(1/2)*tan(e*x+d)^2)-1/3*a^(1/4)*(b-3*c)*EllipticE(sin(2*arcta n(c^(1/4)*tan(e*x+d)/a^(1/4))),1/2*(2-b/a^(1/2)/c^(1/2))^(1/2))*(a^(1/2)+c ^(1/2)*tan(e*x+d)^2)*((a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)/(a^(1/2)+c^(1/2)*t an(e*x+d)^2)^2)^(1/2)/c^(3/4)/e/(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2)+1/ 6*a^(1/4)*(a^(1/2)*(b-2*c)+2*a*c^(1/2)-2*(2*b-3*c)*c^(1/2))*InverseJacobiA M(2*arctan(c^(1/4)*tan(e*x+d)/a^(1/4)),1/2*(2-b/a^(1/2)/c^(1/2))^(1/2))*(a ^(1/2)+c^(1/2)*tan(e*x+d)^2)*((a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)/(a^(1/2)+c ^(1/2)*tan(e*x+d)^2)^2)^(1/2)/(a^(1/2)-c^(1/2))/c^(3/4)/e/(a+b*tan(e*x+d)^ 2+c*tan(e*x+d)^4)^(1/2)-1/4*(a^(1/2)+c^(1/2))*(a-b+c)*EllipticPi(sin(2*arc tan(c^(1/4)*tan(e*x+d)/a^(1/4))),-1/4*(a^(1/2)-c^(1/2))^2/a^(1/2)/c^(1/2), 1/2*(2-b/a^(1/2)/c^(1/2))^(1/2))*(a^(1/2)+c^(1/2)*tan(e*x+d)^2)*((a+b*tan( e*x+d)^2+c*tan(e*x+d)^4)/(a^(1/2)+c^(1/2)*tan(e*x+d)^2)^2)^(1/2)/a^(1/4)/( a^(1/2)-c^(1/2))/c^(1/4)/e/(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2)
Result contains complex when optimal does not.
Time = 15.81 (sec) , antiderivative size = 595, normalized size of antiderivative = 0.80 \[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\frac {\frac {\sqrt {(3 a+b+3 c+4 (a-c) \cos (2 (d+e x))+(a-b+c) \cos (4 (d+e x))) \sec ^4(d+e x)} ((b-3 c) \sin (2 (d+e x))+2 c \tan (d+e x))}{\sqrt {2} c}+\frac {\frac {i \sqrt {2} \left ((b-3 c) \left (-b+\sqrt {b^2-4 a c}\right ) E\left (i \text {arcsinh}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} \tan (d+e x)\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+\left (b^2-b \left (-3 c+\sqrt {b^2-4 a c}\right )+c \left (-4 a-6 c+3 \sqrt {b^2-4 a c}\right )\right ) \operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} \tan (d+e x)\right ),\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+6 c (a-b+c) \operatorname {EllipticPi}\left (\frac {b+\sqrt {b^2-4 a c}}{2 c},i \text {arcsinh}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} \tan (d+e x)\right ),\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )\right ) \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c \tan ^2(d+e x)}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c \tan ^2(d+e x)}{b-\sqrt {b^2-4 a c}}}}{\sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}}}-4 (b-3 c) \cos (d+e x) \sin (d+e x) \left (a+b \tan ^2(d+e x)+c \tan ^4(d+e x)\right )}{c \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}}{12 e} \] Input:
Integrate[Tan[d + e*x]^2*Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4],x]
Output:
((Sqrt[(3*a + b + 3*c + 4*(a - c)*Cos[2*(d + e*x)] + (a - b + c)*Cos[4*(d + e*x)])*Sec[d + e*x]^4]*((b - 3*c)*Sin[2*(d + e*x)] + 2*c*Tan[d + e*x]))/ (Sqrt[2]*c) + ((I*Sqrt[2]*((b - 3*c)*(-b + Sqrt[b^2 - 4*a*c])*EllipticE[I* ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*Tan[d + e*x]], (b + Sqrt[b ^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])] + (b^2 - b*(-3*c + Sqrt[b^2 - 4*a*c] ) + c*(-4*a - 6*c + 3*Sqrt[b^2 - 4*a*c]))*EllipticF[I*ArcSinh[Sqrt[2]*Sqrt [c/(b + Sqrt[b^2 - 4*a*c])]*Tan[d + e*x]], (b + Sqrt[b^2 - 4*a*c])/(b - Sq rt[b^2 - 4*a*c])] + 6*c*(a - b + c)*EllipticPi[(b + Sqrt[b^2 - 4*a*c])/(2* c), I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*Tan[d + e*x]], (b + Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])])*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*Tan[d + e*x]^2)/(b + Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*Tan[d + e*x]^2 )/(b - Sqrt[b^2 - 4*a*c])])/Sqrt[c/(b + Sqrt[b^2 - 4*a*c])] - 4*(b - 3*c)* Cos[d + e*x]*Sin[d + e*x]*(a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4))/(c*Sq rt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4]))/(12*e)
Time = 1.27 (sec) , antiderivative size = 760, normalized size of antiderivative = 1.02, number of steps used = 13, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.343, Rules used = {3042, 4183, 1630, 25, 27, 2207, 27, 1511, 27, 1416, 1509, 2220}
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 \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \tan (d+e x)^2 \sqrt {a+b \tan (d+e x)^2+c \tan (d+e x)^4}dx\) |
\(\Big \downarrow \) 4183 |
\(\displaystyle \frac {\int \frac {\tan ^2(d+e x) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}{\tan ^2(d+e x)+1}d\tan (d+e x)}{e}\) |
\(\Big \downarrow \) 1630 |
\(\displaystyle \frac {-\frac {(a-b+c) \int \frac {\left (\sqrt {a}+\sqrt {c}\right ) \left (\sqrt {c} \tan ^2(d+e x)+\sqrt {a}\right )}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}-\frac {\int -\frac {(a-c) c \tan ^4(d+e x)+(a-c) (b-c) \tan ^2(d+e x)+\sqrt {a} \left (\sqrt {a}+\sqrt {c}\right ) (a-b+c)}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\frac {\int \frac {(a-c) c \tan ^4(d+e x)+(a-c) (b-c) \tan ^2(d+e x)+\sqrt {a} \left (\sqrt {a}+\sqrt {c}\right ) (a-b+c)}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}-\frac {(a-b+c) \int \frac {\left (\sqrt {a}+\sqrt {c}\right ) \left (\sqrt {c} \tan ^2(d+e x)+\sqrt {a}\right )}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {\int \frac {(a-c) c \tan ^4(d+e x)+(a-c) (b-c) \tan ^2(d+e x)+\sqrt {a} \left (\sqrt {a}+\sqrt {c}\right ) (a-b+c)}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 2207 |
\(\displaystyle \frac {\frac {\frac {\int \frac {c \left ((b-3 c) (a-c) \tan ^2(d+e x)+\sqrt {a} \left (\sqrt {a}+\sqrt {c}\right ) \left (2 a+\sqrt {c} \sqrt {a}-3 b+3 c\right )\right )}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{3 c}+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {\frac {1}{3} \int \frac {(b-3 c) (a-c) \tan ^2(d+e x)+\sqrt {a} \left (\sqrt {a}+\sqrt {c}\right ) \left (2 a+\sqrt {c} \sqrt {a}-3 b+3 c\right )}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 1511 |
\(\displaystyle \frac {\frac {\frac {1}{3} \left (\frac {\sqrt {a} \left (2 a^{3/2} \sqrt {c}-\sqrt {a} \sqrt {c} (3 b-4 c)+a b-4 b c+6 c^2\right ) \int \frac {1}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{\sqrt {c}}-\frac {\sqrt {a} (a-c) (b-3 c) \int \frac {\sqrt {a}-\sqrt {c} \tan ^2(d+e x)}{\sqrt {a} \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{\sqrt {c}}\right )+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {\frac {1}{3} \left (\frac {\sqrt {a} \left (2 a^{3/2} \sqrt {c}-\sqrt {a} \sqrt {c} (3 b-4 c)+a b-4 b c+6 c^2\right ) \int \frac {1}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{\sqrt {c}}-\frac {(a-c) (b-3 c) \int \frac {\sqrt {a}-\sqrt {c} \tan ^2(d+e x)}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{\sqrt {c}}\right )+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 1416 |
\(\displaystyle \frac {\frac {\frac {1}{3} \left (\frac {\sqrt [4]{a} \left (2 a^{3/2} \sqrt {c}-\sqrt {a} \sqrt {c} (3 b-4 c)+a b-4 b c+6 c^2\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 c^{3/4} \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {(a-c) (b-3 c) \int \frac {\sqrt {a}-\sqrt {c} \tan ^2(d+e x)}{\sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{\sqrt {c}}\right )+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 1509 |
\(\displaystyle \frac {\frac {\frac {1}{3} \left (\frac {\sqrt [4]{a} \left (2 a^{3/2} \sqrt {c}-\sqrt {a} \sqrt {c} (3 b-4 c)+a b-4 b c+6 c^2\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 c^{3/4} \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {(a-c) (b-3 c) \left (\frac {\sqrt [4]{a} \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} E\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{\sqrt [4]{c} \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {\tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{\sqrt {a}+\sqrt {c} \tan ^2(d+e x)}\right )}{\sqrt {c}}\right )+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \int \frac {\sqrt {c} \tan ^2(d+e x)+\sqrt {a}}{\left (\tan ^2(d+e x)+1\right ) \sqrt {c \tan ^4(d+e x)+b \tan ^2(d+e x)+a}}d\tan (d+e x)}{a-c}}{e}\) |
\(\Big \downarrow \) 2220 |
\(\displaystyle \frac {\frac {\frac {1}{3} \left (\frac {\sqrt [4]{a} \left (2 a^{3/2} \sqrt {c}-\sqrt {a} \sqrt {c} (3 b-4 c)+a b-4 b c+6 c^2\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 c^{3/4} \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {(a-c) (b-3 c) \left (\frac {\sqrt [4]{a} \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} E\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{\sqrt [4]{c} \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {\tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{\sqrt {a}+\sqrt {c} \tan ^2(d+e x)}\right )}{\sqrt {c}}\right )+\frac {1}{3} (a-c) \tan (d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}{a-c}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) (a-b+c) \left (\frac {\left (\sqrt {a}-\sqrt {c}\right ) \arctan \left (\frac {\sqrt {a-b+c} \tan (d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}\right )}{2 \sqrt {a-b+c}}+\frac {\left (\sqrt {a}+\sqrt {c}\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} \operatorname {EllipticPi}\left (-\frac {\left (\sqrt {a}-\sqrt {c}\right )^2}{4 \sqrt {a} \sqrt {c}},2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{4 \sqrt [4]{a} \sqrt [4]{c} \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}\right )}{a-c}}{e}\) |
Input:
Int[Tan[d + e*x]^2*Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4],x]
Output:
(-(((Sqrt[a] + Sqrt[c])*(a - b + c)*(((Sqrt[a] - Sqrt[c])*ArcTan[(Sqrt[a - b + c]*Tan[d + e*x])/Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4]])/(2*S qrt[a - b + c]) + ((Sqrt[a] + Sqrt[c])*EllipticPi[-1/4*(Sqrt[a] - Sqrt[c]) ^2/(Sqrt[a]*Sqrt[c]), 2*ArcTan[(c^(1/4)*Tan[d + e*x])/a^(1/4)], (2 - b/(Sq rt[a]*Sqrt[c]))/4]*(Sqrt[a] + Sqrt[c]*Tan[d + e*x]^2)*Sqrt[(a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4)/(Sqrt[a] + Sqrt[c]*Tan[d + e*x]^2)^2])/(4*a^(1/ 4)*c^(1/4)*Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4])))/(a - c)) + ((( a - c)*Tan[d + e*x]*Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4])/3 + ((a ^(1/4)*(a*b + 2*a^(3/2)*Sqrt[c] - Sqrt[a]*(3*b - 4*c)*Sqrt[c] - 4*b*c + 6* c^2)*EllipticF[2*ArcTan[(c^(1/4)*Tan[d + e*x])/a^(1/4)], (2 - b/(Sqrt[a]*S qrt[c]))/4]*(Sqrt[a] + Sqrt[c]*Tan[d + e*x]^2)*Sqrt[(a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4)/(Sqrt[a] + Sqrt[c]*Tan[d + e*x]^2)^2])/(2*c^(3/4)*Sqrt [a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4]) - ((b - 3*c)*(a - c)*(-((Tan[d + e*x]*Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4])/(Sqrt[a] + Sqrt[c]*T an[d + e*x]^2)) + (a^(1/4)*EllipticE[2*ArcTan[(c^(1/4)*Tan[d + e*x])/a^(1/ 4)], (2 - b/(Sqrt[a]*Sqrt[c]))/4]*(Sqrt[a] + Sqrt[c]*Tan[d + e*x]^2)*Sqrt[ (a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4)/(Sqrt[a] + Sqrt[c]*Tan[d + e*x]^ 2)^2])/(c^(1/4)*Sqrt[a + b*Tan[d + e*x]^2 + c*Tan[d + e*x]^4])))/Sqrt[c])/ 3)/(a - c))/e
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[1/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c /a, 4]}, Simp[(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 + q^2*x^2)^2)]/ (2*q*Sqrt[a + b*x^2 + c*x^4]))*EllipticF[2*ArcTan[q*x], 1/2 - b*(q^2/(4*c)) ], x]] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]
Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbo l] :> With[{q = Rt[c/a, 4]}, Simp[(-d)*x*(Sqrt[a + b*x^2 + c*x^4]/(a*(1 + q ^2*x^2))), x] + Simp[d*(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 + q^2* x^2)^2)]/(q*Sqrt[a + b*x^2 + c*x^4]))*EllipticE[2*ArcTan[q*x], 1/2 - b*(q^2 /(4*c))], x] /; EqQ[e + d*q^2, 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]
Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbo l] :> With[{q = Rt[c/a, 2]}, Simp[(e + d*q)/q Int[1/Sqrt[a + b*x^2 + c*x^ 4], x], x] - Simp[e/q Int[(1 - q*x^2)/Sqrt[a + b*x^2 + c*x^4], x], x] /; NeQ[e + d*q, 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && Pos Q[c/a]
Int[((x_)^(m_)*((a_.) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_))/((d_) + (e_.)*(x _)^2), x_Symbol] :> Simp[(-(-d/e)^(m/2))*((c*d^2 - b*d*e + a*e^2)^(p + 1/2) /(e^(2*p)*(c*d^2 - a*e^2))) Int[(a*d*Rt[c/a, 2] + a*e + (c*d + a*e*Rt[c/a , 2])*x^2)/((d + e*x^2)*Sqrt[a + b*x^2 + c*x^4]), x], x] + Simp[1/(e^(2*p)* (c*d^2 - a*e^2)) Int[(1/Sqrt[a + b*x^2 + c*x^4])*ExpandToSum[(e^(2*p)*(c* d^2 - a*e^2)*x^m*(a + b*x^2 + c*x^4)^(p + 1/2) + (-d/e)^(m/2)*(c*d^2 - b*d* e + a*e^2)^(p + 1/2)*(a*d*Rt[c/a, 2] + a*e + (c*d + a*e*Rt[c/a, 2])*x^2))/( d + e*x^2), x], x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && IGtQ[p + 1/2, 0] && IGtQ[m/2, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[c/a]
Int[(Px_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> With[{n = Expon[Px, x^2], e = Coeff[Px, x^2, Expon[Px, x^2]]}, Simp[e*x^(2*n - 3)*(( a + b*x^2 + c*x^4)^(p + 1)/(c*(2*n + 4*p + 1))), x] + Simp[1/(c*(2*n + 4*p + 1)) Int[(a + b*x^2 + c*x^4)^p*ExpandToSum[c*(2*n + 4*p + 1)*Px - a*e*(2 *n - 3)*x^(2*n - 4) - b*e*(2*n + 2*p - 1)*x^(2*n - 2) - c*e*(2*n + 4*p + 1) *x^(2*n), x], x], x]] /; FreeQ[{a, b, c, p}, x] && PolyQ[Px, x^2] && Expon[ Px, x^2] > 1 && NeQ[b^2 - 4*a*c, 0] && !LtQ[p, -1]
Int[((A_) + (B_.)*(x_)^2)/(((d_) + (e_.)*(x_)^2)*Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4]), x_Symbol] :> With[{q = Rt[B/A, 2]}, Simp[(-(B*d - A*e))*(A rcTan[Rt[-b + c*(d/e) + a*(e/d), 2]*(x/Sqrt[a + b*x^2 + c*x^4])]/(2*d*e*Rt[ -b + c*(d/e) + a*(e/d), 2])), x] + Simp[(B*d + A*e)*(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 + q^2*x^2)^2)]/(4*d*e*q*Sqrt[a + b*x^2 + c*x^4]))*El lipticPi[-(e - d*q^2)^2/(4*d*e*q^2), 2*ArcTan[q*x], 1/2 - b/(4*a*q^2)], x]] /; FreeQ[{a, b, c, d, e, A, B}, x] && NeQ[c*d^2 - a*e^2, 0] && PosQ[c/a] & & EqQ[c*A^2 - a*B^2, 0] && PosQ[B/A] && PosQ[-b + c*(d/e) + a*(e/d)]
Int[tan[(d_.) + (e_.)*(x_)]^(m_.)*((a_.) + (b_.)*((f_.)*tan[(d_.) + (e_.)*( x_)])^(n_.) + (c_.)*((f_.)*tan[(d_.) + (e_.)*(x_)])^(n2_.))^(p_), x_Symbol] :> Simp[f/e Subst[Int[(x/f)^m*((a + b*x^n + c*x^(2*n))^p/(f^2 + x^2)), x ], x, f*Tan[d + e*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && EqQ[n 2, 2*n] && NeQ[b^2 - 4*a*c, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(1944\) vs. \(2(617)=1234\).
Time = 0.94 (sec) , antiderivative size = 1945, normalized size of antiderivative = 2.62
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1945\) |
default | \(\text {Expression too large to display}\) | \(1945\) |
Input:
int(tan(e*x+d)^2*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2),x,method=_RETURNV ERBOSE)
Output:
1/e*(1/3*tan(e*x+d)*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2)+1/6*a*2^(1/2)/ ((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2)*(4-2*(-b+(-4*a*c+b^2)^(1/2))/a*tan(e*x+d )^2)^(1/2)*(4+2*(b+(-4*a*c+b^2)^(1/2))/a*tan(e*x+d)^2)^(1/2)/(a+b*tan(e*x+ d)^2+c*tan(e*x+d)^4)^(1/2)*EllipticF(1/2*tan(e*x+d)*2^(1/2)*((-b+(-4*a*c+b ^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))-1/6*b*a *2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2)*(4-2*(-b+(-4*a*c+b^2)^(1/2))/a* tan(e*x+d)^2)^(1/2)*(4+2*(b+(-4*a*c+b^2)^(1/2))/a*tan(e*x+d)^2)^(1/2)/(a+b *tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2)/(b+(-4*a*c+b^2)^(1/2))*(EllipticF(1/2* tan(e*x+d)*2^(1/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a* c+b^2)^(1/2))/a/c)^(1/2))-EllipticE(1/2*tan(e*x+d)*2^(1/2)*((-b+(-4*a*c+b^ 2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2)))-1/4*2^( 1/2)/(-1/a*b+1/a*(-4*a*c+b^2)^(1/2))^(1/2)*(4+2/a*b*tan(e*x+d)^2-2/a*tan(e *x+d)^2*(-4*a*c+b^2)^(1/2))^(1/2)*(4+2/a*b*tan(e*x+d)^2+2/a*tan(e*x+d)^2*( -4*a*c+b^2)^(1/2))^(1/2)/(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2)*EllipticF (1/2*tan(e*x+d)*2^(1/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+( -4*a*c+b^2)^(1/2))/a/c)^(1/2))*b+1/4*2^(1/2)/(-1/a*b+1/a*(-4*a*c+b^2)^(1/2 ))^(1/2)*(4+2/a*b*tan(e*x+d)^2-2/a*tan(e*x+d)^2*(-4*a*c+b^2)^(1/2))^(1/2)* (4+2/a*b*tan(e*x+d)^2+2/a*tan(e*x+d)^2*(-4*a*c+b^2)^(1/2))^(1/2)/(a+b*tan( e*x+d)^2+c*tan(e*x+d)^4)^(1/2)*EllipticF(1/2*tan(e*x+d)*2^(1/2)*((-b+(-4*a *c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))*...
Timed out. \[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\text {Timed out} \] Input:
integrate(tan(e*x+d)^2*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2),x, algorith m="fricas")
Output:
Timed out
\[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\int \sqrt {a + b \tan ^{2}{\left (d + e x \right )} + c \tan ^{4}{\left (d + e x \right )}} \tan ^{2}{\left (d + e x \right )}\, dx \] Input:
integrate(tan(e*x+d)**2*(a+b*tan(e*x+d)**2+c*tan(e*x+d)**4)**(1/2),x)
Output:
Integral(sqrt(a + b*tan(d + e*x)**2 + c*tan(d + e*x)**4)*tan(d + e*x)**2, x)
\[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\int { \sqrt {c \tan \left (e x + d\right )^{4} + b \tan \left (e x + d\right )^{2} + a} \tan \left (e x + d\right )^{2} \,d x } \] Input:
integrate(tan(e*x+d)^2*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2),x, algorith m="maxima")
Output:
integrate(sqrt(c*tan(e*x + d)^4 + b*tan(e*x + d)^2 + a)*tan(e*x + d)^2, x)
\[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\int { \sqrt {c \tan \left (e x + d\right )^{4} + b \tan \left (e x + d\right )^{2} + a} \tan \left (e x + d\right )^{2} \,d x } \] Input:
integrate(tan(e*x+d)^2*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2),x, algorith m="giac")
Output:
integrate(sqrt(c*tan(e*x + d)^4 + b*tan(e*x + d)^2 + a)*tan(e*x + d)^2, x)
Timed out. \[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\int {\mathrm {tan}\left (d+e\,x\right )}^2\,\sqrt {c\,{\mathrm {tan}\left (d+e\,x\right )}^4+b\,{\mathrm {tan}\left (d+e\,x\right )}^2+a} \,d x \] Input:
int(tan(d + e*x)^2*(a + b*tan(d + e*x)^2 + c*tan(d + e*x)^4)^(1/2),x)
Output:
int(tan(d + e*x)^2*(a + b*tan(d + e*x)^2 + c*tan(d + e*x)^4)^(1/2), x)
\[ \int \tan ^2(d+e x) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)} \, dx=\int \sqrt {\tan \left (e x +d \right )^{4} c +\tan \left (e x +d \right )^{2} b +a}\, \tan \left (e x +d \right )^{2}d x \] Input:
int(tan(e*x+d)^2*(a+b*tan(e*x+d)^2+c*tan(e*x+d)^4)^(1/2),x)
Output:
int(sqrt(tan(d + e*x)**4*c + tan(d + e*x)**2*b + a)*tan(d + e*x)**2,x)