Optimal. Leaf size=19 \[ \frac {1}{2} \log \left (a^2+x^2\right )+\tan ^{-1}\left (\frac {x}{a}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, 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} \log \left (a^2+x^2\right )+\tan ^{-1}\left (\frac {x}{a}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 260
Rule 635
Rubi steps
\begin {align*} \int \frac {a+x}{a^2+x^2} \, dx &=a \int \frac {1}{a^2+x^2} \, dx+\int \frac {x}{a^2+x^2} \, dx\\ &=\tan ^{-1}\left (\frac {x}{a}\right )+\frac {1}{2} \log \left (a^2+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 19, normalized size = 1.00 \[ \frac {1}{2} \log \left (a^2+x^2\right )+\tan ^{-1}\left (\frac {x}{a}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 17, normalized size = 0.89 \[ \arctan \left (\frac {x}{a}\right ) + \frac {1}{2} \, \log \left (a^{2} + x^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.03, size = 17, normalized size = 0.89 \[ \arctan \left (\frac {x}{a}\right ) + \frac {1}{2} \, \log \left (a^{2} + x^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 18, normalized size = 0.95 \[ \arctan \left (\frac {x}{a}\right )+\frac {\ln \left (a^{2}+x^{2}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.27, size = 17, normalized size = 0.89 \[ \arctan \left (\frac {x}{a}\right ) + \frac {1}{2} \, \log \left (a^{2} + x^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 17, normalized size = 0.89 \[ \frac {\ln \left (a^2+x^2\right )}{2}+\mathrm {atan}\left (\frac {x}{a}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 0.11, size = 42, normalized size = 2.21 \[ \left (\frac {1}{2} - \frac {i}{2}\right ) \log {\left (- a + 2 a \left (\frac {1}{2} - \frac {i}{2}\right ) + x \right )} + \left (\frac {1}{2} + \frac {i}{2}\right ) \log {\left (- a + 2 a \left (\frac {1}{2} + \frac {i}{2}\right ) + x \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________