How to complete the square (standard form to vertex form)
Completing the square rewrites a quadratic in standard form as a perfect square plus a constant, which exposes the vertex directly, because the squared bracket is smallest exactly when it equals zero.
A worked example
Write y = x² + 6x + 5 in vertex form. Half of the coefficient of x is 3, and its square is 9, so add and subtract 9: y = (x² + 6x + 9) − 9 + 5. The bracket is a perfect square, so y = (x + 3)² − 4. The vertex is (−3, −4), and expanding (x + 3)² − 4 gives back x² + 6x + 5.
The mistake people actually make
When the leading coefficient isn't 1, factor it out of the first two terms only, and remember that the number you subtract to balance the square must also be multiplied by that coefficient before it leaves the bracket.