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
- Read the statement: the context, the hypotheses one by one, the conclusion.
- 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…
- Fill it in: a hypothesis or the conclusion to find again.
- Say what each hypothesis is for: which counterexample it rules out.
- Write it from memory, then compare it part by part (free) or have the AI check it.
- Put the steps of the proof in order.
- Apply it: an exercise where the hypotheses must be checked before concluding.
The six theorems
- Intermediate value theorem
- Extreme value theorem
- Rolle's theorem
- Mean value theorem
- Monotone convergence theorem (sequences)
- Bolzano–Weierstrass theorem
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$.
- H1 $f$ is continuous on $[a,b]$
- 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
- Replacing $f$ by $-f$ and $y$ by $-y$ if needed, assume $f(a) \le y \le f(b)$.
- $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]$.
- A sequence $(x_n)$ of elements of $E$ tends to $c$; by continuity, $f(c) = \lim f(x_n) \le y$.
- 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$.
- Hence $f(c) = y$.
Exercise
Let $f(x) = x^3 + x - 1$ on $[0,1]$. What does the intermediate value theorem let you conclude?
- $f$ has at least one zero in $[0,1]$
- $f$ has no zero in $[0,1]$
- Nothing: it needs $f(0) = f(1)$
- $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$.
- H1 $f$ is continuous on $I$
- H2 $I$ is bounded
- 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
- $I$ is a non-empty, closed and bounded interval: $I = [a,b]$ with $a \le b$.
- If $f$ were not bounded above, we could pick, for every $n$, some $x_n \in [a,b]$ with $f(x_n) \ge n$.
- By Bolzano–Weierstrass, a subsequence $(x_{\varphi(n)})$ converges to some $\ell$, and $\ell \in [a,b]$ because the interval is closed.
- 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$.
- 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$.
- The same with $-f$: the minimum of $f$ is reached at some $c \in I$.
Exercise
Let $f(x) = \frac{1}{x}$ on $I = (0,1]$. Does $f$ reach a maximum on $I$?
- Yes, at $x = 1$
- No, because $f$ is not continuous on $I$
- No: $I$ is not closed, the theorem does not apply, and $f$ is not bounded above
- 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$.
- H1 $f$ is continuous on $[a,b]$
- H2 $f$ is differentiable on $(a,b)$
- 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
- $f$ is continuous on the closed interval $[a,b]$: it reaches a minimum $m$ and a maximum $M$ there (extreme value theorem).
- If $m = M$, $f$ is constant and $f'(c) = 0$ for every $c \in (a,b)$.
- Otherwise $m < M$, and one of them differs from $f(a) = f(b)$: it is reached at some point $c \in (a,b)$.
- 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$.
Exercise
Let $f(x) = x^2 - 2x$ on $[0,2]$. What does Rolle's theorem give?
- $f'(x) = 0$ for every $x \in (0,2)$
- There is $c \in (0,2)$ with $f'(c) = 0$ (here $c = 1$)
- There is $c \in (0,2)$ with $f(c) = 0$
- 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)$.
- H1 $f$ is continuous on $[a,b]$
- 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
- Let $g(x) = f(x) - \frac{f(b) - f(a)}{b - a}(x - a)$.
- $g$ is continuous on $[a,b]$, differentiable on $(a,b)$, and $g(a) = g(b) = f(a)$.
- Rolle's theorem gives $c \in (a,b)$ with $g'(c) = 0$, that is $f'(c) = \frac{f(b) - f(a)}{b - a}$.
Exercise
Let $f(x) = \sqrt{x}$ on $[0,4]$. What does the mean value theorem give?
- Nothing: $f$ is not differentiable at $0$
- There is $c \in (0,4)$ with $f'(c) = 2$
- There is $c \in (0,4)$ with $f'(c) = 0$
- 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$.
- H1 $(u_n)$ is non-decreasing
- 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
- The set $\{u_n \mid n \in \mathbb{N}\}$ is non-empty and bounded above: it has a least upper bound $\ell$.
- Let $\varepsilon > 0$: $\ell - \varepsilon$ is not an upper bound, so there is $N$ with $u_N > \ell - \varepsilon$.
- For $n \ge N$, since the sequence is non-decreasing, $\ell - \varepsilon < u_N \le u_n \le \ell$.
- So $|u_n - \ell| < \varepsilon$ for all $n \ge N$: $(u_n)$ converges to $\ell$.
Exercise
Let $u_n = \sum_{k=1}^{n} \frac{1}{k^2}$ for $n \ge 1$. What can be concluded?
- $(u_n)$ converges to $2$
- $(u_n)$ converges, to a limit at most $2$
- $(u_n)$ tends to $+\infty$, since it is non-decreasing
- 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.
- 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
- Call $n$ a peak if $u_n \ge u_m$ for every $m > n$.
- If there are infinitely many peaks $n_0 < n_1 < n_2 < \dots$, the subsequence $(u_{n_k})$ is non-increasing.
- 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.
- Either way we get a monotone, bounded subsequence: it converges (monotone convergence theorem).
Exercise
Let $u_n = \sin(n)$. What can be concluded?
- $(u_n)$ has no convergent subsequence, since it oscillates
- Every subsequence of $(u_n)$ converges
- $(u_n)$ has a convergent subsequence
- $(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
- Cellular respirationUniversity · Biology, year 1 · A first-year biology chapter (glycolysis, the Krebs cycle, the electron transport chain, fermentation) and its quiz: 22 questions of every kind and 5 course pages with interactive diagrams.
- The Cold War (1947–1991)High school · History, final year · A final-year history chapter (two blocs, Berlin, Cuba, détente, the end of the USSR) and its quiz: 19 questions, an interactive timeline and 5 course pages.
- English: present perfect or past simple?Languages · English B1 · A B1 English grammar sheet (form, for and since, signal words) and its quiz: 18 questions, gaps to fill, words to put in order and 5 course pages.
- The simple harmonic oscillatorPrépa / university · Physics, year 1 · A first-year physics chapter from prépa or university (mass on a spring, the differential equation, energy, the pendulum and the LC circuit) and its quiz: 20 questions with formulas, a graph to read and 5 course pages with interactive diagrams.
- Arithmetic and geometric sequencesHigh school · Maths, last two years · A high-school maths chapter (recursive sequences, arithmetic and geometric sequences, sums of terms, limits, compound interest) and its quiz: 15 questions with formulas, a graph to read and 5 course pages with interactive diagrams.