In my precalculus book (open source Stitz and Zeager) we are trying to find the inverse function for $x^2$ - 2x + 4. (page 390). The book has steps in here that just don't make sense to me. Here they are:
a.) $y = j(x)$
b.) $y = x^2 -2x + 4$, $x \leq 1$
c.) $x = y^2 -2y + 4$, $x \leq 1$
d.) $0 = y^2 -2y + 4 - x $
e.) $y = \frac{2\pm\sqrt{(-2)^2 - 4(1)(4 - x)}}{2(1)}$
f.) $y = \frac{2\pm\sqrt{4x - 12}}{2}$
and he continues on until he gets to step j
j.) 1$\pm\sqrt{x-3}$
My question is what is he doing in step d.)? To me it looks like he is taking the output (x in this case) and making it part of the function. From an algebra standpoint I guess this makes sense but from a function standpoint it has be bewildered. I wouldn't think you could do this (obviously I'm wrong but I need help understanding this intuitively).
Then in step e.) he is creating a brand new output y which to me would be a different output of x in step c.). This also looks very strange as I thought the point of creating the inverse function was to get the same x ouput as the x input of the original function. The book offers no explanation on these steps so I'm hoping someone can point me to some further reading on this technique. Does it have a name? Its just non-intuitive to me.
If we have $y=3x+4$ and we are trying to find an inverse we have to swap the role of dependent and independent variable so we get $x=3y+4$ and now we have to find out $y$ in this new formula, so $y={x-4\over 3}$
The same is here: $x=y^2-2y+4$ and now we have to find out $y$. Since this is now quadrtics in $y$ we move everything on one side so: $$0=y^2-2y+(4-x)$$ So we get quadratic equation in $y$ with "parameter" $x$, and a solution is in $e$:
$$ y={2\pm\sqrt{4x-12}\over 2} = 1\pm \sqrt{x-3}$$ Now since our $y<1$ (remember we swap the role of $x$ and $y$) we have $$y=1-\sqrt{x-3}$$