Optimal. Leaf size=29 \[ \frac {x \log (x)}{b (b+a x)}-\frac {\log (b+a x)}{a b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2351, 31}
\begin {gather*} \frac {x \log (x)}{b (a x+b)}-\frac {\log (a x+b)}{a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2351
Rubi steps
\begin {align*} \int \frac {\log (x)}{(b+a x)^2} \, dx &=\frac {x \log (x)}{b (b+a x)}-\frac {\int \frac {1}{b+a x} \, dx}{b}\\ &=\frac {x \log (x)}{b (b+a x)}-\frac {\log (b+a x)}{a b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 27, normalized size = 0.93 \begin {gather*} \frac {\frac {x \log (x)}{b+a x}-\frac {\log (b+a x)}{a}}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 30, normalized size = 1.03
method | result | size |
default | \(\frac {x \ln \left (x \right )}{b \left (a x +b \right )}-\frac {\ln \left (a x +b \right )}{a b}\) | \(30\) |
norman | \(\frac {x \ln \left (x \right )}{b \left (a x +b \right )}-\frac {\ln \left (a x +b \right )}{a b}\) | \(30\) |
risch | \(-\frac {\ln \left (x \right )}{a \left (a x +b \right )}-\frac {\ln \left (a x +b \right )}{a b}+\frac {\ln \left (-x \right )}{b a}\) | \(41\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.78, size = 38, normalized size = 1.31 \begin {gather*} -\frac {\frac {\log \left (a x + b\right )}{b} - \frac {\log \left (x\right )}{b}}{a} - \frac {\log \left (x\right )}{{\left (a x + b\right )} a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.03, size = 34, normalized size = 1.17 \begin {gather*} \frac {a x \log \left (x\right ) - {\left (a x + b\right )} \log \left (a x + b\right )}{a^{2} b x + a b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.10, size = 24, normalized size = 0.83 \begin {gather*} - \frac {\log {\left (x \right )}}{a^{2} x + a b} + \frac {\log {\left (x \right )} - \log {\left (x + \frac {b}{a} \right )}}{a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 138 vs.
\(2 (29) = 58\).
time = 1.64, size = 138, normalized size = 4.76 \begin {gather*} a^{2} {\left (\frac {\log \left (\frac {{\left (a x + b\right )}^{2} {\left | a \right |} {\left | \frac {b}{a x + b} - 1 \right |}}{a^{2} {\left | a x + b \right |}}\right )}{a^{3} b} + \frac {\log \left (-\frac {b + \frac {{\left (a x + b\right )} a {\left (\frac {b}{a x + b} - 1\right )} - a b}{a}}{a}\right )}{{\left ({\left (a x + b\right )} {\left (\frac {b}{a x + b} - 1\right )} - b\right )} a^{3}} - \frac {\log \left ({\left | -{\left (a x + b\right )} {\left (\frac {b}{a x + b} - 1\right )} + b \right |}\right )}{a^{3} b}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.23, size = 35, normalized size = 1.21 \begin {gather*} \frac {x^2\,\ln \left (x\right )}{b\,\left (a\,x^2+b\,x\right )}-\frac {\ln \left (b+a\,x\right )}{a\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________