Optimal. Leaf size=59 \[ \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 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, 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 = {371, 697} \[ \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 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 697
Rubi steps
\begin {align*} \int \frac {\left (1+(a+b x)^2\right )^2}{x} \, dx &=\operatorname {Subst}\left (\int \frac {\left (1+x^2\right )^2}{-a+x} \, dx,x,a+b x\right )\\ &=\operatorname {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.03, size = 64, normalized size = 1.08 \[ \frac {1}{2} \left (a^2+2\right ) (a+b x)^2+a \left (a^2+2\right ) (a+b x)+\left (a^2+1\right )^2 \log (b x)+\frac {1}{4} (a+b x)^4+\frac {1}{3} a (a+b x)^3 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.84, size = 54, normalized size = 0.92 \[ \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 \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.31, size = 62, normalized size = 1.05 \[ \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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 64, normalized size = 1.08 \[ \frac {b^{4} x^{4}}{4}+\frac {4 a \,b^{3} x^{3}}{3}+3 a^{2} b^{2} x^{2}+a^{4} \ln \relax (x )+4 a^{3} b x +b^{2} x^{2}+2 a^{2} \ln \relax (x )+4 a b x +\ln \relax (x ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.54, size = 54, normalized size = 0.92 \[ \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 \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 55, normalized size = 0.93 \[ \ln \relax (x)\,\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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 58, normalized size = 0.98 \[ \frac {4 a b^{3} x^{3}}{3} + \frac {b^{4} x^{4}}{4} + x^{2} \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 {\relax (x )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________