Question
Question: How do you solve \[{{x}^{2}}-4x+7=0\] by completing the square?...
How do you solve x2−4x+7=0 by completing the square?
Solution
Assume the expression x2−4x+7=y and compare it with the general form given as: - y=ax2+bx+c. Find the respective values of a, b and c. Now, find the discriminant of the given quadratic equation by using the formula: - D=b2−4ac, where D = discriminant. Now, write the expression as: - y=a[(x+2ab)2−4a2D] and substitute it equal to 0 to find the two values of x. If the value of D is negative then the roots will be of the form of complex numbers.
Complete step by step solution:
Here, we have been provided with the quadratic equation: - x2−4x+7=0 and we are asked to solve it. That means we have to find the values of x. We have been asked to use completing the square method.
Now, we know that any quadratic equation of the form y=ax2+bx+c can be simplified as y=a[(x+2ab)2−4a2D], using completing the square method. Here, ‘D’ denotes the discriminant. So, on assuming x2−4x+7=y and comparing it with the general quadratic equation, we get,
⇒ a = 1, b = -4, c = 7
Applying the formula for discriminant of a quadratic equation given as, D=b2−4ac, we get,