Integrand size = 19, antiderivative size = 271 \[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\frac {\text {Chi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right ) \sinh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right )}{\sqrt {d^2-4 c e}}-\frac {\text {Chi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right ) \sinh \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right )}{\sqrt {d^2-4 c e}}+\frac {\cosh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\cosh \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}} \]
[Out]
Time = 0.55 (sec) , antiderivative size = 271, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.211, Rules used = {6860, 3384, 3379, 3382} \[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\frac {\sinh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Chi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\sinh \left (a-\frac {b \left (\sqrt {d^2-4 c e}+d\right )}{2 e}\right ) \text {Chi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}+\frac {\cosh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\cosh \left (a-\frac {b \left (\sqrt {d^2-4 c e}+d\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}} \]
[In]
[Out]
Rule 3379
Rule 3382
Rule 3384
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {2 e \sinh (a+b x)}{\sqrt {d^2-4 c e} \left (d-\sqrt {d^2-4 c e}+2 e x\right )}-\frac {2 e \sinh (a+b x)}{\sqrt {d^2-4 c e} \left (d+\sqrt {d^2-4 c e}+2 e x\right )}\right ) \, dx \\ & = \frac {(2 e) \int \frac {\sinh (a+b x)}{d-\sqrt {d^2-4 c e}+2 e x} \, dx}{\sqrt {d^2-4 c e}}-\frac {(2 e) \int \frac {\sinh (a+b x)}{d+\sqrt {d^2-4 c e}+2 e x} \, dx}{\sqrt {d^2-4 c e}} \\ & = \frac {\left (2 e \cosh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right )\right ) \int \frac {\sinh \left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{d-\sqrt {d^2-4 c e}+2 e x} \, dx}{\sqrt {d^2-4 c e}}-\frac {\left (2 e \cosh \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right )\right ) \int \frac {\sinh \left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{d+\sqrt {d^2-4 c e}+2 e x} \, dx}{\sqrt {d^2-4 c e}}+\frac {\left (2 e \sinh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right )\right ) \int \frac {\cosh \left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{d-\sqrt {d^2-4 c e}+2 e x} \, dx}{\sqrt {d^2-4 c e}}-\frac {\left (2 e \sinh \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right )\right ) \int \frac {\cosh \left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{d+\sqrt {d^2-4 c e}+2 e x} \, dx}{\sqrt {d^2-4 c e}} \\ & = \frac {\text {Chi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right ) \sinh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right )}{\sqrt {d^2-4 c e}}-\frac {\text {Chi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right ) \sinh \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right )}{\sqrt {d^2-4 c e}}+\frac {\cosh \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\cosh \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}} \\ \end{align*}
Time = 1.13 (sec) , antiderivative size = 220, normalized size of antiderivative = 0.81 \[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\frac {e^{-a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}} \left (-e^{\frac {b d}{e}} \operatorname {ExpIntegralEi}\left (-\frac {b \left (d-\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )+e^{2 a+\frac {b \sqrt {d^2-4 c e}}{e}} \operatorname {ExpIntegralEi}\left (\frac {b \left (d-\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )+e^{\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{e}} \operatorname {ExpIntegralEi}\left (-\frac {b \left (d+\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )-e^{2 a} \operatorname {ExpIntegralEi}\left (\frac {b \left (d+\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )\right )}{2 \sqrt {d^2-4 c e}} \]
[In]
[Out]
Time = 1.88 (sec) , antiderivative size = 376, normalized size of antiderivative = 1.39
method | result | size |
risch | \(-\frac {b \,{\mathrm e}^{\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \operatorname {Ei}_{1}\left (\frac {-2 e \left (b x +a \right )+2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{2 \sqrt {-4 b^{2} c e +b^{2} d^{2}}}+\frac {b \,{\mathrm e}^{\frac {2 a e -b d -\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \operatorname {Ei}_{1}\left (-\frac {2 e \left (b x +a \right )-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{2 \sqrt {-4 b^{2} c e +b^{2} d^{2}}}+\frac {b \,{\mathrm e}^{-\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \operatorname {Ei}_{1}\left (-\frac {-2 e \left (b x +a \right )+2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{2 \sqrt {-4 b^{2} c e +b^{2} d^{2}}}-\frac {b \,{\mathrm e}^{-\frac {2 a e -b d -\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \operatorname {Ei}_{1}\left (\frac {2 e \left (b x +a \right )-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{2 \sqrt {-4 b^{2} c e +b^{2} d^{2}}}\) | \(376\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 671 vs. \(2 (231) = 462\).
Time = 0.29 (sec) , antiderivative size = 671, normalized size of antiderivative = 2.48 \[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=-\frac {{\left (e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {2 \, b e x + b d + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (-\frac {2 \, b e x + b d + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )\right )} \cosh \left (\frac {b d - 2 \, a e + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) - {\left (e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {2 \, b e x + b d - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (-\frac {2 \, b e x + b d - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )\right )} \cosh \left (-\frac {b d - 2 \, a e - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) - {\left (e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {2 \, b e x + b d + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (-\frac {2 \, b e x + b d + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )\right )} \sinh \left (\frac {b d - 2 \, a e + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) - {\left (e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {2 \, b e x + b d - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) + e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (-\frac {2 \, b e x + b d - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )\right )} \sinh \left (-\frac {b d - 2 \, a e - e \sqrt {\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )}{2 \, {\left (b d^{2} - 4 \, b c e\right )}} \]
[In]
[Out]
\[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\int \frac {\sinh {\left (a + b x \right )}}{c + d x + e x^{2}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\int { \frac {\sinh \left (b x + a\right )}{e x^{2} + d x + c} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sinh (a+b x)}{c+d x+e x^2} \, dx=\int \frac {\mathrm {sinh}\left (a+b\,x\right )}{e\,x^2+d\,x+c} \,d x \]
[In]
[Out]