Optimal. Leaf size=19 \[ \frac{(a+b \tan (x))^{n+1}}{b (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0354784, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3506, 32} \[ \frac{(a+b \tan (x))^{n+1}}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3506
Rule 32
Rubi steps
\begin{align*} \int \sec ^2(x) (a+b \tan (x))^n \, dx &=\frac{\operatorname{Subst}\left (\int (a+x)^n \, dx,x,b \tan (x)\right )}{b}\\ &=\frac{(a+b \tan (x))^{1+n}}{b (1+n)}\\ \end{align*}
Mathematica [A] time = 0.17782, size = 18, normalized size = 0.95 \[ \frac{(a+b \tan (x))^{n+1}}{b n+b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 20, normalized size = 1.1 \begin{align*}{\frac{ \left ( a+b\tan \left ( x \right ) \right ) ^{1+n}}{b \left ( 1+n \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.10435, size = 101, normalized size = 5.32 \begin{align*} \frac{{\left (a \cos \left (x\right ) + b \sin \left (x\right )\right )} \left (\frac{a \cos \left (x\right ) + b \sin \left (x\right )}{\cos \left (x\right )}\right )^{n}}{{\left (b n + b\right )} \cos \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan{\left (x \right )}\right )^{n} \sec ^{2}{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14073, size = 26, normalized size = 1.37 \begin{align*} \frac{{\left (b \tan \left (x\right ) + a\right )}^{n + 1}}{b{\left (n + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]