Optimal. Leaf size=120 \[ \frac{(m+1) x^{m+1} \sinh ^2\left (a+b \log \left (c x^n\right )\right )}{(m+1)^2-4 b^2 n^2}-\frac{2 b n x^{m+1} \sinh \left (a+b \log \left (c x^n\right )\right ) \cosh \left (a+b \log \left (c x^n\right )\right )}{(m+1)^2-4 b^2 n^2}+\frac{2 b^2 n^2 x^{m+1}}{(m+1) \left ((m+1)^2-4 b^2 n^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0480274, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {5529, 30} \[ \frac{(m+1) x^{m+1} \sinh ^2\left (a+b \log \left (c x^n\right )\right )}{(m+1)^2-4 b^2 n^2}-\frac{2 b n x^{m+1} \sinh \left (a+b \log \left (c x^n\right )\right ) \cosh \left (a+b \log \left (c x^n\right )\right )}{(m+1)^2-4 b^2 n^2}+\frac{2 b^2 n^2 x^{m+1}}{(m+1) \left ((m+1)^2-4 b^2 n^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5529
Rule 30
Rubi steps
\begin{align*} \int x^m \sinh ^2\left (a+b \log \left (c x^n\right )\right ) \, dx &=-\frac{2 b n x^{1+m} \cosh \left (a+b \log \left (c x^n\right )\right ) \sinh \left (a+b \log \left (c x^n\right )\right )}{(1+m)^2-4 b^2 n^2}+\frac{(1+m) x^{1+m} \sinh ^2\left (a+b \log \left (c x^n\right )\right )}{(1+m)^2-4 b^2 n^2}+\frac{\left (2 b^2 n^2\right ) \int x^m \, dx}{(1+m)^2-4 b^2 n^2}\\ &=\frac{2 b^2 n^2 x^{1+m}}{(1+m) \left ((1+m)^2-4 b^2 n^2\right )}-\frac{2 b n x^{1+m} \cosh \left (a+b \log \left (c x^n\right )\right ) \sinh \left (a+b \log \left (c x^n\right )\right )}{(1+m)^2-4 b^2 n^2}+\frac{(1+m) x^{1+m} \sinh ^2\left (a+b \log \left (c x^n\right )\right )}{(1+m)^2-4 b^2 n^2}\\ \end{align*}
Mathematica [A] time = 0.280334, size = 89, normalized size = 0.74 \[ \frac{x^{m+1} \left (-2 b (m+1) n \sinh \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+(m+1)^2 \cosh \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+4 b^2 n^2-m^2-2 m-1\right )}{2 (m+1) (-2 b n+m+1) (2 b n+m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.109, size = 0, normalized size = 0. \begin{align*} \int{x}^{m} \left ( \sinh \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \right ) ^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.18709, size = 726, normalized size = 6.05 \begin{align*} \frac{{\left (m^{2} + 2 \, m + 1\right )} x \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} \cosh \left (m \log \left (x\right )\right ) +{\left (4 \, b^{2} n^{2} - m^{2} - 2 \, m - 1\right )} x \cosh \left (m \log \left (x\right )\right ) +{\left ({\left (m^{2} + 2 \, m + 1\right )} x \cosh \left (m \log \left (x\right )\right ) +{\left (m^{2} + 2 \, m + 1\right )} x \sinh \left (m \log \left (x\right )\right )\right )} \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 4 \,{\left ({\left (b m + b\right )} n x \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \cosh \left (m \log \left (x\right )\right ) +{\left (b m + b\right )} n x \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sinh \left (m \log \left (x\right )\right )\right )} \sinh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) +{\left ({\left (m^{2} + 2 \, m + 1\right )} x \cosh \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} +{\left (4 \, b^{2} n^{2} - m^{2} - 2 \, m - 1\right )} x\right )} \sinh \left (m \log \left (x\right )\right )}{2 \,{\left (m^{3} - 4 \,{\left (b^{2} m + b^{2}\right )} n^{2} + 3 \, m^{2} + 3 \, m + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.27568, size = 1023, normalized size = 8.52 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]