Optimal. Leaf size=28 \[ \frac{b \tan (x)}{d}-\frac{(b c-a d) \log (c+d \tan (x))}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0873822, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {4342, 43} \[ \frac{b \tan (x)}{d}-\frac{(b c-a d) \log (c+d \tan (x))}{d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4342
Rule 43
Rubi steps
\begin{align*} \int \frac{\sec ^2(x) (a+b \tan (x))}{c+d \tan (x)} \, dx &=\operatorname{Subst}\left (\int \frac{a+b x}{c+d x} \, dx,x,\tan (x)\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{b}{d}+\frac{-b c+a d}{d (c+d x)}\right ) \, dx,x,\tan (x)\right )\\ &=-\frac{(b c-a d) \log (c+d \tan (x))}{d^2}+\frac{b \tan (x)}{d}\\ \end{align*}
Mathematica [A] time = 0.353691, size = 54, normalized size = 1.93 \[ \frac{\cos (x) (a+b \tan (x)) ((b c-a d) (\log (\cos (x))-\log (c \cos (x)+d \sin (x)))+b d \tan (x))}{d^2 (a \cos (x)+b \sin (x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.042, size = 35, normalized size = 1.3 \begin{align*}{\frac{b\tan \left ( x \right ) }{d}}+{\frac{\ln \left ( c+d\tan \left ( x \right ) \right ) a}{d}}-{\frac{\ln \left ( c+d\tan \left ( x \right ) \right ) cb}{{d}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.958968, size = 38, normalized size = 1.36 \begin{align*} \frac{b \tan \left (x\right )}{d} - \frac{{\left (b c - a d\right )} \log \left (d \tan \left (x\right ) + c\right )}{d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.33689, size = 194, normalized size = 6.93 \begin{align*} -\frac{{\left (b c - a d\right )} \cos \left (x\right ) \log \left (2 \, c d \cos \left (x\right ) \sin \left (x\right ) +{\left (c^{2} - d^{2}\right )} \cos \left (x\right )^{2} + d^{2}\right ) -{\left (b c - a d\right )} \cos \left (x\right ) \log \left (\cos \left (x\right )^{2}\right ) - 2 \, b d \sin \left (x\right )}{2 \, d^{2} \cos \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.57323, size = 29, normalized size = 1.04 \begin{align*} \frac{b \tan{\left (x \right )}}{d} + \frac{\left (a d - b c\right ) \left (\begin{cases} \frac{\tan{\left (x \right )}}{c} & \text{for}\: d = 0 \\\frac{\log{\left (c + d \tan{\left (x \right )} \right )}}{d} & \text{otherwise} \end{cases}\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11106, size = 39, normalized size = 1.39 \begin{align*} \frac{b \tan \left (x\right )}{d} - \frac{{\left (b c - a d\right )} \log \left ({\left | d \tan \left (x\right ) + c \right |}\right )}{d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]