Integrand size = 19, antiderivative size = 129 \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\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} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.368, Rules used = {5728, 5726, 3394, 12, 3384, 3379, 3382} \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\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} \]
[In]
[Out]
Rule 12
Rule 3379
Rule 3382
Rule 3384
Rule 3394
Rule 5726
Rule 5728
Rubi steps \begin{align*} \text {integral}& = \int \sinh ^2\left (\frac {c e+a f+(d e+b f) x}{c+d x}\right ) \, dx \\ & = -\frac {\text {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) \text {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) \text {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 ) \text {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 ) \text {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*}
Leaf count is larger than twice the leaf count of optimal. \(572\) vs. \(2(129)=258\).
Time = 3.56 (sec) , antiderivative size = 572, normalized size of antiderivative = 4.43 \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\frac {c d e^{-\frac {2 (c e+a f+d e x+b f x)}{c+d x}}+c d e^{\frac {2 (c e+a f+d e x+b f x)}{c+d x}}+2 d^2 x \cosh \left (2 \left (e+\frac {b f}{d}\right )\right ) \cosh \left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right )+2 d^2 x \sinh \left (2 \left (e+\frac {b f}{d}\right )\right ) \sinh \left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right )-2 \left (d^2 x+(b c-a d) f \text {Chi}\left (\frac {2 (b c-a d) f}{d (c+d x)}\right ) \left (\cosh \left (2 \left (e+\frac {b f}{d}\right )\right )-\sinh \left (2 \left (e+\frac {b f}{d}\right )\right )\right )-(b c-a d) f \text {Chi}\left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right ) \left (\cosh \left (2 \left (e+\frac {b f}{d}\right )\right )+\sinh \left (2 \left (e+\frac {b f}{d}\right )\right )\right )+b c 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 )-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 )-b c f \sinh \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 )+a d f \sinh \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 )-b c f \cosh \left (2 \left (e+\frac {b f}{d}\right )\right ) \text {Shi}\left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right )+a d f \cosh \left (2 \left (e+\frac {b f}{d}\right )\right ) \text {Shi}\left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right )-b c f \sinh \left (2 \left (e+\frac {b f}{d}\right )\right ) \text {Shi}\left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right )+a d f \sinh \left (2 \left (e+\frac {b f}{d}\right )\right ) \text {Shi}\left (\frac {2 (-b c f+a d f)}{d (c+d x)}\right )\right )}{4 d^2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(471\) vs. \(2(131)=262\).
Time = 9.18 (sec) , antiderivative size = 472, normalized size of antiderivative = 3.66
method | result | size |
risch | \(-\frac {x}{2}+\frac {{\mathrm e}^{-\frac {2 \left (b f x +d e x +a f +c e \right )}{d x +c}} a f}{\frac {4 d f a}{d x +c}-\frac {4 b c f}{d x +c}}-\frac {{\mathrm e}^{-\frac {2 \left (b f x +d e x +a f +c e \right )}{d x +c}} b c f}{4 d \left (\frac {d f a}{d x +c}-\frac {b c f}{d x +c}\right )}-\frac {{\mathrm e}^{-\frac {2 \left (f b +d e \right )}{d}} \operatorname {Ei}_{1}\left (\frac {2 a d f -2 b c f}{\left (d x +c \right ) d}\right ) a f}{2 d}+\frac {{\mathrm e}^{-\frac {2 \left (f b +d e \right )}{d}} \operatorname {Ei}_{1}\left (\frac {2 a d f -2 b c f}{\left (d x +c \right ) d}\right ) b c f}{2 d^{2}}+\frac {{\mathrm e}^{\frac {2 b f x +2 d e x +2 a f +2 c e}{d x +c}} a f}{4 d \left (\frac {f a}{d x +c}-\frac {b c f}{\left (d x +c \right ) d}\right )}-\frac {{\mathrm e}^{\frac {2 b f x +2 d e x +2 a f +2 c e}{d x +c}} b c f}{4 d^{2} \left (\frac {f a}{d x +c}-\frac {b c f}{\left (d x +c \right ) d}\right )}+\frac {{\mathrm e}^{\frac {2 f b +2 d e}{d}} \operatorname {Ei}_{1}\left (-\frac {2 \left (a d f -b c f \right )}{d \left (d x +c \right )}-\frac {2 \left (f b +d e \right )}{d}-\frac {2 \left (-f b -d e \right )}{d}\right ) a f}{2 d}-\frac {{\mathrm e}^{\frac {2 f b +2 d e}{d}} \operatorname {Ei}_{1}\left (-\frac {2 \left (a d f -b c f \right )}{d \left (d x +c \right )}-\frac {2 \left (f b +d e \right )}{d}-\frac {2 \left (-f b -d e \right )}{d}\right ) b c f}{2 d^{2}}\) | \(472\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 477 vs. \(2 (131) = 262\).
Time = 0.28 (sec) , antiderivative size = 477, normalized size of antiderivative = 3.70 \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=-\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 )}} \]
[In]
[Out]
Timed out. \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\int { \sinh \left (e + \frac {{\left (b x + a\right )} f}{d x + c}\right )^{2} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1596 vs. \(2 (131) = 262\).
Time = 22.53 (sec) , antiderivative size = 1596, normalized size of antiderivative = 12.37 \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \sinh ^2\left (e+\frac {f (a+b x)}{c+d x}\right ) \, dx=\int {\mathrm {sinh}\left (e+\frac {f\,\left (a+b\,x\right )}{c+d\,x}\right )}^2 \,d x \]
[In]
[Out]