Optimal. Leaf size=242 \[ -\frac {a^2}{2 d (c+d x)^2}+\frac {a b f^2 \text {Chi}\left (x f+\frac {c f}{d}\right ) \cosh \left (e-\frac {c f}{d}\right )}{d^3}+\frac {a b f^2 \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (x f+\frac {c f}{d}\right )}{d^3}-\frac {a b f \sinh (e+f x)}{d^2 (c+d x)}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}+\frac {b^2 f^2 \text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \cosh \left (2 e-\frac {2 c f}{d}\right )}{d^3}+\frac {b^2 f^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{d^3}-\frac {b^2 f \sinh (e+f x) \cosh (e+f x)}{d^2 (c+d x)}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.43, antiderivative size = 242, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 8, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3317, 3297, 3303, 3298, 3301, 3314, 31, 3312} \[ -\frac {a^2}{2 d (c+d x)^2}+\frac {a b f^2 \text {Chi}\left (x f+\frac {c f}{d}\right ) \cosh \left (e-\frac {c f}{d}\right )}{d^3}+\frac {a b f^2 \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (x f+\frac {c f}{d}\right )}{d^3}-\frac {a b f \sinh (e+f x)}{d^2 (c+d x)}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}+\frac {b^2 f^2 \text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \cosh \left (2 e-\frac {2 c f}{d}\right )}{d^3}+\frac {b^2 f^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{d^3}-\frac {b^2 f \sinh (e+f x) \cosh (e+f x)}{d^2 (c+d x)}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 3297
Rule 3298
Rule 3301
Rule 3303
Rule 3312
Rule 3314
Rule 3317
Rubi steps
\begin {align*} \int \frac {(a+b \cosh (e+f x))^2}{(c+d x)^3} \, dx &=\int \left (\frac {a^2}{(c+d x)^3}+\frac {2 a b \cosh (e+f x)}{(c+d x)^3}+\frac {b^2 \cosh ^2(e+f x)}{(c+d x)^3}\right ) \, dx\\ &=-\frac {a^2}{2 d (c+d x)^2}+(2 a b) \int \frac {\cosh (e+f x)}{(c+d x)^3} \, dx+b^2 \int \frac {\cosh ^2(e+f x)}{(c+d x)^3} \, dx\\ &=-\frac {a^2}{2 d (c+d x)^2}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2}-\frac {b^2 f \cosh (e+f x) \sinh (e+f x)}{d^2 (c+d x)}+\frac {(a b f) \int \frac {\sinh (e+f x)}{(c+d x)^2} \, dx}{d}-\frac {\left (b^2 f^2\right ) \int \frac {1}{c+d x} \, dx}{d^2}+\frac {\left (2 b^2 f^2\right ) \int \frac {\cosh ^2(e+f x)}{c+d x} \, dx}{d^2}\\ &=-\frac {a^2}{2 d (c+d x)^2}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2}-\frac {b^2 f^2 \log (c+d x)}{d^3}-\frac {a b f \sinh (e+f x)}{d^2 (c+d x)}-\frac {b^2 f \cosh (e+f x) \sinh (e+f x)}{d^2 (c+d x)}+\frac {\left (a b f^2\right ) \int \frac {\cosh (e+f x)}{c+d x} \, dx}{d^2}+\frac {\left (2 b^2 f^2\right ) \int \left (\frac {1}{2 (c+d x)}+\frac {\cosh (2 e+2 f x)}{2 (c+d x)}\right ) \, dx}{d^2}\\ &=-\frac {a^2}{2 d (c+d x)^2}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2}-\frac {a b f \sinh (e+f x)}{d^2 (c+d x)}-\frac {b^2 f \cosh (e+f x) \sinh (e+f x)}{d^2 (c+d x)}+\frac {\left (b^2 f^2\right ) \int \frac {\cosh (2 e+2 f x)}{c+d x} \, dx}{d^2}+\frac {\left (a b f^2 \cosh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx}{d^2}+\frac {\left (a b f^2 \sinh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx}{d^2}\\ &=-\frac {a^2}{2 d (c+d x)^2}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2}+\frac {a b f^2 \cosh \left (e-\frac {c f}{d}\right ) \text {Chi}\left (\frac {c f}{d}+f x\right )}{d^3}-\frac {a b f \sinh (e+f x)}{d^2 (c+d x)}-\frac {b^2 f \cosh (e+f x) \sinh (e+f x)}{d^2 (c+d x)}+\frac {a b f^2 \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d^3}+\frac {\left (b^2 f^2 \cosh \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{d^2}+\frac {\left (b^2 f^2 \sinh \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{d^2}\\ &=-\frac {a^2}{2 d (c+d x)^2}-\frac {a b \cosh (e+f x)}{d (c+d x)^2}-\frac {b^2 \cosh ^2(e+f x)}{2 d (c+d x)^2}+\frac {a b f^2 \cosh \left (e-\frac {c f}{d}\right ) \text {Chi}\left (\frac {c f}{d}+f x\right )}{d^3}+\frac {b^2 f^2 \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Chi}\left (\frac {2 c f}{d}+2 f x\right )}{d^3}-\frac {a b f \sinh (e+f x)}{d^2 (c+d x)}-\frac {b^2 f \cosh (e+f x) \sinh (e+f x)}{d^2 (c+d x)}+\frac {a b f^2 \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d^3}+\frac {b^2 f^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.32, size = 394, normalized size = 1.63 \[ -\frac {2 a^2 d^2-4 a b c^2 f^2 \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )-4 a b f^2 (c+d x)^2 \text {Chi}\left (f \left (\frac {c}{d}+x\right )\right ) \cosh \left (e-\frac {c f}{d}\right )-4 a b d^2 f^2 x^2 \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )-8 a b c d f^2 x \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )+4 a b c d f \sinh (e+f x)+4 a b d^2 f x \sinh (e+f x)+4 a b d^2 \cosh (e+f x)-4 b^2 c^2 f^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )-4 b^2 f^2 (c+d x)^2 \text {Chi}\left (\frac {2 f (c+d x)}{d}\right ) \cosh \left (2 e-\frac {2 c f}{d}\right )-4 b^2 d^2 f^2 x^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )-8 b^2 c d f^2 x \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )+2 b^2 c d f \sinh (2 (e+f x))+2 b^2 d^2 f x \sinh (2 (e+f x))+b^2 d^2 \cosh (2 (e+f x))+b^2 d^2}{4 d^3 (c+d x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.52, size = 586, normalized size = 2.42 \[ -\frac {b^{2} d^{2} \cosh \left (f x + e\right )^{2} + b^{2} d^{2} \sinh \left (f x + e\right )^{2} + 4 \, a b d^{2} \cosh \left (f x + e\right ) + {\left (2 \, a^{2} + b^{2}\right )} d^{2} - 2 \, {\left ({\left (a b d^{2} f^{2} x^{2} + 2 \, a b c d f^{2} x + a b c^{2} f^{2}\right )} {\rm Ei}\left (\frac {d f x + c f}{d}\right ) + {\left (a b d^{2} f^{2} x^{2} + 2 \, a b c d f^{2} x + a b c^{2} f^{2}\right )} {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \cosh \left (-\frac {d e - c f}{d}\right ) - 2 \, {\left ({\left (b^{2} d^{2} f^{2} x^{2} + 2 \, b^{2} c d f^{2} x + b^{2} c^{2} f^{2}\right )} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + {\left (b^{2} d^{2} f^{2} x^{2} + 2 \, b^{2} c d f^{2} x + b^{2} c^{2} f^{2}\right )} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \cosh \left (-\frac {2 \, {\left (d e - c f\right )}}{d}\right ) + 4 \, {\left (a b d^{2} f x + a b c d f + {\left (b^{2} d^{2} f x + b^{2} c d f\right )} \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right ) + 2 \, {\left ({\left (a b d^{2} f^{2} x^{2} + 2 \, a b c d f^{2} x + a b c^{2} f^{2}\right )} {\rm Ei}\left (\frac {d f x + c f}{d}\right ) - {\left (a b d^{2} f^{2} x^{2} + 2 \, a b c d f^{2} x + a b c^{2} f^{2}\right )} {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \sinh \left (-\frac {d e - c f}{d}\right ) + 2 \, {\left ({\left (b^{2} d^{2} f^{2} x^{2} + 2 \, b^{2} c d f^{2} x + b^{2} c^{2} f^{2}\right )} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) - {\left (b^{2} d^{2} f^{2} x^{2} + 2 \, b^{2} c d f^{2} x + b^{2} c^{2} f^{2}\right )} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \sinh \left (-\frac {2 \, {\left (d e - c f\right )}}{d}\right )}{4 \, {\left (d^{5} x^{2} + 2 \, c d^{4} x + c^{2} d^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 702, normalized size = 2.90 \[ \frac {4 \, b^{2} d^{2} f^{2} x^{2} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (\frac {2 \, c f}{d} - 2 \, e\right )} + 4 \, a b d^{2} f^{2} x^{2} {\rm Ei}\left (-\frac {d f x + c f}{d}\right ) e^{\left (\frac {c f}{d} - e\right )} + 4 \, a b d^{2} f^{2} x^{2} {\rm Ei}\left (\frac {d f x + c f}{d}\right ) e^{\left (-\frac {c f}{d} + e\right )} + 4 \, b^{2} d^{2} f^{2} x^{2} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (-\frac {2 \, c f}{d} + 2 \, e\right )} + 8 \, b^{2} c d f^{2} x {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (\frac {2 \, c f}{d} - 2 \, e\right )} + 8 \, a b c d f^{2} x {\rm Ei}\left (-\frac {d f x + c f}{d}\right ) e^{\left (\frac {c f}{d} - e\right )} + 8 \, a b c d f^{2} x {\rm Ei}\left (\frac {d f x + c f}{d}\right ) e^{\left (-\frac {c f}{d} + e\right )} + 8 \, b^{2} c d f^{2} x {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (-\frac {2 \, c f}{d} + 2 \, e\right )} + 4 \, b^{2} c^{2} f^{2} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (\frac {2 \, c f}{d} - 2 \, e\right )} + 4 \, a b c^{2} f^{2} {\rm Ei}\left (-\frac {d f x + c f}{d}\right ) e^{\left (\frac {c f}{d} - e\right )} + 4 \, a b c^{2} f^{2} {\rm Ei}\left (\frac {d f x + c f}{d}\right ) e^{\left (-\frac {c f}{d} + e\right )} + 4 \, b^{2} c^{2} f^{2} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (-\frac {2 \, c f}{d} + 2 \, e\right )} - 2 \, b^{2} d^{2} f x e^{\left (2 \, f x + 2 \, e\right )} - 4 \, a b d^{2} f x e^{\left (f x + e\right )} + 4 \, a b d^{2} f x e^{\left (-f x - e\right )} + 2 \, b^{2} d^{2} f x e^{\left (-2 \, f x - 2 \, e\right )} - 2 \, b^{2} c d f e^{\left (2 \, f x + 2 \, e\right )} - 4 \, a b c d f e^{\left (f x + e\right )} + 4 \, a b c d f e^{\left (-f x - e\right )} + 2 \, b^{2} c d f e^{\left (-2 \, f x - 2 \, e\right )} - b^{2} d^{2} e^{\left (2 \, f x + 2 \, e\right )} - 4 \, a b d^{2} e^{\left (f x + e\right )} - 4 \, a b d^{2} e^{\left (-f x - e\right )} - b^{2} d^{2} e^{\left (-2 \, f x - 2 \, e\right )} - 4 \, a^{2} d^{2} - 2 \, b^{2} d^{2}}{8 \, {\left (d^{5} x^{2} + 2 \, c d^{4} x + c^{2} d^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.38, size = 626, normalized size = 2.59 \[ \frac {f^{3} a b \,{\mathrm e}^{-f x -e} x}{2 d \left (d^{2} f^{2} x^{2}+2 c d \,f^{2} x +c^{2} f^{2}\right )}+\frac {f^{3} a b \,{\mathrm e}^{-f x -e} c}{2 d^{2} \left (d^{2} f^{2} x^{2}+2 c d \,f^{2} x +c^{2} f^{2}\right )}-\frac {f^{2} a b \,{\mathrm e}^{-f x -e}}{2 d \left (d^{2} f^{2} x^{2}+2 c d \,f^{2} x +c^{2} f^{2}\right )}-\frac {f^{2} a b \,{\mathrm e}^{\frac {c f -d e}{d}} \Ei \left (1, f x +e +\frac {c f -d e}{d}\right )}{2 d^{3}}-\frac {a b \,f^{2} {\mathrm e}^{f x +e}}{2 d^{3} \left (\frac {c f}{d}+f x \right )^{2}}-\frac {a b \,f^{2} {\mathrm e}^{f x +e}}{2 d^{3} \left (\frac {c f}{d}+f x \right )}-\frac {a b \,f^{2} {\mathrm e}^{-\frac {c f -d e}{d}} \Ei \left (1, -f x -e -\frac {c f -d e}{d}\right )}{2 d^{3}}-\frac {a^{2}}{2 d \left (d x +c \right )^{2}}-\frac {b^{2}}{4 d \left (d x +c \right )^{2}}+\frac {f^{3} b^{2} {\mathrm e}^{-2 f x -2 e} x}{4 d \left (d^{2} f^{2} x^{2}+2 c d \,f^{2} x +c^{2} f^{2}\right )}+\frac {f^{3} b^{2} {\mathrm e}^{-2 f x -2 e} c}{4 d^{2} \left (d^{2} f^{2} x^{2}+2 c d \,f^{2} x +c^{2} f^{2}\right )}-\frac {f^{2} b^{2} {\mathrm e}^{-2 f x -2 e}}{8 d \left (d^{2} f^{2} x^{2}+2 c d \,f^{2} x +c^{2} f^{2}\right )}-\frac {f^{2} b^{2} {\mathrm e}^{\frac {2 c f -2 d e}{d}} \Ei \left (1, 2 f x +2 e +\frac {2 c f -2 d e}{d}\right )}{2 d^{3}}-\frac {b^{2} f^{2} {\mathrm e}^{2 f x +2 e}}{8 d^{3} \left (\frac {c f}{d}+f x \right )^{2}}-\frac {b^{2} f^{2} {\mathrm e}^{2 f x +2 e}}{4 d^{3} \left (\frac {c f}{d}+f x \right )}-\frac {b^{2} f^{2} {\mathrm e}^{-\frac {2 \left (c f -d e \right )}{d}} \Ei \left (1, -2 f x -2 e -\frac {2 \left (c f -d e \right )}{d}\right )}{2 d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 201, normalized size = 0.83 \[ -\frac {1}{4} \, b^{2} {\left (\frac {1}{d^{3} x^{2} + 2 \, c d^{2} x + c^{2} d} + \frac {e^{\left (-2 \, e + \frac {2 \, c f}{d}\right )} E_{3}\left (\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )}^{2} d} + \frac {e^{\left (2 \, e - \frac {2 \, c f}{d}\right )} E_{3}\left (-\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )}^{2} d}\right )} - a b {\left (\frac {e^{\left (-e + \frac {c f}{d}\right )} E_{3}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )}^{2} d} + \frac {e^{\left (e - \frac {c f}{d}\right )} E_{3}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )}^{2} d}\right )} - \frac {a^{2}}{2 \, {\left (d^{3} x^{2} + 2 \, c d^{2} x + c^{2} d\right )}} \]
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 {{\left (a+b\,\mathrm {cosh}\left (e+f\,x\right )\right )}^2}{{\left (c+d\,x\right )}^3} \,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 {\left (a + b \cosh {\left (e + f x \right )}\right )^{2}}{\left (c + d x\right )^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________