---
title: Problem set 7
heading: "Problem set 7: metric spaces, fixed points and ODE theory"
eyebrow: A14 · Problem set 7
type: problems
---

::: hook
These problems use lessons 32 to 35: metrics and norms, the contraction mapping theorem with its error bounds, Picard–Lindelöf, and Gronwall's inequality. Most ask you to turn a theorem's hypotheses (a contraction constant, a Lipschitz constant) into a concrete number.
:::

::: pool
pick: 12

::: check
kind: parts
given: x = 3 | 1; y = -4 | 2; p = 1 | 3

## The vector ({x}, {y}).

::: part
answer: (abs(x)^p + abs(y)^p)^(1/p)
tolerance: 0.5%

### What is its p-norm with p = {p}?

::: misses
- [any] $\left(\lvert x\rvert^p + \lvert y\rvert^p\right)^{1/p}$.
:::
:::

::: part
answer: sqrt(x^2 + y^2)
tolerance: 0.5%

### And its 2-norm?

::: misses
- [any] $\sqrt{x^2 + y^2}$.
:::
:::
:::

::: check
kind: parts
given: d = 3 | 5 | 7

## A binary code has minimum Hamming distance {d}.

::: part
answer: floor((d - 1)/2)
tolerance: 0

### How many bit errors can it always correct?

::: misses
- [d - 1] That's how many it can detect.
- [any] $\left\lfloor\frac{d - 1}{2}\right\rfloor$.
:::
:::

::: part
answer: d - 1
tolerance: 0

### How many can it always detect?

::: misses
- [any] $d - 1$.
:::
:::
:::

::: check
kind: parts
given: q = 0.3 | 0.6; b = 1 | -2

## $T(x) = \given{q}x + (\given{b})$.

::: part
answer: b/(1 - q)
tolerance: 0.5%

### Where is its fixed point?

::: misses
- [any] Solve $x = qx + b$.
:::
:::
:::

::: check
kind: parts
given: q = 0.5 | 0.9; d = 0.2 | 1; n = 10 | 30

## A contraction with constant {q} first moves x by {d}.

::: part
answer: q^n*d/(1 - q)
tolerance: 0.5%

### What a priori bound holds on the error after {n} steps?

::: misses
- [q^n*d] Include the factor $\frac{1}{1 - q}$ from summing the remaining steps.
- [any] $\frac{q^n}{1 - q}\lvert x_1 - x_0\rvert$.
:::
:::

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

### How many steps guarantee an error below $10^{-6}$?

::: misses
- [any] Solve $\frac{q^n d}{1 - q} \le 10^{-6}$.
:::
:::
:::

::: check
kind: parts
given: q = 0.4 | 0.75; s = 0.001 | 0.00001

## A contraction with constant {q} just took a step of {s}.

::: part
answer: q/(1 - q)*s
tolerance: 0.5%

### What a posteriori bound holds on the current error?

::: misses
- [s/(1 - q)] That bounds the error of the previous iterate.
- [any] $\frac{q}{1 - q}\lvert x_n - x_{n-1}\rvert$.
:::
:::
:::

::: check
kind: parts
given: c = 0.1 | 0.3 | 0.5 | 0.6 | 0.8 | 0.9

## $g(x) = \given{c}\cos x + 1$ on ℝ.

::: part
answer: c
tolerance: 0.5%

### What is its smallest contraction constant valid on all of ℝ?

::: misses
- [any] $\sup\lvert g'\rvert = c$.
:::
:::
:::

::: check
kind: parts
given: t = 0.5 | 1 | 2

## Picard's iteration for $\dot y = y$, y(0) = 1, from $y_0 = 1$.

::: part
answer: 1 + t + t^2/2 + t^3/6
tolerance: 0.5%

### What is $y_3$ at t = {t}?

::: misses
- [any] $1 + t + \frac{t^2}{2} + \frac{t^3}{6}$.
:::
:::

::: part
answer: exp(t) - (1 + t + t^2/2 + t^3/6)
tolerance: 1%

### How far below $e^t$ is it?

::: misses
- [any] The tail of the exponential series.
:::
:::
:::

::: check
kind: parts
given: L = 0.25 | 0.5 | 2 | 4 | 5 | 10

## A right-hand side has Lipschitz constant {L} in y.

::: part
answer: 1/L
tolerance: 0.5%

### Below what interval length h is the Picard operator a contraction in the sup norm?

::: misses
- [L] The contraction constant is Lh; it must be below 1.
- [any] $Lh < 1$.
:::
:::
:::

::: check
kind: parts
given: y = 0.5 | 2 | 4

## $\dot y = y^2$ with y(0) = {y}.

::: part
answer: 1/y
tolerance: 0.5%

### When does the solution blow up?

::: misses
- [y] The solution is $\frac{y_0}{1 - y_0t}$.
- [any] Where $1 - y_0t = 0$.
:::
:::

::: part
answer: y/(1 - y*0.1)
tolerance: 0.5%

### What is y(0.1)?

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

::: check
kind: parts
given: L = 1 | 3; d = 0.001 | 0.01; t = 1 | 2

## Two solutions of an ODE with Lipschitz constant {L} start {d} apart.

::: part
answer: d*exp(L*t)
tolerance: 0.5%

### What is the most they can differ at t = {t}?

::: misses
- [any] Gronwall: $de^{Lt}$.
:::
:::

::: part
answer: ln(1000)/L
tolerance: 0.5%

### When could their gap first be 1000 times its start?

::: misses
- [any] Solve $e^{Lt} = 1000$.
:::
:::
:::

::: check
kind: parts
given: L = 2 | 4; e = 0.01 | 0.05; t = 0.5 | 1

## A model's right-hand side is off by at most {e}, with Lipschitz constant {L}.

::: part
answer: e/L*(exp(L*t) - 1)
tolerance: 0.5%

### Starting from the exact state, how far can its solution drift by t = {t}?

::: misses
- [any] $\frac{\delta_0}{L}(e^{Lt} - 1)$.
:::
:::
:::

::: check
kind: parts
given: h = 0.1 | 0.01; M = 1 | 4; L = 1 | 2; T = 1 | 2

## Euler's method with step {h} on [0, {T}], Lipschitz constant {L}, $\lvert\ddot y\rvert \le$ {M}.

::: part
answer: h*M/(2*L)*(exp(L*T) - 1)
tolerance: 0.5%

### What bound does Gronwall give on the global error?

::: misses
- [any] $\frac{hM}{2L}(e^{LT} - 1)$.
:::
:::
:::

::: check
kind: parts
given: m = 2 | 10; e = 0.1 | 1

## A contracting system with rate μ = {m} has a bounded input error of {e}.

::: part
answer: e/m
tolerance: 0.5%

### What's the largest deviation it can ever develop from the same start?

::: misses
- [e*m] Contraction divides by μ.
- [any] $\frac{\delta_0}{\mu}$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | -0.4; b = 2 | 1; c = 0.6 | 0.2; d = 1 | -3

## $T(x, y) = (\given{a}y + \given{b},\; \given{c}x + \given{d})$.

::: part
answer: (a*d + b)/(1 - a*c)
tolerance: 0.5%

### What is the fixed point's x?

::: misses
- [any] Substitute $y = cx + d$ into $x = ay + b$.
:::
:::

::: part
answer: c*(a*d + b)/(1 - a*c) + d
tolerance: 0.5%

### And its y?

::: misses
- [any] $y = cx + d$.
:::
:::
:::

::: check
kind: parts
given: x = 0.1 | 0.2 | 0.3 | 0.6 | 0.7 | 0.9

## The sup distance between $x$ and $x^2$ on [0, 1] is reached at x = ½.

::: part
answer: x - x^2
tolerance: 0.5%

### What is $x - x^2$ at x = {x}?

::: misses
- [any] Evaluate.
:::
:::

::: part
answer: 0.25
tolerance: 0.5%

### What is the sup distance itself?

::: misses
- [any] At x = ½: $\frac12 - \frac14$.
:::
:::
:::
:::
