Optimal. Leaf size=48 \[ \frac {5 \sinh (c+d x)}{16 d (5 \cosh (c+d x)+3)}-\frac {3 \tan ^{-1}\left (\frac {1}{2} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{32 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2664, 12, 2659, 206} \[ \frac {5 \sinh (c+d x)}{16 d (5 \cosh (c+d x)+3)}-\frac {3 \tan ^{-1}\left (\frac {1}{2} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{32 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 206
Rule 2659
Rule 2664
Rubi steps
\begin {align*} \int \frac {1}{(3+5 \cosh (c+d x))^2} \, dx &=\frac {5 \sinh (c+d x)}{16 d (3+5 \cosh (c+d x))}+\frac {1}{16} \int -\frac {3}{3+5 \cosh (c+d x)} \, dx\\ &=\frac {5 \sinh (c+d x)}{16 d (3+5 \cosh (c+d x))}-\frac {3}{16} \int \frac {1}{3+5 \cosh (c+d x)} \, dx\\ &=\frac {5 \sinh (c+d x)}{16 d (3+5 \cosh (c+d x))}+\frac {(3 i) \operatorname {Subst}\left (\int \frac {1}{8-2 x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{8 d}\\ &=-\frac {3 \tan ^{-1}\left (\frac {1}{2} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{32 d}+\frac {5 \sinh (c+d x)}{16 d (3+5 \cosh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 45, normalized size = 0.94 \[ \frac {\frac {10 \sinh (c+d x)}{5 \cosh (c+d x)+3}-3 \tan ^{-1}\left (\frac {1}{2} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{32 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.60, size = 147, normalized size = 3.06 \[ -\frac {3 \, {\left (5 \, \cosh \left (d x + c\right )^{2} + 2 \, {\left (5 \, \cosh \left (d x + c\right ) + 3\right )} \sinh \left (d x + c\right ) + 5 \, \sinh \left (d x + c\right )^{2} + 6 \, \cosh \left (d x + c\right ) + 5\right )} \arctan \left (\frac {5}{4} \, \cosh \left (d x + c\right ) + \frac {5}{4} \, \sinh \left (d x + c\right ) + \frac {3}{4}\right ) + 12 \, \cosh \left (d x + c\right ) + 12 \, \sinh \left (d x + c\right ) + 20}{32 \, {\left (5 \, d \cosh \left (d x + c\right )^{2} + 5 \, d \sinh \left (d x + c\right )^{2} + 6 \, d \cosh \left (d x + c\right ) + 2 \, {\left (5 \, d \cosh \left (d x + c\right ) + 3 \, d\right )} \sinh \left (d x + c\right ) + 5 \, d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 54, normalized size = 1.12 \[ -\frac {\frac {4 \, {\left (3 \, e^{\left (d x + c\right )} + 5\right )}}{5 \, e^{\left (2 \, d x + 2 \, c\right )} + 6 \, e^{\left (d x + c\right )} + 5} + 3 \, \arctan \left (\frac {5}{4} \, e^{\left (d x + c\right )} + \frac {3}{4}\right )}{32 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 48, normalized size = 1.00 \[ \frac {5 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{16 d \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )}-\frac {3 \arctan \left (\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{32 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 64, normalized size = 1.33 \[ \frac {3 \, \arctan \left (\frac {5}{4} \, e^{\left (-d x - c\right )} + \frac {3}{4}\right )}{32 \, d} + \frac {3 \, e^{\left (-d x - c\right )} + 5}{8 \, d {\left (6 \, e^{\left (-d x - c\right )} + 5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 5\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.94, size = 74, normalized size = 1.54 \[ -\frac {\frac {3\,{\mathrm {e}}^{c+d\,x}}{8\,d}+\frac {5}{8\,d}}{6\,{\mathrm {e}}^{c+d\,x}+5\,{\mathrm {e}}^{2\,c+2\,d\,x}+5}-\frac {3\,\mathrm {atan}\left (\left (\frac {3}{4\,d}+\frac {5\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c}{4\,d}\right )\,\sqrt {d^2}\right )}{32\,\sqrt {d^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.52, size = 316, normalized size = 6.58 \[ \begin {cases} \frac {x}{\left (5 \cosh {\left (\log {\left (- \frac {3}{5} - \frac {4 i}{5} \right )} \right )} + 3\right )^{2}} & \text {for}\: c = \log {\left (- \frac {3}{5} - \frac {4 i}{5} \right )} \wedge d = 0 \\- \frac {\log {\left (- 3 e^{- d x} - 4 i e^{- d x} \right )}}{25 d \cosh ^{2}{\left (d x + \log {\left (- 3 e^{- d x} - 4 i e^{- d x} \right )} - \log {\relax (5 )} \right )} + 30 d \cosh {\left (d x + \log {\left (- 3 e^{- d x} - 4 i e^{- d x} \right )} - \log {\relax (5 )} \right )} + 9 d} + \frac {\log {\relax (5 )}}{25 d \cosh ^{2}{\left (d x + \log {\left (- 3 e^{- d x} - 4 i e^{- d x} \right )} - \log {\relax (5 )} \right )} + 30 d \cosh {\left (d x + \log {\left (- 3 e^{- d x} - 4 i e^{- d x} \right )} - \log {\relax (5 )} \right )} + 9 d} & \text {for}\: c = \log {\left (\frac {\left (-3 - 4 i\right ) e^{- d x}}{5} \right )} \\\frac {x}{\left (5 \cosh {\relax (c )} + 3\right )^{2}} & \text {for}\: d = 0 \\- \frac {3 \tanh ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} \operatorname {atan}{\left (\frac {\tanh {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )}}{32 d \tanh ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 128 d} + \frac {10 \tanh {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{32 d \tanh ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 128 d} - \frac {12 \operatorname {atan}{\left (\frac {\tanh {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2} \right )}}{32 d \tanh ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 128 d} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________