If f(x)=(e^x+e^-x)/2, what is the inverse function?

16 replies · 3K views · last reply
Darkmisc
Messages
222
Reaction score
31
Homework Statement
If f(x)=(e^x+e^-x)/2, what is the inverse function?
Relevant Equations
f(x)=(e^x+e^-x)/2
Hi everyone

This is the solution for the problem.

Handwritten derivation solving (e^y + e^-y)/2 = x for y: multiply through, rewrite as e^2y + 1 = 2xe^y, then quadratic form, giving y = log_e(x ± sqrt(x^2 − 1)).


I don't understand how they got from
Equation e^2y - 2xe^y + 1 = 0, written as a line of mathematics with a quadratic-in-e^y form.

To
Handwritten equation e^y = (1/2)(2x ± √(4x² − 4)), solving for y after taking the natural logarithm.


This was my attempt at a solution

Handwritten derivation on lined paper finding the inverse of f(x) = (e^x + e^-x)/2 by setting x = (e^y + e^-y)/2, rearranging to e^2y - 2xe^y + 1 = 0, and reducing to y = e^(2y-2) with log of y = 2y - 2.


I can't seem to get rid of one of the y terms and am left with one on each side.

Could someone explain the solution to me please?

Thanks
 
##e^x + e^{-x}## is not injective in ##\mathbb R## (even function). You should assume either ##x<0## or ##x>0##.
 
  • Like
Likes   Reactions: Darkmisc and Delta2
note: x = (1/2)(e^y + e^-y) = cos(iy). so the inverse is -i.arccos(x).
 
  • Wow
Likes   Reactions: nuuskur and PeroK
mathwonk said:
note: x = (1/2)(e^y + e^-y) = cos(iy). so the inverse is -i.arccos(x).

We call that function "cosh", so the inverse is [itex]\operatorname{arccosh}(x)[/itex].
 
  • Like
Likes   Reactions: PeroK
pasmith said:
We call that function "cosh", so the inverse is [itex]\operatorname{arccosh}(x)[/itex].
Isn't it just a local inverse, as @nuuskur pointed out?
 
er sorry $$\operatorname{arccosh}(x)=-i\arccos(x)$$?

Btw there is a silly typo that was spotted successfully by @FactChecker the quadratic with respect to ##e^y## is ##(e^y)^2-2xe^y+1=0## for which you can set ##z=e^y## solve it for z(x) as a normal quadratic and then take $$e^y=z(x)\Rightarrow y=\ln z(x)$$.
 
  • Like
Likes   Reactions: Maarten Havinga
Delta2 said:
er sorry $$\operatorname{arccosh}(x)=-i\arccos(x)$$?

Btw there is a silly typo that was spotted successfully by @FactChecker the quadratic with respect to ##e^y## is ##(e^y)^2-2xe^y+1=0## for which you can set ##z=e^y## solve it for z(x) as a normal quadratic and then take $$e^y=z(x)\Rightarrow y=\ln z(x)$$.
With the caveats that ##z(x) >0##, and, for well definedness, its an injection, I guess.
 
Delta2 said:
$$\operatorname{arccosh}(x)=-i\arccos(x)$$?
You're probably confused because you're thinking of cosine defined for reals. If you consider the cosine function defined for complex numbers, it makes sense.

WWGD said:
With the caveats that ##z(x) >0##, and, for well definedness, its an injection, I guess.
If ##y## is real, then ##e^y>0##.

Note that the quadratic has two solutions, ##y_+## and ##y_-##. To make the inverse a function, we arbitrarily choose the positive root and map ##x## to ##y_+##.

It's not obvious, but you can show that ##y_- = -y_+##.
 
  • Like
  • Skeptical
Likes   Reactions: Delta2 and FactChecker
Am I the only one reacting on the use of ”arccosh” instead of the standard ”arcosh”?
 
vela said:
It's not obvious, but you can show that ##y_- = -y_+##.
Is that true? I don't see it.
 
Hint: ##(x + \sqrt{x^2-1})(x-\sqrt{x^2-1})=1##.
 
Orodruin said:
Am I the only one reacting on the use of ”arccosh” instead of the standard ”arcosh”?
I think the "arc" notation is pretty common. Mathematica, for example, calls the function ArcCosh.

In fact, until you pointed it out, I didn't know "arcosh" was the standard way to write it. :smile:
 
  • Like
Likes   Reactions: PeroK
vela said:
Mathematica, for example, calls the function ArcCosh.
Mathematica is then not up to ISO 80000-2 standard. 🤔

But yes, it is a fairly common mistake but arccosh would be a misnomer as the function does not relate to arc length but to area (unless measuring in Minkowski geometry….)
 
vela said:
You're probably confused because you're thinking of cosine defined for reals. If you consider the cosine function defined for complex numbers, it makes sense.If ##y## is real, then ##e^y>0##.

Note that the quadratic has two solutions, ##y_+## and ##y_-##. To make the inverse a function, we arbitrarily choose the positive root and map ##x## to ##y_+##.

It's not obvious, but you can show that ##y_- = -y_+##.
Ah, I missed that result before log(z(x)).
 
vela said:
Hint: ##(x + \sqrt{x^2-1})(x-\sqrt{x^2-1})=1##.
Ehm that is correct but all you can actually prove with this is that ##y_{+}=\frac{1}{y_{-}}##.

Ah ok you mean the solutions to ##e^y=z(x)## or ##e^y=\frac{1}{z(x)}##
 
Last edited:
For invertibility of ##\cosh x## (in ##\mathbb R##), we usually mean
[tex] \cosh : [0,\infty) \to [1,\infty),\quad \cosh(x) := \frac{e^x+e^{-x}}{2}.[/tex]
Putting
[tex] g : [1,\infty ) \to [0,\infty ),\quad g(x) := \ln (x+\sqrt{x^2-1})[/tex]
one can verify that ##g\circ \cosh## and ##\cosh \circ g## are the identities. From ##y_+y_- = 1## it follows that ## \ln y_- < 0##, so it couldn't be the correct choice in this case.

But it's completely fine to define ##\cosh## on the negative side. In that case, for the inverse, one also opts for ##\ln y_-##.