Optimal. Leaf size=15 \[ -\frac {2}{3} \tanh ^{-1}\left (\sqrt {1+\sec ^3(x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {4224, 272, 65,
213} \begin {gather*} -\frac {2}{3} \tanh ^{-1}\left (\sqrt {\sec ^3(x)+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 213
Rule 272
Rule 4224
Rubi steps
\begin {align*} \int \frac {\tan (x)}{\sqrt {1+\sec ^3(x)}} \, dx &=\text {Subst}\left (\int \frac {1}{x \sqrt {1+x^3}} \, dx,x,\sec (x)\right )\\ &=\frac {1}{3} \text {Subst}\left (\int \frac {1}{x \sqrt {1+x}} \, dx,x,\sec ^3(x)\right )\\ &=\frac {2}{3} \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {1+\sec ^3(x)}\right )\\ &=-\frac {2}{3} \tanh ^{-1}\left (\sqrt {1+\sec ^3(x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 15, normalized size = 1.00 \begin {gather*} -\frac {2}{3} \tanh ^{-1}\left (\sqrt {1+\sec ^3(x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 12, normalized size = 0.80
method | result | size |
derivativedivides | \(-\frac {2 \arctanh \left (\sqrt {1+\sec ^{3}\left (x \right )}\right )}{3}\) | \(12\) |
default | \(-\frac {2 \arctanh \left (\sqrt {1+\sec ^{3}\left (x \right )}\right )}{3}\) | \(12\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs.
\(2 (11) = 22\).
time = 2.68, size = 27, normalized size = 1.80 \begin {gather*} -\frac {1}{3} \, \log \left (\sqrt {\frac {1}{\cos \left (x\right )^{3}} + 1} + 1\right ) + \frac {1}{3} \, \log \left (\sqrt {\frac {1}{\cos \left (x\right )^{3}} + 1} - 1\right ) \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. 30 vs.
\(2 (11) = 22\).
time = 0.62, size = 30, normalized size = 2.00 \begin {gather*} \frac {1}{3} \, \log \left (2 \, \sqrt {\frac {\cos \left (x\right )^{3} + 1}{\cos \left (x\right )^{3}}} \cos \left (x\right )^{3} - 2 \, \cos \left (x\right )^{3} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tan {\left (x \right )}}{\sqrt {\left (\sec {\left (x \right )} + 1\right ) \left (\sec ^{2}{\left (x \right )} - \sec {\left (x \right )} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 28 vs.
\(2 (11) = 22\).
time = 0.47, size = 28, normalized size = 1.87 \begin {gather*} -\frac {1}{3} \, \log \left (\sqrt {\frac {1}{\cos \left (x\right )^{3}} + 1} + 1\right ) + \frac {1}{3} \, \log \left ({\left | \sqrt {\frac {1}{\cos \left (x\right )^{3}} + 1} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.07 \begin {gather*} \int \frac {\mathrm {tan}\left (x\right )}{\sqrt {\frac {1}{{\cos \left (x\right )}^3}+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________