Prove that the value is
a=\frac{pq-r}{2\left(q - p^2\right)
means that you need to find the value and, in so doing, establish that it can be no other value.
So, if you used the approach I noted above with \alpha = -p \pm \sqrt{p^2 - q}, you would need to establish which of these two possible...