Optimal. Leaf size=15 \[ \frac {\tan ^{-1}\left (\frac {a \tan (x)}{b}\right )}{a b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {211}
\begin {gather*} \frac {\tan ^{-1}\left (\frac {a \tan (x)}{b}\right )}{a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rubi steps
\begin {align*} \int \frac {1}{b^2 \cos ^2(x)+a^2 \sin ^2(x)} \, dx &=\text {Subst}\left (\int \frac {1}{b^2+a^2 x^2} \, dx,x,\tan (x)\right )\\ &=\frac {\tan ^{-1}\left (\frac {a \tan (x)}{b}\right )}{a b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 15, normalized size = 1.00 \begin {gather*} \frac {\tan ^{-1}\left (\frac {a \tan (x)}{b}\right )}{a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-1)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 16, normalized size = 1.07
method | result | size |
default | \(\frac {\arctan \left (\frac {a \tan \left (x \right )}{b}\right )}{a b}\) | \(16\) |
risch | \(\frac {i \ln \left ({\mathrm e}^{2 i x}-\frac {a +b}{a -b}\right )}{2 a b}-\frac {i \ln \left ({\mathrm e}^{2 i x}-\frac {a -b}{a +b}\right )}{2 a b}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.38, size = 15, normalized size = 1.00 \begin {gather*} \frac {\arctan \left (\frac {a \tan \left (x\right )}{b}\right )}{a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 43 vs.
\(2 (15) = 30\).
time = 0.35, size = 43, normalized size = 2.87 \begin {gather*} -\frac {\arctan \left (\frac {{\left (a^{2} + b^{2}\right )} \cos \left (x\right )^{2} - a^{2}}{2 \, a b \cos \left (x\right ) \sin \left (x\right )}\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 25, normalized size = 1.67 \begin {gather*} \frac {2 \left (\arctan \left (\frac {a \tan x}{b}\right )+\pi \left \lfloor \frac {x}{\pi }+\frac 1{2}\right \rfloor \right )}{2 a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.46, size = 15, normalized size = 1.00 \begin {gather*} \frac {\mathrm {atan}\left (\frac {a\,\mathrm {tan}\left (x\right )}{b}\right )}{a\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________