3.332 \(\int (\frac {x^2}{\cosh ^{\frac {3}{2}}(x)}+x^2 \sqrt {\cosh (x)}) \, dx\)

Optimal. Leaf size=36 \[ \frac {2 x^2 \sinh (x)}{\sqrt {\cosh (x)}}-8 x \sqrt {\cosh (x)}-16 i E\left (\left .\frac {i x}{2}\right |2\right ) \]

[Out]

-16*I*(cosh(1/2*x)^2)^(1/2)/cosh(1/2*x)*EllipticE(I*sinh(1/2*x),2^(1/2))+2*x^2*sinh(x)/cosh(x)^(1/2)-8*x*cosh(
x)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3316, 2639} \[ \frac {2 x^2 \sinh (x)}{\sqrt {\cosh (x)}}-8 x \sqrt {\cosh (x)}-16 i E\left (\left .\frac {i x}{2}\right |2\right ) \]

Antiderivative was successfully verified.

[In]

Int[x^2/Cosh[x]^(3/2) + x^2*Sqrt[Cosh[x]],x]

[Out]

-8*x*Sqrt[Cosh[x]] - (16*I)*EllipticE[(I/2)*x, 2] + (2*x^2*Sinh[x])/Sqrt[Cosh[x]]

Rule 2639

Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]

Rule 3316

Int[((c_.) + (d_.)*(x_))^(m_.)*((b_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[((c + d*x)^m*Cos[e + f*
x]*(b*Sin[e + f*x])^(n + 1))/(b*f*(n + 1)), x] + (Dist[(n + 2)/(b^2*(n + 1)), Int[(c + d*x)^m*(b*Sin[e + f*x])
^(n + 2), x], x] + Dist[(d^2*m*(m - 1))/(b^2*f^2*(n + 1)*(n + 2)), Int[(c + d*x)^(m - 2)*(b*Sin[e + f*x])^(n +
 2), x], x] - Simp[(d*m*(c + d*x)^(m - 1)*(b*Sin[e + f*x])^(n + 2))/(b^2*f^2*(n + 1)*(n + 2)), x]) /; FreeQ[{b
, c, d, e, f}, x] && LtQ[n, -1] && NeQ[n, -2] && GtQ[m, 1]

Rubi steps

\begin {align*} \int \left (\frac {x^2}{\cosh ^{\frac {3}{2}}(x)}+x^2 \sqrt {\cosh (x)}\right ) \, dx &=\int \frac {x^2}{\cosh ^{\frac {3}{2}}(x)} \, dx+\int x^2 \sqrt {\cosh (x)} \, dx\\ &=-8 x \sqrt {\cosh (x)}+\frac {2 x^2 \sinh (x)}{\sqrt {\cosh (x)}}+8 \int \sqrt {\cosh (x)} \, dx\\ &=-8 x \sqrt {\cosh (x)}-16 i E\left (\left .\frac {i x}{2}\right |2\right )+\frac {2 x^2 \sinh (x)}{\sqrt {\cosh (x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 0.19, size = 76, normalized size = 2.11 \[ \frac {4 \sqrt {\cosh (x)} (\sinh (x)+\cosh (x)) \left (8 \, _2F_1\left (-\frac {1}{4},\frac {1}{2};\frac {3}{4};-e^{2 x}\right ) (\sinh (x)-\cosh (x)) \sqrt {\sinh (2 x)+\cosh (2 x)+1}+x^2 \sinh (x)-4 (x-2) \cosh (x)\right )}{e^{2 x}+1} \]

Antiderivative was successfully verified.

[In]

Integrate[x^2/Cosh[x]^(3/2) + x^2*Sqrt[Cosh[x]],x]

[Out]

(4*Sqrt[Cosh[x]]*(Cosh[x] + Sinh[x])*(-4*(-2 + x)*Cosh[x] + x^2*Sinh[x] + 8*Hypergeometric2F1[-1/4, 1/2, 3/4,
-E^(2*x)]*(-Cosh[x] + Sinh[x])*Sqrt[1 + Cosh[2*x] + Sinh[2*x]]))/(1 + E^(2*x))

________________________________________________________________________________________

fricas [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/cosh(x)^(3/2)+x^2*cosh(x)^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {\cosh \relax (x)} + \frac {x^{2}}{\cosh \relax (x)^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/cosh(x)^(3/2)+x^2*cosh(x)^(1/2),x, algorithm="giac")

[Out]

integrate(x^2*sqrt(cosh(x)) + x^2/cosh(x)^(3/2), x)

________________________________________________________________________________________

maple [F(-2)]  time = 180.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{2}}{\cosh \relax (x )^{\frac {3}{2}}}+x^{2} \left (\sqrt {\cosh }\relax (x )\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/cosh(x)^(3/2)+x^2*cosh(x)^(1/2),x)

[Out]

int(x^2/cosh(x)^(3/2)+x^2*cosh(x)^(1/2),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {\cosh \relax (x)} + \frac {x^{2}}{\cosh \relax (x)^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/cosh(x)^(3/2)+x^2*cosh(x)^(1/2),x, algorithm="maxima")

[Out]

integrate(x^2*sqrt(cosh(x)) + x^2/cosh(x)^(3/2), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int x^2\,\sqrt {\mathrm {cosh}\relax (x)}+\frac {x^2}{{\mathrm {cosh}\relax (x)}^{3/2}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*cosh(x)^(1/2) + x^2/cosh(x)^(3/2),x)

[Out]

int(x^2*cosh(x)^(1/2) + x^2/cosh(x)^(3/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{2} \left (\cosh ^{2}{\relax (x )} + 1\right )}{\cosh ^{\frac {3}{2}}{\relax (x )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2/cosh(x)**(3/2)+x**2*cosh(x)**(1/2),x)

[Out]

Integral(x**2*(cosh(x)**2 + 1)/cosh(x)**(3/2), x)

________________________________________________________________________________________