Optimal. Leaf size=12 \[ \frac {\cosh (x)}{b-a \sinh (x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3288, 2754, 8} \[ \frac {\cosh (x)}{b-a \sinh (x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2754
Rule 3288
Rubi steps
\begin {align*} \int \frac {a+b \sinh (x)}{b^2-2 a b \sinh (x)+a^2 \sinh ^2(x)} \, dx &=-\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*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 14, normalized size = 1.17 \[ -\frac {\cosh (x)}{a \sinh (x)-b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 57, normalized size = 4.75 \[ -\frac {2 \, {\left (b \cosh \relax (x) + b \sinh \relax (x) + a\right )}}{a^{2} \cosh \relax (x)^{2} + a^{2} \sinh \relax (x)^{2} - 2 \, a b \cosh \relax (x) - a^{2} + 2 \, {\left (a^{2} \cosh \relax (x) - a b\right )} \sinh \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 28, normalized size = 2.33 \[ -\frac {2 \, {\left (b e^{x} + a\right )}}{{\left (a e^{\left (2 \, x\right )} - 2 \, b e^{x} - a\right )} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.17, size = 36, normalized size = 3.00 \[ -\frac {2 \left (-\frac {a \tanh \left (\frac {x}{2}\right )}{b}+1\right )}{\left (\tanh ^{2}\left (\frac {x}{2}\right )\right ) b +2 a \tanh \left (\frac {x}{2}\right )-b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.42, size = 225, normalized size = 18.75 \[ 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 )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.91, size = 48, normalized size = 4.00 \[ \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}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________