3.82 \(\int x^{2+m} \cosh (a+b x) \, dx\)

Optimal. Leaf size=59 \[ \frac {e^a x^m (-b x)^{-m} \Gamma (m+3,-b x)}{2 b^3}-\frac {e^{-a} x^m (b x)^{-m} \Gamma (m+3,b x)}{2 b^3} \]

[Out]

1/2*exp(a)*x^m*GAMMA(3+m,-b*x)/b^3/((-b*x)^m)-1/2*x^m*GAMMA(3+m,b*x)/b^3/exp(a)/((b*x)^m)

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3307, 2181} \[ \frac {e^a x^m (-b x)^{-m} \text {Gamma}(m+3,-b x)}{2 b^3}-\frac {e^{-a} x^m (b x)^{-m} \text {Gamma}(m+3,b x)}{2 b^3} \]

Antiderivative was successfully verified.

[In]

Int[x^(2 + m)*Cosh[a + b*x],x]

[Out]

(E^a*x^m*Gamma[3 + m, -(b*x)])/(2*b^3*(-(b*x))^m) - (x^m*Gamma[3 + m, b*x])/(2*b^3*E^a*(b*x)^m)

Rule 2181

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> -Simp[(F^(g*(e - (c*f)/d))*(c +
d*x)^FracPart[m]*Gamma[m + 1, (-((f*g*Log[F])/d))*(c + d*x)])/(d*(-((f*g*Log[F])/d))^(IntPart[m] + 1)*(-((f*g*
Log[F]*(c + d*x))/d))^FracPart[m]), x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 3307

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + Pi*(k_.) + (f_.)*(x_)], x_Symbol] :> Dist[I/2, Int[(c + d*x)^m/(E^(
I*k*Pi)*E^(I*(e + f*x))), x], x] - Dist[I/2, Int[(c + d*x)^m*E^(I*k*Pi)*E^(I*(e + f*x)), x], x] /; FreeQ[{c, d
, e, f, m}, x] && IntegerQ[2*k]

Rubi steps

\begin {align*} \int x^{2+m} \cosh (a+b x) \, dx &=\frac {1}{2} \int e^{-i (i a+i b x)} x^{2+m} \, dx+\frac {1}{2} \int e^{i (i a+i b x)} x^{2+m} \, dx\\ &=\frac {e^a x^m (-b x)^{-m} \Gamma (3+m,-b x)}{2 b^3}-\frac {e^{-a} x^m (b x)^{-m} \Gamma (3+m,b x)}{2 b^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 54, normalized size = 0.92 \[ \frac {e^{-a} x^m \left (e^{2 a} (-b x)^{-m} \Gamma (m+3,-b x)-(b x)^{-m} \Gamma (m+3,b x)\right )}{2 b^3} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(2 + m)*Cosh[a + b*x],x]

[Out]

(x^m*((E^(2*a)*Gamma[3 + m, -(b*x)])/(-(b*x))^m - Gamma[3 + m, b*x]/(b*x)^m))/(2*b^3*E^a)

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 86, normalized size = 1.46 \[ -\frac {\cosh \left ({\left (m + 2\right )} \log \relax (b) + a\right ) \Gamma \left (m + 3, b x\right ) - \cosh \left ({\left (m + 2\right )} \log \left (-b\right ) - a\right ) \Gamma \left (m + 3, -b x\right ) + \Gamma \left (m + 3, -b x\right ) \sinh \left ({\left (m + 2\right )} \log \left (-b\right ) - a\right ) - \Gamma \left (m + 3, b x\right ) \sinh \left ({\left (m + 2\right )} \log \relax (b) + a\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(2+m)*cosh(b*x+a),x, algorithm="fricas")

[Out]

-1/2*(cosh((m + 2)*log(b) + a)*gamma(m + 3, b*x) - cosh((m + 2)*log(-b) - a)*gamma(m + 3, -b*x) + gamma(m + 3,
 -b*x)*sinh((m + 2)*log(-b) - a) - gamma(m + 3, b*x)*sinh((m + 2)*log(b) + a))/b

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{m + 2} \cosh \left (b x + a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(2+m)*cosh(b*x+a),x, algorithm="giac")

[Out]

integrate(x^(m + 2)*cosh(b*x + a), x)

________________________________________________________________________________________

maple [C]  time = 0.13, size = 73, normalized size = 1.24 \[ \frac {x^{3+m} \hypergeom \left (\left [\frac {3}{2}+\frac {m}{2}\right ], \left [\frac {1}{2}, \frac {5}{2}+\frac {m}{2}\right ], \frac {x^{2} b^{2}}{4}\right ) \cosh \relax (a )}{3+m}+\frac {b \,x^{4+m} \hypergeom \left (\left [2+\frac {m}{2}\right ], \left [\frac {3}{2}, 3+\frac {m}{2}\right ], \frac {x^{2} b^{2}}{4}\right ) \sinh \relax (a )}{4+m} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(2+m)*cosh(b*x+a),x)

[Out]

1/(3+m)*x^(3+m)*hypergeom([3/2+1/2*m],[1/2,5/2+1/2*m],1/4*x^2*b^2)*cosh(a)+b/(4+m)*x^(4+m)*hypergeom([2+1/2*m]
,[3/2,3+1/2*m],1/4*x^2*b^2)*sinh(a)

________________________________________________________________________________________

maxima [A]  time = 1.23, size = 55, normalized size = 0.93 \[ -\frac {1}{2} \, \left (b x\right )^{-m - 3} x^{m + 3} e^{\left (-a\right )} \Gamma \left (m + 3, b x\right ) - \frac {1}{2} \, \left (-b x\right )^{-m - 3} x^{m + 3} e^{a} \Gamma \left (m + 3, -b x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(2+m)*cosh(b*x+a),x, algorithm="maxima")

[Out]

-1/2*(b*x)^(-m - 3)*x^(m + 3)*e^(-a)*gamma(m + 3, b*x) - 1/2*(-b*x)^(-m - 3)*x^(m + 3)*e^a*gamma(m + 3, -b*x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int x^{m+2}\,\mathrm {cosh}\left (a+b\,x\right ) \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(m + 2)*cosh(a + b*x),x)

[Out]

int(x^(m + 2)*cosh(a + b*x), x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(2+m)*cosh(b*x+a),x)

[Out]

Exception raised: TypeError

________________________________________________________________________________________