There are many ways to solve different types of equations in Excel. But to solve the nonlinear equations, we had to use the Solver Add-in of Excel. This add-in doesn’t remain pre-enabled in Excel, needs to enable from the Excel Options. In this article, we’ll show how to activate it and how to use it to solve nonlinear equations in Excel.
Download Practice Workbook
You can download the free Excel workbook from here and practice independently.
What Is Nonlinear Equation?
For an equation, when the change of the output doesn’t get proportional to the change of the input and if the equation appears as a curved line in the graph then it is called a Nonlinear equation or quadratic equation.
Easy Steps to Solve Nonlinear Equations in Excel
Now by following some easy steps, we’ll solve the two nonlinear equations given below.
Step 1: Insert Equation
First, we’ll have to insert the left side of the equations in two cells using the cell reference of the variables. But remember, we’ll have to consider the equation by keeping the right side zero.
- For the first equation, insert the following formula in Cell B9–
- Then hit the ENTER button to finish.
- And for the second equation, insert this formula in Cell B10–
Step 2: Create Objective Equation
For using the Solver Add-in, we need an objective equation. So, we’ll sum the two cells where we inserted the left side of the equation to use it as an objective equation.
- Insert the following formula using the SUM function in Cell D12–
Step 3: Activate Solver Add-in
The input process is done, now we’ll enable the Solver Add-in. If you have enabled it already or know how to do it then skip this step.
- Click on the File tab first.
- Next, select Options from the appeared menu.
- Later, click as follows: Add-ins > Excel Add-ins > Go.
- Finally, mark Solver Add-in and press OK.
- How to Solve Colebrook Equation in Excel (3 Simple Ways)
- Solve Differential Equation in Excel (With Easy Steps)
- How to Solve Exponential Equation in Excel (4 Suitable Examples)
Step 4: Open Solver Add-in
Now see, the Solver Add-in is available in the Analyze section of the Data ribbon.
- Click as follows to open it: Data > Solver.
Soon after you will get a window of Solver Add-in like the image below
Step 5: Insert Objective and Variable Cells
The first action is to set the objective equation and variable cells.
- Click on the upside arrow button from the Set Objective box as shown above and an input box will open up.
- Select Cell D12 and hit ENTER.
- After that, mark the Value Of option and insert 0 in the value box.
- Next, click on the upside arrow button from the By Changing Variable Cells
- Select the cells of variables and press ENTER.
Step 6: Insert Cell Reference and Constraint
Here, we’ll insert the cell reference of the left side of the nonlinear quadratic equations and the constraints.
- Click on the Add button.
- Insert Cell B9 in the Cell Reference box for the first equation.
- Then choose = from the drop-down box and insert 0 in the Constraints box.
- Next, press OK.
- Following the same way insert the cell reference and constraints for the second equation.
Step 7: Final Output
The Solver add-in can extract the solutions with a detailed answer report. Also, there are other options too, you can choose your convenient one.
- Mark the Make Unconstrained Variables Non-Negative
- And then just press the Solve button.
- After a few moments, a dialog box will appear like this. Mark the Keep Solver Solution option and select Answer from the Reports section.
- Finally, just press OK.
Here are our calculator variables.
And Solver will show you the answer report in a new sheet like the image below.
Things to Remember
- To solve nonlinear equations, you must have to set an objective equation.
- Don’t forget to mark the Make Unconstrained Variables Non-Negative
- GRG Nonlinear should be selected by default as the solving method, if not you need to adjust that.
That’s all for the article. I hope the procedures described above will be good enough to solve nonlinear equations in Excel. Feel free to ask any question in the comment section and please give me feedback.