Optimal. Leaf size=271 \[ \frac {\cosh \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 {\cosh \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 {\sinh \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 {\sinh \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}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.75, antiderivative size = 271, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {6728, 3303, 3298, 3301} \[ \frac {\cosh \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 {\cosh \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 {\sinh \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 {\sinh \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}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3298
Rule 3301
Rule 3303
Rule 6728
Rubi steps
\begin {align*} \int \frac {\cosh (a+b x)}{c+d x+e x^2} \, dx &=\int \left (\frac {2 e \cosh (a+b x)}{\sqrt {d^2-4 c e} \left (d-\sqrt {d^2-4 c e}+2 e x\right )}-\frac {2 e \cosh (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 {\cosh (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 {\cosh (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 {\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 \cosh \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 {\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 {\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 {\cosh \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 {\cosh \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 (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 {\sinh \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*}
________________________________________________________________________________________
Mathematica [C] time = 0.50, size = 248, normalized size = 0.92 \[ \frac {\cosh \left (a+\frac {b \left (\sqrt {d^2-4 c e}-d\right )}{2 e}\right ) \text {Ci}\left (\frac {i b \left (d+2 e x-\sqrt {d^2-4 c e}\right )}{2 e}\right )-\cosh \left (a-\frac {b \left (\sqrt {d^2-4 c e}+d\right )}{2 e}\right ) \text {Ci}\left (\frac {i b \left (d+2 e x+\sqrt {d^2-4 c e}\right )}{2 e}\right )-\sinh \left (a-\frac {b \left (\sqrt {d^2-4 c e}+d\right )}{2 e}\right ) \text {Shi}\left (\frac {b \left (d+2 e x+\sqrt {d^2-4 c e}\right )}{2 e}\right )+i \sinh \left (a+\frac {b \left (\sqrt {d^2-4 c e}-d\right )}{2 e}\right ) \text {Si}\left (\frac {i b \left (\sqrt {d^2-4 c e}-d\right )}{2 e}-i b x\right )}{\sqrt {d^2-4 c e}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.53, size = 671, normalized size = 2.48 \[ -\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 )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh \left (b x + a\right )}{e x^{2} + d x + c}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 376, normalized size = 1.39 \[ \frac {b \,{\mathrm e}^{-\frac {2 e a -b d -\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \Ei \left (1, \frac {2 e \left (b x +a \right )-2 e a +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 e a -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \Ei \left (1, -\frac {-2 e \left (b x +a \right )+2 e a -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 e a -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \Ei \left (1, \frac {-2 e \left (b x +a \right )+2 e a -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 e a -b d -\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}} \Ei \left (1, -\frac {2 e \left (b x +a \right )-2 e a +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}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\mathrm {cosh}\left (a+b\,x\right )}{e\,x^2+d\,x+c} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh {\left (a + b x \right )}}{c + d x + e x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________