Tutorials › Calculus I › A Zero Derivative Forces Constancy

Mean Value Theorems · Tutorial 690 of 1495

A Zero Derivative Forces Constancy

Use the Mean Value Theorem to turn a zero derivative into constancy, then apply that principle to determine unknown constants and compare functions.

Advanced 10 min read

What You'll Learn

  • State the hypotheses needed for zero derivative to imply constancy on an interval.
  • Prove the result by applying the Mean Value Theorem between arbitrary points.
  • Determine a function's constant value from one known function value.
  • Find unknown coefficients when two functions have equal derivatives.
  • Show that two functions with equal derivatives differ by a constant.
  • Recognize why the interval condition and the “throughout” condition matter.

From Zero Slope to a Constant Function

A derivative measures the instantaneous rate of change of a function. If that rate is zero at one point, the function has a horizontal tangent there, but this alone says little about its values elsewhere. A stronger condition is that the derivative be zero at every interior point of an interval. The Mean Value Theorem then shows that no two function values on that interval can differ.

This result turns information about a derivative into a conclusion about the entire function. It also provides a useful way to determine unknown constants: if two functions have the same derivative throughout an interval, their difference is constant there.

Theorem: Let \(I\) be an interval, and let \(f\) be continuous on \(I\) and differentiable at every interior point of \(I\). If \(f'(x)=0\) at every interior point \(x\), then \(f\) is constant on \(I\). That is, there is a number \(C\) such that \(f(x)=C\) for every \(x\in I\).

For an interval consisting of a single point, the conclusion is immediate. The proof below treats intervals containing at least two points. Continuity at any included endpoint is part of the hypothesis; differentiability at the endpoints is not required.

Why the Mean Value Theorem Gives Constancy

The Mean Value Theorem states that if a function is continuous on a closed interval \([a,b]\) and differentiable on its interior \((a,b)\), then there exists a point \(c\in(a,b)\) such that

$$ f'(c)=\frac{f(b)-f(a)}{b-a}. $$

To use this theorem, take any two points \(x,y\in I\) with \(x<y\). Because \(I\) is an interval, every point between \(x\) and \(y\) also belongs to \(I\). Thus \(f\) is continuous on \([x,y]\) and differentiable on \((x,y)\), as required.

1
Choose two points.
Let \(x,y\in I\) with \(x<y\). The goal is to show their function values are equal.
2
Apply the Mean Value Theorem.
There is some \(c\in(x,y)\) for which \(f(y)-f(x)=f'(c)(y-x)\).
3
Use the zero-derivative condition.
Since \(c\in I\) is an interior point and \(f'(c)=0\), it follows that \(f(y)-f(x)=0\).
4
Conclude constancy.
Thus \(f(y)=f(x)\). Since the two points were arbitrary, all values of \(f\) on \(I\) are equal.

In equations, the key step is

$$ f(y)-f(x)=f'(c)(y-x)=0\cdot(y-x)=0. $$

If the points are presented in the opposite order, exchange their names and apply the same argument. If they are equal, their function values are already equal. Therefore every pair of points in \(I\) has the same function value, which is exactly what it means for \(f\) to be constant on \(I\).

Why the conclusion follows: The Mean Value Theorem relates the change in function value between any two points to a derivative at an intermediate point. If every such derivative is zero, the change between any two points must be zero.

Using One Known Value

The theorem identifies the shape of the function: it is constant. A single known value then identifies which constant it is. This is useful even when the function is specified only by conditions on its derivative rather than by an explicit formula.

Worked Example: Determine the Function from Its Derivative and One Value

Suppose \(f\) is continuous on \([-2,4]\), differentiable on \((-2,4)\), and \(f'(x)=0\) for every \(x\in(-2,4)\). If \(f(3)=7\), find \(f(-2)\) and \(f(4)\).

For any two points in \([-2,4]\), the theorem just proved gives equal function values. In particular, take the points \(3\) and \(-2\): \(f(-2)=f(3)=7\). Taking the points \(3\) and \(4\) gives \(f(4)=f(3)=7\).

Therefore, \(f(x)=7\) for every \(x\in[-2,4]\). Check: this constant function has derivative \(0\) on \((-2,4)\) and takes the required value \(f(3)=7\).

Equal Derivatives Mean a Constant Difference

The zero-derivative theorem also compares two functions. Suppose \(f\) and \(g\) are both continuous on an interval \(I\) and differentiable at every interior point. Define their difference by \(h(x)=f(x)-g(x)\). If \(f'(x)=g'(x)\) at every interior point, then

$$ h'(x)=f'(x)-g'(x)=0. $$

Applying the theorem to \(h\) shows that \(h\) is constant. Thus \(f(x)-g(x)=C\) throughout \(I\), or equivalently \(f(x)=g(x)+C\). A known value at one point can determine \(C\).

Corollary: If two functions are continuous on an interval and differentiable in its interior, and their derivatives agree throughout the interior, then their difference is constant on the interval.

Worked Example: Find Unknown Polynomial Coefficients

Let \(P(x)=x^3+ax^2+bx+c\) and \(Q(x)=x^3+2x^2-5x+7\). Suppose \(P'(x)=Q'(x)\) for every \(x\in(-1,3)\), and \(P(1)=4\). Find \(a\), \(b\), and \(c\), then determine \(P(x)-Q(x)\).

Differentiate each polynomial:

$$ P'(x)=3x^2+2ax+b, \qquad Q'(x)=3x^2+4x-5. $$

Equality of the derivatives implies \(2ax+b=4x-5\) for every \(x\in(-1,3)\). Rearrange this as \((2a-4)x+(b+5)=0\). Since \(0\) and \(1\) both belong to \((-1,3)\), substitute each value. At \(x=0\), \(b+5=0\), so \(b=-5\). At \(x=1\), \((2a-4)+(b+5)=0\). Substituting \(b=-5\) gives \(2a-4=0\), so \(a=2\).

Now use \(P(1)=4\): \(1+a+b+c=4\). Substituting \(a=2\) and \(b=-5\) gives \(1+2-5+c=4\), so \(c=6\). Therefore \(P(x)=x^3+2x^2-5x+6\), and

$$ P(x)-Q(x) =(x^3+2x^2-5x+6)-(x^3+2x^2-5x+7) =-1. $$

Check: \(P'(x)=3x^2+4x-5=Q'(x)\), and \(P(1)=1+2-5+6=4\). The difference is indeed the constant \(-1\).

Worked Example: Determine a Constant Difference from a Trigonometric Condition

Suppose \(F(x)=\sin x+ax+b\) and \(G(x)=\sin x+2x-1\) have equal derivatives for every real \(x\), and \(F(0)=4\). Find \(a\), \(b\), and \(F(x)-G(x)\).

Differentiate: \(F'(x)=\cos x+a\) and \(G'(x)=\cos x+2\). Equality for every \(x\) gives \(\cos x+a=\cos x+2\), hence \(a=2\). The value at zero is \(F(0)=\sin 0+2\cdot0+b=b\), so \(b=4\).

Consequently, \(F(x)=\sin x+2x+4\), and subtracting \(G\) gives \(F(x)-G(x)=5\) for every real \(x\). Check: \(F'(x)=\cos x+2=G'(x)\), and \(F(0)=4\). Also, direct subtraction gives \((\sin x+2x+4)-(\sin x+2x-1)=5\), as required.

Conditions Matter

Both parts of the hypothesis are essential to the reasoning. The derivative must vanish at every interior point, not merely at a selected point. Also, the domain must be an interval so that the Mean Value Theorem can be applied between any two points in it.

Worked Example: A Zero Derivative at One Point Is Not Enough

Consider \(f(x)=x^2\) on \([-1,1]\). Its derivative is \(f'(x)=2x\), so \(f'(0)=0\). However, \(f(0)=0\) and \(f(1)=1\), which are not equal. Thus \(f\) is not constant.

There is no contradiction with the theorem: the derivative is zero at \(x=0\) only, not throughout \((-1,1)\). In particular, the Mean Value Theorem between \(0\) and \(1\) gives some \(c\in(0,1)\) with \(\frac{f(1)-f(0)}{1-0}=f'(c)\). Here the left side is \(1\), and \(f'(c)=2c=1\) when \(c=\frac12\). The theorem's conclusion is consistent with the nonzero change in function value.

An interval condition also prevents a separate problem. Define \(u(x)=0\) for \(x<0\) and \(u(x)=1\) for \(x>0\), with domain \((-\infty,0)\cup(0,\infty)\). At every point of this domain, \(u\) is locally constant, so \(u'(x)=0\). Yet it is not constant on its whole domain: values on the negative component are \(0\), while values on the positive component are \(1\). The domain is not an interval, and the Mean Value Theorem cannot connect a negative point to a positive one within that domain.

Common mistake: From \(f'(c)=0\) at one point, concluding that \(f\) is constant is invalid. The theorem requires \(f'(x)=0\) throughout the interior of an interval. For example, \(f(x)=x^2\) has \(f'(0)=0\), but \(f(0)\ne f(1)\).

Why This Result Is Useful

Knowing a derivative can leave one piece of information undetermined: an additive constant. The result explains precisely why. If two candidate functions have the same derivative on an interval, their difference has zero derivative there, so the candidates can differ only by a constant. A value at one point fixes that constant.

The same idea supports proofs of identities. When two expressions have equal derivatives on an interval, comparing their values at one convenient point can establish their relationship everywhere on that interval. The logic always depends on checking the hypotheses: the functions must be continuous on the relevant interval, differentiable in its interior, and have equal derivatives throughout that interior.

Check Your Understanding

For each question, identify which hypothesis or conclusion of the zero-derivative theorem is relevant.

  1. If \(f'(x)=0\) for every interior point of an interval and \(f(2)=-3\), what must \(f(x)\) equal throughout that interval?
  2. Suppose \(f\) and \(g\) are continuous on \([0,5]\), differentiable on \((0,5)\), and \(f'(x)=g'(x)\) throughout \((0,5)\). What can you conclude about \(f-g\)?
  3. For \(p(x)=x^2+ax+b\), suppose \(p'(x)=2x+6\) throughout an interval containing \(0\) and \(1\). Determine \(a\).
  4. Why does \(f'(0)=0\) alone fail to show that \(f\) is constant? Give a specific example.
  5. Why can the zero-derivative theorem not be applied across both components of \((-\infty,0)\cup(0,\infty)\) as though that domain were an interval?

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