Optimal. Leaf size=129 \[ \frac{f (b c-a d) \sinh \left (2 \left (\frac{b f}{d}+e\right )\right ) \text{Chi}\left (\frac{2 (b c-a d) f}{d (c+d x)}\right )}{d^2}-\frac{f (b c-a d) \cosh \left (2 \left (\frac{b f}{d}+e\right )\right ) \text{Shi}\left (\frac{2 (b c-a d) f}{d (c+d x)}\right )}{d^2}+\frac{(c+d x) \sinh ^2\left (\frac{a f+b f x+c e+d e x}{c+d x}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.279059, antiderivative size = 129, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.368, Rules used = {5609, 5607, 3313, 12, 3303, 3298, 3301} \[ \frac{f (b c-a d) \sinh \left (2 \left (\frac{b f}{d}+e\right )\right ) \text{Chi}\left (\frac{2 (b c-a d) f}{d (c+d x)}\right )}{d^2}-\frac{f (b c-a d) \cosh \left (2 \left (\frac{b f}{d}+e\right )\right ) \text{Shi}\left (\frac{2 (b c-a d) f}{d (c+d x)}\right )}{d^2}+\frac{(c+d x) \sinh ^2\left (\frac{a f+b f x+c e+d e x}{c+d x}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5609
Rule 5607
Rule 3313
Rule 12
Rule 3303
Rule 3298
Rule 3301
Rubi steps
\begin{align*} \int \sinh ^2\left (e+\frac{f (a+b x)}{c+d x}\right ) \, dx &=\int \sinh ^2\left (\frac{c e+a f+(d e+b f) x}{c+d x}\right ) \, dx\\ &=-\frac{\operatorname{Subst}\left (\int \frac{\sinh ^2\left (\frac{d e+b f}{d}-\frac{(-d (c e+a f)+c (d e+b f)) x}{d}\right )}{x^2} \, dx,x,\frac{1}{c+d x}\right )}{d}\\ &=\frac{(c+d x) \sinh ^2\left (\frac{c e+a f+d e x+b f x}{c+d x}\right )}{d}-\frac{(2 i (b c-a d) f) \operatorname{Subst}\left (\int \frac{i \sinh \left (2 \left (e+\frac{b f}{d}\right )-\frac{2 (b c-a d) f x}{d}\right )}{2 x} \, dx,x,\frac{1}{c+d x}\right )}{d^2}\\ &=\frac{(c+d x) \sinh ^2\left (\frac{c e+a f+d e x+b f x}{c+d x}\right )}{d}+\frac{((b c-a d) f) \operatorname{Subst}\left (\int \frac{\sinh \left (2 \left (e+\frac{b f}{d}\right )-\frac{2 (b c-a d) f x}{d}\right )}{x} \, dx,x,\frac{1}{c+d x}\right )}{d^2}\\ &=\frac{(c+d x) \sinh ^2\left (\frac{c e+a f+d e x+b f x}{c+d x}\right )}{d}-\frac{\left ((b c-a d) f \cosh \left (2 \left (e+\frac{b f}{d}\right )\right )\right ) \operatorname{Subst}\left (\int \frac{\sinh \left (\frac{2 (b c-a d) f x}{d}\right )}{x} \, dx,x,\frac{1}{c+d x}\right )}{d^2}+\frac{\left ((b c-a d) f \sinh \left (2 \left (e+\frac{b f}{d}\right )\right )\right ) \operatorname{Subst}\left (\int \frac{\cosh \left (\frac{2 (b c-a d) f x}{d}\right )}{x} \, dx,x,\frac{1}{c+d x}\right )}{d^2}\\ &=\frac{(b c-a d) f \text{Chi}\left (\frac{2 (b c-a d) f}{d (c+d x)}\right ) \sinh \left (2 \left (e+\frac{b f}{d}\right )\right )}{d^2}+\frac{(c+d x) \sinh ^2\left (\frac{c e+a f+d e x+b f x}{c+d x}\right )}{d}-\frac{(b c-a d) f \cosh \left (2 \left (e+\frac{b f}{d}\right )\right ) \text{Shi}\left (\frac{2 (b c-a d) f}{d (c+d x)}\right )}{d^2}\\ \end{align*}
Mathematica [A] time = 2.00019, size = 136, normalized size = 1.05 \[ \frac{2 f (b c-a d) \sinh \left (2 \left (\frac{b f}{d}+e\right )\right ) \text{Chi}\left (\frac{2 (a d f-b c f)}{d (c+d x)}\right )+2 f (b c-a d) \cosh \left (2 \left (\frac{b f}{d}+e\right )\right ) \text{Shi}\left (\frac{2 (a d f-b c f)}{d (c+d x)}\right )+d \left ((c+d x) \cosh \left (\frac{2 (a f+b f x+c e+d e x)}{c+d x}\right )-d x\right )}{2 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.097, size = 468, normalized size = 3.6 \begin{align*} -{\frac{x}{2}}+{\frac{af}{4}{{\rm e}^{-2\,{\frac{bfx+dex+af+ce}{dx+c}}}} \left ({\frac{adf}{dx+c}}-{\frac{bcf}{dx+c}} \right ) ^{-1}}-{\frac{bcf}{4\,d}{{\rm e}^{-2\,{\frac{bfx+dex+af+ce}{dx+c}}}} \left ({\frac{adf}{dx+c}}-{\frac{bcf}{dx+c}} \right ) ^{-1}}-{\frac{af}{2\,d}{{\rm e}^{-2\,{\frac{bf+de}{d}}}}{\it Ei} \left ( 1,2\,{\frac{f \left ( da-cb \right ) }{d \left ( dx+c \right ) }} \right ) }+{\frac{bcf}{2\,{d}^{2}}{{\rm e}^{-2\,{\frac{bf+de}{d}}}}{\it Ei} \left ( 1,2\,{\frac{f \left ( da-cb \right ) }{d \left ( dx+c \right ) }} \right ) }+{\frac{af}{4\,d}{{\rm e}^{2\,{\frac{bfx+dex+af+ce}{dx+c}}}} \left ({\frac{af}{dx+c}}-{\frac{bcf}{d \left ( dx+c \right ) }} \right ) ^{-1}}-{\frac{bcf}{4\,{d}^{2}}{{\rm e}^{2\,{\frac{bfx+dex+af+ce}{dx+c}}}} \left ({\frac{af}{dx+c}}-{\frac{bcf}{d \left ( dx+c \right ) }} \right ) ^{-1}}+{\frac{af}{2\,d}{{\rm e}^{2\,{\frac{bf+de}{d}}}}{\it Ei} \left ( 1,-2\,{\frac{f \left ( da-cb \right ) }{d \left ( dx+c \right ) }}-2\,{\frac{bf+de}{d}}-2\,{\frac{-bf-de}{d}} \right ) }-{\frac{bcf}{2\,{d}^{2}}{{\rm e}^{2\,{\frac{bf+de}{d}}}}{\it Ei} \left ( 1,-2\,{\frac{f \left ( da-cb \right ) }{d \left ( dx+c \right ) }}-2\,{\frac{bf+de}{d}}-2\,{\frac{-bf-de}{d}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{1}{2} \, x + \frac{1}{4} \, \int e^{\left (\frac{2 \, b c f}{d^{2} x + c d} - 2 \, e - \frac{2 \, a f}{d x + c} - \frac{2 \, b f}{d}\right )}\,{d x} + \frac{1}{4} \, \int e^{\left (-\frac{2 \, b c f}{d^{2} x + c d} + 2 \, e + \frac{2 \, a f}{d x + c} + \frac{2 \, b f}{d}\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.31664, size = 1018, normalized size = 7.89 \begin{align*} -\frac{d^{2} x -{\left (d^{2} x + c d\right )} \cosh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2} +{\left ({\left (b c - a d\right )} f{\rm Ei}\left (-\frac{2 \,{\left (b c - a d\right )} f}{d^{2} x + c d}\right ) \cosh \left (\frac{2 \,{\left (d e + b f\right )}}{d}\right ) - d^{2} x - c d\right )} \sinh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2} -{\left ({\left (b c - a d\right )} f{\rm Ei}\left (-\frac{2 \,{\left (b c - a d\right )} f}{d^{2} x + c d}\right ) \cosh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2} -{\left (b c - a d\right )} f{\rm Ei}\left (\frac{2 \,{\left (b c - a d\right )} f}{d^{2} x + c d}\right )\right )} \cosh \left (\frac{2 \,{\left (d e + b f\right )}}{d}\right ) -{\left ({\left (b c - a d\right )} f{\rm Ei}\left (-\frac{2 \,{\left (b c - a d\right )} f}{d^{2} x + c d}\right ) \cosh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2} -{\left (b c - a d\right )} f{\rm Ei}\left (-\frac{2 \,{\left (b c - a d\right )} f}{d^{2} x + c d}\right ) \sinh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2} +{\left (b c - a d\right )} f{\rm Ei}\left (\frac{2 \,{\left (b c - a d\right )} f}{d^{2} x + c d}\right )\right )} \sinh \left (\frac{2 \,{\left (d e + b f\right )}}{d}\right )}{2 \,{\left (d^{2} \cosh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2} - d^{2} \sinh \left (\frac{c e + a f +{\left (d e + b f\right )} x}{d x + c}\right )^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sinh \left (e + \frac{{\left (b x + a\right )} f}{d x + c}\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]