rearrange y=p-2qx^2
to make x the subject of the formula
y=p-2qx^2
y-p = -2qx^2
-(y-p) / 2q = x^2
x= sqrt(( p-y)/2q)