Optimal. Leaf size=21 \[ -\log (\cos (x)-\sin (x))+\log (2 \cos (x)-\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {630, 31}
\begin {gather*} \log (2 \cos (x)-\sin (x))-\log (\cos (x)-\sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rubi steps
\begin {align*} \int \frac {\sec ^2(x)}{1+\sec ^2(x)-3 \tan (x)} \, dx &=\text {Subst}\left (\int \frac {1}{2-3 x+x^2} \, dx,x,\tan (x)\right )\\ &=\text {Subst}\left (\int \frac {1}{-2+x} \, dx,x,\tan (x)\right )-\text {Subst}\left (\int \frac {1}{-1+x} \, dx,x,\tan (x)\right )\\ &=-\log (1-\tan (x))+\log (2-\tan (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 29, normalized size = 1.38 \begin {gather*} 2 \left (-\frac {1}{2} \log (\cos (x)-\sin (x))+\frac {1}{2} \log (2 \cos (x)-\sin (x))\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 14, normalized size = 0.67
method | result | size |
default | \(\ln \left (\tan \left (x \right )-2\right )-\ln \left (\tan \left (x \right )-1\right )\) | \(14\) |
risch | \(-\ln \left ({\mathrm e}^{2 i x}-i\right )+\ln \left ({\mathrm e}^{2 i x}+\frac {3}{5}-\frac {4 i}{5}\right )\) | \(23\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.12, size = 13, normalized size = 0.62 \begin {gather*} -\log \left (\tan \left (x\right ) - 1\right ) + \log \left (\tan \left (x\right ) - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.86, size = 29, normalized size = 1.38 \begin {gather*} \frac {1}{2} \, \log \left (\frac {3}{4} \, \cos \left (x\right )^{2} - \cos \left (x\right ) \sin \left (x\right ) + \frac {1}{4}\right ) - \frac {1}{2} \, \log \left (-2 \, \cos \left (x\right ) \sin \left (x\right ) + 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 {\sec ^{2}{\left (x \right )}}{- 3 \tan {\left (x \right )} + \sec ^{2}{\left (x \right )} + 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 15, normalized size = 0.71 \begin {gather*} -\log \left ({\left | \tan \left (x\right ) - 1 \right |}\right ) + \log \left ({\left | \tan \left (x\right ) - 2 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.81, size = 9, normalized size = 0.43 \begin {gather*} -2\,\mathrm {atanh}\left (2\,\mathrm {tan}\left (x\right )-3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________