Solving Equations
Numerically
Learn how to find solutions to equations by testing values systematically, building tables, and zeroing in on answers when algebra alone won't do the job.
What Does "Numerically" Mean?
In mathematics, there are three main ways to solve an equation: algebraically (symbolic manipulation), graphically (reading intersections from a graph), and numerically (testing specific input values to find or approximate the answer).
Why Numerical Methods Matter
The Core Idea: Tables of Values
To solve \( f(x) = 0 \) numerically, we build a table. We pick several \( x \)-values, compute \( f(x) \) for each, and look for where \( f(x) \) changes sign: that sign change tells us a root lies between those two \( x \)-values.
The Intermediate Value Theorem
This theorem is the mathematical guarantee that our table method works. If the function is continuous and changes sign, there must be a root in that interval.
Sign Change = Root Exists
Algebraic vs. Numerical vs. Graphical
| Algebraic | Numerical | Graphical | |
|---|---|---|---|
| Method | Symbolic manipulation | Substitute values, narrow down | Plot and read intersections |
| Precision | Exact | Approximate (as precise as needed) | Approximate (limited by scale) |
| When it works | Simple, standard forms | Always (with continuity) | Always (with a graph) |
| Limitation | Many equations unsolvable | Can be slow without strategy | Hard to read exact values |
How to Solve Numerically
Example 1: Solve \( x^2 - 3 = 0 \)
We want to find \( x \) such that \( x^2 = 3 \). We already know the answer is \( \sqrt{3} \approx 1.732 \), but let's confirm numerically. Let \( f(x) = x^2 - 3 \).
Zooming In: \( x \in (1, 2) \)
We found the root is in \( (1, 2) \). Testing with steps of 0.1, we find \( f(1.7) = -0.11 \) and \( f(1.8) = +0.24 \). So we zoom into the interval \( (1.7, 1.8) \) with steps of 0.01:
Example 2: Break-Even Point
A company's profit function is \( P(x) = -0.5x^2 + 8x - 12 \), where \( x \) is thousands of units sold. Find where the company breaks even: solve \( P(x) = 0 \).
Break-Even: The Table Approach
Testing integer values for the left root of \( P(x) = -0.5x^2 + 8x - 12 \):
Example 3: Solve \( e^x = 5x \)
This equation cannot be solved algebraically. Rewrite as \( f(x) = e^x - 5x = 0 \) and build a table.
When to Stop Zooming
Each time you zoom in by a factor of 10 (steps of 1, then 0.1, then 0.01), you gain one decimal place of accuracy. Stop when:
Common Mistakes
Summary: Numerical Solving Checklist
| Step | Action | What to Look For |
|---|---|---|
| 1. Rewrite | Set \( f(x) = 0 \) | One side equals zero |
| 2. Scan | Evaluate at integer \( x \)-values | Sign changes in \( f(x) \) |
| 3. Locate | Identify interval \( (a, b) \) with sign change | \( f(a) \) and \( f(b) \) have opposite signs |
| 4. Zoom | Subdivide with smaller steps | Narrowing interval |
| 5. Report | State the root to required precision | \( |f(x)| \) near zero |
Question 1 of 5
You find that \( f(2) = -3 \) and \( f(3) = 5 \) for a continuous function. What can you conclude?
Question 2 of 5
To solve \( 3x + 1 = e^x \) numerically, what should you do first?
Question 3 of 5
For \( f(x) = x^3 - 4x - 1 \), you compute: \( f(1) = -4 \), \( f(2) = -1 \), \( f(3) = 14 \). Between which two integers does a root lie?
Question 4 of 5
After finding a root between \( x = 2 \) and \( x = 3 \), you zoom in and find: \( f(2.1) = -0.6 \), \( f(2.2) = 0.2 \). What is the root accurate to one decimal place?
Question 5 of 5
Which of the following is a requirement for the sign-change method to guarantee a root exists?