Optimal. Leaf size=161 \[ \frac{1}{8} \sqrt{\frac{\pi }{2}} f^{a-\frac{1}{2}} e^{\frac{(2 e-b \log (f))^2}{8 f}-2 d} \text{Erf}\left (\frac{-b \log (f)+2 e+4 f x}{2 \sqrt{2} \sqrt{f}}\right )+\frac{1}{8} \sqrt{\frac{\pi }{2}} f^{a-\frac{1}{2}} e^{2 d-\frac{(b \log (f)+2 e)^2}{8 f}} \text{Erfi}\left (\frac{b \log (f)+2 e+4 f x}{2 \sqrt{2} \sqrt{f}}\right )-\frac{f^{a+b x}}{2 b \log (f)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.283848, antiderivative size = 161, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {5512, 2194, 2287, 2234, 2205, 2204} \[ \frac{1}{8} \sqrt{\frac{\pi }{2}} f^{a-\frac{1}{2}} e^{\frac{(2 e-b \log (f))^2}{8 f}-2 d} \text{Erf}\left (\frac{-b \log (f)+2 e+4 f x}{2 \sqrt{2} \sqrt{f}}\right )+\frac{1}{8} \sqrt{\frac{\pi }{2}} f^{a-\frac{1}{2}} e^{2 d-\frac{(b \log (f)+2 e)^2}{8 f}} \text{Erfi}\left (\frac{b \log (f)+2 e+4 f x}{2 \sqrt{2} \sqrt{f}}\right )-\frac{f^{a+b x}}{2 b \log (f)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5512
Rule 2194
Rule 2287
Rule 2234
Rule 2205
Rule 2204
Rubi steps
\begin{align*} \int f^{a+b x} \sinh ^2\left (d+e x+f x^2\right ) \, dx &=\int \left (-\frac{1}{2} f^{a+b x}+\frac{1}{4} e^{-2 d-2 e x-2 f x^2} f^{a+b x}+\frac{1}{4} e^{2 d+2 e x+2 f x^2} f^{a+b x}\right ) \, dx\\ &=\frac{1}{4} \int e^{-2 d-2 e x-2 f x^2} f^{a+b x} \, dx+\frac{1}{4} \int e^{2 d+2 e x+2 f x^2} f^{a+b x} \, dx-\frac{1}{2} \int f^{a+b x} \, dx\\ &=-\frac{f^{a+b x}}{2 b \log (f)}+\frac{1}{4} \int \exp \left (-2 d-2 f x^2+a \log (f)-x (2 e-b \log (f))\right ) \, dx+\frac{1}{4} \int \exp \left (2 d+2 f x^2+a \log (f)+x (2 e+b \log (f))\right ) \, dx\\ &=-\frac{f^{a+b x}}{2 b \log (f)}+\frac{1}{4} \left (e^{-2 d+\frac{(2 e-b \log (f))^2}{8 f}} f^a\right ) \int e^{-\frac{(-2 e-4 f x+b \log (f))^2}{8 f}} \, dx+\frac{1}{4} \left (e^{2 d-\frac{(2 e+b \log (f))^2}{8 f}} f^a\right ) \int e^{\frac{(2 e+4 f x+b \log (f))^2}{8 f}} \, dx\\ &=\frac{1}{8} e^{-2 d+\frac{(2 e-b \log (f))^2}{8 f}} f^{-\frac{1}{2}+a} \sqrt{\frac{\pi }{2}} \text{erf}\left (\frac{2 e+4 f x-b \log (f)}{2 \sqrt{2} \sqrt{f}}\right )+\frac{1}{8} e^{2 d-\frac{(2 e+b \log (f))^2}{8 f}} f^{-\frac{1}{2}+a} \sqrt{\frac{\pi }{2}} \text{erfi}\left (\frac{2 e+4 f x+b \log (f)}{2 \sqrt{2} \sqrt{f}}\right )-\frac{f^{a+b x}}{2 b \log (f)}\\ \end{align*}
Mathematica [A] time = 0.625089, size = 220, normalized size = 1.37 \[ \frac{f^{a-\frac{b e+f}{2 f}} e^{-\frac{b^2 \log ^2(f)+4 e^2}{8 f}} \left (\sqrt{\pi } b \log (f) (\cosh (2 d)-\sinh (2 d)) e^{\frac{b^2 \log ^2(f)+4 e^2}{4 f}} \text{Erf}\left (\frac{-b \log (f)+2 e+4 f x}{2 \sqrt{2} \sqrt{f}}\right )-4 \sqrt{2} f^{b \left (\frac{e}{2 f}+x\right )+\frac{1}{2}} e^{\frac{b^2 \log ^2(f)+4 e^2}{8 f}}+\sqrt{\pi } b \log (f) (\sinh (2 d)+\cosh (2 d)) \text{Erfi}\left (\frac{b \log (f)+2 e+4 f x}{2 \sqrt{2} \sqrt{f}}\right )\right )}{8 \sqrt{2} b \log (f)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.142, size = 158, normalized size = 1. \begin{align*} -{\frac{\sqrt{\pi }{f}^{a}\sqrt{2}}{16}{{\rm e}^{{\frac{ \left ( \ln \left ( f \right ) \right ) ^{2}{b}^{2}-4\,\ln \left ( f \right ) be-16\,df+4\,{e}^{2}}{8\,f}}}}{\it Erf} \left ( -\sqrt{2}\sqrt{f}x+{\frac{ \left ( b\ln \left ( f \right ) -2\,e \right ) \sqrt{2}}{4}{\frac{1}{\sqrt{f}}}} \right ){\frac{1}{\sqrt{f}}}}-{\frac{\sqrt{\pi }{f}^{a}}{8}{{\rm e}^{-{\frac{ \left ( \ln \left ( f \right ) \right ) ^{2}{b}^{2}+4\,\ln \left ( f \right ) be-16\,df+4\,{e}^{2}}{8\,f}}}}{\it Erf} \left ( -\sqrt{-2\,f}x+{\frac{2\,e+b\ln \left ( f \right ) }{2}{\frac{1}{\sqrt{-2\,f}}}} \right ){\frac{1}{\sqrt{-2\,f}}}}-{\frac{{f}^{a}{f}^{bx}}{2\,b\ln \left ( f \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.53298, size = 193, normalized size = 1.2 \begin{align*} \frac{\sqrt{2} \sqrt{\pi } f^{a} \operatorname{erf}\left (\sqrt{2} \sqrt{-f} x - \frac{\sqrt{2}{\left (b \log \left (f\right ) + 2 \, e\right )}}{4 \, \sqrt{-f}}\right ) e^{\left (2 \, d - \frac{{\left (b \log \left (f\right ) + 2 \, e\right )}^{2}}{8 \, f}\right )}}{16 \, \sqrt{-f}} + \frac{\sqrt{2} \sqrt{\pi } f^{a} \operatorname{erf}\left (\sqrt{2} \sqrt{f} x - \frac{\sqrt{2}{\left (b \log \left (f\right ) - 2 \, e\right )}}{4 \, \sqrt{f}}\right ) e^{\left (-2 \, d + \frac{{\left (b \log \left (f\right ) - 2 \, e\right )}^{2}}{8 \, f}\right )}}{16 \, \sqrt{f}} - \frac{f^{b x + a}}{2 \, b \log \left (f\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.8799, size = 956, normalized size = 5.94 \begin{align*} -\frac{\sqrt{2} \sqrt{\pi } b \sqrt{-f} \cosh \left (\frac{b^{2} \log \left (f\right )^{2} + 4 \, e^{2} - 16 \, d f + 4 \,{\left (b e - 2 \, a f\right )} \log \left (f\right )}{8 \, f}\right ) \operatorname{erf}\left (\frac{\sqrt{2}{\left (4 \, f x + b \log \left (f\right ) + 2 \, e\right )} \sqrt{-f}}{4 \, f}\right ) \log \left (f\right ) + \sqrt{2} \sqrt{\pi } b \sqrt{f} \cosh \left (\frac{b^{2} \log \left (f\right )^{2} + 4 \, e^{2} - 16 \, d f - 4 \,{\left (b e - 2 \, a f\right )} \log \left (f\right )}{8 \, f}\right ) \operatorname{erf}\left (-\frac{\sqrt{2}{\left (4 \, f x - b \log \left (f\right ) + 2 \, e\right )}}{4 \, \sqrt{f}}\right ) \log \left (f\right ) - \sqrt{2} \sqrt{\pi } b \sqrt{-f} \operatorname{erf}\left (\frac{\sqrt{2}{\left (4 \, f x + b \log \left (f\right ) + 2 \, e\right )} \sqrt{-f}}{4 \, f}\right ) \log \left (f\right ) \sinh \left (\frac{b^{2} \log \left (f\right )^{2} + 4 \, e^{2} - 16 \, d f + 4 \,{\left (b e - 2 \, a f\right )} \log \left (f\right )}{8 \, f}\right ) + \sqrt{2} \sqrt{\pi } b \sqrt{f} \operatorname{erf}\left (-\frac{\sqrt{2}{\left (4 \, f x - b \log \left (f\right ) + 2 \, e\right )}}{4 \, \sqrt{f}}\right ) \log \left (f\right ) \sinh \left (\frac{b^{2} \log \left (f\right )^{2} + 4 \, e^{2} - 16 \, d f - 4 \,{\left (b e - 2 \, a f\right )} \log \left (f\right )}{8 \, f}\right ) + 8 \, f \cosh \left ({\left (b x + a\right )} \log \left (f\right )\right ) + 8 \, f \sinh \left ({\left (b x + a\right )} \log \left (f\right )\right )}{16 \, b f \log \left (f\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int f^{a + b x} \sinh ^{2}{\left (d + e x + f x^{2} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.35316, size = 527, normalized size = 3.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]