šŸ“˜ CodingMarble Learn

Continuity and the Intermediate Value Theorem

A function is continuous at a point if its limit there equals its value. A continuous function on an interval has no jumps: it cannot skip a value between two of its values (intermediate value theorem). If it is also strictly monotone, it takes each such value exactly once.

šŸŽ¬ Step-by-step story

  1. This curve is smooth. A red pencil slides along it from A to B and never has to lift. That is a continuous function.
  2. Now the curve has a break at x = 0. The pencil must lift and jump up. This function is not continuous at 0.
  3. Test it with two probes. Come close to x = 0 from the left and from the right. On the broken curve they land at different heights.
  4. Back to the smooth curve. Slide the green line y = k up from low to high. It always touches the curve: no height between A and B is skipped.
  5. On the broken curve the green line passes through the gap and touches nothing. The jump skipped those heights. Without continuity the rule fails.
  6. Your turn. Move x, move the level k and switch the curve. Predict first: will the line touch the curve?

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

šŸ¤” Common doubts, cleared

Does "continuous" really mean I can draw it without lifting the pencil?

For a function on an interval, yes, that picture is a good guide. The exact meaning is lim f(x) = f(a) at every point.

What goes wrong at the broken point?

The value on the left side and the value on the right side do not meet, so the limit does not exist there.

Why must the green line touch a smooth curve?

A smooth curve is joined from A to B. To go from low to high it must pass every height in between.

Why does the line miss the broken curve?

The jump skips a range of heights. The curve never takes any value inside that gap.

If the curve crosses the line, is it crossed only once?

Not always. A wavy curve can cross many times. Only a strictly monotone curve crosses exactly once.

Is the IVT true if f is continuous but I use an open interval?

You need the values f(a) and f(b) at the ends, so use a closed interval [a, b] where f is continuous.

Continuity at a point and on an interval

A function f is continuous at a when three things are true: f(a) exists, the limit of f(x) as x goes to a exists, and the two are equal: lim f(x) = f(a).

In simple words: as x creeps up on a from the left and from the right, f(x) creeps up on the same number f(a). There is no hole, no jump, no blow-up.

f is continuous on an interval if it is continuous at every point of it. At the end points of a closed interval [a, b] we only use the one side that exists.

Good news: polynomials, sin, cos, exp are continuous everywhere. A fraction like 1/x is continuous everywhere it is defined, but it is not defined at 0, so there it breaks. Sums, products, and compositions of continuous functions are continuous.

Differentiable implies continuous

If f has a derivative at a, then f is continuous at a. A tangent line can only exist on a curve that has no break. So differentiable ⇒ continuous.

The other way is false. The function |x| is continuous at 0 (no break) but has a sharp corner, so it has no derivative at 0. Continuous is a weaker idea than differentiable.

The image of a convergent sequence

Take a sequence uā‚™ that converges to L. If f is continuous at L, then the sequence f(uā‚™) converges to f(L). We write: lim f(uā‚™) = f(lim uā‚™).

Example: uā‚™ = 2 + 1/n goes to 2. For f(x) = x², f(uā‚™) goes to f(2) = 4. This lets us move the limit inside a continuous function. If uā‚™ā‚Šā‚ = f(uā‚™) and uā‚™ converges to L, then L = f(L): the limit is a fixed point.

Intermediate value theorem (IVT)

Let f be continuous on [a, b]. If k is any number between f(a) and f(b), then there is at least one c in [a, b] with f(c) = k.

Use it to show a root exists: if f(a) and f(b) have opposite signs, take k = 0, so f has a zero between a and b. Example: f(x) = x² āˆ’ 5 has f(2) = āˆ’1 and f(3) = 4, so x² = 5 has a solution between 2 and 3.

Both conditions matter: f must be continuous on the whole closed interval. On 1/x over [āˆ’1, 1] the signs change but there is no root, because 1/x breaks at 0.

Bisection: keep halving the interval, keeping the half where the sign changes, to trap the root as tightly as you like.

The strictly monotone case

If f is continuous and strictly increasing (or strictly decreasing) on [a, b], then each value k between f(a) and f(b) is reached exactly once. Monotone gives "at most one", IVT gives "at least one".

This is how we prove that an equation f(x) = k has a unique solution, for example x³ + x = 5 (the derivative 3x² + 1 is positive, so f is strictly increasing). It is also why inverse functions of continuous strictly monotone functions exist.

Key formulas and definitions

Worked examples

1. Is f(x) = 3x² āˆ’ 2x continuous at x = 4? Find f(4).

f is a polynomial, so it is continuous everywhere. lim f(x) = f(4) = 3(16) āˆ’ 8 = 40.

2. f(x) = x + 1 for x < 2 and f(x) = ax āˆ’ 1 for x ≄ 2. Find a so that f is continuous at 2.

Left limit = 2 + 1 = 3. Value at 2 = 2a āˆ’ 1. Set equal: 2a āˆ’ 1 = 3, so a = 2.

3. f(x) = (x² āˆ’ 4)/(x āˆ’ 2) for x ≠ 2. What value of f(2) makes f continuous at 2?

For x ≠ 2, f(x) = (x āˆ’ 2)(x + 2)/(x āˆ’ 2) = x + 2. The limit at 2 is 4, so define f(2) = 4.

4. Show that x³ āˆ’ x āˆ’ 1 = 0 has a root between 1 and 2.

f(x) = x³ āˆ’ x āˆ’ 1 is a polynomial, so continuous. f(1) = āˆ’1 < 0 and f(2) = 5 > 0. By the IVT there is c in (1, 2) with f(c) = 0.

5. Use one bisection step for x² āˆ’ 2 = 0 on [1, 2]. Which half has the root?

Midpoint 1.5: f(1.5) = 2.25 āˆ’ 2 = 0.25 > 0. f(1) = āˆ’1 < 0. The sign changes between 1 and 1.5, so the root is in [1, 1.5].

6. Show x³ + x = 5 has exactly one solution.

f(x) = x³ + x āˆ’ 5 is continuous. f(1) = āˆ’3 and f(2) = 5, so there is a root in (1, 2) by the IVT. f′(x) = 3x² + 1 > 0, so f is strictly increasing and can cross zero only once. Exactly one solution.

Common mistakes

Practice quiz

1. f is continuous at a when:
2. Which statement is true?
3. f is continuous on [1, 3], f(1) = āˆ’2, f(3) = 6. Which value must f take?
4. If uā‚™ → 3 and f is continuous at 3, then f(uā‚™) →
5. A continuous, strictly increasing function takes a value k between f(a) and f(b):

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is continuity in simple words?

A function is continuous if you can draw its graph without lifting your pencil. Small changes in x give small changes in f(x).

What does the intermediate value theorem say?

If f is continuous on [a, b], then f takes every value between f(a) and f(b) at least once inside [a, b].

How do I show an equation has a solution?

Write it as f(x) = 0, check f is continuous, find two points where f has opposite signs, then quote the intermediate value theorem.

Where this is taught

FranceTerminaleAnalysis

Learn first

Learn next

Related lessons

All Maths lessons