# Solving an equation to find an inverse function: $x=(e^{y}-e^{-y})/2$

I'm trying to find and inverse function and I reached the equation $x=(e^{y}-e^{-y})/2$

How do I solve it for $y$?

Thanks!

-
$y = \sinh^{-1} (x)$ –  Ian Mateus Dec 18 '12 at 13:23

Here you multiply through by $2 e^{y}$ on both sides to get

$$e^{2 y} - 2 x e^{y} - 1 = 0$$

Solve for $e^{y}$:

$$e^y = x \pm \sqrt{x^2+1}$$

and get

$$y = \log{\left ( x \pm \sqrt{x^2+1} \right ) }$$

Which sign to use? If $y$ is real, then of course use the positive sign. This is, of course, $\sinh^{-1} x$.

-
Oh seems so simple now. Thanks! –  Smithnson Dec 18 '12 at 13:25
Besides to @rlgordonma's answer note that we can write $x=\frac{e^{y}-e^{-y}}{2}$ as $x=\sinh(y)$. So $y=\text{arcsinh}(x)$ on a proper interval.
Indeed! :^) $\quad +1$ –  amWhy Apr 15 at 0:22