3.24 \(\int \frac {1}{c x^2+d x^3} \, dx\)

Optimal. Leaf size=28 \[ -\frac {d \log (x)}{c^2}+\frac {d \log (c+d x)}{c^2}-\frac {1}{c x} \]

[Out]

-1/c/x-d*ln(x)/c^2+d*ln(d*x+c)/c^2

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {1593, 44} \[ -\frac {d \log (x)}{c^2}+\frac {d \log (c+d x)}{c^2}-\frac {1}{c x} \]

Antiderivative was successfully verified.

[In]

Int[(c*x^2 + d*x^3)^(-1),x]

[Out]

-(1/(c*x)) - (d*Log[x])/c^2 + (d*Log[c + d*x])/c^2

Rule 44

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

Rule 1593

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^(q - p))^n, x] /; F
reeQ[{a, b, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 28, normalized size = 1.00 \[ -\frac {d \log (x)}{c^2}+\frac {d \log (c+d x)}{c^2}-\frac {1}{c x} \]

Antiderivative was successfully verified.

[In]

Integrate[(c*x^2 + d*x^3)^(-1),x]

[Out]

-(1/(c*x)) - (d*Log[x])/c^2 + (d*Log[c + d*x])/c^2

________________________________________________________________________________________

fricas [A]  time = 0.89, size = 26, normalized size = 0.93 \[ \frac {d x \log \left (d x + c\right ) - d x \log \relax (x) - c}{c^{2} x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(d*x^3+c*x^2),x, algorithm="fricas")

[Out]

(d*x*log(d*x + c) - d*x*log(x) - c)/(c^2*x)

________________________________________________________________________________________

giac [A]  time = 0.36, size = 30, normalized size = 1.07 \[ \frac {d \log \left ({\left | d x + c \right |}\right )}{c^{2}} - \frac {d \log \left ({\left | x \right |}\right )}{c^{2}} - \frac {1}{c x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(d*x^3+c*x^2),x, algorithm="giac")

[Out]

d*log(abs(d*x + c))/c^2 - d*log(abs(x))/c^2 - 1/(c*x)

________________________________________________________________________________________

maple [A]  time = 0.01, size = 29, normalized size = 1.04 \[ -\frac {d \ln \relax (x )}{c^{2}}+\frac {d \ln \left (d x +c \right )}{c^{2}}-\frac {1}{c x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(d*x^3+c*x^2),x)

[Out]

-1/c/x-d*ln(x)/c^2+d*ln(d*x+c)/c^2

________________________________________________________________________________________

maxima [A]  time = 0.59, size = 28, normalized size = 1.00 \[ \frac {d \log \left (d x + c\right )}{c^{2}} - \frac {d \log \relax (x)}{c^{2}} - \frac {1}{c x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(d*x^3+c*x^2),x, algorithm="maxima")

[Out]

d*log(d*x + c)/c^2 - d*log(x)/c^2 - 1/(c*x)

________________________________________________________________________________________

mupad [B]  time = 0.06, size = 25, normalized size = 0.89 \[ \frac {2\,d\,\mathrm {atanh}\left (\frac {2\,d\,x}{c}+1\right )}{c^2}-\frac {1}{c\,x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(c*x^2 + d*x^3),x)

[Out]

(2*d*atanh((2*d*x)/c + 1))/c^2 - 1/(c*x)

________________________________________________________________________________________

sympy [A]  time = 0.18, size = 19, normalized size = 0.68 \[ - \frac {1}{c x} + \frac {d \left (- \log {\relax (x )} + \log {\left (\frac {c}{d} + x \right )}\right )}{c^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(d*x**3+c*x**2),x)

[Out]

-1/(c*x) + d*(-log(x) + log(c/d + x))/c**2

________________________________________________________________________________________