Optimal. Leaf size=19 \[ \frac{(a+b \tanh (x))^{n+1}}{b (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0432321, 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 \tanh (x))^{n+1}}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3506
Rule 32
Rubi steps
\begin{align*} \int \text{sech}^2(x) (a+b \tanh (x))^n \, dx &=\frac{\operatorname{Subst}\left (\int (a+x)^n \, dx,x,b \tanh (x)\right )}{b}\\ &=\frac{(a+b \tanh (x))^{1+n}}{b (1+n)}\\ \end{align*}
Mathematica [A] time = 0.156339, size = 18, normalized size = 0.95 \[ \frac{(a+b \tanh (x))^{n+1}}{b n+b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.018, size = 20, normalized size = 1.1 \begin{align*}{\frac{ \left ( a+b\tanh \left ( x \right ) \right ) ^{n+1}}{b \left ( n+1 \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 [B] time = 2.44807, size = 220, normalized size = 11.58 \begin{align*} \frac{{\left (a \cosh \left (x\right ) + b \sinh \left (x\right )\right )} \cosh \left (n \log \left (\frac{a \cosh \left (x\right ) + b \sinh \left (x\right )}{\cosh \left (x\right )}\right )\right ) +{\left (a \cosh \left (x\right ) + b \sinh \left (x\right )\right )} \sinh \left (n \log \left (\frac{a \cosh \left (x\right ) + b \sinh \left (x\right )}{\cosh \left (x\right )}\right )\right )}{{\left (b n + b\right )} \cosh \left (x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \tanh \left (x\right ) + a\right )}^{n} \operatorname{sech}\left (x\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]