01 / 21

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.

Business Calculus

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

Algebra Fails
Many real-world equations (like \( e^x = 3x \)) have no neat algebraic solution.
Business Reality
Break-even points, interest rates, and optimization often require numerical approximation.
Technology Power
Spreadsheets and calculators make numerical methods fast and practical for any equation.

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.

\( x \) \( f(x) \) Sign 0 \( -3 \) - 1 \( -1 \) - 2 \( +1 \) + 3 \( +6 \) + Sign change!

The Intermediate Value Theorem

\( a \) \( b \) \( c \) \( y=0 \) \( f(a) < 0 \) \( f(b) > 0 \) \( f(c) = 0 \) 0

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

Positive to Negative
If \( f(a) \gt 0 \) and \( f(b) \lt 0 \), the function crosses the \( x \)-axis somewhere between \( a \) and \( b \).
Negative to Positive
If \( f(a) \lt 0 \) and \( f(b) \gt 0 \), same conclusion: a root lies in \( (a, b) \).

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

1
Rewrite as \( f(x) = 0 \). Move everything to one side so you are looking for where the function equals zero.
2
Choose a range of \( x \)-values. Pick a reasonable starting interval and decide on a step size (e.g., increments of 1).
3
Build a table. Compute \( f(x) \) at each chosen value. Record the results.
4
Find sign changes. Look for consecutive rows where \( f(x) \) changes from positive to negative (or vice versa).
5
Zoom in. Subdivide that interval with smaller steps (e.g., increments of 0.1, then 0.01) and repeat until you reach the desired accuracy.

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 \).

\( x \) \( f(x) = x^2 - 3 \) Sign 0 \( -3 \) - 1 \( -2 \) - 2 \( +1 \) + 3 \( +6 \) + Sign change between \( x = 1 \) and \( x = 2 \) Root is in \( (1, 2) \)

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:

\( x \) \( f(x) \) Sign 1.72 \( -0.0416 \) - 1.73 \( -0.0071 \) - 1.74 \( +0.0276 \) + 1.75 \( +0.0625 \) + Root is between 1.73 and 1.74 (actual: 1.732...)

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 \).

\( x \) \( P(x) \) 0 2 4 6 8 10 12 14 16 \( P=0 \) \( x \approx 1.68 \) \( x \approx 14.33 \) Loss Profit Loss

Break-Even: The Table Approach

Testing integer values for the left root of \( P(x) = -0.5x^2 + 8x - 12 \):

\( x \) \( P(x) \) Sign 0 \( -12 \) - 1 \( -4.5 \) - 2 \( +2 \) + 3 \( +7.5 \) + First break-even is between \( x = 1 \) and \( x = 2 \)

Example 3: Solve \( e^x = 5x \)

This equation cannot be solved algebraically. Rewrite as \( f(x) = e^x - 5x = 0 \) and build a table.

\( x \) \( f(x) = e^x - 5x \) Sign 0 \( +1 \) + 1 \( -2.28 \) - 2 \( -2.61 \) - 3 \( +5.09 \) + Two sign changes: root in \( (0,1) \) and root in \( (2,3) \)

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:

1
The problem specifies precision. If it says "to two decimal places," zoom in until your interval is narrower than 0.01.
2
\( f(x) \) is very close to zero. If \( |f(x)| \lt 0.001 \), you likely have a good approximation.
3
Successive approximations agree. If two rounds of zooming give the same digits, you've converged.

Common Mistakes

Skipping the Rewrite
Forgetting to write the equation as \( f(x) = 0 \) first. You need one side to equal zero to use the sign-change method.
Steps Too Large
Using steps so large that you miss a root entirely. If the function crosses zero and comes back within one step, you won't see the sign change.
Ignoring Continuity
A sign change at a discontinuity (like \( 1/x \) at \( x = 0 \)) does not guarantee a root. Always verify the function is continuous on the interval.

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?