\(\int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx\) [208]

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

Optimal result

Integrand size = 25, antiderivative size = 192 \[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=\frac {66 \sqrt {x} (2+3 x)}{5 \sqrt {2+5 x+3 x^2}}-\frac {2 \sqrt {2+5 x+3 x^2}}{5 x^{5/2}}+\frac {3 \sqrt {2+5 x+3 x^2}}{x^{3/2}}-\frac {66 \sqrt {2+5 x+3 x^2}}{5 \sqrt {x}}-\frac {66 \sqrt {2} \sqrt {2+5 x+3 x^2} E\left (\arctan \left (\sqrt {x}\right )|-\frac {1}{2}\right )}{5 \sqrt {1+x} \sqrt {2+3 x}}+\frac {9 \sqrt {1+x} \sqrt {2+3 x} \operatorname {EllipticF}\left (\arctan \left (\sqrt {x}\right ),-\frac {1}{2}\right )}{\sqrt {2} \sqrt {2+5 x+3 x^2}} \] Output:

66/5*x^(1/2)*(2+3*x)/(3*x^2+5*x+2)^(1/2)-2/5*(3*x^2+5*x+2)^(1/2)/x^(5/2)+3 
*(3*x^2+5*x+2)^(1/2)/x^(3/2)-66/5*(3*x^2+5*x+2)^(1/2)/x^(1/2)-66/5*2^(1/2) 
*(3*x^2+5*x+2)^(1/2)*EllipticE(x^(1/2)/(1+x)^(1/2),1/2*I*2^(1/2))/(1+x)^(1 
/2)/(2+3*x)^(1/2)+9/2*2^(1/2)*(1+x)^(1/2)*(2+3*x)^(1/2)*InverseJacobiAM(ar 
ctan(x^(1/2)),1/2*I*2^(1/2))/(3*x^2+5*x+2)^(1/2)
 

Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 21.20 (sec) , antiderivative size = 150, normalized size of antiderivative = 0.78 \[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=\frac {-8+40 x+138 x^2+90 x^3+132 i \sqrt {2} \sqrt {1+\frac {1}{x}} \sqrt {3+\frac {2}{x}} x^{7/2} E\left (i \text {arcsinh}\left (\frac {\sqrt {\frac {2}{3}}}{\sqrt {x}}\right )|\frac {3}{2}\right )-87 i \sqrt {2} \sqrt {1+\frac {1}{x}} \sqrt {3+\frac {2}{x}} x^{7/2} \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {\frac {2}{3}}}{\sqrt {x}}\right ),\frac {3}{2}\right )}{10 x^{5/2} \sqrt {2+5 x+3 x^2}} \] Input:

Integrate[(2 - 5*x)/(x^(7/2)*Sqrt[2 + 5*x + 3*x^2]),x]
 

Output:

(-8 + 40*x + 138*x^2 + 90*x^3 + (132*I)*Sqrt[2]*Sqrt[1 + x^(-1)]*Sqrt[3 + 
2/x]*x^(7/2)*EllipticE[I*ArcSinh[Sqrt[2/3]/Sqrt[x]], 3/2] - (87*I)*Sqrt[2] 
*Sqrt[1 + x^(-1)]*Sqrt[3 + 2/x]*x^(7/2)*EllipticF[I*ArcSinh[Sqrt[2/3]/Sqrt 
[x]], 3/2])/(10*x^(5/2)*Sqrt[2 + 5*x + 3*x^2])
 

Rubi [A] (verified)

Time = 0.41 (sec) , antiderivative size = 212, normalized size of antiderivative = 1.10, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {1237, 27, 1237, 27, 1237, 27, 1240, 1503, 1413, 1456}

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 {2-5 x}{x^{7/2} \sqrt {3 x^2+5 x+2}} \, dx\)

\(\Big \downarrow \) 1237

\(\displaystyle -\frac {1}{5} \int \frac {9 (x+5)}{x^{5/2} \sqrt {3 x^2+5 x+2}}dx-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 27

\(\displaystyle -\frac {9}{5} \int \frac {x+5}{x^{5/2} \sqrt {3 x^2+5 x+2}}dx-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 1237

\(\displaystyle -\frac {9}{5} \left (-\frac {1}{3} \int \frac {15 x+44}{2 x^{3/2} \sqrt {3 x^2+5 x+2}}dx-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 27

\(\displaystyle -\frac {9}{5} \left (-\frac {1}{6} \int \frac {15 x+44}{x^{3/2} \sqrt {3 x^2+5 x+2}}dx-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 1237

\(\displaystyle -\frac {9}{5} \left (\frac {1}{6} \left (\int -\frac {3 (22 x+5)}{\sqrt {x} \sqrt {3 x^2+5 x+2}}dx+\frac {44 \sqrt {3 x^2+5 x+2}}{\sqrt {x}}\right )-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 27

\(\displaystyle -\frac {9}{5} \left (\frac {1}{6} \left (\frac {44 \sqrt {3 x^2+5 x+2}}{\sqrt {x}}-3 \int \frac {22 x+5}{\sqrt {x} \sqrt {3 x^2+5 x+2}}dx\right )-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 1240

\(\displaystyle -\frac {9}{5} \left (\frac {1}{6} \left (\frac {44 \sqrt {3 x^2+5 x+2}}{\sqrt {x}}-6 \int \frac {22 x+5}{\sqrt {3 x^2+5 x+2}}d\sqrt {x}\right )-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 1503

\(\displaystyle -\frac {9}{5} \left (\frac {1}{6} \left (\frac {44 \sqrt {3 x^2+5 x+2}}{\sqrt {x}}-6 \left (5 \int \frac {1}{\sqrt {3 x^2+5 x+2}}d\sqrt {x}+22 \int \frac {x}{\sqrt {3 x^2+5 x+2}}d\sqrt {x}\right )\right )-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 1413

\(\displaystyle -\frac {9}{5} \left (\frac {1}{6} \left (\frac {44 \sqrt {3 x^2+5 x+2}}{\sqrt {x}}-6 \left (22 \int \frac {x}{\sqrt {3 x^2+5 x+2}}d\sqrt {x}+\frac {5 (x+1) \sqrt {\frac {3 x+2}{x+1}} \operatorname {EllipticF}\left (\arctan \left (\sqrt {x}\right ),-\frac {1}{2}\right )}{\sqrt {2} \sqrt {3 x^2+5 x+2}}\right )\right )-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

\(\Big \downarrow \) 1456

\(\displaystyle -\frac {9}{5} \left (\frac {1}{6} \left (\frac {44 \sqrt {3 x^2+5 x+2}}{\sqrt {x}}-6 \left (\frac {5 (x+1) \sqrt {\frac {3 x+2}{x+1}} \operatorname {EllipticF}\left (\arctan \left (\sqrt {x}\right ),-\frac {1}{2}\right )}{\sqrt {2} \sqrt {3 x^2+5 x+2}}+22 \left (\frac {\sqrt {x} (3 x+2)}{3 \sqrt {3 x^2+5 x+2}}-\frac {\sqrt {2} (x+1) \sqrt {\frac {3 x+2}{x+1}} E\left (\arctan \left (\sqrt {x}\right )|-\frac {1}{2}\right )}{3 \sqrt {3 x^2+5 x+2}}\right )\right )\right )-\frac {5 \sqrt {3 x^2+5 x+2}}{3 x^{3/2}}\right )-\frac {2 \sqrt {3 x^2+5 x+2}}{5 x^{5/2}}\)

Input:

Int[(2 - 5*x)/(x^(7/2)*Sqrt[2 + 5*x + 3*x^2]),x]
 

Output:

(-2*Sqrt[2 + 5*x + 3*x^2])/(5*x^(5/2)) - (9*((-5*Sqrt[2 + 5*x + 3*x^2])/(3 
*x^(3/2)) + ((44*Sqrt[2 + 5*x + 3*x^2])/Sqrt[x] - 6*(22*((Sqrt[x]*(2 + 3*x 
))/(3*Sqrt[2 + 5*x + 3*x^2]) - (Sqrt[2]*(1 + x)*Sqrt[(2 + 3*x)/(1 + x)]*El 
lipticE[ArcTan[Sqrt[x]], -1/2])/(3*Sqrt[2 + 5*x + 3*x^2])) + (5*(1 + x)*Sq 
rt[(2 + 3*x)/(1 + x)]*EllipticF[ArcTan[Sqrt[x]], -1/2])/(Sqrt[2]*Sqrt[2 + 
5*x + 3*x^2])))/6))/5
 

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 1237
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c 
_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(e*f - d*g)*(d + e*x)^(m + 1)*((a + b* 
x + c*x^2)^(p + 1)/((m + 1)*(c*d^2 - b*d*e + a*e^2))), x] + Simp[1/((m + 1) 
*(c*d^2 - b*d*e + a*e^2))   Int[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^p*Simp[ 
(c*d*f - f*b*e + a*e*g)*(m + 1) + b*(d*g - e*f)*(p + 1) - c*(e*f - d*g)*(m 
+ 2*p + 3)*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, p}, x] && LtQ[m, -1 
] && (IntegerQ[m] || IntegerQ[p] || IntegersQ[2*m, 2*p])
 

rule 1240
Int[((f_) + (g_.)*(x_))/(Sqrt[x_]*Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2]), 
x_Symbol] :> Simp[2   Subst[Int[(f + g*x^2)/Sqrt[a + b*x^2 + c*x^4], x], x, 
 Sqrt[x]], x] /; FreeQ[{a, b, c, f, g}, x]
 

rule 1413
Int[1/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[b 
^2 - 4*a*c, 2]}, Simp[(2*a + (b - q)*x^2)*(Sqrt[(2*a + (b + q)*x^2)/(2*a + 
(b - q)*x^2)]/(2*a*Rt[(b - q)/(2*a), 2]*Sqrt[a + b*x^2 + c*x^4]))*EllipticF 
[ArcTan[Rt[(b - q)/(2*a), 2]*x], -2*(q/(b - q))], x] /; PosQ[(b - q)/a]] /; 
 FreeQ[{a, b, c}, x] && GtQ[b^2 - 4*a*c, 0]
 

rule 1456
Int[(x_)^2/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = 
 Rt[b^2 - 4*a*c, 2]}, Simp[x*((b - q + 2*c*x^2)/(2*c*Sqrt[a + b*x^2 + c*x^4 
])), x] - Simp[Rt[(b - q)/(2*a), 2]*(2*a + (b - q)*x^2)*(Sqrt[(2*a + (b + q 
)*x^2)/(2*a + (b - q)*x^2)]/(2*c*Sqrt[a + b*x^2 + c*x^4]))*EllipticE[ArcTan 
[Rt[(b - q)/(2*a), 2]*x], -2*(q/(b - q))], x] /; PosQ[(b - q)/a]] /; FreeQ[ 
{a, b, c}, x] && GtQ[b^2 - 4*a*c, 0]
 

rule 1503
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[d   Int[1/Sqrt[a + b*x^2 + c*x^4] 
, x], x] + Simp[e   Int[x^2/Sqrt[a + b*x^2 + c*x^4], x], x] /; PosQ[(b + q) 
/a] || PosQ[(b - q)/a]] /; FreeQ[{a, b, c, d, e}, x] && GtQ[b^2 - 4*a*c, 0]
 
Maple [A] (verified)

Time = 0.91 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.65

method result size
default \(-\frac {51 \operatorname {EllipticF}\left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right ) \sqrt {6 x +4}\, \sqrt {3+3 x}\, \sqrt {6}\, \sqrt {-x}\, x^{2}-22 \operatorname {EllipticE}\left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right ) \sqrt {6 x +4}\, \sqrt {3+3 x}\, \sqrt {6}\, \sqrt {-x}\, x^{2}+396 x^{4}+570 x^{3}+126 x^{2}-40 x +8}{10 \sqrt {3 x^{2}+5 x +2}\, x^{\frac {5}{2}}}\) \(124\)
elliptic \(\frac {\sqrt {\left (3 x^{2}+5 x +2\right ) x}\, \left (-\frac {2 \sqrt {3 x^{3}+5 x^{2}+2 x}}{5 x^{3}}+\frac {3 \sqrt {3 x^{3}+5 x^{2}+2 x}}{x^{2}}-\frac {66 \left (3 x^{2}+5 x +2\right )}{5 \sqrt {\left (3 x^{2}+5 x +2\right ) x}}+\frac {3 \sqrt {6 x +4}\, \sqrt {3+3 x}\, \sqrt {-6 x}\, \operatorname {EllipticF}\left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{2 \sqrt {3 x^{3}+5 x^{2}+2 x}}+\frac {33 \sqrt {6 x +4}\, \sqrt {3+3 x}\, \sqrt {-6 x}\, \left (\frac {\operatorname {EllipticE}\left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{3}-\operatorname {EllipticF}\left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )\right )}{5 \sqrt {3 x^{3}+5 x^{2}+2 x}}\right )}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) \(227\)

Input:

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

Output:

-1/10*(51*EllipticF(1/2*(6*x+4)^(1/2),I*2^(1/2))*(6*x+4)^(1/2)*(3+3*x)^(1/ 
2)*6^(1/2)*(-x)^(1/2)*x^2-22*EllipticE(1/2*(6*x+4)^(1/2),I*2^(1/2))*(6*x+4 
)^(1/2)*(3+3*x)^(1/2)*6^(1/2)*(-x)^(1/2)*x^2+396*x^4+570*x^3+126*x^2-40*x+ 
8)/(3*x^2+5*x+2)^(1/2)/x^(5/2)
 

Fricas [A] (verification not implemented)

Time = 0.08 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.33 \[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=-\frac {65 \, \sqrt {3} x^{3} {\rm weierstrassPInverse}\left (\frac {28}{27}, \frac {80}{729}, x + \frac {5}{9}\right ) + 198 \, \sqrt {3} x^{3} {\rm weierstrassZeta}\left (\frac {28}{27}, \frac {80}{729}, {\rm weierstrassPInverse}\left (\frac {28}{27}, \frac {80}{729}, x + \frac {5}{9}\right )\right ) + 3 \, {\left (66 \, x^{2} - 15 \, x + 2\right )} \sqrt {3 \, x^{2} + 5 \, x + 2} \sqrt {x}}{15 \, x^{3}} \] Input:

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

Output:

-1/15*(65*sqrt(3)*x^3*weierstrassPInverse(28/27, 80/729, x + 5/9) + 198*sq 
rt(3)*x^3*weierstrassZeta(28/27, 80/729, weierstrassPInverse(28/27, 80/729 
, x + 5/9)) + 3*(66*x^2 - 15*x + 2)*sqrt(3*x^2 + 5*x + 2)*sqrt(x))/x^3
 

Sympy [F]

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

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

Output:

-Integral(-2/(x**(7/2)*sqrt(3*x**2 + 5*x + 2)), x) - Integral(5/(x**(5/2)* 
sqrt(3*x**2 + 5*x + 2)), x)
 

Maxima [F]

\[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=\int { -\frac {5 \, x - 2}{\sqrt {3 \, x^{2} + 5 \, x + 2} x^{\frac {7}{2}}} \,d x } \] Input:

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

Output:

-integrate((5*x - 2)/(sqrt(3*x^2 + 5*x + 2)*x^(7/2)), x)
 

Giac [F]

\[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=\int { -\frac {5 \, x - 2}{\sqrt {3 \, x^{2} + 5 \, x + 2} x^{\frac {7}{2}}} \,d x } \] Input:

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

Output:

integrate(-(5*x - 2)/(sqrt(3*x^2 + 5*x + 2)*x^(7/2)), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=\int -\frac {5\,x-2}{x^{7/2}\,\sqrt {3\,x^2+5\,x+2}} \,d x \] Input:

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

Output:

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

Reduce [F]

\[ \int \frac {2-5 x}{x^{7/2} \sqrt {2+5 x+3 x^2}} \, dx=\frac {18 \sqrt {3 x^{2}+5 x +2}\, x^{2}-4 \sqrt {3 x^{2}+5 x +2}-40 \sqrt {x}\, \left (\int \frac {\sqrt {3 x^{2}+5 x +2}}{3 \sqrt {x}\, x^{4}+5 \sqrt {x}\, x^{3}+2 \sqrt {x}\, x^{2}}d x \right ) x^{2}-27 \sqrt {x}\, \left (\int \frac {\sqrt {3 x^{2}+5 x +2}\, x}{3 \sqrt {x}\, x^{2}+5 \sqrt {x}\, x +2 \sqrt {x}}d x \right ) x^{2}-50 \sqrt {x}\, \left (\int \frac {\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}{3 x^{5}+5 x^{4}+2 x^{3}}d x \right ) x^{2}}{10 \sqrt {x}\, x^{2}} \] Input:

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

Output:

(18*sqrt(3*x**2 + 5*x + 2)*x**2 - 4*sqrt(3*x**2 + 5*x + 2) - 40*sqrt(x)*in 
t(sqrt(3*x**2 + 5*x + 2)/(3*sqrt(x)*x**4 + 5*sqrt(x)*x**3 + 2*sqrt(x)*x**2 
),x)*x**2 - 27*sqrt(x)*int((sqrt(3*x**2 + 5*x + 2)*x)/(3*sqrt(x)*x**2 + 5* 
sqrt(x)*x + 2*sqrt(x)),x)*x**2 - 50*sqrt(x)*int((sqrt(x)*sqrt(3*x**2 + 5*x 
 + 2))/(3*x**5 + 5*x**4 + 2*x**3),x)*x**2)/(10*sqrt(x)*x**2)