I need help solving the following function for $x$
$$g(x) = x - x \cdot \cosh\left(\frac{1}{2x}\right)$$
As I have never used hyperbolic functions, all my attempts at solving this have failed miserably. The closest that I got was (using hightschool math)
$$\frac{1}{2x} = \cosh^{-1}\left(1 - \frac{g}{x}\right)$$
but that is going nowhere.
Note: a similar question has been asked here but it did not help me.