BAC MathsOffline
Progress saved to your account.Saving to your account…Offline. Progress stays on this device and uploads later.Sync did not work. It will try again.Progress on this device is not in your account.This device’s progress belongs to another account, so it is not synced.
Settings

Working draft: this text has not been reviewed yet.

1.2Continuity and limits

Continuity and the Intermediate Value Theorem (TVI)

Reading time
33 min
In the programme of
SEMTM
Contents
  1. 1Continuity at a Point
  2. 1.1Formal Definition
  3. 1.2Discontinuity
  4. 2Continuity on an Interval
  5. 2.1Definitions
  6. 2.2Standard Continuous Functions (Fundamental Properties)
  7. 2.3Operations on Continuous Functions
  8. 2.4Continuity of Composite Functions
  9. 3Image of an Interval by a Continuous Function
  10. 3.1Table: Determination of f(I)f(I) When ff is Strictly Monotonic
  11. 4The Intermediate Value Theorem (TVI)
  12. 4.1General Existence Theorem
  13. 4.2Special Case: Roots of f(x)=0f(x) = 0
  14. 5The Bijection Theorem (Corollary for Uniqueness)
  15. 5.1Theorem Statement (Uniqueness Corollary)
  16. 5.2Standard BAC Writing Template for TVI Questions
  17. 6Algorithmic Root Enclosure: The Bisection (Dichotomy) Method
  18. 6.1The Dichotomy Algorithm
  19. 7Deducing the Sign of f(x)f(x) from the Root α\alpha
  20. 7.1Case 1: gg is Strictly Increasing on II with g(α)=0g(\alpha) = 0
  21. 7.2Case 2: gg is Strictly Decreasing on II with g(α)=0g(\alpha) = 0
  22. 8Recap

Continuity at a Point

A function is continuous when its curve can be drawn without lifting the pen. This section makes that precise.

Formal Definition

Let ff be a function defined on an interval II containing x0x_0. We say that ff is continuous at x0x_0 if and only if:

lim⁡x→x0f(x)=f(x0)\lim_{x \to x_0} f(x) = f(x_0)

In terms of one-sided limits: ff is continuous at x0x_0 if and only if:

lim⁡x→x0+f(x)=lim⁡x→x0−f(x)=f(x0)\lim_{x \to x_0^+} f(x) = \lim_{x \to x_0^-} f(x) = f(x_0)

Discontinuity

A function is discontinuous at x0x_0 if:

  • f(x0)f(x_0) is undefined, OR
  • The limit lim⁡x→x0f(x)\lim_{x \to x_0} f(x) does not exist, OR
  • lim⁡x→x0f(x)≠f(x0)\lim_{x \to x_0} f(x) \neq f(x_0).

Method · Continuity at a point

  1. Compute f(x0)f(x_0): it must exist.
  2. Compute lim⁡x→x0+f(x)\lim_{x \to x_0^+} f(x) and lim⁡x→x0−f(x)\lim_{x \to x_0^-} f(x).
  3. If both limits equal f(x0)f(x_0), ff is continuous at x0x_0. If one of the three conditions fails, it is discontinuous.

Visual Intuition:

Graphically, a function is continuous on an interval if its representative curve (Cf)(\mathcal{C}_f) can be drawn in a single continuous stroke without lifting the pen from the paper.

Try the pencil test on x↦1xx \mapsto \frac{1}{x}. The function 1x\frac{1}{x} is not defined at 00, so it is not continuous there: the curve breaks. Also lim⁡x→0+1x=+∞\lim_{x \to 0^+} \frac{1}{x} = +\infty while lim⁡x→0−1x=−∞\lim_{x \to 0^-} \frac{1}{x} = -\infty, so one stroke cannot cross x=0x = 0. A rational function is continuous on every interval of its domain, here ]−∞,0[]{-\infty}, 0[ and ]0,+∞[]0, +\infty[.


Continuity on an Interval

The theorems below need continuity on a whole interval, and most functions you meet are already continuous on theirs.

Definitions

  • A function ff is continuous on an open interval ]a,b[]a, b[ if it is continuous at every point x∈]a,b[x \in ]a, b[.
  • A function ff is continuous on a closed interval [a,b][a, b] if:
    1. ff is continuous on ]a,b[]a, b[,
    2. ff is continuous from the right at aa: lim⁡x→a+f(x)=f(a)\lim_{x \to a^+} f(x) = f(a),
    3. ff is continuous from the left at bb: lim⁡x→b−f(x)=f(b)\lim_{x \to b^-} f(x) = f(b).

Standard Continuous Functions (Fundamental Properties)

In the Algerian secondary curriculum, the following classes of functions are admitted as continuous on their domains of definition:

  • Polynomial functions are continuous on R\mathbb{R}.
  • Rational functions (quotients of polynomials P(x)Q(x)\frac{P(x)}{Q(x)}) are continuous on every interval of their domain R∖{x∣Q(x)=0}\mathbb{R} \setminus \{x \mid Q(x) = 0\}.
  • The absolute value function x↦∣x∣x \mapsto |x| is continuous on R\mathbb{R}.
  • The square root function x↦xx \mapsto \sqrt{x} is continuous on [0,+∞[[0, +\infty[.
  • The trigonometric functions x↦cos⁡xx \mapsto \cos x and x↦sin⁡xx \mapsto \sin x are continuous on R\mathbb{R}.
  • The tangent function x↦tan⁡xx \mapsto \tan x is continuous on each interval ]−π2+kπ,π2+kπ[]{-\frac{\pi}{2}} + k\pi, \frac{\pi}{2} + k\pi[ for k∈Zk \in \mathbb{Z}.

Operations on Continuous Functions

Let uu and vv be two continuous functions on an interval II, and let λ∈R\lambda \in \mathbb{R}:

  • u+vu + v, u−vu - v, and λu\lambda u are continuous on II.
  • The product u×vu \times v is continuous on II.
  • The quotient uv\frac{u}{v} is continuous on any sub-interval where v(x)≠0v(x) \neq 0.
  • If uu is continuous on II with u(x)≥0u(x) \ge 0 for all x∈Ix \in I, then u\sqrt{u} is continuous on II.

Continuity of Composite Functions

Theorem

If uu is continuous on an interval II, and vv is continuous on an interval JJ such that u(I)⊆Ju(I) \subseteq J, then the composite function f=v∘uf = v \circ u is continuous on II.

Method · Continuity on an interval

  1. Write ff with the standard continuous functions (polynomial, rational, ∣x∣|x|, x\sqrt{x}, cos⁡\cos, sin⁡\sin, tan⁡\tan), the operations and the composition.
  2. Check the conditions: a denominator is never 00 on the interval, the expression under a square root is ≥0\ge 0, the image of the inner function lies in the domain of the outer one.
  3. Conclude, naming the property used.

Image of an Interval by a Continuous Function

A continuous function sends an interval onto an interval: no gap appears.

Let ff be continuous on an interval II.

  • Theorem: The image of an interval II by a continuous function ff, denoted f(I)f(I), is also an interval.
  • Extreme Value Theorem: If ff is continuous on a closed bounded interval [a,b][a, b], then f([a,b])f([a, b]) is a closed bounded interval [m,M][m, M], where m=min⁡[a,b]fm = \min_{[a, b]} f and M=max⁡[a,b]fM = \max_{[a, b]} f.

Table: Determination of f(I)f(I) When ff is Strictly Monotonic

Interval IIff is Strictly Increasing (↗\nearrow)ff is Strictly Decreasing (↘\searrow)
[a,b][a, b][f(a),f(b)][f(a), f(b)][f(b),f(a)][f(b), f(a)]
[a,b[[a, b[[f(a),lim⁡x→b−f(x)[[f(a), \lim_{x \to b^-} f(x)[]lim⁡x→b−f(x),f(a)]]\lim_{x \to b^-} f(x), f(a)]
]a,b]]a, b]]lim⁡x→a+f(x),f(b)]]\lim_{x \to a^+} f(x), f(b)][f(b),lim⁡x→a+f(x)[[f(b), \lim_{x \to a^+} f(x)[
]a,b[]a, b[]lim⁡x→a+f(x),lim⁡x→b−f(x)[]\lim_{x \to a^+} f(x), \lim_{x \to b^-} f(x)[]lim⁡x→b−f(x),lim⁡x→a+f(x)[]\lim_{x \to b^-} f(x), \lim_{x \to a^+} f(x)[
[a,+∞[[a, +\infty[[f(a),lim⁡x→+∞f(x)[[f(a), \lim_{x \to +\infty} f(x)[]lim⁡x→+∞f(x),f(a)]]\lim_{x \to +\infty} f(x), f(a)]
]−∞,b]]{-\infty}, b]]lim⁡x→−∞f(x),f(b)]]\lim_{x \to -\infty} f(x), f(b)][f(b),lim⁡x→−∞f(x)[[f(b), \lim_{x \to -\infty} f(x)[
]−∞,+∞[]{-\infty}, +\infty[]lim⁡x→−∞f(x),lim⁡x→+∞f(x)[]\lim_{x \to -\infty} f(x), \lim_{x \to +\infty} f(x)[]lim⁡x→+∞f(x),lim⁡x→−∞f(x)[]\lim_{x \to +\infty} f(x), \lim_{x \to -\infty} f(x)[

Method · Finding f(I)

  1. Check that ff is continuous and strictly monotonic on II, and which way it goes.
  2. Find the row of the table that matches the kind of interval II.
  3. Fill in ff at each closed end and the limit of ff at each open end or at ±∞\pm\infty.

Quick check

Let ff be continuous and strictly decreasing on [a,b][a, b]. Which interval is f([a,b])f([a, b])?

Solution

f([a,b])=[f(b),f(a)]f([a, b]) = [f(b), f(a)]: the first row of the table, in the decreasing column.


The Intermediate Value Theorem (TVI)

A continuous curve that starts below a level and ends above it must cross that level somewhere.

The TVI is one of the most frequently examined theorems in the Algerian Baccalauréat. It guarantees the existence of solutions to equations of the form f(x)=kf(x) = k without needing to solve them analytically.

General Existence Theorem

Theorem · TVI

Let ff be a function continuous on the closed interval [a,b][a, b]. For any real number kk situated between f(a)f(a) and f(b)f(b), there exists at least one real number c∈[a,b]c \in [a, b] such that:

f(c)=kf(c) = k

k = 0c ≈ 1.678

In the BAC problem of chapter 2, let g(x)=2x3−3x2−1g(x) = 2x^3 - 3x^2 - 1. It is a polynomial, hence continuous on [1,2][1, 2], with g(1)=−2g(1) = -2 and g(2)=3g(2) = 3. Move the level y=ky = k: as long as kk lies between g(1)g(1) and g(2)g(2), the line meets the curve above [1,2][1, 2] at a point of abscissa cc with g(c)=kg(c) = k. For k=0k = 0 this is the root α\alpha of g(x)=0g(x) = 0, where 1.67<α<1.691.67 < \alpha < 1.69. Since gg is strictly increasing on [1,+∞[[1, +\infty[, this cc is the only one (uniqueness comes from the next section).

Special Case: Roots of f(x)=0f(x) = 0

If ff is continuous on [a,b][a, b] and f(a)×f(b)≤0f(a) \times f(b) \le 0 (meaning f(a)f(a) and f(b)f(b) have opposite signs or one is zero), then the equation:

f(x)=0f(x) = 0

has at least one real solution c∈[a,b]c \in [a, b].

Quick check

Let ff be continuous on [0,2][0, 2] with f(0)=−3f(0) = -3 and f(2)=5f(2) = 5. Compute f(0)×f(2)f(0) \times f(2).

Solution

f(0)×f(2)=(−3)×5=−15<0f(0) \times f(2) = (-3) \times 5 = -15 < 0: by the TVI, the equation f(x)=0f(x) = 0 has at least one solution in [0,2][0, 2].

True or false: the equation f(x)=0f(x) = 0 then has exactly one solution in ]0,2[]0, 2[.

Solution

False. Since f(0)×f(2)=−15<0f(0) \times f(2) = -15 < 0, the TVI gives at least one solution; uniqueness would also need ff to be strictly monotonic on [0,2][0, 2], which is not stated.


The Bijection Theorem (Corollary for Uniqueness)

While the general TVI guarantees existence, the Algerian BAC almost systematically asks to prove that a root α\alpha is unique (unique solution).

Theorem Statement (Uniqueness Corollary)

Theorem

Let ff be a function defined on an interval II. If:

  1. ff is continuous on II, AND
  2. ff is strictly monotonic (strictly increasing or strictly decreasing) on II,

then for every real number k∈f(I)k \in f(I), the equation:

f(x)=kf(x) = k

admits a unique solution α\alpha in II.

Standard BAC Writing Template for TVI Questions

In the Algerian Baccalauréat grading key (barème), full marks require citing all three conditions explicitly:

Method · Official Correction Template

  1. "The function ff is continuous on the interval [a,b][a, b] (as a polynomial / product / quotient of continuous functions)."
  2. "The function ff is strictly increasing (or strictly decreasing) on [a,b][a, b]."
  3. "We have f(a)≈…f(a) \approx \dots and f(b)≈…f(b) \approx \dots, hence f(a)×f(b)<0f(a) \times f(b) < 0 (or 0∈[f(a),f(b)]0 \in [f(a), f(b)])."
  4. "Therefore, according to the Intermediate Value Theorem, the equation f(x)=0f(x) = 0 admits a unique solution α∈]a,b[\alpha \in ]a, b[."

Pitfall · Existence is not uniqueness

Let ff be continuous on [0,2][0, 2] with f(0)=−3f(0) = -3 and f(2)=5f(2) = 5. It does not follow that f(x)=0f(x) = 0 has exactly one solution in ]0,2[]0, 2[. Since f(0)×f(2)=−15<0f(0) \times f(2) = -15 < 0, the TVI gives at least one solution. Uniqueness also needs ff to be strictly monotonic on [0,2][0, 2], which is not given: the function could oscillate across zero several times. So an answer that cites only continuity and the sign change, and omits strict monotonicity, does not prove uniqueness; the grading key (barème) requires all three conditions for full marks.

Quick check

Let g(x)=2x3−3x2−1g(x) = 2x^3 - 3x^2 - 1 (the BAC problem of chapter 2), strictly increasing on [1,+∞[[1, +\infty[. Write, as on a BAC paper, the justification that the equation g(x)=0g(x) = 0 has a unique solution α\alpha in ]1,2[]1, 2[.

Solution
  1. The function gg is continuous on [1,2][1, 2] (a polynomial).
  2. The function gg is strictly increasing on [1,2][1, 2] (it is strictly increasing on [1,+∞[[1, +\infty[).
  3. We have g(1)=−2g(1) = -2 and g(2)=3g(2) = 3, hence g(1)×g(2)<0g(1) \times g(2) < 0.
  4. Therefore, according to the intermediate value theorem, the equation g(x)=0g(x) = 0 admits a unique solution α∈]1,2[\alpha \in ]1, 2[.

Full marks need all three conditions: continuity, strict monotonicity and the change of sign.

Compare your answer with the solution, then mark it:


Algorithmic Root Enclosure: The Bisection (Dichotomy) Method

When you cannot solve g(x)=0g(x) = 0 by algebra, halving the interval still traps the root as tightly as the question asks.

When an exam question asks: "Give an enclosure of α\alpha of amplitude 10−110^{-1} or 10−210^{-2}":

The Dichotomy Algorithm

To find an interval [an,bn][a_n, b_n] of length ∣bn−an∣≤ε|b_n - a_n| \le \varepsilon containing the root α\alpha of f(x)=0f(x) = 0:

Method · Bisection

  1. Compute the midpoint: m=a+b2m = \frac{a + b}{2}.
  2. Evaluate f(m)f(m):
    • If f(m)=0f(m) = 0, then α=m\alpha = m: stop.
    • If f(a)×f(m)<0f(a) \times f(m) < 0, the root lies in [a,m][a, m]. Set b←mb \leftarrow m.
    • If f(m)×f(b)<0f(m) \times f(b) < 0, the root lies in [m,b][m, b]. Set a←ma \leftarrow m.
  3. Repeat the process until the interval width b−a≤εb - a \le \varepsilon.

Worked example. Enclose the root α\alpha of g(x)=2x3−3x2−1g(x) = 2x^3 - 3x^2 - 1 (the BAC problem of chapter 2) in an interval of amplitude below 0.020.02 (then rounded outward to 1.67<α<1.691.67 < \alpha < 1.69, of width 0.020.02), starting from [1,2][1, 2]:

  1. Start from [a,b]=[1,2][a, b] = [1, 2]. The function gg is a polynomial, hence continuous on [1,2][1, 2], and strictly increasing on [1,+∞[[1, +\infty[ (chapter 2), so it has exactly one root α\alpha there. We have g(1)=−2<0g(1) = -2 < 0 and g(2)=3>0g(2) = 3 > 0, so g(1)×g(2)<0g(1) \times g(2) < 0 and the root lies in this interval.

  2. The midpoint is m=1+22=1.5m = \frac{1 + 2}{2} = 1.5 and g(1.5)=−1g(1.5) = -1. Since g(1.5)×g(2)<0g(1.5) \times g(2) < 0:

    α∈[1.5, 2]\alpha \in \htmlClass{hl}{[1.5,\ 2]}
  3. The midpoint is m=1.75m = 1.75 and g(1.75)=0.53125g(1.75) = 0.53125. Since g(1.5)×g(1.75)<0g(1.5) \times g(1.75) < 0:

    α∈[1.5, 1.75]\alpha \in \htmlClass{hl}{[1.5,\ 1.75]}
  4. The midpoint is m=1.625m = 1.625 and g(1.625)≈−0.3398g(1.625) \approx -0.3398. Since g(1.625)×g(1.75)<0g(1.625) \times g(1.75) < 0:

    α∈[1.625, 1.75]\alpha \in \htmlClass{hl}{[1.625,\ 1.75]}
  5. The midpoint is m=1.6875m = 1.6875 and g(1.6875)≈0.0679g(1.6875) \approx 0.0679. Since g(1.625)×g(1.6875)<0g(1.625) \times g(1.6875) < 0:

    α∈[1.625, 1.6875]\alpha \in \htmlClass{hl}{[1.625,\ 1.6875]}
  6. The midpoint is m=1.65625m = 1.65625 and g(1.65625)≈−0.1428g(1.65625) \approx -0.1428. Since g(1.65625)×g(1.6875)<0g(1.65625) \times g(1.6875) < 0:

    α∈[1.65625, 1.6875]\alpha \in \htmlClass{hl}{[1.65625,\ 1.6875]}
  7. The midpoint is m=1.671875m = 1.671875 and g(1.671875)≈−0.0392g(1.671875) \approx -0.0392. Since g(1.671875)×g(1.6875)<0g(1.671875) \times g(1.6875) < 0, the interval has amplitude 1.6875−1.671875=0.015625<0.021.6875 - 1.671875 = 0.015625 < 0.02:

    1.671875<α<1.6875\htmlClass{hl-3}{1.671875 < \alpha < 1.6875}

    Hence:

    1.67<α<1.691.67 < \alpha < 1.69

    The enclosure is rounded outward: 1.671875→1.671.671875 \to 1.67 (down) and 1.6875→1.691.6875 \to 1.69 (up).


Deducing the Sign of f(x)f(x) from the Root α\alpha

Once the root is found, the sign of gg on each side of it follows from monotonicity alone.

In the auxiliary function g(x)g(x) phase of a BAC problem, proving g(α)=0g(\alpha) = 0 via the TVI is immediately followed by determining the sign of g(x)g(x).

Case 1: gg is Strictly Increasing on II with g(α)=0g(\alpha) = 0

  • For all x<α  ⟹  g(x)<g(α)  ⟹  g(x)<0x < \alpha \implies g(x) < g(\alpha) \implies g(x) < 0.
  • For all x>α  ⟹  g(x)>g(α)  ⟹  g(x)>0x > \alpha \implies g(x) > g(\alpha) \implies g(x) > 0.

Case 2: gg is Strictly Decreasing on II with g(α)=0g(\alpha) = 0

  • For all x<α  ⟹  g(x)>g(α)  ⟹  g(x)>0x < \alpha \implies g(x) > g(\alpha) \implies g(x) > 0.
  • For all x>α  ⟹  g(x)<g(α)  ⟹  g(x)<0x > \alpha \implies g(x) < g(\alpha) \implies g(x) < 0.

Method · Sign of g

  1. Show that gg is strictly monotonic with g(α)=0g(\alpha) = 0, and note which way.
  2. For x<αx < \alpha and for x>αx > \alpha, compare g(x)g(x) with g(α)=0g(\alpha) = 0 using that direction.
  3. Write the sign table.

Sign table of g(x)g(x) when gg is strictly increasing:

xx−∞-\inftyα\alpha+∞+\infty
g(x)g(x)−-00++
Meaningstrictly negativezerostrictly positive

This sign table is then used to find the sign of the derivative f′(x)f'(x) of the primary function!


Recap

  • A function is continuous at x0x_0 when lim⁡x→x0f(x)=f(x0)\lim_{x \to x_0} f(x) = f(x_0); polynomials, rational functions, ∣x∣|x|, x\sqrt{x}, cos⁡\cos, sin⁡\sin and tan⁡\tan are continuous on their domains, and sums, products, quotients and composites keep continuity.
  • The TVI gives at least one solution of f(x)=kf(x) = k on [a,b][a, b]. With strict monotonicity, the bijection theorem makes it unique; cite all three conditions on the exam.
  • Bisection encloses the root as tightly as asked, and the root gives the sign of gg on each side.

What is next: chapter 2 uses the sign of an auxiliary function such as gg to study the variations of a function ff through its derivative.

Mark it when you have worked through the lesson: it counts in your chapter progress.

A new version of the site is ready.

Progress saved to your account.Saving to your account…Offline. Progress stays on this device and uploads later.Sync did not work. It will try again.Progress on this device is not in your account.This device’s progress belongs to another account, so it is not synced.
Settings