Intermediate Value Theorem Explained with Worked Examples

The intermediate value theorem says that if is continuous on and , then for some in .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Intermediate value theorem means

A continuous function cannot skip values: to go from below to above , it must pass through .

It is used to show that equations have solutions, for example that has a root between 1 and 2.

It is the idea behind the bisection method for finding roots numerically. It rests on the epsilon-delta definition of a limit, is related to Rolle theorem and the mean value theorem, and is used to locate roots of a function. A closely connected idea is Derivative from first principles.

This page is part of Differentiation in Calculus. Topics that work alongside it: Rolle’s theorem, Epsilon–delta definition of a limit, Mean value theorem, L'Hôpital's rule, Implicit function derivative and Taylor’s theorem with Lagrange remainder.

What is it used for?

The intermediate value theorem says that a continuous function that takes two values must take every value in between.

How to use intermediate value theorem

  1. Check continuity.
  2. Evaluate at the ends.
  3. Show that lies between and .
  4. Conclude that a solution exists.

Graph

f(x) = x³ − x − 1 changes sign between 1 and 2f(1) = −1f(2) = 500.20.40.60.811.21.41.61.82-20246f(x) = x³ − x − 1 changes sign between 1 and 2xyf(x) = x³ − x − 1Graph with x from 0 to 2 and y from -3 to 6. Shows the curve f(x) = x³ − x − 1; point f(1) = −1 at (1, -1); point f(2) = 5 at (2, 5).

f(1) is negative and f(2) is positive, so the continuous curve must cross the x-axis between 1 and 2.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: show a root exists

Show that has a root in .

Worked example
Answer
A root exists in (1,2)\text{A root exists in }(1,2)
  1. Evaluate the endpoints
  2. Apply the theorem
    The function is continuous and changes sign, so for some .

Example 2: a cosine equation

Show that has a solution in .

Worked example
Answer
A root exists in (0,1)\text{A root exists in }(0,1)
  1. Let f(x) = cos x − x
  2. Apply the theorem
    There is a root in .

Example 3: an exponential equation

Show that has a solution between 2 and 3.

Worked example
Answer
a solution lies in (2,3)\text{a solution lies in } (2, 3)
  1. Let f(x) = 2ˣ − 5
  2. Opposite signs and f is continuous
    By the intermediate value theorem, f(x) = 0 for some x between 2 and 3.

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

f = x³ − x − 1 on [1, 2]

f(1) = −1, f(2) = 5

A root in (1, 2).

f(1.5)

3.375 − 1.5 − 1

0.875 > 0.

f(1.25)

1.953 − 1.25 − 1

−0.2969 < 0.

cos x − x at 0 and 1

1 and −0.4597

A root in (0, 1).

Word problems

If f is continuous on [a, b] and k lies between f(a) and f(b), then f(c) = k for some c. In particular a sign change guarantees a root; bisection narrows it.

Sign at 1

f = x³ − x − 1. Find f(1).

  1. 1 − 1 − 1
  2. Check: ✓-1

Sign at 2

Find f(2).

  1. 8 − 2 − 1
  2. Check: 5, so a root in (1, 2) ✓5

Bisect Higher

Find f(1.5).

  1. 3.375 − 2.5
  2. Check: positive, root in (1, 1.5) ✓0.875

Narrow Higher

Find f(1.25).

  1. 1.953125 − 2.25
  2. Check: negative, root in (1.25, 1.5) ✓-0.2969

Common mistakes

Discontinuous f

applies ✗

needs continuity ✓

1/x on [−1, 1].

Same signs

no root ✗

inconclusive ✓

May still have roots.

Root unique

one root ✗

at least one ✓

Odd number of sign changes.

Wrong evaluation

arithmetic slip ✗

recompute ✓

Check.

Exam tips

  1. Continuous f.
  2. Sign change ⇒ root.
  3. Bisect to narrow.
  4. Same signs: inconclusive.
  5. Check arithmetic.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. f(1) for x³ − 2x − 5 Foundation

-6

2. f(3) for x³ − 2x − 5 Foundation

16

3. f(2) for x³ − 2x − 5 Foundation

-1

4. f(2.5) for x³ − 2x − 5 to 3 d.p. Higher

5.625

5. cos 0 − 0 Higher

1

6. f(1.5) for x³ − x − 1 to 3 d.p. Higher

0.875

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Intermediate value theorem
Continuous f takes every value between.
Sign change
f(a)f(b) < 0.
Bisection
Halving the interval.
Root
f(c) = 0.
Continuous
No jumps.
Interval
[a, b].

Frequently asked questions

What is the IVT?

A continuous function takes every value between f(a) and f(b).

How does it find roots?

A sign change on [a, b] guarantees a root.

What is bisection?

Repeatedly halving an interval with a sign change.

Does it need continuity?

Yes.

Which page covers the MVT?

mean value theorem.

Which page covers ε–δ?

ε–δ definition.

More in Calculus and the formula sheets.