Hi EP,
I appologise EP your answers are correct.
You probably do not need to worry about this explaination, I expect you already know it.
It might hlp the guest that asked though.
What I was getting at is this (but it makes no differnence for this question)
The definition of a function is that for every x vlaue there can be at most 1 y value.
If it is graphed this is easy to see from the straight line test.
The inverse of a funtion is its reflection in the line y=x
When you do this, most times the reflection is NOT a function, so you need to be very careful about the new domain.
All the teachers I have ever discussed this with say you must rearrange the equation to make x the subject BEFORE you swap the x with the y BECAUSE then the new domain and range are more easily seen.
I cannot see why they make this demand so strongy but certainly people must be extremely careful about constraints.
say if
y=x^2 this is a normal concave up parabola
If you just swap the lpronumerals like you said then you get x=y^2 This is a sideways parabola BUT it is not the inverse function of y=x^2 because it is NOT a function at all.
To find the inverse of y=x^2 you should rearange the formula first and make sure that for each y value there is ONLY one x.
THEN you can swap the letters over.
\(y=x^2\\ \pm\sqrt{y}=x\\ x=\pm\sqrt{y}\\ \text{It can easily be seen that } y\ge0\\ \text{Swap pronumerals and drop the minus sign}\\ y=\sqrt x \qquad \text{If you include both answers this will not be a function }\\ \text{The inverse of }y=x^2 \text{ is } y=\sqrt{x} \quad x\ge 0 ,\quad y\ge0 \)
Here is the graph of y=x^2 in red and its inverse function in blue