Worked solution
Identify the number in front of x
To complete the square on x^2 + 6x + 5 we focus on the coefficient of x, which is 6. Completing the square rewrites the expression using a perfect square bracket.
Halve the coefficient of x
Halving the coefficient of x gives the number that goes inside the bracket. This works because \left(x + 3\right)^2 expands to give x^2 + 6x plus an extra piece.
Write the squared bracket
Squaring the bracket recreates the x^2 and 6x terms, but it also adds an unwanted 9. We will cancel that extra number in the next step.
Subtract the extra number and add c
We take away the extra 9 that the bracket introduced, then bring down the original constant 5. This keeps the expression exactly equal to what we started with.
Simplify the constant
Combining -9 and 5 gives -4. The expression is now in completed-square form ax^2 style: \left(x + 3\right)^2 - 4.