Optimal. Leaf size=38 \[ \frac {\frac {3}{2 a}+\frac {b x}{a^2}}{(a+b x)^2}-\frac {\log \left (\frac {a+b x}{x}\right )}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 43, normalized size of antiderivative = 1.13, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {46}
\begin {gather*} -\frac {\log (a+b x)}{a^3}+\frac {\log (x)}{a^3}+\frac {1}{a^2 (a+b x)}+\frac {1}{2 a (a+b x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=\int \left (\frac {1}{a^3 x}-\frac {b}{a (a+b x)^3}-\frac {b}{a^2 (a+b x)^2}-\frac {b}{a^3 (a+b x)}\right ) \, dx\\ &=\frac {1}{2 a (a+b x)^2}+\frac {1}{a^2 (a+b x)}+\frac {\log (x)}{a^3}-\frac {\log (a+b x)}{a^3}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 37, normalized size = 0.97 \begin {gather*} \frac {\frac {a (3 a+2 b x)}{(a+b x)^2}+2 \log (x)-2 \log (a+b x)}{2 a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 42, normalized size = 1.11
method | result | size |
risch | \(\frac {\frac {3}{2 a}+\frac {b x}{a^{2}}}{\left (b x +a \right )^{2}}-\frac {\ln \left (b x +a \right )}{a^{3}}+\frac {\ln \left (-x \right )}{a^{3}}\) | \(41\) |
default | \(-\frac {\ln \left (b x +a \right )}{a^{3}}+\frac {1}{a^{2} \left (b x +a \right )}+\frac {1}{2 a \left (b x +a \right )^{2}}+\frac {\ln \left (x \right )}{a^{3}}\) | \(42\) |
norman | \(\frac {-\frac {2 b x}{a^{2}}-\frac {3 b^{2} x^{2}}{2 a^{3}}}{\left (b x +a \right )^{2}}+\frac {\ln \left (x \right )}{a^{3}}-\frac {\ln \left (b x +a \right )}{a^{3}}\) | \(46\) |
parallelrisch | \(\frac {2 b^{2} \ln \left (x \right ) x^{2}-2 \ln \left (b x +a \right ) x^{2} b^{2}+4 \ln \left (x \right ) x a b -4 \ln \left (b x +a \right ) x a b -3 b^{2} x^{2}+2 \ln \left (x \right ) a^{2}-2 a^{2} \ln \left (b x +a \right )-4 b a x}{2 a^{3} \left (b x +a \right )^{2}}\) | \(87\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 51, normalized size = 1.34 \begin {gather*} \frac {2 \, b x + 3 \, a}{2 \, {\left (a^{2} b^{2} x^{2} + 2 \, a^{3} b x + a^{4}\right )}} - \frac {\log \left (b x + a\right )}{a^{3}} + \frac {\log \left (x\right )}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 80 vs.
\(2 (38) = 76\).
time = 0.57, size = 80, normalized size = 2.11 \begin {gather*} \frac {2 \, a b x + 3 \, a^{2} - 2 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} \log \left (b x + a\right ) + 2 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} \log \left (x\right )}{2 \, {\left (a^{3} b^{2} x^{2} + 2 \, a^{4} b x + a^{5}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 46, normalized size = 1.21 \begin {gather*} \frac {3 a + 2 b x}{2 a^{4} + 4 a^{3} b x + 2 a^{2} b^{2} x^{2}} + \frac {\log {\left (x \right )} - \log {\left (\frac {a}{b} + x \right )}}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 43, normalized size = 1.13 \begin {gather*} -\frac {\log \left ({\left | b x + a \right |}\right )}{a^{3}} + \frac {\log \left ({\left | x \right |}\right )}{a^{3}} + \frac {2 \, a b x + 3 \, a^{2}}{2 \, {\left (b x + a\right )}^{2} a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.11, size = 43, normalized size = 1.13 \begin {gather*} \frac {\frac {1}{a^2+b\,x\,a}-\frac {\ln \left (\frac {a+b\,x}{x}\right )}{a^2}}{a}+\frac {1}{2\,a\,{\left (a+b\,x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________