3.3.75 \(\int \frac {\sinh ^2(a+b \log (c x^n))}{x} \, dx\) [275]

Optimal. Leaf size=39 \[ -\frac {\log (x)}{2}+\frac {\cosh \left (a+b \log \left (c x^n\right )\right ) \sinh \left (a+b \log \left (c x^n\right )\right )}{2 b n} \]

[Out]

-1/2*ln(x)+1/2*cosh(a+b*ln(c*x^n))*sinh(a+b*ln(c*x^n))/b/n

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2715, 8} \begin {gather*} \frac {\sinh \left (a+b \log \left (c x^n\right )\right ) \cosh \left (a+b \log \left (c x^n\right )\right )}{2 b n}-\frac {\log (x)}{2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sinh[a + b*Log[c*x^n]]^2/x,x]

[Out]

-1/2*Log[x] + (Cosh[a + b*Log[c*x^n]]*Sinh[a + b*Log[c*x^n]])/(2*b*n)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2715

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d*x]*((b*Sin[c + d*x])^(n - 1)/(d*n))
, x] + Dist[b^2*((n - 1)/n), Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integ
erQ[2*n]

Rubi steps

\begin {align*} \int \frac {\sinh ^2\left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \sinh ^2(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac {\cosh \left (a+b \log \left (c x^n\right )\right ) \sinh \left (a+b \log \left (c x^n\right )\right )}{2 b n}-\frac {\text {Subst}\left (\int 1 \, dx,x,\log \left (c x^n\right )\right )}{2 n}\\ &=-\frac {\log (x)}{2}+\frac {\cosh \left (a+b \log \left (c x^n\right )\right ) \sinh \left (a+b \log \left (c x^n\right )\right )}{2 b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 36, normalized size = 0.92 \begin {gather*} \frac {-2 \left (a+b \log \left (c x^n\right )\right )+\sinh \left (2 \left (a+b \log \left (c x^n\right )\right )\right )}{4 b n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sinh[a + b*Log[c*x^n]]^2/x,x]

[Out]

(-2*(a + b*Log[c*x^n]) + Sinh[2*(a + b*Log[c*x^n])])/(4*b*n)

________________________________________________________________________________________

Maple [A]
time = 1.87, size = 45, normalized size = 1.15

method result size
derivativedivides \(\frac {\frac {\cosh \left (a +b \ln \left (c \,x^{n}\right )\right ) \sinh \left (a +b \ln \left (c \,x^{n}\right )\right )}{2}-\frac {b \ln \left (c \,x^{n}\right )}{2}-\frac {a}{2}}{n b}\) \(45\)
default \(\frac {\frac {\cosh \left (a +b \ln \left (c \,x^{n}\right )\right ) \sinh \left (a +b \ln \left (c \,x^{n}\right )\right )}{2}-\frac {b \ln \left (c \,x^{n}\right )}{2}-\frac {a}{2}}{n b}\) \(45\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(a+b*ln(c*x^n))^2/x,x,method=_RETURNVERBOSE)

[Out]

1/n/b*(1/2*cosh(a+b*ln(c*x^n))*sinh(a+b*ln(c*x^n))-1/2*b*ln(c*x^n)-1/2*a)

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 49, normalized size = 1.26 \begin {gather*} \frac {e^{\left (2 \, b \log \left (c x^{n}\right ) + 2 \, a\right )}}{8 \, b n} - \frac {e^{\left (-2 \, b \log \left (c x^{n}\right ) - 2 \, a\right )}}{8 \, b n} - \frac {1}{2} \, \log \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(a+b*log(c*x^n))^2/x,x, algorithm="maxima")

[Out]

1/8*e^(2*b*log(c*x^n) + 2*a)/(b*n) - 1/8*e^(-2*b*log(c*x^n) - 2*a)/(b*n) - 1/2*log(x)

________________________________________________________________________________________

Fricas [A]
time = 0.50, size = 40, normalized size = 1.03 \begin {gather*} -\frac {b n \log \left (x\right ) - \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{2 \, b n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(a+b*log(c*x^n))^2/x,x, algorithm="fricas")

[Out]

-1/2*(b*n*log(x) - cosh(b*n*log(x) + b*log(c) + a)*sinh(b*n*log(x) + b*log(c) + a))/(b*n)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sinh ^{2}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(a+b*ln(c*x**n))**2/x,x)

[Out]

Integral(sinh(a + b*log(c*x**n))**2/x, x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 81 vs. \(2 (35) = 70\).
time = 0.42, size = 81, normalized size = 2.08 \begin {gather*} -\frac {{\left (4 \, b c^{2 \, b} n e^{\left (2 \, a\right )} \log \left (x\right ) - c^{4 \, b} x^{2 \, b n} e^{\left (4 \, a\right )} - \frac {2 \, c^{2 \, b} x^{2 \, b n} e^{\left (2 \, a\right )} - 1}{x^{2 \, b n}}\right )} e^{\left (-2 \, a\right )}}{8 \, b c^{2 \, b} n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(a+b*log(c*x^n))^2/x,x, algorithm="giac")

[Out]

-1/8*(4*b*c^(2*b)*n*e^(2*a)*log(x) - c^(4*b)*x^(2*b*n)*e^(4*a) - (2*c^(2*b)*x^(2*b*n)*e^(2*a) - 1)/x^(2*b*n))*
e^(-2*a)/(b*c^(2*b)*n)

________________________________________________________________________________________

Mupad [B]
time = 0.69, size = 32, normalized size = 0.82 \begin {gather*} \frac {\mathrm {sinh}\left (2\,a+2\,b\,\ln \left (c\,x^n\right )\right )}{4\,b\,n}-\frac {\ln \left (x^n\right )}{2\,n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(a + b*log(c*x^n))^2/x,x)

[Out]

sinh(2*a + 2*b*log(c*x^n))/(4*b*n) - log(x^n)/(2*n)

________________________________________________________________________________________