\(\int \frac {1}{(2+5 x^2-8 x^4)^{3/2}} \, dx\) [309]

Optimal result
Mathematica [C] (warning: unable to verify)
Rubi [A] (verified)
Maple [B] (verified)
Fricas [B] (verification not implemented)
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 16, antiderivative size = 125 \[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\frac {x \left (57-40 x^2\right )}{178 \sqrt {2+5 x^2-8 x^4}}+\frac {5}{178} \sqrt {\frac {1}{2} \left (-5+\sqrt {89}\right )} E\left (\arcsin \left (\frac {4 x}{\sqrt {5+\sqrt {89}}}\right )|\frac {1}{32} \left (-57-5 \sqrt {89}\right )\right )+\frac {1}{2} \sqrt {\frac {1}{178} \left (-5+\sqrt {89}\right )} \operatorname {EllipticF}\left (\arcsin \left (\frac {4 x}{\sqrt {5+\sqrt {89}}}\right ),\frac {1}{32} \left (-57-5 \sqrt {89}\right )\right ) \] Output:

1/178*x*(-40*x^2+57)/(-8*x^4+5*x^2+2)^(1/2)+5/356*(-10+2*89^(1/2))^(1/2)*E 
llipticE(4*x/(5+89^(1/2))^(1/2),5/8*I+1/8*I*89^(1/2))+1/356*(-890+178*89^( 
1/2))^(1/2)*EllipticF(4*x/(5+89^(1/2))^(1/2),5/8*I+1/8*I*89^(1/2))
 

Mathematica [C] (warning: unable to verify)

Result contains complex when optimal does not.

Time = 5.14 (sec) , antiderivative size = 156, normalized size of antiderivative = 1.25 \[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\frac {1}{356} \left (\frac {114 x}{\sqrt {2+5 x^2-8 x^4}}-\frac {80 x^3}{\sqrt {2+5 x^2-8 x^4}}+5 i \sqrt {2 \left (5+\sqrt {89}\right )} E\left (i \text {arcsinh}\left (\frac {4 x}{\sqrt {-5+\sqrt {89}}}\right )|\frac {1}{32} \left (-57+5 \sqrt {89}\right )\right )-i \sqrt {\frac {2}{5+\sqrt {89}}} \left (89+5 \sqrt {89}\right ) \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {4 x}{\sqrt {-5+\sqrt {89}}}\right ),\frac {1}{32} \left (-57+5 \sqrt {89}\right )\right )\right ) \] Input:

Integrate[(2 + 5*x^2 - 8*x^4)^(-3/2),x]
 

Output:

((114*x)/Sqrt[2 + 5*x^2 - 8*x^4] - (80*x^3)/Sqrt[2 + 5*x^2 - 8*x^4] + (5*I 
)*Sqrt[2*(5 + Sqrt[89])]*EllipticE[I*ArcSinh[(4*x)/Sqrt[-5 + Sqrt[89]]], ( 
-57 + 5*Sqrt[89])/32] - I*Sqrt[2/(5 + Sqrt[89])]*(89 + 5*Sqrt[89])*Ellipti 
cF[I*ArcSinh[(4*x)/Sqrt[-5 + Sqrt[89]]], (-57 + 5*Sqrt[89])/32])/356
 

Rubi [A] (verified)

Time = 0.50 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.09, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {1405, 27, 1494, 399, 321, 327}

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 {1}{\left (-8 x^4+5 x^2+2\right )^{3/2}} \, dx\)

\(\Big \downarrow \) 1405

\(\displaystyle \frac {x \left (57-40 x^2\right )}{178 \sqrt {-8 x^4+5 x^2+2}}-\frac {1}{178} \int -\frac {8 \left (5 x^2+4\right )}{\sqrt {-8 x^4+5 x^2+2}}dx\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {4}{89} \int \frac {5 x^2+4}{\sqrt {-8 x^4+5 x^2+2}}dx+\frac {x \left (57-40 x^2\right )}{178 \sqrt {-8 x^4+5 x^2+2}}\)

\(\Big \downarrow \) 1494

\(\displaystyle \frac {16}{89} \sqrt {2} \int \frac {5 x^2+4}{\sqrt {-16 x^2+\sqrt {89}+5} \sqrt {16 x^2+\sqrt {89}-5}}dx+\frac {x \left (57-40 x^2\right )}{178 \sqrt {-8 x^4+5 x^2+2}}\)

\(\Big \downarrow \) 399

\(\displaystyle \frac {16}{89} \sqrt {2} \left (\frac {1}{16} \left (89-5 \sqrt {89}\right ) \int \frac {1}{\sqrt {-16 x^2+\sqrt {89}+5} \sqrt {16 x^2+\sqrt {89}-5}}dx+\frac {5}{16} \int \frac {\sqrt {16 x^2+\sqrt {89}-5}}{\sqrt {-16 x^2+\sqrt {89}+5}}dx\right )+\frac {x \left (57-40 x^2\right )}{178 \sqrt {-8 x^4+5 x^2+2}}\)

\(\Big \downarrow \) 321

\(\displaystyle \frac {16}{89} \sqrt {2} \left (\frac {5}{16} \int \frac {\sqrt {16 x^2+\sqrt {89}-5}}{\sqrt {-16 x^2+\sqrt {89}+5}}dx+\frac {\left (89-5 \sqrt {89}\right ) \operatorname {EllipticF}\left (\arcsin \left (\frac {4 x}{\sqrt {5+\sqrt {89}}}\right ),\frac {1}{32} \left (-57-5 \sqrt {89}\right )\right )}{64 \sqrt {\sqrt {89}-5}}\right )+\frac {x \left (57-40 x^2\right )}{178 \sqrt {-8 x^4+5 x^2+2}}\)

\(\Big \downarrow \) 327

\(\displaystyle \frac {16}{89} \sqrt {2} \left (\frac {\left (89-5 \sqrt {89}\right ) \operatorname {EllipticF}\left (\arcsin \left (\frac {4 x}{\sqrt {5+\sqrt {89}}}\right ),\frac {1}{32} \left (-57-5 \sqrt {89}\right )\right )}{64 \sqrt {\sqrt {89}-5}}+\frac {5}{64} \sqrt {\sqrt {89}-5} E\left (\arcsin \left (\frac {4 x}{\sqrt {5+\sqrt {89}}}\right )|\frac {1}{32} \left (-57-5 \sqrt {89}\right )\right )\right )+\frac {x \left (57-40 x^2\right )}{178 \sqrt {-8 x^4+5 x^2+2}}\)

Input:

Int[(2 + 5*x^2 - 8*x^4)^(-3/2),x]
 

Output:

(x*(57 - 40*x^2))/(178*Sqrt[2 + 5*x^2 - 8*x^4]) + (16*Sqrt[2]*((5*Sqrt[-5 
+ Sqrt[89]]*EllipticE[ArcSin[(4*x)/Sqrt[5 + Sqrt[89]]], (-57 - 5*Sqrt[89]) 
/32])/64 + ((89 - 5*Sqrt[89])*EllipticF[ArcSin[(4*x)/Sqrt[5 + Sqrt[89]]], 
(-57 - 5*Sqrt[89])/32])/(64*Sqrt[-5 + Sqrt[89]])))/89
 

Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 321
Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> S 
imp[(1/(Sqrt[a]*Sqrt[c]*Rt[-d/c, 2]))*EllipticF[ArcSin[Rt[-d/c, 2]*x], b*(c 
/(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 
0] &&  !(NegQ[b/a] && SimplerSqrtQ[-b/a, -d/c])
 

rule 327
Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[ 
(Sqrt[a]/(Sqrt[c]*Rt[-d/c, 2]))*EllipticE[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d) 
)], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0]
 

rule 399
Int[((e_) + (f_.)*(x_)^2)/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_) 
^2]), x_Symbol] :> Simp[f/b   Int[Sqrt[a + b*x^2]/Sqrt[c + d*x^2], x], x] + 
 Simp[(b*e - a*f)/b   Int[1/(Sqrt[a + b*x^2]*Sqrt[c + d*x^2]), x], x] /; Fr 
eeQ[{a, b, c, d, e, f}, x] &&  !((PosQ[b/a] && PosQ[d/c]) || (NegQ[b/a] && 
(PosQ[d/c] || (GtQ[a, 0] && ( !GtQ[c, 0] || SimplerSqrtQ[-b/a, -d/c])))))
 

rule 1405
Int[((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[(-x)*(b^2 
- 2*a*c + b*c*x^2)*((a + b*x^2 + c*x^4)^(p + 1)/(2*a*(p + 1)*(b^2 - 4*a*c)) 
), x] + Simp[1/(2*a*(p + 1)*(b^2 - 4*a*c))   Int[(b^2 - 2*a*c + 2*(p + 1)*( 
b^2 - 4*a*c) + b*c*(4*p + 7)*x^2)*(a + b*x^2 + c*x^4)^(p + 1), x], x] /; Fr 
eeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && LtQ[p, -1] && IntegerQ[2*p]
 

rule 1494
Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbo 
l] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[2*Sqrt[-c]   Int[(d + e*x^2)/(Sqr 
t[b + q + 2*c*x^2]*Sqrt[-b + q - 2*c*x^2]), x], x]] /; FreeQ[{a, b, c, d, e 
}, x] && GtQ[b^2 - 4*a*c, 0] && LtQ[c, 0]
 
Maple [B] (verified)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 205 vs. \(2 (87 ) = 174\).

Time = 1.78 (sec) , antiderivative size = 206, normalized size of antiderivative = 1.65

method result size
risch \(-\frac {x \left (40 x^{2}-57\right )}{178 \sqrt {-8 x^{4}+5 x^{2}+2}}+\frac {32 \sqrt {1-\left (-\frac {5}{4}+\frac {\sqrt {89}}{4}\right ) x^{2}}\, \sqrt {1-\left (-\frac {5}{4}-\frac {\sqrt {89}}{4}\right ) x^{2}}\, \operatorname {EllipticF}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )}{89 \sqrt {-5+\sqrt {89}}\, \sqrt {-8 x^{4}+5 x^{2}+2}}-\frac {160 \sqrt {1-\left (-\frac {5}{4}+\frac {\sqrt {89}}{4}\right ) x^{2}}\, \sqrt {1-\left (-\frac {5}{4}-\frac {\sqrt {89}}{4}\right ) x^{2}}\, \left (\operatorname {EllipticF}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )-\operatorname {EllipticE}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )\right )}{89 \sqrt {-5+\sqrt {89}}\, \sqrt {-8 x^{4}+5 x^{2}+2}\, \left (5+\sqrt {89}\right )}\) \(206\)
default \(\frac {\frac {57}{178} x -\frac {20}{89} x^{3}}{\sqrt {-8 x^{4}+5 x^{2}+2}}+\frac {32 \sqrt {1-\left (-\frac {5}{4}+\frac {\sqrt {89}}{4}\right ) x^{2}}\, \sqrt {1-\left (-\frac {5}{4}-\frac {\sqrt {89}}{4}\right ) x^{2}}\, \operatorname {EllipticF}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )}{89 \sqrt {-5+\sqrt {89}}\, \sqrt {-8 x^{4}+5 x^{2}+2}}-\frac {160 \sqrt {1-\left (-\frac {5}{4}+\frac {\sqrt {89}}{4}\right ) x^{2}}\, \sqrt {1-\left (-\frac {5}{4}-\frac {\sqrt {89}}{4}\right ) x^{2}}\, \left (\operatorname {EllipticF}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )-\operatorname {EllipticE}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )\right )}{89 \sqrt {-5+\sqrt {89}}\, \sqrt {-8 x^{4}+5 x^{2}+2}\, \left (5+\sqrt {89}\right )}\) \(207\)
elliptic \(\frac {\frac {57}{178} x -\frac {20}{89} x^{3}}{\sqrt {-8 x^{4}+5 x^{2}+2}}+\frac {32 \sqrt {1-\left (-\frac {5}{4}+\frac {\sqrt {89}}{4}\right ) x^{2}}\, \sqrt {1-\left (-\frac {5}{4}-\frac {\sqrt {89}}{4}\right ) x^{2}}\, \operatorname {EllipticF}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )}{89 \sqrt {-5+\sqrt {89}}\, \sqrt {-8 x^{4}+5 x^{2}+2}}-\frac {160 \sqrt {1-\left (-\frac {5}{4}+\frac {\sqrt {89}}{4}\right ) x^{2}}\, \sqrt {1-\left (-\frac {5}{4}-\frac {\sqrt {89}}{4}\right ) x^{2}}\, \left (\operatorname {EllipticF}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )-\operatorname {EllipticE}\left (\frac {x \sqrt {-5+\sqrt {89}}}{2}, \frac {5 i}{8}+\frac {i \sqrt {89}}{8}\right )\right )}{89 \sqrt {-5+\sqrt {89}}\, \sqrt {-8 x^{4}+5 x^{2}+2}\, \left (5+\sqrt {89}\right )}\) \(207\)

Input:

int(1/(-8*x^4+5*x^2+2)^(3/2),x,method=_RETURNVERBOSE)
 

Output:

-1/178*x*(40*x^2-57)/(-8*x^4+5*x^2+2)^(1/2)+32/89/(-5+89^(1/2))^(1/2)*(1-( 
-5/4+1/4*89^(1/2))*x^2)^(1/2)*(1-(-5/4-1/4*89^(1/2))*x^2)^(1/2)/(-8*x^4+5* 
x^2+2)^(1/2)*EllipticF(1/2*x*(-5+89^(1/2))^(1/2),5/8*I+1/8*I*89^(1/2))-160 
/89/(-5+89^(1/2))^(1/2)*(1-(-5/4+1/4*89^(1/2))*x^2)^(1/2)*(1-(-5/4-1/4*89^ 
(1/2))*x^2)^(1/2)/(-8*x^4+5*x^2+2)^(1/2)/(5+89^(1/2))*(EllipticF(1/2*x*(-5 
+89^(1/2))^(1/2),5/8*I+1/8*I*89^(1/2))-EllipticE(1/2*x*(-5+89^(1/2))^(1/2) 
,5/8*I+1/8*I*89^(1/2)))
 

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 172 vs. \(2 (83) = 166\).

Time = 0.07 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.38 \[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\frac {5 \, {\left (\sqrt {89} \sqrt {2} {\left (8 \, x^{4} - 5 \, x^{2} - 2\right )} - 5 \, \sqrt {2} {\left (8 \, x^{4} - 5 \, x^{2} - 2\right )}\right )} \sqrt {\sqrt {89} - 5} E(\arcsin \left (\frac {1}{2} \, x \sqrt {\sqrt {89} - 5}\right )\,|\,-\frac {5}{32} \, \sqrt {89} - \frac {57}{32}) - {\left (\sqrt {89} \sqrt {2} {\left (8 \, x^{4} - 5 \, x^{2} - 2\right )} - 45 \, \sqrt {2} {\left (8 \, x^{4} - 5 \, x^{2} - 2\right )}\right )} \sqrt {\sqrt {89} - 5} F(\arcsin \left (\frac {1}{2} \, x \sqrt {\sqrt {89} - 5}\right )\,|\,-\frac {5}{32} \, \sqrt {89} - \frac {57}{32}) + 8 \, \sqrt {-8 \, x^{4} + 5 \, x^{2} + 2} {\left (40 \, x^{3} - 57 \, x\right )}}{1424 \, {\left (8 \, x^{4} - 5 \, x^{2} - 2\right )}} \] Input:

integrate(1/(-8*x^4+5*x^2+2)^(3/2),x, algorithm="fricas")
 

Output:

1/1424*(5*(sqrt(89)*sqrt(2)*(8*x^4 - 5*x^2 - 2) - 5*sqrt(2)*(8*x^4 - 5*x^2 
 - 2))*sqrt(sqrt(89) - 5)*elliptic_e(arcsin(1/2*x*sqrt(sqrt(89) - 5)), -5/ 
32*sqrt(89) - 57/32) - (sqrt(89)*sqrt(2)*(8*x^4 - 5*x^2 - 2) - 45*sqrt(2)* 
(8*x^4 - 5*x^2 - 2))*sqrt(sqrt(89) - 5)*elliptic_f(arcsin(1/2*x*sqrt(sqrt( 
89) - 5)), -5/32*sqrt(89) - 57/32) + 8*sqrt(-8*x^4 + 5*x^2 + 2)*(40*x^3 - 
57*x))/(8*x^4 - 5*x^2 - 2)
 

Sympy [F]

\[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\int \frac {1}{\left (- 8 x^{4} + 5 x^{2} + 2\right )^{\frac {3}{2}}}\, dx \] Input:

integrate(1/(-8*x**4+5*x**2+2)**(3/2),x)
 

Output:

Integral((-8*x**4 + 5*x**2 + 2)**(-3/2), x)
 

Maxima [F]

\[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\int { \frac {1}{{\left (-8 \, x^{4} + 5 \, x^{2} + 2\right )}^{\frac {3}{2}}} \,d x } \] Input:

integrate(1/(-8*x^4+5*x^2+2)^(3/2),x, algorithm="maxima")
 

Output:

integrate((-8*x^4 + 5*x^2 + 2)^(-3/2), x)
 

Giac [F]

\[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\int { \frac {1}{{\left (-8 \, x^{4} + 5 \, x^{2} + 2\right )}^{\frac {3}{2}}} \,d x } \] Input:

integrate(1/(-8*x^4+5*x^2+2)^(3/2),x, algorithm="giac")
 

Output:

integrate((-8*x^4 + 5*x^2 + 2)^(-3/2), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\int \frac {1}{{\left (-8\,x^4+5\,x^2+2\right )}^{3/2}} \,d x \] Input:

int(1/(5*x^2 - 8*x^4 + 2)^(3/2),x)
 

Output:

int(1/(5*x^2 - 8*x^4 + 2)^(3/2), x)
 

Reduce [F]

\[ \int \frac {1}{\left (2+5 x^2-8 x^4\right )^{3/2}} \, dx=\int \frac {\sqrt {-8 x^{4}+5 x^{2}+2}}{64 x^{8}-80 x^{6}-7 x^{4}+20 x^{2}+4}d x \] Input:

int(1/(-8*x^4+5*x^2+2)^(3/2),x)
 

Output:

int(sqrt( - 8*x**4 + 5*x**2 + 2)/(64*x**8 - 80*x**6 - 7*x**4 + 20*x**2 + 4 
),x)