use the completing the square method