$$y = 2 x - \frac { 1 } { 2 } x ^ { 2 }$$
$x=\sqrt{4-2y}+2$
$x=-\sqrt{4-2y}+2$
$x=\sqrt{4-2y}+2$
$x=-\sqrt{4-2y}+2\text{, }y\leq 2$
$y=-\frac{x\left(x-4\right)}{2}$