A quadratic equation is of the form ax2 + bx + c = 0 where a ≠ 0. A quadratic equation can be solved by using the quadratic formula. You can also use Excel's Goal Seek feature to solve a quadratic equation.
1. For example, we have the formula y = 3x2 - 12x + 9.5. It's easy to calculate y for any given x. For x = 1, y = 0.5
2. For x = 2, y = -2.5
3. But what if we want to know x for any given y? For example, y = 24.5. We need to solve 3x2 - 12x + 9.5 = 24.5. We can solve the quadratic equation 3x2 - 12x + 9.5 - 24.5 = 0 by using the quadratic formula.
3x2 - 12x -15 = 0
a = 3, b = -12, c = -15
D = b2- 4ac = (-12)2 - 4 * 3 * -15 = 144 + 180 = 324
|x =||-b + √D||or||x =||-b - √D|
|x =||12 + √324||or||x =||12 - √324|
|x =||12 + 18||or||x =||12 - 18|
|x =||5||or||x =||-1|
4. You can use Excel's Goal Seek feature to obtain the exact same result. On the Data tab, in the Data Tools group, click What-If Analysis, Goal Seek.
The Goal Seek dialog box appears.
5. Select cell B2.
6. Click in the 'To value' box and type 24.5
7. Click in the 'By changing cell' box and select cell A2.
8. Click OK.
Note: Excel returns the solution x = 5. Excel finds the other solution if you start with a x-value closer to x = -1. For example, enter the value 0 into cell A2 and repeat steps 4 to 8. To find the roots, set y = 0 and solve the quadratic equation 3x2 - 12x + 9.5 = 0. In this case, set 'To value' to 0.
Did you find this information helpful? Show your appreciation, share this page.