Optimal. Leaf size=20 \[ -e^x+\frac {e^{2 x}}{2}+e^x x \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 7, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.438, Rules used = {5767, 6874,
2207, 2225, 2320, 12, 14} \begin {gather*} e^x x-e^x+\frac {e^{2 x}}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2207
Rule 2225
Rule 2320
Rule 5767
Rule 6874
Rubi steps
\begin {align*} \int \frac {x+\cosh (x)+\sinh (x)}{\cosh (x)-\sinh (x)} \, dx &=\int e^x (x+\cosh (x)+\sinh (x)) \, dx\\ &=\int \left (e^x x+e^x \cosh (x)+e^x \sinh (x)\right ) \, dx\\ &=\int e^x x \, dx+\int e^x \cosh (x) \, dx+\int e^x \sinh (x) \, dx\\ &=e^x x-\int e^x \, dx+\text {Subst}\left (\int \frac {-1+x^2}{2 x} \, dx,x,e^x\right )+\text {Subst}\left (\int \frac {1+x^2}{2 x} \, dx,x,e^x\right )\\ &=-e^x+e^x x+\frac {1}{2} \text {Subst}\left (\int \frac {-1+x^2}{x} \, dx,x,e^x\right )+\frac {1}{2} \text {Subst}\left (\int \frac {1+x^2}{x} \, dx,x,e^x\right )\\ &=-e^x+e^x x+\frac {1}{2} \text {Subst}\left (\int \left (-\frac {1}{x}+x\right ) \, dx,x,e^x\right )+\frac {1}{2} \text {Subst}\left (\int \left (\frac {1}{x}+x\right ) \, dx,x,e^x\right )\\ &=-e^x+\frac {e^{2 x}}{2}+e^x x\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 23, normalized size = 1.15 \begin {gather*} \frac {1}{2} \cosh (2 x)+(-1+x) \sinh (x)+\cosh (x) (-1+x+\sinh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 16, normalized size = 0.80
method | result | size |
risch | \(\left (-1+x \right ) {\mathrm e}^{x}+\frac {{\mathrm e}^{2 x}}{2}\) | \(14\) |
default | \(\frac {\sinh \left (x \right )+x -1}{\cosh \left (x \right )-\sinh \left (x \right )}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.73, size = 13, normalized size = 0.65 \begin {gather*} {\left (x - 1\right )} e^{x} + \frac {1}{2} \, e^{\left (2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.54, size = 20, normalized size = 1.00 \begin {gather*} \frac {2 \, x + \cosh \left (x\right ) + \sinh \left (x\right ) - 2}{2 \, {\left (\cosh \left (x\right ) - \sinh \left (x\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.18, size = 26, normalized size = 1.30 \begin {gather*} \frac {x}{- \sinh {\left (x \right )} + \cosh {\left (x \right )}} + \frac {\sinh {\left (x \right )}}{- \sinh {\left (x \right )} + \cosh {\left (x \right )}} - \frac {1}{- \sinh {\left (x \right )} + \cosh {\left (x \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 11, normalized size = 0.55 \begin {gather*} \frac {1}{2} \, {\left (2 \, x + e^{x} - 2\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 16, normalized size = 0.80 \begin {gather*} {\mathrm {e}}^x\,\left (x+\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________