How to Use Quadratic Equation In Excel

Oct 27, 2020 • edited Oct 30, 2020

How to Use Quadratic Equation In Excel

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

Excel Formula, x = 1

2. For x = 2, y = -2.5

Excel Formula, x = 2

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 = b<sup>2</sup>- 4ac = (-12)<sup>2</sup> - 4 * 3 * -15 = 144 + 180 = 324
<tr>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" nowrap="nowrap">-b + &#8730;D</td>

    <td width="50" rowspan="2" nowrap="nowrap">or</td>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" nowrap="nowrap">-b - &#8730;D</td>
<tr>

    <td class="upper_line">2a</td>

    <td class="upper_line">2a</td>

</tr>
<tr>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" nowrap="nowrap">12 + &#8730;324</td>

    <td width="50" rowspan="2" nowrap="nowrap">or</td>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" nowrap="nowrap">12 - &#8730;324</td>
<tr>

    <td class="upper_line">6</td>

    <td class="upper_line">6</td>

</tr>
<tr>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" nowrap="nowrap">12 + 18</td>

    <td width="50" rowspan="2" nowrap="nowrap">or</td>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" nowrap="nowrap">12 - 18</td>
<tr>

    <td class="upper_line">6</td>

    <td class="upper_line">6</td>

</tr>
<tr>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" rowspan="2" nowrap="nowrap">5</td>

    <td width="50" rowspan="2" nowrap="nowrap">or</td>

    <td width="25" rowspan="2" nowrap="nowrap" align="left">x = </td>

    <td width="75" rowspan="2" nowrap="nowrap">-1</td>

</tr>

4. You can use Excel's Goal Seek feature to obtain the exact same result. On the Data tab, in the Forecast group, click What-If Analysis.

Click What-If Analysis

5. Click Goal Seek.

Click Goal Seek

The Goal Seek dialog box appears.

6. Select cell B2.

7. Click in the ‘To value’ box and type 24.5

8. Click in the ‘By changing cell’ box and select cell A2.

9. Click OK.

Goal Seek Parameters

Result.

Solve a Quadratic Equation in Excel

Note: Excel returns the solution x = 5. Excel finds the other solution if you start with an x-value closer to x = -1. For example, enter the value 0 into cell A2 and repeat steps 5 to 9. 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.

#Tutorial#How To#Data Analysis#What-If Analysis

How To Use Number and Text Filters In Excel

How To Use Randomize List In Excel