Integrand size = 27, antiderivative size = 12 \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=\frac {\cosh (x)}{b-a \sinh (x)} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3369, 2833, 8} \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=\frac {\cosh (x)}{b-a \sinh (x)} \]
[In]
[Out]
Rule 8
Rule 2833
Rule 3369
Rubi steps \begin{align*} \text {integral}& = -\left (\left (4 a^2\right ) \int \frac {a+b \sinh (x)}{\left (2 i a b-2 i a^2 \sinh (x)\right )^2} \, dx\right ) \\ & = \frac {\cosh (x)}{b-a \sinh (x)}-\frac {\int 0 \, dx}{a^2+b^2} \\ & = \frac {\cosh (x)}{b-a \sinh (x)} \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.17 \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=-\frac {\cosh (x)}{-b+a \sinh (x)} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(27\) vs. \(2(12)=24\).
Time = 0.19 (sec) , antiderivative size = 28, normalized size of antiderivative = 2.33
method | result | size |
parallelrisch | \(\frac {a \sinh \left (x \right )-b \cosh \left (x \right )-b}{\left (a \sinh \left (x \right )-b \right ) b}\) | \(28\) |
risch | \(-\frac {2 \left ({\mathrm e}^{x} b +a \right )}{a \left ({\mathrm e}^{2 x} a -2 \,{\mathrm e}^{x} b -a \right )}\) | \(29\) |
default | \(-\frac {2 \left (-\frac {a \tanh \left (\frac {x}{2}\right )}{2 b}+\frac {1}{2}\right )}{\frac {\tanh \left (\frac {x}{2}\right )^{2} b}{2}+a \tanh \left (\frac {x}{2}\right )-\frac {b}{2}}\) | \(36\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 57 vs. \(2 (14) = 28\).
Time = 0.25 (sec) , antiderivative size = 57, normalized size of antiderivative = 4.75 \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=-\frac {2 \, {\left (b \cosh \left (x\right ) + b \sinh \left (x\right ) + a\right )}}{a^{2} \cosh \left (x\right )^{2} + a^{2} \sinh \left (x\right )^{2} - 2 \, a b \cosh \left (x\right ) - a^{2} + 2 \, {\left (a^{2} \cosh \left (x\right ) - a b\right )} \sinh \left (x\right )} \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 225 vs. \(2 (14) = 28\).
Time = 0.28 (sec) , antiderivative size = 225, normalized size of antiderivative = 18.75 \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=b {\left (\frac {a \log \left (\frac {a e^{\left (-x\right )} + b - \sqrt {a^{2} + b^{2}}}{a e^{\left (-x\right )} + b + \sqrt {a^{2} + b^{2}}}\right )}{{\left (a^{2} + b^{2}\right )}^{\frac {3}{2}}} + \frac {2 \, {\left (b^{2} e^{\left (-x\right )} - a b\right )}}{a^{4} + a^{2} b^{2} - 2 \, {\left (a^{3} b + a b^{3}\right )} e^{\left (-x\right )} - {\left (a^{4} + a^{2} b^{2}\right )} e^{\left (-2 \, x\right )}}\right )} - a {\left (\frac {b \log \left (\frac {a e^{\left (-x\right )} + b - \sqrt {a^{2} + b^{2}}}{a e^{\left (-x\right )} + b + \sqrt {a^{2} + b^{2}}}\right )}{{\left (a^{2} + b^{2}\right )}^{\frac {3}{2}}} - \frac {2 \, {\left (b e^{\left (-x\right )} - a\right )}}{a^{3} + a b^{2} - 2 \, {\left (a^{2} b + b^{3}\right )} e^{\left (-x\right )} - {\left (a^{3} + a b^{2}\right )} e^{\left (-2 \, x\right )}}\right )} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 28, normalized size of antiderivative = 2.33 \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=-\frac {2 \, {\left (b e^{x} + a\right )}}{{\left (a e^{\left (2 \, x\right )} - 2 \, b e^{x} - a\right )} a} \]
[In]
[Out]
Time = 2.66 (sec) , antiderivative size = 48, normalized size of antiderivative = 4.00 \[ \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx=\frac {\frac {2\,{\mathrm {e}}^x\,\left (a^3\,b+a\,b^3\right )}{a\,\left (a^3+a\,b^2\right )}+2}{a+2\,b\,{\mathrm {e}}^x-a\,{\mathrm {e}}^{2\,x}} \]
[In]
[Out]