GradeGymAll the examples

GradeGym › Examples › Analysis theorems to learn

Theorem trainer demo · Final year, prépa, university year 1 · Maths

Analysis theorems to learn: statements, hypotheses, counterexamples and proofs

Six first-year theorems (intermediate value, extreme value, Rolle, mean value, monotone convergence, Bolzano–Weierstrass) to learn step by step: hypotheses one by one, a counterexample for each, the proof to put in order and an exercise to apply it.

How GradeGym teaches a theorem

  1. Read the statement: the context, the hypotheses one by one, the conclusion.
  2. Spot it among wrong versions: a hypothesis dropped, an open interval instead of a closed one, a strict inequality instead of a non-strict one, the converse…
  3. Fill it in: a hypothesis or the conclusion to find again.
  4. Say what each hypothesis is for: which counterexample it rules out.
  5. Write it from memory, then compare it part by part (free) or have the AI check it.
  6. Put the steps of the proof in order.
  7. Apply it: an exercise where the hypotheses must be checked before concluding.

The six theorems

Continuity

Intermediate value theorem

Statement: Let $f : [a,b] \to \mathbb{R}$, where $a$, $b$ and $y$ are real numbers. If $f$ is continuous on $[a,b]$ and $y$ lies between $f(a)$ and $f(b)$, then there exists $c \in [a,b]$ such that $f(c) = y$.

Context: $f : [a,b] \to \mathbb{R}$, where $a$, $b$ and $y$ are real numbers

Hypotheses

  1. H1 $f$ is continuous on $[a,b]$
  2. H2 $y$ lies between $f(a)$ and $f(b)$

Conclusion: there exists $c \in [a,b]$ such that $f(c) = y$

Why each hypothesis

  • Without H1 ($f$ is continuous on $[a,b]$): on $[0,1]$, $f(x) = 0$ for $x < \frac{1}{2}$ and $f(x) = 1$ otherwise: $f(0) = 0$ and $f(1) = 1$, but $f$ never takes the value $\frac{1}{2}$.
  • Without H2 ($y$ lies between $f(a)$ and $f(b)$): $f(x) = x$ on $[0,1]$ and $y = 2$: $f$ is continuous, but no $c \in [0,1]$ gives $f(c) = 2$.

The proof, step by step

  1. Replacing $f$ by $-f$ and $y$ by $-y$ if needed, assume $f(a) \le y \le f(b)$.
  2. $E = \{x \in [a,b] \mid f(x) \le y\}$ is non-empty ($a \in E$) and bounded above by $b$: let $c = \sup E \in [a,b]$.
  3. A sequence $(x_n)$ of elements of $E$ tends to $c$; by continuity, $f(c) = \lim f(x_n) \le y$.
  4. If $c = b$, then $f(c) = f(b) \ge y$. Otherwise every $x \in (c,b]$ lies outside $E$, so $f(x) > y$, and letting $x$ tend to $c$ gives $f(c) \ge y$.
  5. Hence $f(c) = y$.

Uses: Least upper bound property

Exercise

Let $f(x) = x^3 + x - 1$ on $[0,1]$. What does the intermediate value theorem let you conclude?

  1. $f$ has at least one zero in $[0,1]$
  2. $f$ has no zero in $[0,1]$
  3. Nothing: it needs $f(0) = f(1)$
  4. $f$ has at least two zeros in $[0,1]$
Show the answer

A. $f$ has at least one zero in $[0,1]$

Explanation: $f$ is a polynomial, so it is continuous on $[0,1]$, and $f(0) = -1 < 0 < 1 = f(1)$: $0$ lies between $f(0)$ and $f(1)$, so there is $c \in [0,1]$ with $f(c) = 0$. Since $f'(x) = 3x^2 + 1 > 0$, that zero is even unique.

Continuity

Extreme value theorem

Statement: Let $f : I \to \mathbb{R}$, where $I$ is a non-empty interval of $\mathbb{R}$. If $f$ is continuous on $I$, $I$ is bounded and $I$ is closed, then there exist $c, d \in I$ such that $f(c) \le f(x) \le f(d)$ for all $x \in I$.

Context: $f : I \to \mathbb{R}$, where $I$ is a non-empty interval of $\mathbb{R}$

Hypotheses

  1. H1 $f$ is continuous on $I$
  2. H2 $I$ is bounded
  3. H3 $I$ is closed

Conclusion: there exist $c, d \in I$ such that $f(c) \le f(x) \le f(d)$ for all $x \in I$

Why each hypothesis

  • Without H1 ($f$ is continuous on $I$): on $I = [0,1]$, $f(0) = 0$ and $f(x) = \frac{1}{x}$ for $x > 0$: $f$ is not bounded above, so it has no maximum.
  • Without H2 ($I$ is bounded): $I = [0, +\infty)$ and $f(x) = x$: $f$ is continuous and $I$ is closed, but $f$ has no maximum.
  • Without H3 ($I$ is closed): $I = (0,1]$ and $f(x) = \frac{1}{x}$: $f$ is continuous and $I$ is bounded, but $f$ is not bounded above.

The proof, step by step

  1. $I$ is a non-empty, closed and bounded interval: $I = [a,b]$ with $a \le b$.
  2. If $f$ were not bounded above, we could pick, for every $n$, some $x_n \in [a,b]$ with $f(x_n) \ge n$.
  3. By Bolzano–Weierstrass, a subsequence $(x_{\varphi(n)})$ converges to some $\ell$, and $\ell \in [a,b]$ because the interval is closed.
  4. By continuity $f(x_{\varphi(n)}) \to f(\ell)$, which contradicts $f(x_{\varphi(n)}) \ge \varphi(n) \to +\infty$: $f$ is bounded above; let $M = \sup_I f$.
  5. Pick $y_n \in I$ with $f(y_n) > M - \frac{1}{n}$; a subsequence converges to some $d \in I$, and by continuity $f(d) = M$.
  6. The same with $-f$: the minimum of $f$ is reached at some $c \in I$.

Uses: Bolzano–Weierstrass theorem

Exercise

Let $f(x) = \frac{1}{x}$ on $I = (0,1]$. Does $f$ reach a maximum on $I$?

  1. Yes, at $x = 1$
  2. No, because $f$ is not continuous on $I$
  3. No: $I$ is not closed, the theorem does not apply, and $f$ is not bounded above
  4. Yes, by the extreme value theorem, since $f$ is continuous on $I$
Show the answer

C. No: $I$ is not closed, the theorem does not apply, and $f$ is not bounded above

Explanation: $f$ is continuous on $I$ and $I$ is bounded, but $I$ is not closed: one hypothesis fails. And indeed $f(x) \to +\infty$ as $x \to 0^+$: no maximum. The minimum is reached, though: $f(1) = 1$.

Differentiability

Rolle's theorem

Statement: Let $f : [a,b] \to \mathbb{R}$, where $a < b$ are real numbers. If $f$ is continuous on $[a,b]$, $f$ is differentiable on $(a,b)$ and $f(a) = f(b)$, then there exists $c \in (a,b)$ such that $f'(c) = 0$.

Context: $f : [a,b] \to \mathbb{R}$, where $a < b$ are real numbers

Hypotheses

  1. H1 $f$ is continuous on $[a,b]$
  2. H2 $f$ is differentiable on $(a,b)$
  3. H3 $f(a) = f(b)$

Conclusion: there exists $c \in (a,b)$ such that $f'(c) = 0$

Why each hypothesis

  • Without H1 ($f$ is continuous on $[a,b]$): on $[0,1]$, $f(x) = x$ for $x < 1$ and $f(1) = 0$: $f$ is differentiable on $(0,1)$ and $f(0) = f(1)$, but $f'(x) = 1$ everywhere on $(0,1)$.
  • Without H2 ($f$ is differentiable on $(a,b)$): $f(x) = |x|$ on $[-1,1]$: $f$ is continuous and $f(-1) = f(1)$, but $f$ is not differentiable at $0$ and $f'(x) = \pm 1$ elsewhere.
  • Without H3 ($f(a) = f(b)$): $f(x) = x$ on $[0,1]$: $f$ is continuous and differentiable, but $f(0) \ne f(1)$ and $f'(x) = 1$ everywhere.

The proof, step by step

  1. $f$ is continuous on the closed interval $[a,b]$: it reaches a minimum $m$ and a maximum $M$ there (extreme value theorem).
  2. If $m = M$, $f$ is constant and $f'(c) = 0$ for every $c \in (a,b)$.
  3. Otherwise $m < M$, and one of them differs from $f(a) = f(b)$: it is reached at some point $c \in (a,b)$.
  4. At that interior point $f$ is differentiable and has an extremum: the difference quotient is $\ge 0$ on one side and $\le 0$ on the other, so $f'(c) = 0$.

Uses: Extreme value theorem

Exercise

Let $f(x) = x^2 - 2x$ on $[0,2]$. What does Rolle's theorem give?

  1. $f'(x) = 0$ for every $x \in (0,2)$
  2. There is $c \in (0,2)$ with $f'(c) = 0$ (here $c = 1$)
  3. There is $c \in (0,2)$ with $f(c) = 0$
  4. Nothing, because $f(0) \ne f(2)$
Show the answer

B. There is $c \in (0,2)$ with $f'(c) = 0$ (here $c = 1$)

Explanation: $f$ is a polynomial: continuous on $[0,2]$ and differentiable on $(0,2)$. Also $f(0) = 0 = f(2)$. The theorem gives $c \in (0,2)$ with $f'(c) = 0$: $f'(x) = 2x - 2$ vanishes at $c = 1$.

Differentiability

Mean value theorem

Statement: Let $f : [a,b] \to \mathbb{R}$, where $a < b$ are real numbers. If $f$ is continuous on $[a,b]$ and $f$ is differentiable on $(a,b)$, then there exists $c \in (a,b)$ such that $f(b) - f(a) = f'(c)(b - a)$.

Context: $f : [a,b] \to \mathbb{R}$, where $a < b$ are real numbers

Hypotheses

  1. H1 $f$ is continuous on $[a,b]$
  2. H2 $f$ is differentiable on $(a,b)$

Conclusion: there exists $c \in (a,b)$ such that $f(b) - f(a) = f'(c)(b - a)$

Why each hypothesis

  • Without H1 ($f$ is continuous on $[a,b]$): on $[0,1]$, $f(x) = 0$ for $x < 1$ and $f(1) = 1$: $f'(x) = 0$ on $(0,1)$, yet $f(1) - f(0) = 1$.
  • Without H2 ($f$ is differentiable on $(a,b)$): $f(x) = |x|$ on $[-1,1]$: $f(1) - f(-1) = 0$, but $f'(x) = \pm 1$ wherever it exists.

The proof, step by step

  1. Let $g(x) = f(x) - \frac{f(b) - f(a)}{b - a}(x - a)$.
  2. $g$ is continuous on $[a,b]$, differentiable on $(a,b)$, and $g(a) = g(b) = f(a)$.
  3. Rolle's theorem gives $c \in (a,b)$ with $g'(c) = 0$, that is $f'(c) = \frac{f(b) - f(a)}{b - a}$.

Uses: Rolle's theorem

Exercise

Let $f(x) = \sqrt{x}$ on $[0,4]$. What does the mean value theorem give?

  1. Nothing: $f$ is not differentiable at $0$
  2. There is $c \in (0,4)$ with $f'(c) = 2$
  3. There is $c \in (0,4)$ with $f'(c) = 0$
  4. There is $c \in (0,4)$ with $f'(c) = \frac{1}{2}$ (here $c = 1$)
Show the answer

D. There is $c \in (0,4)$ with $f'(c) = \frac{1}{2}$ (here $c = 1$)

Explanation: $f$ is continuous on $[0,4]$ and differentiable on $(0,4)$: it is not differentiable at $0$, but the theorem does not ask for it. $\frac{f(4) - f(0)}{4 - 0} = \frac{1}{2}$, and $f'(c) = \frac{1}{2\sqrt{c}} = \frac{1}{2}$ for $c = 1$.

Real sequences

Monotone convergence theorem (sequences)

Statement: Let $(u_n)_{n \in \mathbb{N}}$, a sequence of real numbers. If $(u_n)$ is non-decreasing and $(u_n)$ is bounded above, then $(u_n)$ converges to $\sup_{n \in \mathbb{N}} u_n$.

Context: $(u_n)_{n \in \mathbb{N}}$, a sequence of real numbers

Hypotheses

  1. H1 $(u_n)$ is non-decreasing
  2. H2 $(u_n)$ is bounded above

Conclusion: $(u_n)$ converges to $\sup_{n \in \mathbb{N}} u_n$

Why each hypothesis

  • Without H1 ($(u_n)$ is non-decreasing): $u_n = (-1)^n$: the sequence is bounded above by $1$, but it does not converge.
  • Without H2 ($(u_n)$ is bounded above): $u_n = n$: the sequence is non-decreasing, but it tends to $+\infty$.

The proof, step by step

  1. The set $\{u_n \mid n \in \mathbb{N}\}$ is non-empty and bounded above: it has a least upper bound $\ell$.
  2. Let $\varepsilon > 0$: $\ell - \varepsilon$ is not an upper bound, so there is $N$ with $u_N > \ell - \varepsilon$.
  3. For $n \ge N$, since the sequence is non-decreasing, $\ell - \varepsilon < u_N \le u_n \le \ell$.
  4. So $|u_n - \ell| < \varepsilon$ for all $n \ge N$: $(u_n)$ converges to $\ell$.

Uses: Least upper bound property

Exercise

Let $u_n = \sum_{k=1}^{n} \frac{1}{k^2}$ for $n \ge 1$. What can be concluded?

  1. $(u_n)$ converges to $2$
  2. $(u_n)$ converges, to a limit at most $2$
  3. $(u_n)$ tends to $+\infty$, since it is non-decreasing
  4. Nothing, without computing the limit
Show the answer

B. $(u_n)$ converges, to a limit at most $2$

Explanation: $u_{n+1} - u_n = \frac{1}{(n+1)^2} > 0$: the sequence is non-decreasing. For $k \ge 2$, $\frac{1}{k^2} \le \frac{1}{k-1} - \frac{1}{k}$, so $u_n \le 1 + 1 - \frac{1}{n} < 2$: it is bounded above. So it converges, to $\sup u_n \le 2$ (in fact $\frac{\pi^2}{6} \approx 1.645$).

Real sequences

Bolzano–Weierstrass theorem

Statement: Let $(u_n)_{n \in \mathbb{N}}$, a sequence of real numbers. If $(u_n)$ is bounded, then $(u_n)$ has a convergent subsequence.

Context: $(u_n)_{n \in \mathbb{N}}$, a sequence of real numbers

Hypotheses

  1. H1 $(u_n)$ is bounded

Conclusion: $(u_n)$ has a convergent subsequence

Why each hypothesis

  • Without H1 ($(u_n)$ is bounded): $u_n = n$: every subsequence tends to $+\infty$, so none converges.

The proof, step by step

  1. Call $n$ a peak if $u_n \ge u_m$ for every $m > n$.
  2. If there are infinitely many peaks $n_0 < n_1 < n_2 < \dots$, the subsequence $(u_{n_k})$ is non-increasing.
  3. Otherwise there is no peak from some $N$ on: every $n \ge N$ has some $m > n$ with $u_m > u_n$, which builds a strictly increasing subsequence.
  4. Either way we get a monotone, bounded subsequence: it converges (monotone convergence theorem).

Uses: Monotone convergence theorem

Exercise

Let $u_n = \sin(n)$. What can be concluded?

  1. $(u_n)$ has no convergent subsequence, since it oscillates
  2. Every subsequence of $(u_n)$ converges
  3. $(u_n)$ has a convergent subsequence
  4. $(u_n)$ converges
Show the answer

C. $(u_n)$ has a convergent subsequence

Explanation: $|\sin n| \le 1$: the sequence is bounded, so Bolzano–Weierstrass gives a convergent subsequence. The theorem says nothing about $(u_n)$ itself, which in fact diverges.

Your own theorems, from your course

Add your theorems by hand (LaTeX welcome) or have the AI extract them from your course PDF, then learn them with the same steps and spaced review. A free account keeps your progress on every device.

More examples