Optimal. Leaf size=35 \[ -\frac {\log (a+b \sec (c+d x))}{a d}-\frac {\log (\cos (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {3885, 36, 29, 31} \[ -\frac {\log (a+b \sec (c+d x))}{a d}-\frac {\log (\cos (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 3885
Rubi steps
\begin {align*} \int \frac {\tan (c+d x)}{a+b \sec (c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{x (a+x)} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,b \sec (c+d x)\right )}{a d}-\frac {\operatorname {Subst}\left (\int \frac {1}{a+x} \, dx,x,b \sec (c+d x)\right )}{a d}\\ &=-\frac {\log (\cos (c+d x))}{a d}-\frac {\log (a+b \sec (c+d x))}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 19, normalized size = 0.54 \[ -\frac {\log (a \cos (c+d x)+b)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 19, normalized size = 0.54 \[ -\frac {\log \left (a \cos \left (d x + c\right ) + b\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.35, size = 114, normalized size = 3.26 \[ \frac {\log \left (\frac {{\left | 2 \, b + \frac {2 \, a {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac {2 \, b {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - 2 \, {\left | a \right |} \right |}}{{\left | 2 \, b + \frac {2 \, a {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} - \frac {2 \, b {\left (\cos \left (d x + c\right ) - 1\right )}}{\cos \left (d x + c\right ) + 1} + 2 \, {\left | a \right |} \right |}}\right )}{d {\left | a \right |}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.13, size = 35, normalized size = 1.00 \[ -\frac {\ln \left (a +b \sec \left (d x +c \right )\right )}{d a}+\frac {\ln \left (\sec \left (d x +c \right )\right )}{d a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 19, normalized size = 0.54 \[ -\frac {\log \left (a \cos \left (d x + c\right ) + b\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.47, size = 71, normalized size = 2.03 \[ \frac {\mathrm {atan}\left (\frac {a\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{a\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,1{}\mathrm {i}+b\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,1{}\mathrm {i}+b\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,1{}\mathrm {i}}\right )\,2{}\mathrm {i}}{a\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 5.73, size = 82, normalized size = 2.34 \[ \begin {cases} \frac {\tilde {\infty } x \tan {\relax (c )}}{\sec {\relax (c )}} & \text {for}\: a = 0 \wedge b = 0 \wedge d = 0 \\\frac {\log {\left (\tan ^{2}{\left (c + d x \right )} + 1 \right )}}{2 a d} & \text {for}\: b = 0 \\- \frac {1}{b d \sec {\left (c + d x \right )}} & \text {for}\: a = 0 \\\frac {x \tan {\relax (c )}}{a + b \sec {\relax (c )}} & \text {for}\: d = 0 \\- \frac {\log {\left (\frac {a}{b} + \sec {\left (c + d x \right )} \right )}}{a d} + \frac {\log {\left (\tan ^{2}{\left (c + d x \right )} + 1 \right )}}{2 a d} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________