Tutorials › AP Calculus › Numerical Equation Solving and Root Checks

Calculator Strategy and Error Control · Tutorial 979 of 999

Numerical Equation Solving and Root Checks

Use calculator root tools responsibly by defining a zero function, selecting an interval, and checking the numerical answer.

Intermediate 10 min read

What You'll Learn

  • Rewrite an equation as \(f(x)=0\) before using a numerical root tool.
  • Select a starting interval that targets the intended solution.
  • Use sign changes and the Intermediate Value Theorem to support a root check.
  • Check a rounded candidate by substituting it into the original equation.
  • Interpret nearby function values while recognizing that not every root changes sign.
  • Set the calculator to radians or degrees as required by the problem.

Why Numerical Root Solving Needs a Check

Some equations cannot be solved conveniently by isolating the variable with algebra. A graphing calculator can estimate a solution, but the displayed decimal is only an approximation. It may depend on the interval selected, the calculator’s numerical precision, and how the equation was entered.

A reliable process has two parts: use a numerical tool to find a candidate, then test whether that candidate is consistent with the equation. For AP Calculus work, this means identifying the equation being solved, recording an appropriate approximation, and checking the result rather than treating a calculator display as self-validating.

Definition: To solve an equation numerically, rewrite it in the form \(f(x)=0\) and find a decimal approximation \(c\) for which \(f(c)\) is close to zero. The value \(f(c)\) is the residual at \(c\). A small residual supports the candidate, but does not by itself prove that \(c\) is an exact root.

Set Up the Equation Before Using a Calculator

For an equation such as \(P(x)=Q(x)\), define a single function by subtracting the right side from the left: \(f(x)=P(x)-Q(x)\). Then the original equation is equivalent to \(f(x)=0\). This step matters because a calculator’s zero-finding tool operates on a function, and a sign error in the subtraction changes the problem.

When more than one solution may exist, the interval is part of the setup. A graph or table can help locate a region of interest, but a calculator finding one zero does not establish that it found every zero. The selected interval should correspond to the solution requested by the question.

1
Define a zero function.
Move all terms to one side and write the equation as \(f(x)=0\).
2
Choose the target interval.
Use the stated domain, graph, or a table to identify where the intended root is located.
3
Use the calculator’s root tool.
Depending on the device, this may be named zero, root, or solve. Enter the function and an interval or starting values as required.
4
Check the candidate.
Substitute the reported decimal into the zero function and inspect nearby values when useful.

Why a Sign Change Can Locate a Root

A continuous function cannot move from a negative value to a positive value without taking the value zero in between. This is the Intermediate Value Theorem: if \(f\) is continuous on \([a,b]\), and a value \(L\) lies between \(f(a)\) and \(f(b)\), then \(f(c)=L\) for at least one \(c\in[a,b]\). In particular, if the endpoint values have opposite signs, there is at least one root between them.

Theorem: If \(f\) is continuous on \([a,b]\) and \(f(a)f(b)<0\), then at least one \(c\in(a,b)\) satisfies \(f(c)=0\). The theorem guarantees existence, not uniqueness: additional information is needed to conclude there is exactly one root in the interval.

This result justifies a useful numerical method called bisection. Start with an interval whose endpoint function values have opposite signs. Evaluate the function at the midpoint, then keep the half-interval whose endpoints still have opposite signs. Repeat. Each step preserves a bracket for at least one root, and halves the interval width.

1
Start with a bracket.
Choose \(a\) and \(b\) so that \(f(a)f(b)<0\), with \(f\) continuous on \([a,b]\).
2
Evaluate the midpoint.
Let \(m=(a+b)/2\) and calculate \(f(m)\).
3
Keep the sign-changing half.
If \(f(m)=0\), stop: \(m\) is an exact root. Otherwise, if \(f(a)f(m)<0\), replace \(b\) by \(m\); otherwise, if \(f(m)f(b)<0\), replace \(a\) by \(m\).
4
Repeat and report an approximation.
After \(n\) halvings, the bracket width is \((b-a)/2^n\), where \(a,b\) are the original endpoints. Its midpoint is an approximation to a root in the bracket.

The width formula follows because each bisection step divides the current interval length by \(2\). Thus, after \(n\) steps, the length is the original length multiplied by \(1/2\), \(n\) times. Calculator root tools often use more advanced numerical methods, but a sign-changing bracket remains a valuable independent check.

Worked Example: A Polynomial Root and a Residual Check

Worked Example: A Polynomial Root and a Residual Check

Estimate a solution of \(x^3-x-1=0\), and check the calculator’s reported value \(c=1.324718\).

Define \(f(x)=x^3-x-1\). First, bracket a root. At \(x=1\),

$$ f(1)=1^3-1-1=-1. $$

At \(x=2\),

$$ f(2)=2^3-2-1=8-3=5. $$

The function is a polynomial, so it is continuous. Since \(f(1)<0\) and \(f(2)>0\), the Intermediate Value Theorem guarantees at least one root between \(1\) and \(2\). A calculator’s zero tool, applied on that interval, reports approximately \(1.324718\).

Now substitute the candidate. The cube is approximately \((1.324718)^3=2.324718182335474\), so

$$ f(1.324718) =2.324718182335474-1.324718-1 \approx 0.000000182335474. $$

The residual is about \(1.82\times10^{-7}\), which is very small. It is not exactly zero at the displayed precision, so \(1.324718\) should be reported as an approximation, not an exact root.

As a second check, evaluate on either side of the candidate. For example,

$$ f(1.324)\approx -0.003059776, \qquad f(1.325)\approx 0.001203125. $$

These opposite signs show that a root lies between \(1.324\) and \(1.325\). The calculator candidate lies in that interval. The residual check tests closeness at the candidate; the nearby-value check places a sign-changing bracket around it.

Worked Example: Selecting Between Two Polynomial Roots

Worked Example: Selecting Between Two Polynomial Roots

Use a calculator to estimate solutions of \(x^2=5\), and identify the positive solution to four decimal places.

Rewrite the equation as \(f(x)=x^2-5=0\). Since the equation has both a positive and a negative solution, an interval is needed to target the positive one. On \([2,3]\),

$$ f(2)=2^2-5=-1, \qquad f(3)=3^2-5=4. $$

The function is continuous and the endpoint values have opposite signs, so there is a root in \((2,3)\). A calculator’s zero tool on that interval gives approximately \(2.2360679\), which rounds to \(2.2361\) to four decimal places.

Check the rounded value by substitution:

$$ f(2.2361)=(2.2361)^2-5 =5.00014321-5 =0.00014321. $$

The residual is small, consistent with the four-decimal approximation. Nearby values give an additional check:

$$ f(2.23)=(2.23)^2-5=4.9729-5=-0.0271, $$ $$ f(2.24)=(2.24)^2-5=5.0176-5=0.0176. $$

The opposite signs bracket a root between \(2.23\) and \(2.24\), and the reported positive candidate is in that interval. The original equation also has a negative solution; an interval such as \([-3,-2]\) would target it instead. The positive interval is what makes this calculator result the requested solution.

Worked Example: A Trigonometric Equation

Worked Example: A Trigonometric Equation

Estimate the solution of \(\cos x=x\) in radians near \(0.74\), and check the result.

Define \(g(x)=\cos x-x\), so the equation becomes \(g(x)=0\). Because the problem specifies radians, the calculator must be in radian mode. On the interval from \(0.739\) to \(0.740\), approximate evaluations give

$$ g(0.739)=\cos(0.739)-0.739\approx 0.0001425, $$ $$ g(0.740)=\cos(0.740)-0.740\approx -0.0015314. $$

The signs are opposite, and \(g\) is continuous, so the Intermediate Value Theorem guarantees a solution between these values. A calculator root tool reports approximately \(c=0.7391\). Substitution gives

$$ g(0.7391)=\cos(0.7391)-0.7391\approx -0.0000249. $$

This small residual is consistent with the reported approximation. The nearby values provide a bracket for a root, while the residual measures how closely the rounded candidate satisfies the equation. If the calculator were in degree mode, it would evaluate a different cosine function and the result would not check this radian equation.

What the Checks Do—and Do Not—Establish

Substitution and nearby values answer related but different questions. The residual \(f(c)\) measures how close the candidate \(c\) is to satisfying \(f(x)=0\) in the function’s output. A sign change in nearby values supports the existence of a root in the interval between them, provided the function is continuous there.

CheckWhat it supportsWhat it does not guarantee
Substitute \(c\) and compute \(f(c)\)The candidate has a small residual at the displayed precision.That \(c\) is an exact root, or that no other roots exist.
Evaluate \(f(a)\) and \(f(b)\) with opposite signsAt least one root lies between \(a\) and \(b\), if \(f\) is continuous there.That there is only one root in the interval.
Use a graph or calculator root toolA candidate location for a root.That every root has been found or that the input and mode were correct.

A root may not change sign. For example, \(f(x)=x^2\) has a root at \(x=0\), but \(f(x)\geq 0\) on both sides of zero. Thus, the absence of a sign change does not prove there is no root; a graph, substitution, or a different interval strategy may be needed. Similarly, a small residual is useful but its meaning depends on the scale of the function and the requested precision.

Common Pitfall: Treating a Displayed Decimal as Exact

A common error is to write that a rounded candidate is a root merely because the calculator displays it under a zero or root command. For the polynomial in the first example, an incorrect check might say, “\(1.324718\) is a root because the calculator returned \(1.324718\).” That skips the substitution and overstates what the display establishes.

The correction is to compute the residual with the same function used by the calculator: \(f(1.324718)\approx 0.000000182335474\). This value is small, but not zero. The careful conclusion is that \(1.324718\) is a numerical approximation to a root. Nearby function values can then add evidence by bracketing a root, as long as continuity and the sign change are checked.

Also check that the equation was entered correctly. For \(P(x)=Q(x)\), using \(P(x)+Q(x)\) instead of \(P(x)-Q(x)\) solves a different equation. For trigonometric equations, verify radians or degrees against the problem statement. These checks are simple, but they prevent many calculator-based errors.

Check Your Understanding

For each question, state the zero function and show how you would check a calculator result.

  1. For \(x^3-4x=1\), write an equivalent zero equation and explain what interval information you would want before using a root tool.
  2. A calculator reports \(c=1.4142\) for \(x^2-2=0\). What residual would you compute to check this candidate?
  3. If a continuous function has \(f(a)<0\) and \(f(b)>0\), what conclusion follows, and what stronger conclusion does not necessarily follow?
  4. Why might evaluating the function at values on both sides of a reported root be useful?
  5. What should you check before solving a trigonometric equation numerically?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon