Quick question.
$$y=\sqrt{2x-x^2}$$ I need the inverse function for some other problem, but I just can't find it. Could you please point me the steps to solve this?
Thanks
Quick question.
$$y=\sqrt{2x-x^2}$$ I need the inverse function for some other problem, but I just can't find it. Could you please point me the steps to solve this?
Thanks
On
Steps towards an inverse function:
On
You need to specify the domain of your function. If you just want $2x-x^2 \ge 0$, then you'll find that your function is not one-to-one and does not have an inverse.
You could restrict the domain to $0 \le x \le 1$ and that would then give a one-to-one function. You could also choose the domain $1 \le x \le 2$ to get a one-to-one function. In fact there are many others, e.g. $\frac{1}{3} \le x \le \frac{1}{2}$.
Let's choose the domain $0 \le x \le 1$. You can see that the function is one-to-one by sketching the graph or by computing the derivative and showing that it is always non-negative. If $0 \le x \le 1$ then $0 \le \sqrt{2x-x^2} \le 1$ gives the range.
Next we use the standard trick: write $y=\sqrt{2x-x^2}$ and solve for $x$. We get $x = 1 \pm \sqrt{1-y^2}$. We chose the domain $0 \le x \le 1$ and so we know that when $x=0$, $y=0$. This tells us that we need to chose $x=1-\sqrt{1-y^2}$. The $+$ solution does not work hold at $(0,0)$.
(We would choose $x=1+\sqrt{1-y^2}$ on the domain $1 \le x \le 2$.)
Finally we conclude that is $\mathrm f(x)=\sqrt{2x-x^2}$ for all $0 \le x \le 1$ then $\mathrm f^{-1}(x) = 1-\sqrt{1-x^2}$ for all $0 \le x \le 1$.
Alternatively, if $\mathrm g(x)=\sqrt{2x-x^2}$ for all $1 \le x \le 2$ then $\mathrm g^{-1}(x) = 1+\sqrt{1-x^2}$ for all $0 \le x \le 1$.
On
The domain of $f(x)=\sqrt{2x-x^2}$ is $$\mbox{dom}(f)=\{x\in\mathbb{R} \ | \ 0\le x\le 2\}$$ moreover its image is $$\mbox{Im}(f)=\{y\in\mathbb{R} \ | \ 0\le y\le 1 \}$$ Its graph is a semicircumpherence with centre $C(1,0)$ and radius $r=1$ infact
$\\ y=\sqrt{2x-x^2}\implies y^2=2x-x^2\implies \\ \\ \\ x^2+y^2-2x=0\implies \implies x^2+y^2-2x+1-1=0$
so graph of $f$ is a part of the circumpherence of equantion $(x-1)^2+y^2=1$ that lies in the first quadrant. This implies that $f(x)=\sqrt{2x-x^2}$ is not globally injective hence it can't be invertible on the domain.
but... consider the equation
$y=\sqrt{2x-x^2}$
square both side
$y^2=2x-x^2\implies y^2-2x+x^2=0\to (x-1)^2+y^2=1$
solve with respect of $x-1$
$(x-1)^2=1-y^2\to |x-1|=\sqrt{1-y^2}$
If $1\le x\le 2$ then $|x-1|=x-1$ so
$|x-1|=\sqrt{1-y^2}\implies x-1=\sqrt{1-y^2}\implies x=\sqrt{1-y^2}+1$
swap the variables
$y=\sqrt{1-x^2}+1$ is the inverse of $f(x)$ for $x\in [0,1]\wedge y\in [1,2]$
If $0\le x\le 1$ then $|x-1|=1-x$ so $|x-1|=\sqrt{1-y^2}$ becomes $$1-x=\sqrt{1-y^2}\implies x=1-\sqrt{1-y^2}$$
Swap the variables $y=1-\sqrt{1-y^2}$
Hence $y=1-\sqrt{1-x^2}$ is the inverse of $f(x)$ when $x\in [0, 1]\wedge y\in [0,1]$.
$y=\sqrt{2x-x^2}$
$y^2=2x-x^2$
$y^2-1=-1+2x-x^2$
$1-y^2=x^2-2x+1$
Becoming visible now?
$\sqrt{1-y^2}=x-1$
$x=1+\sqrt{1-y^2}$
But our INVERSE is obtained by switching $x$ and $y$ to get $\boxed{y=1+\sqrt{1-x^2}}$.