Optimal. Leaf size=16 \[ \frac{1}{2} a \log \left (x^2+1\right )+b \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0063259, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {635, 203, 260} \[ \frac{1}{2} a \log \left (x^2+1\right )+b \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{b+a x}{1+x^2} \, dx &=a \int \frac{x}{1+x^2} \, dx+b \int \frac{1}{1+x^2} \, dx\\ &=b \tan ^{-1}(x)+\frac{1}{2} a \log \left (1+x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0059073, size = 16, normalized size = 1. \[ \frac{1}{2} a \log \left (x^2+1\right )+b \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 15, normalized size = 0.9 \begin{align*} b\arctan \left ( x \right ) +{\frac{a\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.41959, size = 19, normalized size = 1.19 \begin{align*} b \arctan \left (x\right ) + \frac{1}{2} \, a \log \left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.98883, size = 46, normalized size = 2.88 \begin{align*} b \arctan \left (x\right ) + \frac{1}{2} \, a \log \left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 0.153833, size = 26, normalized size = 1.62 \begin{align*} \left (\frac{a}{2} - \frac{i b}{2}\right ) \log{\left (x - i \right )} + \left (\frac{a}{2} + \frac{i 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.07504, size = 19, normalized size = 1.19 \begin{align*} b \arctan \left (x\right ) + \frac{1}{2} \, a \log \left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]