Write the equation in vertex form.