Optimal. Leaf size=25 \[ -\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {e^{-x}+1}}{\sqrt {2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {2282, 1446, 1469, 627, 63, 206} \[ -\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {e^{-x}+1}}{\sqrt {2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 206
Rule 627
Rule 1446
Rule 1469
Rule 2282
Rubi steps
\begin {align*} \int \frac {\sqrt {1+e^{-x}}}{-e^{-x}+e^x} \, dx &=\operatorname {Subst}\left (\int \frac {\sqrt {1+\frac {1}{x}}}{-1+x^2} \, dx,x,e^x\right )\\ &=\operatorname {Subst}\left (\int \frac {\sqrt {1+\frac {1}{x}}}{\left (1-\frac {1}{x^2}\right ) x^2} \, dx,x,e^x\right )\\ &=-\operatorname {Subst}\left (\int \frac {\sqrt {1+x}}{1-x^2} \, dx,x,e^{-x}\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{(1-x) \sqrt {1+x}} \, dx,x,e^{-x}\right )\\ &=-\left (2 \operatorname {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\sqrt {1+e^{-x}}\right )\right )\\ &=-\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1+e^{-x}}}{\sqrt {2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.13, size = 112, normalized size = 4.48 \[ \frac {e^{x/2} \sqrt {e^{-x}+1} \left (\log \left (1-e^{x/2}\right )-\log \left (e^{x/2}+1\right )+\log \left (\sqrt {2} \sqrt {e^x+1}-e^{x/2}+1\right )-\log \left (\sqrt {2} \sqrt {e^x+1}+e^{x/2}+1\right )\right )}{\sqrt {2} \sqrt {e^x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.39, size = 34, normalized size = 1.36 \[ \frac {1}{2} \, \sqrt {2} \log \left (\frac {2 \, \sqrt {2} \sqrt {e^{x} + 1} e^{\left (\frac {1}{2} \, x\right )} - 3 \, e^{x} - 1}{e^{x} - 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.25, size = 75, normalized size = 3.00 \[ -\frac {1}{2} \, \sqrt {2} \log \left (\frac {\sqrt {2} - 1}{\sqrt {2} + 1}\right ) + \frac {1}{2} \, \sqrt {2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 2 \, \sqrt {e^{\left (2 \, x\right )} + e^{x}} - 2 \, e^{x} + 2 \right |}}{{\left | 2 \, \sqrt {2} + 2 \, \sqrt {e^{\left (2 \, x\right )} + e^{x}} - 2 \, e^{x} + 2 \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.03, size = 49, normalized size = 1.96 \[ -\frac {\sqrt {\left ({\mathrm e}^{x}+1\right ) {\mathrm e}^{-x}}\, \sqrt {2}\, \arctanh \left (\frac {\left (3 \,{\mathrm e}^{x}+1\right ) \sqrt {2}}{4 \sqrt {{\mathrm e}^{x}+{\mathrm e}^{2 x}}}\right ) {\mathrm e}^{x}}{2 \sqrt {\left ({\mathrm e}^{x}+1\right ) {\mathrm e}^{x}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.21, size = 36, normalized size = 1.44 \[ \frac {1}{2} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - \sqrt {e^{\left (-x\right )} + 1}}{\sqrt {2} + \sqrt {e^{\left (-x\right )} + 1}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \[ -\int \frac {\sqrt {{\mathrm {e}}^{-x}+1}}{{\mathrm {e}}^{-x}-{\mathrm {e}}^x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.97, size = 65, normalized size = 2.60 \[ 2 \left (\begin {cases} - \frac {\sqrt {2} \operatorname {acoth}{\left (\frac {\sqrt {2} \sqrt {1 + e^{- x}}}{2} \right )}}{2} & \text {for}\: 1 + e^{- x} > 2 \\- \frac {\sqrt {2} \operatorname {atanh}{\left (\frac {\sqrt {2} \sqrt {1 + e^{- x}}}{2} \right )}}{2} & \text {for}\: 1 + e^{- x} < 2 \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________