---
title: Problem set 11
heading: "Problem set 11: analysis in code and in proof"
eyebrow: A14 · Problem set 11
type: problems
---

::: hook
These problems draw on lessons 49 to 51 and the whole second half: induction and proof techniques, sup norms and uniform convergence, Bernstein polynomials, fixed points and Gronwall bounds, operator norms, and the integration theorems. Each is the kind of number the labs computed; here you work it out by hand.
:::

::: pool
pick: 12

::: check
kind: parts
given: n = 10 | 25 | 50

## Closed-form sums for n = {n}.

::: part
answer: n*(n + 1)*(2*n + 1)/6
tolerance: 0

### What is $\sum_{k=1}^nk^2$?

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

::: part
answer: (n*(n + 1)/2)^2
tolerance: 0

### What is $\sum_{k=1}^nk^3$?

::: misses
- [any] The square of $\sum k$.
:::
:::
:::

::: check
kind: parts
given: x = 0.1 | 0.5; n = 5 | 10

## Bernoulli's inequality says $(1 + x)^n \ge 1 + nx$.

::: part
answer: (1 + x)^n - (1 + n*x)
tolerance: 0.5%

### By how much does $(1 + \given{x})^{\given{n}}$ exceed $1 + \given{n}\cdot\given{x}$?

::: misses
- [any] Compute both sides.
:::
:::
:::

::: check
kind: parts
given: n = 4 | 16 | 100

## $f_n(x) = \frac{x}{1 + nx^2}$ on [0, ∞).

::: part
answer: 1/(2*sqrt(n))
tolerance: 0.5%

### What is $\lVert f_n\rVert_\infty$?

::: misses
- [1/sqrt(n)] That's where the maximum is, not its value.
- [any] The maximum is at $x = \frac{1}{\sqrt n}$.
:::
:::
:::

::: check
kind: parts
given: n = 2..50 int

## $f_n(x) = x^n(1 - x)$ on [0, 1].

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

### What is $\lVert f_n\rVert_\infty$?

::: misses
- [any] Evaluate at $x = \frac{n}{n + 1}$.
:::
:::
:::

::: check
kind: parts
given: n = 10 | 50 | 250

## The Bernstein polynomial of degree {n} for $x^2$.

::: part
answer: 1/(4*n)
tolerance: 0.5%

### What is its largest error on [0, 1]?

::: misses
- [1/n] The error $\frac{x(1 - x)}{n}$ peaks at ¼n⁻¹.
- [any] $\max\frac{x(1 - x)}{n}$.
:::
:::
:::

::: check
kind: parts
given: q = 0.5 | 0.7; d = 0.5 | 1

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

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

### How many steps does the a priori bound need for an error below $10^{-10}$?

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

::: check
kind: parts
given: a = -0.9 | -0.5 | -0.3 | 0.3 | 0.6 | 0.8

## A filter has $h[n] = (\given{a})^n$ for n ≥ 0.

::: part
answer: 1/(1 - abs(a))
tolerance: 0.5%

### What is its gain from bounded inputs to bounded outputs?

::: misses
- [any] $\sum\lvert a\rvert^n$.
:::
:::

::: part
answer: 1/(1 - abs(a))
tolerance: 0.5%

### What is its largest gain for finite-energy signals, $\max\lvert H\rvert$?

::: misses
- [1/(1 + abs(a))] That's the smallest gain.
- [any] At the frequency where $ae^{-j\omega} = \lvert a\rvert$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = -3 | 4; c = 5 | 1; d = 2 | -6

## $A = \begin{pmatrix}\given{a} & \given{b}\\ \given{c} & \given{d}\end{pmatrix}$.

::: part
answer: abs(a) + abs(b)
tolerance: 0.5%

### What is the absolute sum of row 1?

::: misses
- [any] $\lvert a\rvert + \lvert b\rvert$.
:::
:::

::: part
answer: abs(c) + abs(d)
tolerance: 0.5%

### And of row 2? (The larger of the two is $\lVert A\rVert_\infty$.)

::: misses
- [any] $\lvert c\rvert + \lvert d\rvert$.
:::
:::
:::

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

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

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

### What bound holds on their gap at t = {t}?

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

::: check
kind: parts
given: n = 3 | 9 | 99

## The integrals $\int_0^n\left(1 - \frac xn\right)^ndx$ increase toward $\int_0^\infty e^{-x}dx = 1$.

::: part
answer: n/(n + 1)
tolerance: 0.5%

### What is the integral for n = {n}?

::: misses
- [any] Substitute $u = 1 - \frac xn$: $n\int_0^1u^n\,du$.
:::
:::
:::

::: check
kind: parts
given: p = 1 | 2; t = 0.5 | 0.9

## $f(x) = x^{\given{p}}$ on [0, 1].

::: part
answer: 1/((p + 1)*t)
tolerance: 0.5%

### What bound does Markov's inequality give on $\mu\{f \ge \given{t}\}$?

::: misses
- [any] $\frac1t\int_0^1x^p\,dx$.
:::
:::

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

### What is the actual measure?

::: misses
- [any] The interval $[t^{1/p}, 1]$.
:::
:::
:::

::: check
kind: parts
given: L = 4 | 10; e = 0.1 | 0.01

## Every function in a family is Lipschitz with constant {L}.

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

### What single δ works for all of them with ε = {e}?

::: misses
- [any] $\delta = \varepsilon/L$.
:::
:::
:::

::: check
kind: parts
given: m = 1 | 2; c = 2 | 5

## $\sum\frac{k^{\given{m}}x^k}{\given{c}^k}$.

::: part
answer: c
tolerance: 0.5%

### What is its radius of convergence?

::: misses
- [1/c] The coefficients shrink like $c^{-k}$, so the radius is c.
- [any] $1/\limsup\lvert a_k\rvert^{1/k}$.
:::
:::
:::

::: check
kind: parts
given: t = 0.2 | 0.5 | 0.8 | 1 | 1.5 | 2

## Picard's iterate $y_2 = 1 + t + \frac{t^2}{2}$ for $\dot y = y$, y(0) = 1.

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

### How far below the solution is it at t = {t}?

::: misses
- [any] $e^t - y_2(t)$.
:::
:::

::: part
answer: t^3*exp(t)/6
tolerance: 0.5%

### What bound does Taylor's remainder give, with $M = e^t$?

::: misses
- [any] $\frac{e^tt^3}{3!}$.
:::
:::
:::

::: check
kind: parts
given: a = 1..10 int

## Differentiate under the integral sign.

::: part
answer: -1/(a + 1)^2
tolerance: 0.5%

### What is $\int_0^1x^{\given{a}}\ln x\,dx$?

::: misses
- [1/(a + 1)^2] $\ln x < 0$ on (0, 1), so the integral is negative.
- [any] $\frac{d}{da}\frac{1}{a + 1}$.
:::
:::
:::
:::
