Optimal. Leaf size=121 \[ -\frac {(A b-a B) \sinh (d+e x)}{e \left (a^2-b^2\right ) (a+b \cosh (d+e x))}+\frac {2 (a A-b B) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh \left (\frac {1}{2} (d+e x)\right )}{\sqrt {a+b}}\right )}{e (a-b)^{3/2} (a+b)^{3/2}}-\frac {C}{b e (a+b \cosh (d+e x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {4377, 2754, 12, 2659, 205, 2668, 32} \[ -\frac {(A b-a B) \sinh (d+e x)}{e \left (a^2-b^2\right ) (a+b \cosh (d+e x))}+\frac {2 (a A-b B) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh \left (\frac {1}{2} (d+e x)\right )}{\sqrt {a+b}}\right )}{e (a-b)^{3/2} (a+b)^{3/2}}-\frac {C}{b e (a+b \cosh (d+e x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 32
Rule 205
Rule 2659
Rule 2668
Rule 2754
Rule 4377
Rubi steps
\begin {align*} \int \frac {A+B \cosh (d+e x)+C \sinh (d+e x)}{(a+b \cosh (d+e x))^2} \, dx &=C \int \frac {\sinh (d+e x)}{(a+b \cosh (d+e x))^2} \, dx+\int \frac {A+B \cosh (d+e x)}{(a+b \cosh (d+e x))^2} \, dx\\ &=-\frac {(A b-a B) \sinh (d+e x)}{\left (a^2-b^2\right ) e (a+b \cosh (d+e x))}+\frac {\int \frac {-a A+b B}{a+b \cosh (d+e x)} \, dx}{-a^2+b^2}+\frac {C \operatorname {Subst}\left (\int \frac {1}{(a+x)^2} \, dx,x,b \cosh (d+e x)\right )}{b e}\\ &=-\frac {C}{b e (a+b \cosh (d+e x))}-\frac {(A b-a B) \sinh (d+e x)}{\left (a^2-b^2\right ) e (a+b \cosh (d+e x))}+\frac {(a A-b B) \int \frac {1}{a+b \cosh (d+e x)} \, dx}{a^2-b^2}\\ &=-\frac {C}{b e (a+b \cosh (d+e x))}-\frac {(A b-a B) \sinh (d+e x)}{\left (a^2-b^2\right ) e (a+b \cosh (d+e x))}-\frac {(2 i (a A-b B)) \operatorname {Subst}\left (\int \frac {1}{a+b+(a-b) x^2} \, dx,x,\tan \left (\frac {1}{2} (i d+i e x)\right )\right )}{\left (a^2-b^2\right ) e}\\ &=\frac {2 (a A-b B) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh \left (\frac {1}{2} (d+e x)\right )}{\sqrt {a+b}}\right )}{(a-b)^{3/2} (a+b)^{3/2} e}-\frac {C}{b e (a+b \cosh (d+e x))}-\frac {(A b-a B) \sinh (d+e x)}{\left (a^2-b^2\right ) e (a+b \cosh (d+e x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.45, size = 115, normalized size = 0.95 \[ \frac {\frac {C \left (b^2-a^2\right )-b (A b-a B) \sinh (d+e x)}{b (a-b) (a+b) (a+b \cosh (d+e x))}+\frac {2 (a A-b B) \tan ^{-1}\left (\frac {(a-b) \tanh \left (\frac {1}{2} (d+e x)\right )}{\sqrt {b^2-a^2}}\right )}{\left (b^2-a^2\right )^{3/2}}}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.75, size = 1044, normalized size = 8.63 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 161, normalized size = 1.33 \[ 2 \, {\left (\frac {{\left (A a - B b\right )} \arctan \left (\frac {b e^{\left (x e + d\right )} + a}{\sqrt {-a^{2} + b^{2}}}\right )}{{\left (a^{2} - b^{2}\right )} \sqrt {-a^{2} + b^{2}}} - \frac {B a^{2} e^{\left (x e + d\right )} + C a^{2} e^{\left (x e + d\right )} - A a b e^{\left (x e + d\right )} - C b^{2} e^{\left (x e + d\right )} + B a b - A b^{2}}{{\left (a^{2} b - b^{3}\right )} {\left (b e^{\left (2 \, x e + 2 \, d\right )} + 2 \, a e^{\left (x e + d\right )} + b\right )}}\right )} e^{\left (-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.17, size = 144, normalized size = 1.19 \[ \frac {-\frac {2 \left (-\frac {\left (A b -a B \right ) \tanh \left (\frac {e x}{2}+\frac {d}{2}\right )}{a^{2}-b^{2}}+\frac {C}{a -b}\right )}{a \left (\tanh ^{2}\left (\frac {e x}{2}+\frac {d}{2}\right )\right )-\left (\tanh ^{2}\left (\frac {e x}{2}+\frac {d}{2}\right )\right ) b -a -b}+\frac {2 \left (A a -B b \right ) \arctanh \left (\frac {\left (a -b \right ) \tanh \left (\frac {e x}{2}+\frac {d}{2}\right )}{\sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{\left (a +b \right ) \left (a -b \right ) \sqrt {\left (a +b \right ) \left (a -b \right )}}}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.59, size = 301, normalized size = 2.49 \[ \frac {\frac {2\,\left (A\,b^3-B\,a\,b^2\right )}{b\,e\,\left (a^2\,b-b^3\right )}+\frac {2\,{\mathrm {e}}^{d+e\,x}\,\left (C\,b^4-B\,a^2\,b^2-C\,a^2\,b^2+A\,a\,b^3\right )}{b^2\,e\,\left (a^2\,b-b^3\right )}}{b+2\,a\,{\mathrm {e}}^{d+e\,x}+b\,{\mathrm {e}}^{2\,d+2\,e\,x}}+\frac {\ln \left (-\frac {2\,{\mathrm {e}}^{d+e\,x}\,\left (A\,a-B\,b\right )}{b\,\left (a^2-b^2\right )}-\frac {2\,\left (A\,a-B\,b\right )\,\left (b+a\,{\mathrm {e}}^{d+e\,x}\right )}{b\,{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}}\right )\,\left (A\,a-B\,b\right )}{e\,{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}}-\frac {\ln \left (\frac {2\,\left (A\,a-B\,b\right )\,\left (b+a\,{\mathrm {e}}^{d+e\,x}\right )}{b\,{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}}-\frac {2\,{\mathrm {e}}^{d+e\,x}\,\left (A\,a-B\,b\right )}{b\,\left (a^2-b^2\right )}\right )\,\left (A\,a-B\,b\right )}{e\,{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}} \]
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]
________________________________________________________________________________________