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

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

Optimal result

Integrand size = 17, antiderivative size = 139 \[ \int \frac {1}{\left (9+3 x-5 x^2+x^3\right )^{3/2}} \, dx=\frac {(3-x) (1+x)}{8 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {5 (3-x)^2 (1+x)}{64 \left (9+3 x-5 x^2+x^3\right )^{3/2}}-\frac {15 (3-x)^3 (1+x)}{256 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {15 (3-x)^3 (1+x)^{3/2} \text {arctanh}\left (\frac {\sqrt {1+x}}{2}\right )}{512 \left (9+3 x-5 x^2+x^3\right )^{3/2}} \]

[Out]

1/8*(3-x)*(1+x)/(x^3-5*x^2+3*x+9)^(3/2)+5/64*(3-x)^2*(1+x)/(x^3-5*x^2+3*x+9)^(3/2)-15/256*(3-x)^3*(1+x)/(x^3-5
*x^2+3*x+9)^(3/2)+15/512*(3-x)^3*(1+x)^(3/2)*arctanh(1/2*(1+x)^(1/2))/(x^3-5*x^2+3*x+9)^(3/2)

Rubi [A] (verified)

Time = 0.09 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {2092, 2089, 44, 53, 65, 212} \[ \int \frac {1}{\left (9+3 x-5 x^2+x^3\right )^{3/2}} \, dx=\frac {15 (x+1)^{3/2} (3-x)^3 \text {arctanh}\left (\frac {\sqrt {x+1}}{2}\right )}{512 \left (x^3-5 x^2+3 x+9\right )^{3/2}}-\frac {15 (x+1) (3-x)^3}{256 \left (x^3-5 x^2+3 x+9\right )^{3/2}}+\frac {5 (x+1) (3-x)^2}{64 \left (x^3-5 x^2+3 x+9\right )^{3/2}}+\frac {(x+1) (3-x)}{8 \left (x^3-5 x^2+3 x+9\right )^{3/2}} \]

[In]

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

[Out]

((3 - x)*(1 + x))/(8*(9 + 3*x - 5*x^2 + x^3)^(3/2)) + (5*(3 - x)^2*(1 + x))/(64*(9 + 3*x - 5*x^2 + x^3)^(3/2))
 - (15*(3 - x)^3*(1 + x))/(256*(9 + 3*x - 5*x^2 + x^3)^(3/2)) + (15*(3 - x)^3*(1 + x)^(3/2)*ArcTanh[Sqrt[1 + x
]/2])/(512*(9 + 3*x - 5*x^2 + x^3)^(3/2))

Rule 44

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(a + b*x)^(m + 1)*((c + d*x)^(n + 1
)/((b*c - a*d)*(m + 1))), x] - Dist[d*((m + n + 2)/((b*c - a*d)*(m + 1))), Int[(a + b*x)^(m + 1)*(c + d*x)^n,
x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, -1] &&  !IntegerQ[n] && LtQ[n, 0]

Rule 53

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(a + b*x)^(m + 1)*((c + d*x)^(n + 1
)/((b*c - a*d)*(m + 1))), x] - Dist[d*((m + n + 2)/((b*c - a*d)*(m + 1))), Int[(a + b*x)^(m + 1)*(c + d*x)^n,
x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && LtQ[m, -1] &&  !(LtQ[n, -1] && (EqQ[a, 0] || (NeQ[
c, 0] && LtQ[m - n, 0] && IntegerQ[n]))) && IntLinearQ[a, b, c, d, m, n, x]

Rule 65

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 2089

Int[((a_.) + (b_.)*(x_) + (d_.)*(x_)^3)^(p_), x_Symbol] :> Dist[(a + b*x + d*x^3)^p/((3*a - b*x)^p*(3*a + 2*b*
x)^(2*p)), Int[(3*a - b*x)^p*(3*a + 2*b*x)^(2*p), x], x] /; FreeQ[{a, b, d, p}, x] && EqQ[4*b^3 + 27*a^2*d, 0]
 &&  !IntegerQ[p]

Rule 2092

Int[(P3_)^(p_), x_Symbol] :> With[{a = Coeff[P3, x, 0], b = Coeff[P3, x, 1], c = Coeff[P3, x, 2], d = Coeff[P3
, x, 3]}, Subst[Int[Simp[(2*c^3 - 9*b*c*d + 27*a*d^2)/(27*d^2) - (c^2 - 3*b*d)*(x/(3*d)) + d*x^3, x]^p, x], x,
 x + c/(3*d)] /; NeQ[c, 0]] /; FreeQ[p, x] && PolyQ[P3, x, 3]

Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1}{\left (\frac {128}{27}-\frac {16 x}{3}+x^3\right )^{3/2}} \, dx,x,-\frac {5}{3}+x\right ) \\ & = \frac {\left (2097152 (3-x)^3 (1+x)^{3/2}\right ) \text {Subst}\left (\int \frac {1}{\left (\frac {128}{9}-\frac {32 x}{3}\right )^3 \left (\frac {128}{9}+\frac {16 x}{3}\right )^{3/2}} \, dx,x,-\frac {5}{3}+x\right )}{81 \sqrt {3} \left (9+3 x-5 x^2+x^3\right )^{3/2}} \\ & = \frac {(3-x) (1+x)}{8 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {\left (20480 (3-x)^3 (1+x)^{3/2}\right ) \text {Subst}\left (\int \frac {1}{\left (\frac {128}{9}-\frac {32 x}{3}\right )^2 \left (\frac {128}{9}+\frac {16 x}{3}\right )^{3/2}} \, dx,x,-\frac {5}{3}+x\right )}{27 \sqrt {3} \left (9+3 x-5 x^2+x^3\right )^{3/2}} \\ & = \frac {(3-x) (1+x)}{8 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {5 (3-x)^2 (1+x)}{64 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {\left (80 (3-x)^3 (1+x)^{3/2}\right ) \text {Subst}\left (\int \frac {1}{\left (\frac {128}{9}-\frac {32 x}{3}\right ) \left (\frac {128}{9}+\frac {16 x}{3}\right )^{3/2}} \, dx,x,-\frac {5}{3}+x\right )}{3 \sqrt {3} \left (9+3 x-5 x^2+x^3\right )^{3/2}} \\ & = \frac {(3-x) (1+x)}{8 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {5 (3-x)^2 (1+x)}{64 \left (9+3 x-5 x^2+x^3\right )^{3/2}}-\frac {15 (3-x)^3 (1+x)}{256 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {\left (5 (3-x)^3 (1+x)^{3/2}\right ) \text {Subst}\left (\int \frac {1}{\left (\frac {128}{9}-\frac {32 x}{3}\right ) \sqrt {\frac {128}{9}+\frac {16 x}{3}}} \, dx,x,-\frac {5}{3}+x\right )}{4 \sqrt {3} \left (9+3 x-5 x^2+x^3\right )^{3/2}} \\ & = \frac {(3-x) (1+x)}{8 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {5 (3-x)^2 (1+x)}{64 \left (9+3 x-5 x^2+x^3\right )^{3/2}}-\frac {15 (3-x)^3 (1+x)}{256 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {\left (5 \sqrt {3} (3-x)^3 (1+x)^{3/2}\right ) \text {Subst}\left (\int \frac {1}{\frac {128}{3}-2 x^2} \, dx,x,\frac {4 \sqrt {1+x}}{\sqrt {3}}\right )}{32 \left (9+3 x-5 x^2+x^3\right )^{3/2}} \\ & = \frac {(3-x) (1+x)}{8 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {5 (3-x)^2 (1+x)}{64 \left (9+3 x-5 x^2+x^3\right )^{3/2}}-\frac {15 (3-x)^3 (1+x)}{256 \left (9+3 x-5 x^2+x^3\right )^{3/2}}+\frac {15 (3-x)^3 (1+x)^{3/2} \text {arctanh}\left (\frac {\sqrt {1+x}}{2}\right )}{512 \left (9+3 x-5 x^2+x^3\right )^{3/2}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.06 (sec) , antiderivative size = 58, normalized size of antiderivative = 0.42 \[ \int \frac {1}{\left (9+3 x-5 x^2+x^3\right )^{3/2}} \, dx=\frac {86-140 x+30 x^2-15 (-3+x)^2 \sqrt {1+x} \text {arctanh}\left (\frac {\sqrt {1+x}}{2}\right )}{512 (-3+x) \sqrt {(-3+x)^2 (1+x)}} \]

[In]

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

[Out]

(86 - 140*x + 30*x^2 - 15*(-3 + x)^2*Sqrt[1 + x]*ArcTanh[Sqrt[1 + x]/2])/(512*(-3 + x)*Sqrt[(-3 + x)^2*(1 + x)
])

Maple [A] (verified)

Time = 0.16 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.51

method result size
risch \(\frac {15 x^{2}-70 x +43}{256 \left (-3+x \right ) \sqrt {\left (1+x \right ) \left (-3+x \right )^{2}}}+\frac {\left (\frac {15 \ln \left (\sqrt {1+x}-2\right )}{1024}-\frac {15 \ln \left (\sqrt {1+x}+2\right )}{1024}\right ) \sqrt {1+x}\, \left (-3+x \right )}{\sqrt {\left (1+x \right ) \left (-3+x \right )^{2}}}\) \(71\)
trager \(\frac {\left (15 x^{2}-70 x +43\right ) \sqrt {x^{3}-5 x^{2}+3 x +9}}{256 \left (-3+x \right )^{3} \left (1+x \right )}+\frac {15 \ln \left (\frac {-x^{2}+4 \sqrt {x^{3}-5 x^{2}+3 x +9}-2 x +15}{\left (-3+x \right )^{2}}\right )}{1024}\) \(75\)
default \(\frac {\left (-3+x \right )^{3} \left (1+x \right ) \left (15 \left (1+x \right )^{\frac {5}{2}} \ln \left (\sqrt {1+x}-2\right )-15 \left (1+x \right )^{\frac {5}{2}} \ln \left (\sqrt {1+x}+2\right )-120 \left (1+x \right )^{\frac {3}{2}} \ln \left (\sqrt {1+x}-2\right )+120 \left (1+x \right )^{\frac {3}{2}} \ln \left (\sqrt {1+x}+2\right )+240 \ln \left (\sqrt {1+x}-2\right ) \sqrt {1+x}-240 \ln \left (\sqrt {1+x}+2\right ) \sqrt {1+x}+60 x^{2}-280 x +172\right )}{1024 \left (\sqrt {1+x}+2\right )^{2} \left (\sqrt {1+x}-2\right )^{2} \left (x^{3}-5 x^{2}+3 x +9\right )^{\frac {3}{2}}}\) \(144\)

[In]

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

[Out]

1/256*(15*x^2-70*x+43)/(-3+x)/((1+x)*(-3+x)^2)^(1/2)+(15/1024*ln((1+x)^(1/2)-2)-15/1024*ln((1+x)^(1/2)+2))/((1
+x)*(-3+x)^2)^(1/2)*(1+x)^(1/2)*(-3+x)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 138, normalized size of antiderivative = 0.99 \[ \int \frac {1}{\left (9+3 x-5 x^2+x^3\right )^{3/2}} \, dx=-\frac {15 \, {\left (x^{4} - 8 \, x^{3} + 18 \, x^{2} - 27\right )} \log \left (\frac {2 \, x + \sqrt {x^{3} - 5 \, x^{2} + 3 \, x + 9} - 6}{x - 3}\right ) - 15 \, {\left (x^{4} - 8 \, x^{3} + 18 \, x^{2} - 27\right )} \log \left (-\frac {2 \, x - \sqrt {x^{3} - 5 \, x^{2} + 3 \, x + 9} - 6}{x - 3}\right ) - 4 \, \sqrt {x^{3} - 5 \, x^{2} + 3 \, x + 9} {\left (15 \, x^{2} - 70 \, x + 43\right )}}{1024 \, {\left (x^{4} - 8 \, x^{3} + 18 \, x^{2} - 27\right )}} \]

[In]

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

[Out]

-1/1024*(15*(x^4 - 8*x^3 + 18*x^2 - 27)*log((2*x + sqrt(x^3 - 5*x^2 + 3*x + 9) - 6)/(x - 3)) - 15*(x^4 - 8*x^3
 + 18*x^2 - 27)*log(-(2*x - sqrt(x^3 - 5*x^2 + 3*x + 9) - 6)/(x - 3)) - 4*sqrt(x^3 - 5*x^2 + 3*x + 9)*(15*x^2
- 70*x + 43))/(x^4 - 8*x^3 + 18*x^2 - 27)

Sympy [F]

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

[In]

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

[Out]

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

Maxima [F]

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

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.54 \[ \int \frac {1}{\left (9+3 x-5 x^2+x^3\right )^{3/2}} \, dx=-\frac {15 \, \log \left (\sqrt {x + 1} + 2\right )}{1024 \, \mathrm {sgn}\left (x - 3\right )} + \frac {15 \, \log \left ({\left | \sqrt {x + 1} - 2 \right |}\right )}{1024 \, \mathrm {sgn}\left (x - 3\right )} + \frac {1}{32 \, \sqrt {x + 1} \mathrm {sgn}\left (x - 3\right )} + \frac {7 \, {\left (x + 1\right )}^{\frac {3}{2}} - 36 \, \sqrt {x + 1}}{256 \, {\left (x - 3\right )}^{2} \mathrm {sgn}\left (x - 3\right )} \]

[In]

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

[Out]

-15/1024*log(sqrt(x + 1) + 2)/sgn(x - 3) + 15/1024*log(abs(sqrt(x + 1) - 2))/sgn(x - 3) + 1/32/(sqrt(x + 1)*sg
n(x - 3)) + 1/256*(7*(x + 1)^(3/2) - 36*sqrt(x + 1))/((x - 3)^2*sgn(x - 3))

Mupad [F(-1)]

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

[In]

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

[Out]

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