Solution:
Consider the quadratic equation:
![ax^2+bx+c=0](https://img.qammunity.org/2023/formulas/mathematics/high-school/mvkhuzwnjhb4epaf7jjcoq2vi4zdi4350m.png)
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:
![ax^2+bx=-c](https://img.qammunity.org/2023/formulas/mathematics/college/n5ly0f315lrqzhbcg34iouk5eraeooduzg.png)
Step 2: If a, the leading coefficient, is not equal to 1, then divide both sides of the above equation by a:
![x^2+(b)/(a)^{}x=-(c)/(a)](https://img.qammunity.org/2023/formulas/mathematics/college/nqr5c48fplwlbpfo6ecq8pxkdyvtcm4tr5.png)
Step 3: add the square of half the coefficient of the x-term, to both sides of the equation:
![x^2+(b)/(a)^{}x+((b)/(2a))^2=-(c)/(a)\text{ }+((b)/(2a))^2](https://img.qammunity.org/2023/formulas/mathematics/college/kgpz0pumnvs2xrlgdslyhho93bv0hxx0bj.png)
Step 4: Factor the left side as the square of a binomial:
![(x+(b)/(2a))^2=-(c)/(a)\text{ }+((b)/(2a))^2](https://img.qammunity.org/2023/formulas/mathematics/college/5ojrolv2z4pmbh4203gtuc3jjib8gqy0cl.png)
now, if we denote by q = b/(2a) and by r the right side of the above equation, we get:
![(x+q)^2=r](https://img.qammunity.org/2023/formulas/mathematics/college/tk0rf7vac73y469v6p40y80uehxb5o4ddz.png)
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)