How To Find Zeros Of Functions In Excel
The zeros of a function are the values of the variable that make the function equal to zero. For example, the zeros of f(x)=x^2-1 are x=1 and x=-1. Here, the caret ^ denotes exponentiation. In Excel, you can use the Solver application to find a zero for a function using the methods of the field of mathematics called "numerical analysis." You don't need to know the details of the method. All you need to do is come up with a close guess as to one of the zeros of the function, and Excel will finish the job.
Step 1
Type your function into cell A1 of your Excel spreadsheet, using cell A2 in place of the variable. For example, if your function is f(x)=x^2-1, enter into cell A1 exactly the following: =A2^2-1.
Step 2
Enter your best guess in cell A2 as to what the zero of f(x) is. For example, for f(x)=x^3-3x+10, you might enter a number between -2 and -1 into cell A2, after noticing that f(-2) is -11 while f(-1) is +12. Since they are on opposite sides of zero on the number line, a zero for f(x) exists between x=-1 and x=-2.
Step 3
Go to the Tools drop-down menu at the top of the page, and select Solver. The Solver panel will pop up.
Step 4
Enter A1 into the field for "Set Target Cell."
Step 5
Select the "Value Of" radio button, and type in the number 0, because you want Excel to make A1 equal to zero.
Step 6
Enter A2 in the field for "By Changing Cells."
Step 7
Click the "Solve" button. The zero that Excel calculates will appear in cell A2. Solver will ask you whether you want to keep the solution. Select "OK."
Step 8
Solve for another zero of the same function by entering another value, making sure again that it is close to where you suspect that zero is.
References
- "Numerical Analysis;" Richard Burden and Douglas Faires; 1995
Cite This Article
MLA
Dohrman, Paul. "How To Find Zeros Of Functions In Excel" sciencing.com, https://www.sciencing.com/zeros-functions-excel-5945935/. 24 April 2017.
APA
Dohrman, Paul. (2017, April 24). How To Find Zeros Of Functions In Excel. sciencing.com. Retrieved from https://www.sciencing.com/zeros-functions-excel-5945935/
Chicago
Dohrman, Paul. How To Find Zeros Of Functions In Excel last modified March 24, 2022. https://www.sciencing.com/zeros-functions-excel-5945935/