---
title: Midterm exam
heading: "Midterm exam: real analysis"
eyebrow: A14 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: completeness and suprema, limits of sequences, monotone and Cauchy sequences, series and their remainders, rearrangements, compact sets, continuity and uniform continuity, the mean value theorem, Taylor's theorem, the Riemann integral and the fundamental theorem. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 4 | 9; b = 2 | 7; e = 0.0023 | 0.066

## The set $\{\given{a} - \frac{\given{b}}{n}\}$, n ≥ 1.

::: part
answer: a
tolerance: 0

### Its supremum?

::: misses
- [any] The limit, never reached.
:::
:::

::: part
answer: floor(b/e) + 1
tolerance: 0

### The first n whose element is within {e} of the supremum?

::: misses
- [any] Need $\frac bn < \varepsilon$.
:::
:::
:::

::: check
kind: parts
given: e = 0.07 | 0.009 | 0.003 | 0.0017 | 0.00041 | 0.00007

## The sequence $\frac{4n - 1}{n + 3} \to 4$.

::: part
answer: floor(13/e - 3)
tolerance: 0

### Smallest N for ε = {e}?

::: misses
- [any] $\lvert a_n - 4\rvert = \frac{13}{n + 3}$.
:::
:::

::: part
answer: 13/(floor(13/e - 3) + 4)
tolerance: 0.5%

### How far from 4 is the term just after N?

::: misses
- [any] $\frac{13}{n + 3}$ at n = N + 1.
:::
:::
:::

::: check
kind: parts
given: c = 5 | 42; q = 0.6 | 0.85; d = 0.5 | 2; e = 0.00001 | 0.0000003

## Recursions and contractions.

::: part
answer: (1 + sqrt(1 + 4*c))/2
tolerance: 0.01%

### Limit of $x_{n+1} = \sqrt{\given{c} + x_n}$ from 0?

::: misses
- [any] $L = \sqrt{c + L}$.
:::
:::

::: part
answer: ceil(ln(e*(1 - q)/d)/ln(q))
tolerance: 0

### Steps for a guaranteed error below {e}, contraction {q}, first step {d}?

::: misses
- [any] Smallest n with $\frac{q^nd}{1 - q} < \varepsilon$.
:::
:::
:::

::: check
kind: parts
given: p = 1.5 | 2.5; n = 30 | 300; a = 2 | 3; r = -0.4 | 0.7

## Series.

::: part
answer: n^(1 - p)/(p - 1)
tolerance: 0.5%

### Integral bound on the tail of $\sum 1/k^{\given{p}}$ after {n} terms?

::: misses
- [any] $\frac{n^{1-p}}{p - 1}$.
:::
:::

::: part
answer: a/(1 - r)
tolerance: 0.01%

### $\sum_{k\ge 0}\given{a}(\given{r})^k$?

::: misses
- [any] $\frac{a}{1 - r}$.
:::
:::
:::

::: check
kind: parts
given: e = 0.0006 | 0.000027; p = 3 | 4; q = 1 | 2

## Alternating harmonic series.

::: part
answer: floor(1/e)
tolerance: 0

### Smallest N with guaranteed error below {e}?

::: misses
- [any] $\frac{1}{N + 1} < \varepsilon$.
:::
:::

::: part
answer: ln(2) + 0.5*ln(p/q)
tolerance: 0.1%

### Rearranged as {p} positive, {q} negative: sum?

::: misses
- [any] $\ln 2 + \frac12\ln\frac pq$.
:::
:::
:::

::: check
kind: parts
given: n = 6 | 11; a = 0.5 | 1; b = 4 | 7; x = 1.8 | 3.3

## Sets.

::: part
answer: (2/3)^n
tolerance: 0.5%

### Cantor length after {n} stages?

::: misses
- [any] $(2/3)^n$.
:::
:::

::: part
answer: (b - a - abs(2*x - a - b))/2
tolerance: 0.1%

### Largest neighborhood radius of {x} in ({a}, {b})?

::: misses
- [any] Distance to the nearer end.
:::
:::
:::

::: check
kind: parts
given: a = 1.5 | 2.5; e = 0.2 | 0.04; m = 6 | -0.8

## δ for ε.

::: part
answer: sqrt(a^2 + e) - a
tolerance: 0.01%

### Largest δ for $x^2$ at {a}, ε = {e}?

::: misses
- [any] $\sqrt{a^2 + \varepsilon} - a$.
:::
:::

::: part
answer: e/abs(m)
tolerance: 0.1%

### Largest δ for $\given{m}x + 1$, same ε?

::: misses
- [any] $\varepsilon/\lvert m\rvert$.
:::
:::
:::

::: check
kind: parts
given: R = 1.5 | 3; e = 0.3 | 0.05; a = 0.3 | 0.06

## Uniform continuity.

::: part
answer: sqrt(R^2 + e) - R
tolerance: 0.01%

### One δ for $x^2$ on [0, {R}], ε = {e}?

::: misses
- [any] The steepest point sets it.
:::
:::

::: part
answer: a^2*e/(1 + a*e)
tolerance: 0.1%

### Largest δ for $1/x$ at {a}, same ε?

::: misses
- [any] $\frac{a^2\varepsilon}{1 + a\varepsilon}$.
:::
:::
:::

::: check
kind: parts
given: t = 0.8 | 2; T = 9 | 11; k = 3 | 10

## Extreme values.

::: part
answer: t/exp(1)
tolerance: 0.1%

### Max of $xe^{-x/\given{t}}$ on [0, {T}]?

::: misses
- [any] At x = τ.
:::
:::

::: part
answer: k/4
tolerance: 0.1%

### Max of $\given{k}x(1 - x)$ on [0, 1]?

::: misses
- [any] At x = ½.
:::
:::
:::

::: check
kind: parts
given: a = 0 | 1; b = 3 | 5; L = 4 | 9; d = 0.01 | 0.06

## Mean values.

::: part
answer: sqrt((a^2 + a*b + b^2)/3)
tolerance: 0.01%

### Mean value point for $x^3$ on [{a}, {b}]?

::: misses
- [any] $3c^2 = a^2 + ab + b^2$.
:::
:::

::: part
answer: L*d
tolerance: 0.1%

### $\lvert f'\rvert \le$ {L}, input error {d}: output error bound?

::: misses
- [any] $L\Delta$.
:::
:::
:::

::: check
kind: parts
given: x = 0.8 | 1.6; n = 3 | 6; M = 2 | 9; h = 0.03 | 0.4

## Taylor remainders.

::: part
answer: exp(x)*x^(n + 1)/(n + 1)!
tolerance: 0.1%

### Lagrange bound for $e^x$, degree {n}, at {x}?

::: misses
- [any] $\frac{e^xx^{n+1}}{(n + 1)!}$.
:::
:::

::: part
answer: M*h^2/2
tolerance: 0.1%

### Linearization error, $\lvert f''\rvert \le$ {M}, distance {h}?

::: misses
- [any] $\frac{Mh^2}{2}$.
:::
:::
:::

::: check
kind: parts
given: n = 7 | 30; d = 4 | 9; e = 0.0035 | 0.00031

## Riemann sums.

::: part
answer: (n - 1)*(2*n - 1)/(6*n^2)
tolerance: 0.01%

### Lower sum for $x^2$ on [0, 1] with {n} strips?

::: misses
- [any] $\frac{(n - 1)(2n - 1)}{6n^2}$.
:::
:::

::: part
answer: floor(d/e) + 1
tolerance: 0

### Strips for $U - L < \given{e}$ if an increasing f on [0, 1] rises by {d}?

::: misses
- [any] $U - L = d/n$.
:::
:::
:::

::: check
kind: parts
given: x = 0.9 | 1.4; I = 3 | 6; tau = 0.4 | 2; T = 0.8 | 1.6; C = 47 | 220

## The fundamental theorem.

::: part
answer: 2*x*sin(x^2)
tolerance: 0.1%

### $\frac{d}{dx}\int_0^{x^2}\sin t\,dt$ at {x}?

::: misses
- [any] $2x\sin(x^2)$.
:::
:::

::: part
answer: I*tau/C*(1 - exp(-T/tau))*1000
unit: mV
tolerance: 0.1%

### A {C} µF capacitor charged by $\given{I}e^{-t/\tau}$ mA, τ = {tau} ms: voltage at {T} ms?

::: misses
- [any] $\frac{I\tau}{C}(1 - e^{-T/\tau})$.
:::
:::
:::

::: check
kind: parts
given: c = 3 | 11; k = 9 | 16

## Bisection and suprema.

::: part
answer: sqrt(c)
tolerance: 0.01%

### $\sup\{x : x^2 < \given{c}\}$?

::: misses
- [any] $\sqrt c$.
:::
:::

::: part
answer: 2^(-k)
tolerance: 0.5%

### Bracket width after {k} halvings of [1, 2]?

::: misses
- [any] $2^{-k}$.
:::
:::
:::

::: check
kind: parts
given: p = 0.1 | 0.25 | 0.4 | 0.5 | 0.75 | 0.9

## A singular integrand.

::: part
answer: 1/(1 - p)
tolerance: 0.5%

### What is $\int_0^1x^{-\given{p}}\,dx$?

::: misses
- [any] $\frac{1}{1 - p}$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 3; b = 2 | 5

## The set $\left\{\given{a} + (-1)^n\frac{\given{b}}{n}\right\}$.

::: part
answer: a + b/2
tolerance: 0.5%

### What is its sup?

::: misses
- [any] The even term with n = 2.
:::
:::
:::
:::
