Optimal. Leaf size=59 \[ a \left (2+a^2\right ) b x+\frac {1}{2} \left (2+a^2\right ) (a+b x)^2+\frac {1}{3} a (a+b x)^3+\frac {1}{4} (a+b x)^4+\left (1+a^2\right )^2 \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {378, 711}
\begin {gather*} \frac {1}{2} \left (a^2+2\right ) (a+b x)^2+a \left (a^2+2\right ) b x+\left (a^2+1\right )^2 \log (x)+\frac {1}{4} (a+b x)^4+\frac {1}{3} a (a+b x)^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 378
Rule 711
Rubi steps
\begin {align*} \int \frac {\left (1+(a+b x)^2\right )^2}{x} \, dx &=\text {Subst}\left (\int \frac {\left (1+x^2\right )^2}{-a+x} \, dx,x,a+b x\right )\\ &=\text {Subst}\left (\int \left (a \left (2+a^2\right )-\frac {\left (1+a^2\right )^2}{a-x}+\left (2+a^2\right ) x+a x^2+x^3\right ) \, dx,x,a+b x\right )\\ &=a \left (2+a^2\right ) b x+\frac {1}{2} \left (2+a^2\right ) (a+b x)^2+\frac {1}{3} a (a+b x)^3+\frac {1}{4} (a+b x)^4+\left (1+a^2\right )^2 \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 64, normalized size = 1.08 \begin {gather*} a \left (2+a^2\right ) (a+b x)+\frac {1}{2} \left (2+a^2\right ) (a+b x)^2+\frac {1}{3} a (a+b x)^3+\frac {1}{4} (a+b x)^4+\left (1+a^2\right )^2 \log (b x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 62, normalized size = 1.05
method | result | size |
norman | \(\left (3 a^{2} b^{2}+b^{2}\right ) x^{2}+\left (4 a^{3} b +4 a b \right ) x +\frac {b^{4} x^{4}}{4}+\frac {4 a \,b^{3} x^{3}}{3}+\left (a^{4}+2 a^{2}+1\right ) \ln \left (x \right )\) | \(61\) |
default | \(\frac {b^{4} x^{4}}{4}+\frac {4 a \,b^{3} x^{3}}{3}+3 a^{2} b^{2} x^{2}+4 a^{3} b x +b^{2} x^{2}+4 a b x +\left (a^{4}+2 a^{2}+1\right ) \ln \left (x \right )\) | \(62\) |
risch | \(\frac {b^{4} x^{4}}{4}+\frac {4 a \,b^{3} x^{3}}{3}+3 a^{2} b^{2} x^{2}+b^{2} x^{2}+4 a^{3} b x +4 a b x +a^{4} \ln \left (x \right )+2 a^{2} \ln \left (x \right )+\ln \left (x \right )\) | \(64\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 54, normalized size = 0.92 \begin {gather*} \frac {1}{4} \, b^{4} x^{4} + \frac {4}{3} \, a b^{3} x^{3} + {\left (3 \, a^{2} + 1\right )} b^{2} x^{2} + 4 \, {\left (a^{3} + a\right )} b x + {\left (a^{4} + 2 \, a^{2} + 1\right )} \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 54, normalized size = 0.92 \begin {gather*} \frac {1}{4} \, b^{4} x^{4} + \frac {4}{3} \, a b^{3} x^{3} + {\left (3 \, a^{2} + 1\right )} b^{2} x^{2} + 4 \, {\left (a^{3} + a\right )} b x + {\left (a^{4} + 2 \, a^{2} + 1\right )} \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 58, normalized size = 0.98 \begin {gather*} \frac {4 a b^{3} x^{3}}{3} + \frac {b^{4} x^{4}}{4} + x^{2} \cdot \left (3 a^{2} b^{2} + b^{2}\right ) + x \left (4 a^{3} b + 4 a b\right ) + \left (a^{2} + 1\right )^{2} \log {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.95, size = 62, normalized size = 1.05 \begin {gather*} \frac {1}{4} \, b^{4} x^{4} + \frac {4}{3} \, a b^{3} x^{3} + 3 \, a^{2} b^{2} x^{2} + 4 \, a^{3} b x + b^{2} x^{2} + 4 \, a b x + {\left (a^{4} + 2 \, a^{2} + 1\right )} \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 55, normalized size = 0.93 \begin {gather*} \ln \left (x\right )\,\left (a^4+2\,a^2+1\right )+\frac {b^4\,x^4}{4}+\frac {4\,a\,b^3\,x^3}{3}+b^2\,x^2\,\left (3\,a^2+1\right )+4\,a\,b\,x\,\left (a^2+1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________