To express a quadratic function of the form

into its vertex form

(p and q are integers), we are going to use the completing square method:
Step 1
Add 1 to both sides of the equation:


Step 2
Perform the operations:

Step 3
Notice that

, so we can rewrite our expression as follows:


We can conclude that the correct steps to transform x2 + 6x + 8 = 0 into the form (x − p)2 = q
[p and q are integers] are:
B. Step 1 x2 + 6x + 8 + 1 = 0 + 1
Step 2 x2 + 6x + 9 = 1
Step 3 (x + 3)2 = 1