Optimal. Leaf size=4 \[ x+\tan (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {203} \[ x+\tan (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rubi steps
\begin {align*} \int \sec ^2(x) \left (1+\frac {1}{1+\tan ^2(x)}\right ) \, dx &=\operatorname {Subst}\left (\int \left (1+\frac {1}{1+x^2}\right ) \, dx,x,\tan (x)\right )\\ &=\tan (x)+\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tan (x)\right )\\ &=x+\tan (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 4, normalized size = 1.00 \[ x+\tan (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.89, size = 12, normalized size = 3.00 \[ \frac {x \cos \relax (x) + \sin \relax (x)}{\cos \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 4, normalized size = 1.00 \[ x + \tan \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 5, normalized size = 1.25 \[ x +\tan \relax (x ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 4, normalized size = 1.00 \[ x + \tan \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.94, size = 4, normalized size = 1.00 \[ x+\mathrm {tan}\relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.74, size = 27, normalized size = 6.75 \[ \frac {x \sec ^{2}{\relax (x )}}{\tan ^{2}{\relax (x )} + 1} + \frac {\tan {\relax (x )} \sec ^{2}{\relax (x )}}{\tan ^{2}{\relax (x )} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________