Optimal. Leaf size=35 \[ \frac {\frac {a \log (a+b x)}{b}-\frac {A \log (A+B x)}{B}}{-A b+a B} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 44, normalized size of antiderivative = 1.26, number of steps
used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {78}
\begin {gather*} \frac {A \log (A+B x)}{B (A b-a B)}-\frac {a \log (a+b x)}{b (A b-a B)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=\int \left (-\frac {a}{(A b-a B) (a+b x)}+\frac {A}{(A b-a B) (A+B x)}\right ) \, dx\\ &=-\frac {a \log (a+b x)}{b (A b-a B)}+\frac {A \log (A+B x)}{B (A b-a B)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 38, normalized size = 1.09 \begin {gather*} -\frac {a B \log (a+b x)-A b \log (A+B x)}{A b^2 B-a b B^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 45, normalized size = 1.29
method | result | size |
parallelrisch | \(\frac {A \ln \left (B x +A \right ) b -a \ln \left (b x +a \right ) B}{B \left (A b -B a \right ) b}\) | \(38\) |
default | \(\frac {A \ln \left (B x +A \right )}{\left (A b -B a \right ) B}-\frac {a \ln \left (b x +a \right )}{\left (A b -B a \right ) b}\) | \(45\) |
norman | \(\frac {A \ln \left (B x +A \right )}{\left (A b -B a \right ) B}-\frac {a \ln \left (b x +a \right )}{\left (A b -B a \right ) b}\) | \(45\) |
risch | \(\frac {A \ln \left (-B x -A \right )}{\left (A b -B a \right ) B}-\frac {a \ln \left (b x +a \right )}{\left (A b -B a \right ) b}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.34, size = 44, normalized size = 1.26 \begin {gather*} -\frac {A \log \left (B x + A\right )}{B^{2} a - A B b} + \frac {a \log \left (b x + a\right )}{B a b - A b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.59, size = 38, normalized size = 1.09 \begin {gather*} -\frac {A b \log \left (B x + A\right ) - B a \log \left (b x + a\right )}{B^{2} a b - A B b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 138 vs.
\(2 (26) = 52\).
time = 0.40, size = 138, normalized size = 3.94 \begin {gather*} - \frac {A \log {\left (x + \frac {- \frac {A^{3} b^{2}}{B \left (- A b + B a\right )} + \frac {2 A^{2} a b}{- A b + B a} - \frac {A B a^{2}}{- A b + B a} + 2 A a}{A b + B a} \right )}}{B \left (- A b + B a\right )} + \frac {a \log {\left (x + \frac {\frac {A^{2} a b}{- A b + B a} - \frac {2 A B a^{2}}{- A b + B a} + 2 A a + \frac {B^{2} a^{3}}{b \left (- A b + B a\right )}}{A b + B a} \right )}}{b \left (- A b + B a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 46, normalized size = 1.31 \begin {gather*} -\frac {A \log \left ({\left | B x + A \right |}\right )}{B^{2} a - A B b} + \frac {a \log \left ({\left | b x + a \right |}\right )}{B a b - A b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 37, normalized size = 1.06 \begin {gather*} \frac {A\,b\,\ln \left (A+B\,x\right )-B\,a\,\ln \left (a+b\,x\right )}{B\,b\,\left (A\,b-B\,a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________