Skip to content
GATEiit

GATE CSE · Engineering Mathematics

Mean value theorem

Rolle's theorem, Lagrange's mean value theorem and Cauchy's mean value theorem: their exact hypotheses, finding the point c, and using them to bound function values and count roots.

Before you start

Concept notes

1. Rolle's theorem

Rolle's theorem. If f is

  1. continuous on the closed interval [a,b],
  2. differentiable on the open interval (a,b), and
  3. f(a)=f(b),

then there is at least one c∈(a,b) with f′(c)=0.

Geometrically: a smooth curve that starts and ends at the same height has a horizontal tangent somewhere in between.

All three conditions matter. If any one fails, the conclusion may fail:

Function on [−1,1] Condition that fails Is there c with f′(c)=0?
∣x∣ not differentiable at 0 No: f′=±1
x for x<1, f(1)=−1 not continuous at 1 No: f′=1
x f(−1)≠f(1) No

The theorem says nothing when its conditions fail; a function may still have a horizontal tangent by luck. It also gives at least one c, not exactly one.

To find c: check the three conditions, solve f′(c)=0, and keep only roots strictly inside (a,b).

2. Lagrange's mean value theorem

Lagrange's mean value theorem (LMVT). If f is continuous on [a,b] and differentiable on (a,b), then there is at least one c∈(a,b) with f′(c)=f(b)−f(a)b−a.

Meaning: somewhere the instantaneous rate of change equals the average rate of change. On the graph, the tangent at c is parallel to the secant joining (a,f(a)) and (b,f(b)). Rolle's theorem is the special case f(a)=f(b).

An equivalent form, handy for bounds: f(b)=f(a)+(b−a)f′(c). If m≤f′(x)≤M on (a,b), then f(a)+m(b−a)≤f(b)≤f(a)+M(b−a).

For a quadratic f(x)=px2+qx+r, the point c is always the midpoint a+b2. For other functions, solve f′(c)= (secant slope) and pick the root in (a,b). If several roots lie inside, each one is a valid c.

A (a, f(a)) B (b, f(b)) c secant AB (dashed) tangent at c, parallel to AB
LMVT for $f(x) = x^3$ on $[0, 2]$: the secant slope is $4$, and the tangent at $c = \frac{2}{\sqrt{3}} \approx 1.155$ has the same slope.

3. Cauchy's mean value theorem

Cauchy's mean value theorem. If f and g are continuous on [a,b], differentiable on (a,b), and g′(x)≠0 on (a,b), then there is c∈(a,b) with f′(c)g′(c)=f(b)−f(a)g(b)−g(a).

Taking g(x)=x gives back Lagrange's theorem. Cauchy's theorem is the result behind L'Hôpital's rule.

The c in Cauchy's theorem is a single common point for both f and g. You cannot get it by applying LMVT to f and g separately and dividing, because LMVT would give each its own point.

Mean value theorem for integrals. If f is continuous on [a,b], then for some c∈[a,b] ∫abf(x) dx=f(c) (b−a). The number 1b−a∫abf(x) dx is the average value of f on [a,b], and the theorem says a continuous function actually takes its average value. For example, f(x)=x2 on [0,3] has average value 93=3, taken at c=3.

4. Consequences used in GATE questions

The mean value theorems turn facts about f′ into facts about f.

  • Zero derivative means constant: if f′(x)=0 on an interval, f is constant there. If f′=g′ on an interval, f−g is constant.
  • Monotonic functions: f′>0 on an interval means f is strictly increasing; f′<0 means strictly decreasing.
  • Bounding values: if ∣f′(x)∣≤M, then ∣f(b)−f(a)∣≤M∣b−a∣.
  • Counting roots: between two distinct roots of a differentiable f lies a root of f′ (Rolle). So if f′ is never zero on an interval, f has at most one root there. Combine with the intermediate value theorem (a sign change) to get exactly one.
  • A polynomial of degree n with n distinct real roots has a derivative with at least n−1 distinct real roots, one between each pair.
Theorem Extra condition Conclusion
Rolle f(a)=f(b) f′(c)=0
Lagrange none f′(c)=f(b)−f(a)b−a
Cauchy second function g, g′≠0 f′(c)g′(c)=f(b)−f(a)g(b)−g(a)

All three need continuity on the closed interval and differentiability on the open interval, and all three give c strictly inside.

Formulas to remember

Rolle's theorem
f(a)=f(b)⇒f′(c)=0 for some c∈(a,b)
Lagrange's mean value theorem
f′(c)=f(b)−f(a)b−a
Cauchy's mean value theorem
f′(c)g′(c)=f(b)−f(a)g(b)−g(a)
Bound from LMVTWhen m≤f′(x)≤M on (a,b)
f(a)+m(b−a)≤f(b)≤f(a)+M(b−a)
Mean value theorem for integrals
∫abf(x) dx=f(c) (b−a)
LMVT point for a quadratic
c=a+b2

Common mistakes

  • Applying Rolle's or Lagrange's theorem without checking continuity on [a, b] and differentiability on (a, b).
  • Keeping a value of c that lies outside the open interval (a, b), or at an endpoint.
  • Assuming the theorem gives exactly one c; it guarantees at least one.
  • In Cauchy's theorem, applying LMVT to f and g separately; the point c must be the same for both.
  • Reading 'Rolle's theorem does not apply' as 'there is no c with f'(c) = 0'; the conclusion may still hold by chance.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Rolle's theorem on a quadratic

numerical

Verify Rolle's theorem for f(x)=x2−4x+3 on [1,3] and find c.

  1. Step 1: Check the three conditions.

    Try it on paper first.

Example 2: Lagrange's theorem on a cubic

numerical

Find the value of c given by Lagrange's mean value theorem for f(x)=x3 on [0,3].

  1. Step 1: Compute the secant slope.

    Try it on paper first.

Example 3: Bounding a value with LMVT

numerical

f is differentiable on R with f(1)=3 and 2≤f′(x)≤5 for all x. Find the range of possible values of f(4).

  1. Step 1: Write LMVT on [1, 4].

    Try it on paper first.

Example 4: Why Rolle fails for |x|

conceptual

f(x)=∣x∣ on [−1,1] has f(−1)=f(1)=1. Is there c∈(−1,1) with f′(c)=0? Does this contradict Rolle's theorem?

  1. Step 1: Compute f' wherever it exists.

    Try it on paper first.

Previous year questions

1 official GATE CSE question on this topic, newest first.

Practise these 1 PYQs →

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.