Optimal. Leaf size=24 \[ a \tan ^{-1}(x)+\frac{b x^2}{2}-\frac{1}{2} b \log \left (x^2+1\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0183818, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {1810, 635, 203, 260} \[ a \tan ^{-1}(x)+\frac{b x^2}{2}-\frac{1}{2} b \log \left (x^2+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1810
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{a+b x^3}{1+x^2} \, dx &=\int \left (b x+\frac{a-b x}{1+x^2}\right ) \, dx\\ &=\frac{b x^2}{2}+\int \frac{a-b x}{1+x^2} \, dx\\ &=\frac{b x^2}{2}+a \int \frac{1}{1+x^2} \, dx-b \int \frac{x}{1+x^2} \, dx\\ &=\frac{b x^2}{2}+a \tan ^{-1}(x)-\frac{1}{2} b \log \left (1+x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0092501, size = 22, normalized size = 0.92 \[ a \tan ^{-1}(x)+\frac{1}{2} b \left (x^2-\log \left (x^2+1\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 21, normalized size = 0.9 \begin{align*}{\frac{b{x}^{2}}{2}}+a\arctan \left ( x \right ) -{\frac{b\ln \left ({x}^{2}+1 \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.50588, size = 27, normalized size = 1.12 \begin{align*} \frac{1}{2} \, b x^{2} + a \arctan \left (x\right ) - \frac{1}{2} \, b \log \left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.51032, size = 62, normalized size = 2.58 \begin{align*} \frac{1}{2} \, b x^{2} + a \arctan \left (x\right ) - \frac{1}{2} \, b \log \left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 0.304777, size = 34, normalized size = 1.42 \begin{align*} \frac{b x^{2}}{2} + \left (- \frac{i a}{2} - \frac{b}{2}\right ) \log{\left (x - i \right )} + \left (\frac{i a}{2} - \frac{b}{2}\right ) \log{\left (x + i \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29415, size = 27, normalized size = 1.12 \begin{align*} \frac{1}{2} \, b x^{2} + a \arctan \left (x\right ) - \frac{1}{2} \, b \log \left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]