Optimal. Leaf size=23 \[ -3+x+\frac {1}{1+x^2}-\log ^2(i \pi +\log (2)) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 9, normalized size of antiderivative = 0.39, number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {28, 1814, 21, 8} \begin {gather*} \frac {1}{x^2+1}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 21
Rule 28
Rule 1814
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {1-2 x+2 x^2+x^4}{\left (1+x^2\right )^2} \, dx\\ &=\frac {1}{1+x^2}-\frac {1}{2} \int \frac {-2-2 x^2}{1+x^2} \, dx\\ &=\frac {1}{1+x^2}+\int 1 \, dx\\ &=x+\frac {1}{1+x^2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 9, normalized size = 0.39 \begin {gather*} x+\frac {1}{1+x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 14, normalized size = 0.61 \begin {gather*} \frac {x^{3} + x + 1}{x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.32, size = 9, normalized size = 0.39 \begin {gather*} x + \frac {1}{x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 10, normalized size = 0.43
method | result | size |
default | \(x +\frac {1}{x^{2}+1}\) | \(10\) |
risch | \(x +\frac {1}{x^{2}+1}\) | \(10\) |
gosper | \(\frac {x^{3}+x +1}{x^{2}+1}\) | \(15\) |
norman | \(\frac {x^{3}+x +1}{x^{2}+1}\) | \(15\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.38, size = 9, normalized size = 0.39 \begin {gather*} x + \frac {1}{x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 9, normalized size = 0.39 \begin {gather*} x+\frac {1}{x^2+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.07, size = 7, normalized size = 0.30 \begin {gather*} x + \frac {1}{x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________