Integrand size = 12, antiderivative size = 33 \[ \int (a+b \text {sech}(c+d x))^2 \, dx=a^2 x+\frac {2 a b \arctan (\sinh (c+d x))}{d}+\frac {b^2 \tanh (c+d x)}{d} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3858, 3855, 3852, 8} \[ \int (a+b \text {sech}(c+d x))^2 \, dx=a^2 x+\frac {2 a b \arctan (\sinh (c+d x))}{d}+\frac {b^2 \tanh (c+d x)}{d} \]
[In]
[Out]
Rule 8
Rule 3852
Rule 3855
Rule 3858
Rubi steps \begin{align*} \text {integral}& = a^2 x+(2 a b) \int \text {sech}(c+d x) \, dx+b^2 \int \text {sech}^2(c+d x) \, dx \\ & = a^2 x+\frac {2 a b \arctan (\sinh (c+d x))}{d}+\frac {\left (i b^2\right ) \text {Subst}(\int 1 \, dx,x,-i \tanh (c+d x))}{d} \\ & = a^2 x+\frac {2 a b \arctan (\sinh (c+d x))}{d}+\frac {b^2 \tanh (c+d x)}{d} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.97 \[ \int (a+b \text {sech}(c+d x))^2 \, dx=\frac {a (a d x+2 b \arctan (\sinh (c+d x)))+b^2 \tanh (c+d x)}{d} \]
[In]
[Out]
Time = 0.66 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.03
method | result | size |
parts | \(a^{2} x +\frac {2 a b \arctan \left (\sinh \left (d x +c \right )\right )}{d}+\frac {b^{2} \tanh \left (d x +c \right )}{d}\) | \(34\) |
derivativedivides | \(\frac {a^{2} \left (d x +c \right )+4 a b \arctan \left ({\mathrm e}^{d x +c}\right )+b^{2} \tanh \left (d x +c \right )}{d}\) | \(36\) |
default | \(\frac {a^{2} \left (d x +c \right )+4 a b \arctan \left ({\mathrm e}^{d x +c}\right )+b^{2} \tanh \left (d x +c \right )}{d}\) | \(36\) |
risch | \(a^{2} x -\frac {2 b^{2}}{d \left ({\mathrm e}^{2 d x +2 c}+1\right )}+\frac {2 i b a \ln \left ({\mathrm e}^{d x +c}+i\right )}{d}-\frac {2 i b a \ln \left ({\mathrm e}^{d x +c}-i\right )}{d}\) | \(64\) |
parallelrisch | \(\frac {-2 i \cosh \left (d x +c \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right ) a b +2 i \cosh \left (d x +c \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right ) a b +a^{2} d x \cosh \left (d x +c \right )+b^{2} \sinh \left (d x +c \right )}{d \cosh \left (d x +c \right )}\) | \(84\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 157 vs. \(2 (33) = 66\).
Time = 0.28 (sec) , antiderivative size = 157, normalized size of antiderivative = 4.76 \[ \int (a+b \text {sech}(c+d x))^2 \, dx=\frac {a^{2} d x \cosh \left (d x + c\right )^{2} + 2 \, a^{2} d x \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} d x \sinh \left (d x + c\right )^{2} + a^{2} d x - 2 \, b^{2} + 4 \, {\left (a b \cosh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a b \sinh \left (d x + c\right )^{2} + a b\right )} \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )}{d \cosh \left (d x + c\right )^{2} + 2 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + d \sinh \left (d x + c\right )^{2} + d} \]
[In]
[Out]
\[ \int (a+b \text {sech}(c+d x))^2 \, dx=\int \left (a + b \operatorname {sech}{\left (c + d x \right )}\right )^{2}\, dx \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.24 \[ \int (a+b \text {sech}(c+d x))^2 \, dx=a^{2} x + \frac {2 \, a b \arctan \left (\sinh \left (d x + c\right )\right )}{d} + \frac {2 \, b^{2}}{d {\left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.30 \[ \int (a+b \text {sech}(c+d x))^2 \, dx=\frac {{\left (d x + c\right )} a^{2} + 4 \, a b \arctan \left (e^{\left (d x + c\right )}\right ) - \frac {2 \, b^{2}}{e^{\left (2 \, d x + 2 \, c\right )} + 1}}{d} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 70, normalized size of antiderivative = 2.12 \[ \int (a+b \text {sech}(c+d x))^2 \, dx=a^2\,x-\frac {2\,b^2}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}+\frac {4\,\mathrm {atan}\left (\frac {a\,b\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {d^2}}{d\,\sqrt {a^2\,b^2}}\right )\,\sqrt {a^2\,b^2}}{\sqrt {d^2}} \]
[In]
[Out]