3.121 \(\int \frac{1}{x (a^3+x^3)} \, dx\)

Optimal. Leaf size=22 \[ \frac{\log (x)}{a^3}-\frac{\log \left (a^3+x^3\right )}{3 a^3} \]

[Out]

Log[x]/a^3 - Log[a^3 + x^3]/(3*a^3)

________________________________________________________________________________________

Rubi [A]  time = 0.0083182, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308, Rules used = {266, 36, 29, 31} \[ \frac{\log (x)}{a^3}-\frac{\log \left (a^3+x^3\right )}{3 a^3} \]

Antiderivative was successfully verified.

[In]

Int[1/(x*(a^3 + x^3)),x]

[Out]

Log[x]/a^3 - Log[a^3 + x^3]/(3*a^3)

Rule 266

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int \frac{1}{x \left (a^3+x^3\right )} \, dx &=\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{x \left (a^3+x\right )} \, dx,x,x^3\right )\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^3\right )}{3 a^3}-\frac{\operatorname{Subst}\left (\int \frac{1}{a^3+x} \, dx,x,x^3\right )}{3 a^3}\\ &=\frac{\log (x)}{a^3}-\frac{\log \left (a^3+x^3\right )}{3 a^3}\\ \end{align*}

Mathematica [A]  time = 0.0044086, size = 22, normalized size = 1. \[ \frac{\log (x)}{a^3}-\frac{\log \left (a^3+x^3\right )}{3 a^3} \]

Antiderivative was successfully verified.

[In]

Integrate[1/(x*(a^3 + x^3)),x]

[Out]

Log[x]/a^3 - Log[a^3 + x^3]/(3*a^3)

________________________________________________________________________________________

Maple [A]  time = 0.005, size = 34, normalized size = 1.6 \begin{align*}{\frac{\ln \left ( x \right ) }{{a}^{3}}}-{\frac{\ln \left ({a}^{2}-ax+{x}^{2} \right ) }{3\,{a}^{3}}}-{\frac{\ln \left ( a+x \right ) }{3\,{a}^{3}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x/(a^3+x^3),x)

[Out]

ln(x)/a^3-1/3/a^3*ln(a^2-a*x+x^2)-1/3*ln(a+x)/a^3

________________________________________________________________________________________

Maxima [A]  time = 0.922174, size = 31, normalized size = 1.41 \begin{align*} -\frac{\log \left (a^{3} + x^{3}\right )}{3 \, a^{3}} + \frac{\log \left (x^{3}\right )}{3 \, a^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(a^3+x^3),x, algorithm="maxima")

[Out]

-1/3*log(a^3 + x^3)/a^3 + 1/3*log(x^3)/a^3

________________________________________________________________________________________

Fricas [A]  time = 2.01846, size = 51, normalized size = 2.32 \begin{align*} -\frac{\log \left (a^{3} + x^{3}\right ) - 3 \, \log \left (x\right )}{3 \, a^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(a^3+x^3),x, algorithm="fricas")

[Out]

-1/3*(log(a^3 + x^3) - 3*log(x))/a^3

________________________________________________________________________________________

Sympy [A]  time = 0.17946, size = 19, normalized size = 0.86 \begin{align*} \frac{\log{\left (x \right )}}{a^{3}} - \frac{\log{\left (a^{3} + x^{3} \right )}}{3 a^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(a**3+x**3),x)

[Out]

log(x)/a**3 - log(a**3 + x**3)/(3*a**3)

________________________________________________________________________________________

Giac [A]  time = 1.05538, size = 30, normalized size = 1.36 \begin{align*} -\frac{\log \left ({\left | a^{3} + x^{3} \right |}\right )}{3 \, a^{3}} + \frac{\log \left ({\left | x \right |}\right )}{a^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(a^3+x^3),x, algorithm="giac")

[Out]

-1/3*log(abs(a^3 + x^3))/a^3 + log(abs(x))/a^3