Optimal. Leaf size=100 \[ \frac {c \cosh (x)+b \sinh (x)}{3 \sqrt {b^2-c^2} \left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right )^2}-\frac {c+\sqrt {b^2-c^2} \sinh (x)}{3 c \sqrt {b^2-c^2} (c \cosh (x)+b \sinh (x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3195, 3193}
\begin {gather*} \frac {b \sinh (x)+c \cosh (x)}{3 \sqrt {b^2-c^2} \left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right )^2}-\frac {\sqrt {b^2-c^2} \sinh (x)+c}{3 c \sqrt {b^2-c^2} (b \sinh (x)+c \cosh (x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3193
Rule 3195
Rubi steps
\begin {align*} \int \frac {1}{\left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right )^2} \, dx &=\frac {c \cosh (x)+b \sinh (x)}{3 \sqrt {b^2-c^2} \left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right )^2}+\frac {\int \frac {1}{\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)} \, dx}{3 \sqrt {b^2-c^2}}\\ &=\frac {c \cosh (x)+b \sinh (x)}{3 \sqrt {b^2-c^2} \left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right )^2}-\frac {c+\sqrt {b^2-c^2} \sinh (x)}{3 c \sqrt {b^2-c^2} (c \cosh (x)+b \sinh (x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 68, normalized size = 0.68 \begin {gather*} -\frac {-2 c \sqrt {b^2-c^2}+2 b c \cosh ^3(x)+2 c^2 \sinh (x)+c^2 \cosh ^2(x) \sinh (x)+b^2 \sinh ^3(x)}{3 c (c \cosh (x)+b \sinh (x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(216\) vs.
\(2(91)=182\).
time = 2.06, size = 217, normalized size = 2.17
method | result | size |
risch | \(-\frac {2 \left (3 \,{\mathrm e}^{x} b +3 c \,{\mathrm e}^{x}+\sqrt {b^{2}-c^{2}}\right )}{3 \left ({\mathrm e}^{x} b +c \,{\mathrm e}^{x}+\sqrt {b^{2}-c^{2}}\right )^{3}}\) | \(47\) |
default | \(\frac {2 \left (\sqrt {b^{2}-c^{2}}+b \right ) \left (\frac {\left (\sqrt {b^{2}-c^{2}}+b \right ) \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{c^{2}}+\frac {\left (2 b^{2}-c^{2}+2 \sqrt {b^{2}-c^{2}}\, b \right ) \tanh \left (\frac {x}{2}\right )}{c^{3}}+\frac {\frac {4 \sqrt {b^{2}-c^{2}}\, b^{2}}{3}-\frac {2 \sqrt {b^{2}-c^{2}}\, c^{2}}{3}+\frac {4 b^{3}}{3}-\frac {4 b \,c^{2}}{3}}{c^{4}}\right )}{c^{2} \left (\tanh ^{2}\left (\frac {x}{2}\right )+\frac {2 \sqrt {\left (b -c \right ) \left (b +c \right )}\, \tanh \left (\frac {x}{2}\right )}{c}+\frac {2 b \tanh \left (\frac {x}{2}\right )}{c}+\frac {2 \sqrt {\left (b -c \right ) \left (b +c \right )}\, b}{c^{2}}+\frac {2 b^{2}}{c^{2}}-1\right ) \left (\tanh \left (\frac {x}{2}\right )+\frac {\sqrt {\left (b -c \right ) \left (b +c \right )}}{c}+\frac {b}{c}\right )}\) | \(217\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 660 vs.
\(2 (88) = 176\).
time = 0.42, size = 660, normalized size = 6.60 \begin {gather*} -\frac {2 \, {\left (3 \, {\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \left (x\right )^{4} + 12 \, {\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \left (x\right ) \sinh \left (x\right )^{3} + 3 \, {\left (b^{2} + 2 \, b c + c^{2}\right )} \sinh \left (x\right )^{4} + 6 \, {\left (b^{2} - c^{2}\right )} \cosh \left (x\right )^{2} + 6 \, {\left (3 \, {\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \left (x\right )^{2} + b^{2} - c^{2}\right )} \sinh \left (x\right )^{2} - b^{2} + 2 \, b c - c^{2} + 12 \, {\left ({\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \left (x\right )^{3} + {\left (b^{2} - c^{2}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right ) - 8 \, {\left ({\left (b + c\right )} \cosh \left (x\right )^{3} + 3 \, {\left (b + c\right )} \cosh \left (x\right )^{2} \sinh \left (x\right ) + 3 \, {\left (b + c\right )} \cosh \left (x\right ) \sinh \left (x\right )^{2} + {\left (b + c\right )} \sinh \left (x\right )^{3}\right )} \sqrt {b^{2} - c^{2}}\right )}}{3 \, {\left ({\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \cosh \left (x\right )^{6} + 6 \, {\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \cosh \left (x\right ) \sinh \left (x\right )^{5} + {\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \sinh \left (x\right )^{6} - 3 \, {\left (b^{4} + 2 \, b^{3} c - 2 \, b c^{3} - c^{4}\right )} \cosh \left (x\right )^{4} - 3 \, {\left (b^{4} + 2 \, b^{3} c - 2 \, b c^{3} - c^{4} - 5 \, {\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{4} - b^{4} + 2 \, b^{3} c - 2 \, b c^{3} + c^{4} + 4 \, {\left (5 \, {\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \cosh \left (x\right )^{3} - 3 \, {\left (b^{4} + 2 \, b^{3} c - 2 \, b c^{3} - c^{4}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 3 \, {\left (b^{4} - 2 \, b^{2} c^{2} + c^{4}\right )} \cosh \left (x\right )^{2} + 3 \, {\left (5 \, {\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \cosh \left (x\right )^{4} + b^{4} - 2 \, b^{2} c^{2} + c^{4} - 6 \, {\left (b^{4} + 2 \, b^{3} c - 2 \, b c^{3} - c^{4}\right )} \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 6 \, {\left ({\left (b^{4} + 4 \, b^{3} c + 6 \, b^{2} c^{2} + 4 \, b c^{3} + c^{4}\right )} \cosh \left (x\right )^{5} - 2 \, {\left (b^{4} + 2 \, b^{3} c - 2 \, b c^{3} - c^{4}\right )} \cosh \left (x\right )^{3} + {\left (b^{4} - 2 \, b^{2} c^{2} + c^{4}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (b\,\mathrm {cosh}\left (x\right )+\sqrt {b^2-c^2}+c\,\mathrm {sinh}\left (x\right )\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________