Solution:
Consider the quadratic equation:
to solve this quadratic equation by completing the square, we can perform the following steps:
Step 1: transform the equation so that the constant term c is alone on the right side:
Step 2: If a, the leading coefficient, is not equal to 1, then divide both sides of the above equation by a:
Step 3: add the square of half the coefficient of the x-term, to both sides of the equation:
Step 4: Factor the left side as the square of a binomial:
now, if we denote by q = b/(2a) and by r the right side of the above equation, we get:
Step 5: Take the square root of both sides, to obtain:
Step 6: solve for x: