Question

$$y = 2 x - \frac { 1 } { 2 } x ^ { 2 }$$

Solve for x (complex solution)

$x=\sqrt{4-2y}+2$
$x=-\sqrt{4-2y}+2$

Solve for x

$x=\sqrt{4-2y}+2$
$x=-\sqrt{4-2y}+2\text{, }y\leq 2$

Solve for y

$y=-\frac{x\left(x-4\right)}{2}$