Optimal. Leaf size=33 \[ -2 n x+\frac {b n \log (b+c x)}{c}+x \log \left (d \left (b x+c x^2\right )^n\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2603, 45}
\begin {gather*} x \log \left (d \left (b x+c x^2\right )^n\right )+\frac {b n \log (b+c x)}{c}-2 n x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2603
Rubi steps
\begin {align*} \int \log \left (d \left (b x+c x^2\right )^n\right ) \, dx &=x \log \left (d \left (b x+c x^2\right )^n\right )-n \int \frac {b+2 c x}{b+c x} \, dx\\ &=x \log \left (d \left (b x+c x^2\right )^n\right )-n \int \left (2-\frac {b}{b+c x}\right ) \, dx\\ &=-2 n x+\frac {b n \log (b+c x)}{c}+x \log \left (d \left (b x+c x^2\right )^n\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 31, normalized size = 0.94 \begin {gather*} -2 n x+\frac {b n \log (b+c x)}{c}+x \log \left (d (x (b+c x))^n\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 37, normalized size = 1.12
method | result | size |
default | \(x \ln \left (d \left (c \,x^{2}+b x \right )^{n}\right )-n \left (2 x -\frac {b \ln \left (c x +b \right )}{c}\right )\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 36, normalized size = 1.09 \begin {gather*} -n {\left (2 \, x - \frac {b \log \left (c x + b\right )}{c}\right )} + x \log \left ({\left (c x^{2} + b x\right )}^{n} d\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 38, normalized size = 1.15 \begin {gather*} \frac {c n x \log \left (c x^{2} + b x\right ) - 2 \, c n x + b n \log \left (c x + b\right ) + c x \log \left (d\right )}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.39, size = 44, normalized size = 1.33 \begin {gather*} \begin {cases} \frac {b n \log {\left (b + c x \right )}}{c} - 2 n x + x \log {\left (d \left (b x + c x^{2}\right )^{n} \right )} & \text {for}\: c \neq 0 \\- n x + x \log {\left (d \left (b x\right )^{n} \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.51, size = 37, normalized size = 1.12 \begin {gather*} n x \log \left (c x^{2} + b x\right ) - {\left (2 \, n - \log \left (d\right )\right )} x + \frac {b n \log \left (c x + b\right )}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 33, normalized size = 1.00 \begin {gather*} x\,\ln \left (d\,{\left (c\,x^2+b\,x\right )}^n\right )-2\,n\,x+\frac {b\,n\,\ln \left (b+c\,x\right )}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________