Use the method of completing the square to transform any quadratic equation in $x$ into an equation of the form $(x - p)^2 = q$ that has the same solutions. Explain how the quadratic formula is derived from this form.