Tutorials › Calculus I › Signed Error Versus Worst-Case Error

Linearization and Differentials · Tutorial 620 of 1495

Signed Error Versus Worst-Case Error

Use signed linear estimates to predict whether an output rises or falls, then use derivative bounds to control the largest possible output change.

Intermediate 9 min read

What You'll Learn

  • Interpret the sign of a derivative together with the direction of an input change.
  • Estimate the signed output change using the derivative at a nominal input.
  • Distinguish a first-order estimate from a guaranteed worst-case bound.
  • Bound output uncertainty when the derivative is bounded across an input interval.
  • Recognize when a zero derivative does not mean zero output uncertainty.
  • Check whether a sign prediction applies locally or throughout the uncertainty interval.

Two Questions About an Uncertain Input

Suppose an input \(x\) is measured near a nominal value \(a\), but its actual value may differ from \(a\). There are two useful questions: Which direction is the output expected to change? And how large could that change be? The first question is about a signed change; the second is about its magnitude.

The derivative helps answer both questions, but in different ways. Its sign, combined with the sign of the input change, gives a first-order prediction of the output's direction. Its absolute value, or an upper bound for its absolute value across a range of inputs, helps estimate output uncertainty.

Signed Change and Its Linear Estimate

Let \(f\) be differentiable at the nominal input \(a\). Write the actual input as \(a+h\), where \(h\) is the signed input change. Define the signed output change by \(\Delta y=f(a+h)-f(a)\). A positive \(\Delta y\) means the output increased; a negative \(\Delta y\) means it decreased.

Definition: The first-order, or linear, estimate of the signed output change is \(f'(a)h\). The sign of this estimate is the sign of the product \(f'(a)h\), provided neither factor is zero.

Thus, if \(f'(a)>0\), a positive input change has a positive first-order output estimate, while a negative input change has a negative estimate. If \(f'(a)<0\), the predicted directions are reversed. A negative derivative does not mean that the output change is always negative: the direction of the input change matters too.

The linear estimate follows directly from the definition of the derivative. For nonzero \(h\), write the difference quotient as

$$ \frac{f(a+h)-f(a)}{h}=f'(a)+r(h), $$

where \(r(h)\) is the difference between the quotient and \(f'(a)\). Differentiability at \(a\) means \(r(h)\to 0\) as \(h\to 0\). Multiplying by \(h\) gives

$$ f(a+h)-f(a)=f'(a)h+h\,r(h). $$

The first term is the linear estimate; the second is the error in that estimate. Since \(r(h)\to 0\), the error is small relative to \(h\) for sufficiently small changes. This is a local statement: it does not say that \(f'(a)h\) equals the actual change for every finite \(h\).

Worked Example: Reading the Sign of the Change

Worked Example: Reading the Sign of the Change

Let \(f(x)=x^2-4x\), with nominal input \(a=3\). Estimate the output change when the input increases by \(0.1\), and when it decreases by \(0.1\). Then compare each estimate with the actual change.

First calculate the nominal output and derivative:

$$ f(3)=3^2-4(3)=9-12=-3, \qquad f'(x)=2x-4, \qquad f'(3)=6-4=2. $$

For an input increase of \(0.1\), \(h=0.1\). The first-order estimate is

$$ f'(3)h=2(0.1)=0.2. $$

The positive estimate predicts an increase. The actual new input is \(3.1\), and

$$ f(3.1)=(3.1)^2-4(3.1)=9.61-12.4=-2.79, \qquad \Delta y=-2.79-(-3)=0.21. $$

The actual change is positive, as predicted, and differs from the estimate by \(0.21-0.2=0.01\).

For a decrease of \(0.1\), \(h=-0.1\). The estimate is

$$ f'(3)h=2(-0.1)=-0.2. $$

The negative estimate predicts a decrease. The actual input is \(2.9\), so

$$ f(2.9)=(2.9)^2-4(2.9)=8.41-11.6=-3.19, \qquad \Delta y=-3.19-(-3)=-0.19. $$

Again, the sign agrees, and the estimate differs from the actual change by \(-0.19-(-0.2)=0.01\). As a direct check, expanding at \(3+h\) gives \(f(3+h)-f(3)=2h+h^2\). Substituting \(h=0.1\) gives \(0.21\), and substituting \(h=-0.1\) gives \(-0.19\), matching both computed changes.

From a Signed Estimate to Worst-Case Uncertainty

An uncertainty statement often gives a range of possible inputs rather than a single signed change. Suppose \(|x-a|\leq\delta\), where \(\delta\geq 0\). At the nominal input, the linear estimate suggests an output-change magnitude of approximately \(|f'(a)|\delta\). The absolute value is essential: an uncertainty size is nonnegative, regardless of whether the corresponding signed output change is positive or negative.

However, \(|f'(a)|\delta\) is a local estimate, not automatically a guaranteed upper bound for every actual output change in the interval. The derivative may become larger in magnitude away from \(a\). A bound on the derivative throughout the whole interval provides a rigorous worst-case estimate.

Theorem: Suppose \(f\) is continuous on the closed interval between \(a\) and \(x\), differentiable in its interior, and \(|f'(t)|\leq M\) throughout that interior, for some \(M\geq 0\). Then $$ |f(x)-f(a)|\leq M|x-a|. $$ In particular, if these conditions hold for every \(x\) with \(|x-a|\leq\delta\), then every possible output change satisfies \(|f(x)-f(a)|\leq M\delta\).

To justify the result, apply the Mean Value Theorem to the interval with endpoints \(a\) and \(x\), when \(x\ne a\). It gives a point \(c\) between them such that

$$ f(x)-f(a)=f'(c)(x-a). $$

Taking absolute values and using the derivative bound yields

$$ |f(x)-f(a)|=|f'(c)|\,|x-a|\leq M|x-a|. $$

If \(x=a\), both sides of the claimed inequality are zero, so it holds in that case as well. The interval conditions matter: continuity on the closed interval and differentiability in its interior are what allow the Mean Value Theorem to apply.

This bound controls the magnitude, not the direction, of the change. If the derivative also has one strict sign throughout the interval, the Mean Value Theorem shows that the actual output change has the direction predicted by that sign and by \(x-a\). If the derivative changes sign, a sign prediction from the derivative at \(a\) alone need not hold over the whole interval.

Worked Example: A Decreasing Output and a Worst-Case Bound

Worked Example: A Decreasing Output and a Worst-Case Bound

Let \(f(x)=10-x^2\), and suppose the nominal input is \(a=2\) with uncertainty \(|x-2|\leq 0.05\). Find the signed first-order estimates for input changes of \(+0.05\) and \(-0.05\), then find a guaranteed bound for every output change in the uncertainty interval.

Differentiate and evaluate at the nominal input:

$$ f'(x)=-2x, \qquad f(2)=10-4=6, \qquad f'(2)=-4. $$

For \(h=0.05\), the signed first-order estimate is \((-4)(0.05)=-0.20\), predicting a decrease. The actual input is \(2.05\), and the actual change is

$$ f(2.05)=10-(2.05)^2=10-4.2025=5.7975, \qquad \Delta y=5.7975-6=-0.2025. $$

For \(h=-0.05\), the estimate is \((-4)(-0.05)=0.20\), predicting an increase. The actual input is \(1.95\), and

$$ f(1.95)=10-(1.95)^2=10-3.8025=6.1975, \qquad \Delta y=6.1975-6=0.1975. $$

To obtain a guaranteed bound, the full input interval is \([1.95,2.05]\). On this interval, \(f'(x)=-2x\), so \(|f'(x)|=2x\leq 2(2.05)=4.1\). We may take \(M=4.1\), and the theorem gives

$$ |f(x)-f(2)|\leq 4.1|x-2|\leq 4.1(0.05)=0.205. $$

The actual changes have magnitudes \(0.2025\) and \(0.1975\), both no greater than \(0.205\). This checks the bound at the two endpoints; the derivative-bound argument guarantees it for every input in the interval, not just those endpoints.

When the Derivative at the Nominal Input Is Zero

If \(f'(a)=0\), the first-order estimate is zero for every \(h\). This means the linear part predicts no change; it does not prove that the actual change is zero. Higher-order effects may still produce a nonzero change, and a derivative bound across the uncertainty interval can still give a useful worst-case estimate.

Worked Example: Zero First-Order Estimate, Nonzero Uncertainty

Let \(f(x)=x^3-3x\), with nominal input \(a=1\) and uncertainty \(|x-1|\leq 0.1\). Find the first-order estimate and a guaranteed output-change bound.

The nominal output and derivative are

$$ f(1)=1-3=-2, \qquad f'(x)=3x^2-3, \qquad f'(1)=3-3=0. $$

The first-order estimate is \(f'(1)h=0\). To bound actual changes, the possible inputs lie in \([0.9,1.1]\). On this interval, \(x^2\) ranges from \(0.81\) to \(1.21\), so \(3x^2-3\) ranges from \(3(0.81)-3=-0.57\) to \(3(1.21)-3=0.63\). Therefore \(|f'(x)|\leq 0.63\), and

$$ |f(x)-f(1)|\leq 0.63|x-1|\leq 0.63(0.1)=0.063. $$

Check the endpoint changes. At \(x=1.1\), \(f(1.1)=1.331-3.3=-1.969\), so the change is \(-1.969-(-2)=0.031\). At \(x=0.9\), \(f(0.9)=0.729-2.7=-1.971\), so the change is \(-1.971-(-2)=0.029\). Both are nonzero, and both have magnitude less than \(0.063\), as required by the bound. The zero linear estimate should therefore not be mistaken for a zero worst-case uncertainty.

A Common Mistake: Treating the Local Estimate as a Guarantee

A frequent error is to use \(|f'(a)|\delta\) as a guaranteed bound without checking the derivative elsewhere in the input interval. For example, take \(f(x)=x^2\), \(a=1\), and \(\delta=0.1\). Since \(f'(x)=2x\), the derivative at the nominal input is \(f'(1)=2\). A tempting calculation is

$$ |f'(1)|\delta=2(0.1)=0.2. $$

This is the first-order magnitude estimate, but it is not a valid upper bound for all changes: at \(x=1.1\), the actual change is \(1.1^2-1^2=1.21-1=0.21\), which exceeds \(0.2\).

The correction is to bound the derivative over the full interval \([0.9,1.1]\). There, \(|f'(x)|=2x\leq 2.2\), giving

$$ |f(x)-f(1)|\leq 2.2(0.1)=0.22. $$

This is a guaranteed bound, and \(0.21\leq 0.22\). The nominal derivative remains useful for a local estimate; the interval derivative bound supplies the guarantee.

Using Both Ideas Carefully

For a signed input change, begin with the product \(f'(a)h\). Its sign gives the first-order direction, and its magnitude estimates the local output change. For a range of possible inputs, use an absolute derivative bound over that entire range to bound the magnitude of every output change.

  • If the derivative at the nominal input is positive, the local estimate has the same sign as the input change.
  • If the derivative at the nominal input is negative, the local estimate has the opposite sign from the input change.
  • If the derivative is zero, the first-order estimate is zero, but actual changes may still be nonzero.
  • If \(|f'|\leq M\) throughout the uncertainty interval, then the exact output-change magnitude is at most \(M\) times the input-change magnitude.

The distinction is useful whenever an estimate must communicate both direction and reliability. A signed estimate says which way the output is expected to move locally. A worst-case bound says how far it can move under stated assumptions, even when the estimate is not exact.

Check Your Understanding

For each question, distinguish a signed first-order estimate from a guaranteed magnitude bound.

  1. If \(f'(a)<0\) and \(h>0\), what is the sign of the first-order output estimate?
  2. Why does the estimate \(|f'(a)|\delta\) not automatically bound every actual output change for \(|x-a|\leq\delta\)?
  3. State the derivative-bound conditions that imply \(|f(x)-f(a)|\leq M|x-a|\).
  4. If \(f'(a)=0\), what does the linear estimate say, and what does it not establish?
  5. For \(f(x)=10-x^2\) at \(a=2\), why does an input decrease have a positive first-order output estimate?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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