Optimal. Leaf size=88 \[ \frac {16 \tanh \left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {a \cosh (c+d x)+a}}{d^3}-\frac {8 x \sqrt {a \cosh (c+d x)+a}}{d^2}+\frac {2 x^2 \tanh \left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {a \cosh (c+d x)+a}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3319, 3296, 2637} \[ -\frac {8 x \sqrt {a \cosh (c+d x)+a}}{d^2}+\frac {16 \tanh \left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {a \cosh (c+d x)+a}}{d^3}+\frac {2 x^2 \tanh \left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {a \cosh (c+d x)+a}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 3296
Rule 3319
Rubi steps
\begin {align*} \int x^2 \sqrt {a+a \cosh (c+d x)} \, dx &=\left (\sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )\right ) \int x^2 \sin \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right ) \, dx\\ &=\frac {2 x^2 \sqrt {a+a \cosh (c+d x)} \tanh \left (\frac {c}{2}+\frac {d x}{2}\right )}{d}-\frac {\left (4 \sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )\right ) \int x \sinh \left (\frac {c}{2}+\frac {d x}{2}\right ) \, dx}{d}\\ &=-\frac {8 x \sqrt {a+a \cosh (c+d x)}}{d^2}+\frac {2 x^2 \sqrt {a+a \cosh (c+d x)} \tanh \left (\frac {c}{2}+\frac {d x}{2}\right )}{d}+\frac {\left (8 \sqrt {a+a \cosh (c+d x)} \csc \left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {\pi }{4}+\frac {i d x}{2}\right )\right ) \int \cosh \left (\frac {c}{2}+\frac {d x}{2}\right ) \, dx}{d^2}\\ &=-\frac {8 x \sqrt {a+a \cosh (c+d x)}}{d^2}+\frac {16 \sqrt {a+a \cosh (c+d x)} \tanh \left (\frac {c}{2}+\frac {d x}{2}\right )}{d^3}+\frac {2 x^2 \sqrt {a+a \cosh (c+d x)} \tanh \left (\frac {c}{2}+\frac {d x}{2}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 44, normalized size = 0.50 \[ \frac {2 \left (\left (d^2 x^2+8\right ) \tanh \left (\frac {1}{2} (c+d x)\right )-4 d x\right ) \sqrt {a (\cosh (c+d x)+1)}}{d^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 107, normalized size = 1.22 \[ \frac {\sqrt {2} {\left (\sqrt {a} d^{2} x^{2} e^{\left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )} - \sqrt {a} d^{2} x^{2} e^{\left (-\frac {1}{2} \, d x - \frac {1}{2} \, c\right )} - 4 \, \sqrt {a} d x e^{\left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )} - 4 \, \sqrt {a} d x e^{\left (-\frac {1}{2} \, d x - \frac {1}{2} \, c\right )} + 8 \, \sqrt {a} e^{\left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )} - 8 \, \sqrt {a} e^{\left (-\frac {1}{2} \, d x - \frac {1}{2} \, c\right )}\right )}}{d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 86, normalized size = 0.98 \[ \frac {\sqrt {2}\, \sqrt {a \left ({\mathrm e}^{d x +c}+1\right )^{2} {\mathrm e}^{-d x -c}}\, \left (d^{2} x^{2} {\mathrm e}^{d x +c}-d^{2} x^{2}-4 d x \,{\mathrm e}^{d x +c}-4 d x +8 \,{\mathrm e}^{d x +c}-8\right )}{\left ({\mathrm e}^{d x +c}+1\right ) d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 90, normalized size = 1.02 \[ -\frac {{\left (\sqrt {2} \sqrt {a} d^{2} x^{2} + 4 \, \sqrt {2} \sqrt {a} d x - {\left (\sqrt {2} \sqrt {a} d^{2} x^{2} e^{c} - 4 \, \sqrt {2} \sqrt {a} d x e^{c} + 8 \, \sqrt {2} \sqrt {a} e^{c}\right )} e^{\left (d x\right )} + 8 \, \sqrt {2} \sqrt {a}\right )} e^{\left (-\frac {1}{2} \, d x - \frac {1}{2} \, c\right )}}{d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.93, size = 95, normalized size = 1.08 \[ -\frac {\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{c+d\,x}}{2}+\frac {{\mathrm {e}}^{-c-d\,x}}{2}\right )}\,\left (\frac {8\,x}{d^2}-\frac {16\,{\mathrm {e}}^{c+d\,x}}{d^3}+\frac {16}{d^3}+\frac {2\,x^2}{d}-\frac {2\,x^2\,{\mathrm {e}}^{c+d\,x}}{d}+\frac {8\,x\,{\mathrm {e}}^{c+d\,x}}{d^2}\right )}{{\mathrm {e}}^{c+d\,x}+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {a \left (\cosh {\left (c + d x \right )} + 1\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________