Integrand size = 16, antiderivative size = 47 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=-\frac {2 e^{a+b x}}{b \left (1+e^{2 d+2 b x}\right )}+\frac {2 e^{a-d} \arctan \left (e^{d+b x}\right )}{b} \] Output:
-2*exp(b*x+a)/b/(1+exp(2*b*x+2*d))+2*exp(a-d)*arctan(exp(b*x+d))/b
Time = 0.05 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.91 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=\frac {2 e^a \left (-\frac {e^{b x}}{1+e^{2 (d+b x)}}+e^{-d} \arctan \left (e^{d+b x}\right )\right )}{b} \] Input:
Integrate[E^(a + b*x)*Sech[d + b*x]^2,x]
Output:
(2*E^a*(-(E^(b*x)/(1 + E^(2*(d + b*x)))) + ArcTan[E^(d + b*x)]/E^d))/b
Time = 0.31 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.81, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2720, 27, 252, 216}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int e^{a+b x} \text {sech}^2(b x+d) \, dx\) |
\(\Big \downarrow \) 2720 |
\(\displaystyle \frac {\int \frac {4 e^{a+2 b x}}{\left (1+e^{2 b x}\right )^2}de^{b x}}{b}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {4 e^a \int \frac {e^{2 b x}}{\left (1+e^{2 b x}\right )^2}de^{b x}}{b}\) |
\(\Big \downarrow \) 252 |
\(\displaystyle \frac {4 e^a \left (\frac {1}{2} \int \frac {1}{1+e^{2 b x}}de^{b x}-\frac {e^{b x}}{2 \left (e^{2 b x}+1\right )}\right )}{b}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {4 e^a \left (\frac {1}{2} \arctan \left (e^{b x}\right )-\frac {e^{b x}}{2 \left (e^{2 b x}+1\right )}\right )}{b}\) |
Input:
Int[E^(a + b*x)*Sech[d + b*x]^2,x]
Output:
(4*E^a*(-1/2*E^(b*x)/(1 + E^(2*b*x)) + ArcTan[E^(b*x)]/2))/b
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[c*(c*x )^(m - 1)*((a + b*x^2)^(p + 1)/(2*b*(p + 1))), x] - Simp[c^2*((m - 1)/(2*b* (p + 1))) Int[(c*x)^(m - 2)*(a + b*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c }, x] && LtQ[p, -1] && GtQ[m, 1] && !ILtQ[(m + 2*p + 3)/2, 0] && IntBinomi alQ[a, b, c, 2, m, p, x]
Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Simp[v/D[v, x] Subst[Int[FunctionOfExponentialFunction[u, x]/x, x], x, v], x]] /; Funct ionOfExponentialQ[u, x] && !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; FreeQ [{a, m, n}, x] && IntegerQ[m*n]] && !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x)) *(F_)[v_] /; FreeQ[{a, b, c}, x] && InverseFunctionQ[F[x]]]
Result contains complex when optimal does not.
Time = 0.46 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.96
method | result | size |
risch | \(-\frac {2 \,{\mathrm e}^{b x +3 a}}{\left ({\mathrm e}^{2 b x +2 a +2 d}+{\mathrm e}^{2 a}\right ) b}+\frac {i \ln \left ({\mathrm e}^{b x +a}+i {\mathrm e}^{a -d}\right ) {\mathrm e}^{a -d}}{b}-\frac {i \ln \left ({\mathrm e}^{b x +a}-i {\mathrm e}^{a -d}\right ) {\mathrm e}^{a -d}}{b}\) | \(92\) |
Input:
int(exp(b*x+a)*sech(b*x+d)^2,x,method=_RETURNVERBOSE)
Output:
-2/(exp(2*b*x+2*a+2*d)+exp(2*a))/b*exp(b*x+3*a)+I*ln(exp(b*x+a)+I*exp(a-d) )/b*exp(a-d)-I*ln(exp(b*x+a)-I*exp(a-d))/b*exp(a-d)
Leaf count of result is larger than twice the leaf count of optimal. 207 vs. \(2 (43) = 86\).
Time = 0.08 (sec) , antiderivative size = 207, normalized size of antiderivative = 4.40 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=\frac {2 \, {\left ({\left (\cosh \left (b x + d\right )^{2} \cosh \left (-a + d\right ) + {\left (\cosh \left (-a + d\right ) - \sinh \left (-a + d\right )\right )} \sinh \left (b x + d\right )^{2} + 2 \, {\left (\cosh \left (b x + d\right ) \cosh \left (-a + d\right ) - \cosh \left (b x + d\right ) \sinh \left (-a + d\right )\right )} \sinh \left (b x + d\right ) - {\left (\cosh \left (b x + d\right )^{2} + 1\right )} \sinh \left (-a + d\right ) + \cosh \left (-a + d\right )\right )} \arctan \left (\cosh \left (b x + d\right ) + \sinh \left (b x + d\right )\right ) - \cosh \left (b x + d\right ) \cosh \left (-a + d\right ) - {\left (\cosh \left (-a + d\right ) - \sinh \left (-a + d\right )\right )} \sinh \left (b x + d\right ) + \cosh \left (b x + d\right ) \sinh \left (-a + d\right )\right )}}{b \cosh \left (b x + d\right )^{2} + 2 \, b \cosh \left (b x + d\right ) \sinh \left (b x + d\right ) + b \sinh \left (b x + d\right )^{2} + b} \] Input:
integrate(exp(b*x+a)*sech(b*x+d)^2,x, algorithm="fricas")
Output:
2*((cosh(b*x + d)^2*cosh(-a + d) + (cosh(-a + d) - sinh(-a + d))*sinh(b*x + d)^2 + 2*(cosh(b*x + d)*cosh(-a + d) - cosh(b*x + d)*sinh(-a + d))*sinh( b*x + d) - (cosh(b*x + d)^2 + 1)*sinh(-a + d) + cosh(-a + d))*arctan(cosh( b*x + d) + sinh(b*x + d)) - cosh(b*x + d)*cosh(-a + d) - (cosh(-a + d) - s inh(-a + d))*sinh(b*x + d) + cosh(b*x + d)*sinh(-a + d))/(b*cosh(b*x + d)^ 2 + 2*b*cosh(b*x + d)*sinh(b*x + d) + b*sinh(b*x + d)^2 + b)
\[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=e^{a} \int e^{b x} \operatorname {sech}^{2}{\left (b x + d \right )}\, dx \] Input:
integrate(exp(b*x+a)*sech(b*x+d)**2,x)
Output:
exp(a)*Integral(exp(b*x)*sech(b*x + d)**2, x)
Time = 0.11 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.09 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=\frac {2 \, \arctan \left (e^{\left (b x + d\right )}\right ) e^{\left (a - d\right )}}{b} - \frac {2 \, e^{\left (b x + 3 \, a\right )}}{b {\left (e^{\left (2 \, b x + 2 \, a + 2 \, d\right )} + e^{\left (2 \, a\right )}\right )}} \] Input:
integrate(exp(b*x+a)*sech(b*x+d)^2,x, algorithm="maxima")
Output:
2*arctan(e^(b*x + d))*e^(a - d)/b - 2*e^(b*x + 3*a)/(b*(e^(2*b*x + 2*a + 2 *d) + e^(2*a)))
Time = 0.12 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.06 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=2 \, {\left (\frac {\arctan \left (e^{\left (b x + d\right )}\right ) e^{\left (-3 \, d\right )}}{b} - \frac {e^{\left (b x - 2 \, d\right )}}{b {\left (e^{\left (2 \, b x + 2 \, d\right )} + 1\right )}}\right )} e^{\left (a + 2 \, d\right )} \] Input:
integrate(exp(b*x+a)*sech(b*x+d)^2,x, algorithm="giac")
Output:
2*(arctan(e^(b*x + d))*e^(-3*d)/b - e^(b*x - 2*d)/(b*(e^(2*b*x + 2*d) + 1) ))*e^(a + 2*d)
Time = 0.00 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.79 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=\frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{b\,x}\,{\mathrm {e}}^a\,\sqrt {b^2}}{b\,\sqrt {{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{-2\,d}}}\right )\,\sqrt {{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{-2\,d}}}{\sqrt {b^2}}-\frac {2\,{\mathrm {e}}^{3\,a}\,{\mathrm {e}}^{-2\,d}\,{\mathrm {e}}^{b\,x}}{b\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{-2\,d}+b\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}} \] Input:
int(exp(a + b*x)/cosh(d + b*x)^2,x)
Output:
(2*atan((exp(b*x)*exp(a)*(b^2)^(1/2))/(b*(exp(2*a)*exp(-2*d))^(1/2)))*(exp (2*a)*exp(-2*d))^(1/2))/(b^2)^(1/2) - (2*exp(3*a)*exp(-2*d)*exp(b*x))/(b*e xp(2*a)*exp(-2*d) + b*exp(2*a)*exp(2*b*x))
Time = 0.21 (sec) , antiderivative size = 64, normalized size of antiderivative = 1.36 \[ \int e^{a+b x} \text {sech}^2(d+b x) \, dx=\frac {2 e^{a} \left (e^{2 b x +2 d} \mathit {atan} \left (e^{b x +d}\right )+\mathit {atan} \left (e^{b x +d}\right )-e^{b x +d}\right )}{e^{d} b \left (e^{2 b x +2 d}+1\right )} \] Input:
int(exp(b*x+a)*sech(b*x+d)^2,x)
Output:
(2*e**a*(e**(2*b*x + 2*d)*atan(e**(b*x + d)) + atan(e**(b*x + d)) - e**(b* x + d)))/(e**d*b*(e**(2*b*x + 2*d) + 1))