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:
![x+q^{}=\pm\sqrt[]{r}](https://img.qammunity.org/2023/formulas/mathematics/college/f0a4upbormj3g78aer4picf499524lpwu2.png)
Step 6: solve for x:
![x=\pm\sqrt[]{r}\text{ - q}](https://img.qammunity.org/2023/formulas/mathematics/college/kcvv3yplbxywmmifw68nyrg1uv61u3uwl4.png)