---
title: Problem set 10
heading: "Problem set 10: transforms, finite differences and finite elements"
eyebrow: A12 · Problem set 10
type: problems
---

::: hook
These problems use lessons 47 to 49: transform methods for diffusion and skin effect, finite differences with their stability limits, and finite elements. Take copper's conductivity as 5.8 × 10⁷ S/m and $\mu_0 = 4\pi \times 10^{-7}$ H/m.
:::

::: pool
pick: 12

::: check
kind: parts
given: f = 1 | 60 | 100

## Copper carries a current at {f} kHz.

::: part
answer: sqrt(1/(pi*f*1000*4e-7*pi*5.8e7))*1000
unit: mm
tolerance: 0.5%

### What is its skin depth?

::: misses
- [sqrt(2/(f*1000*4e-7*pi*5.8e7))*1000] Use ω, not f: $\delta = \sqrt{\frac{2}{\omega\mu\sigma}}$.
- [any] $\delta = \frac{1}{\sqrt{\pi f\mu_0\sigma}}$.
:::
:::
:::

::: check
kind: parts
given: a = 0.00001 | 0.0001; x = 5 | 20; t = 10 | 100

## A thick slab with diffusivity {a} m²/s has its surface temperature suddenly raised.

::: part
answer: erfc(x/1000/(2*sqrt(a*t)))
tolerance: 0.5%

### What fraction of the rise has reached a depth of {x} mm after {t} s?

::: misses
- [erf(x/1000/(2*sqrt(a*t)))] That's the fraction still missing.
- [any] $\text{erfc}\frac{x}{2\sqrt{\alpha t}}$.
:::
:::
:::

::: check
kind: parts
given: a = 0.0000005 | 0.000001; x = 0.1 | 0.3

## Soil with diffusivity {a} m²/s sees a daily temperature swing at its surface.

::: part
answer: sqrt(a*86400/pi)
unit: m
tolerance: 0.5%

### What is the swing's skin depth?

::: misses
- [sqrt(2*a*86400)] $\delta = \sqrt{\frac{2\alpha}{\omega}} = \sqrt{\frac{\alpha T}{\pi}}$.
- [any] $\sqrt{\alpha T/\pi}$ with T = 86 400 s.
:::
:::

::: part
answer: x/sqrt(a*86400/pi)/(2*pi)*24
unit: h
tolerance: 0.5%

### By how many hours does the swing lag at a depth of {x} m?

::: misses
- [any] The phase lag is $x/\delta$ radians, a fraction $\frac{x/\delta}{2\pi}$ of a day.
:::
:::
:::

::: check
kind: parts
given: s = 20 | 40; D = 2 | 10; t = 30 | 120

## A Gaussian dopant profile with σ = {s} nm is annealed for {t} min with D = {D} × 10⁻¹⁵ cm²/s.

::: part
answer: sqrt(s^2 + 12*D*t)
unit: nm
tolerance: 0.5%

### What is σ afterward?

::: misses
- [s + sqrt(12*D*t)] Variances add.
- [any] $\sqrt{\sigma_0^2 + 2Dt}$; here $2Dt = 12Dt_\text{min}$ nm².
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 2; t = 0.1 | 1

## A unit of heat is released at x = 0 on a long rod with diffusivity {a}.

::: part
answer: 1/sqrt(4*pi*a*t)
tolerance: 0.5%

### What is the temperature at x = 0 after time {t}?

::: misses
- [1/sqrt(2*pi*a*t)] The variance is $2\alpha t$, so the peak is $\frac{1}{\sqrt{4\pi\alpha t}}$.
- [any] The heat kernel at its center.
:::
:::
:::

::: check
kind: parts
given: dx = 0.5 | 1 | 2; a = 0.0001 | 0.00002

## An explicit heat solver uses Δx = {dx} mm on a material with α = {a} m²/s.

::: part
answer: (dx/1000)^2/(2*a)*1000
unit: ms
tolerance: 0.5%

### What is the largest stable time step?

::: misses
- [(dx/1000)^2/a*1000] The limit is $r \le \frac12$.
- [any] $\Delta t = \frac{\Delta x^2}{2\alpha}$.
:::
:::
:::

::: check
kind: parts
given: r = 0.6 | 1 | 2

## The explicit scheme runs with r = {r}.

::: part
answer: 1 - 4*r
tolerance: 0.5%

### What is its amplification factor for the finest wiggle?

::: misses
- [1 - 2*r] At $k\Delta x = \pi$, $\sin^2 = 1$, so G = 1 − 4r.
- [any] $1 - 4r\sin^2\frac{k\Delta x}{2}$.
:::
:::

::: part
answer: (4*r - 1)^10
tolerance: 1%

### By what factor has that wiggle grown after 10 steps?

::: misses
- [any] $\lvert G\rvert^{10}$.
:::
:::
:::

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

## A 1D FDTD simulation uses cells of {dx} mm in a medium with wave speed {c} × 10⁸ m/s.

::: part
answer: dx/1000/(c*1e8)*1e12
unit: ps
tolerance: 0.5%

### What is the largest stable time step?

::: misses
- [dx/1000/(2*c*1e8)*1e12] In one dimension the Courant limit is $c\Delta t \le \Delta x$.
- [any] $\Delta t = \Delta x/c$.
:::
:::
:::

::: check
kind: parts
given: r = 0.5 | 2 | 5

## Crank–Nicolson runs with r = {r}.

::: part
answer: (1 - 2*r)/(1 + 2*r)
tolerance: 0.5%

### What is its amplification factor for the finest wiggle?

::: misses
- [1/(1 + 4*r)] That's backward Euler.
- [any] $\frac{1 - 2r}{1 + 2r}$.
:::
:::
:::

::: check
kind: parts
given: x = 1 | 2; h = 0.5 | 1

## The second difference $\frac{u(x + h) - 2u(x) + u(x - h)}{h^2}$ is applied to $u = x^4$.

::: part
answer: 12*x^2 + 2*h^2
tolerance: 0.5%

### What does it give at x = {x} with h = {h}?

::: misses
- [12*x^2] That's the exact $u''$; the difference adds $2h^2$.
- [any] Expand $(x \pm h)^4$.
:::
:::
:::

::: check
kind: parts
given: f1 = 1.25 | 2.53; d = 0.03 | 0.008

## A second-order method gives {f1} with step h and a value smaller by {d} with step h/2.

::: part
answer: (f1 - d) - d/3
tolerance: 0.01%

### What is the Richardson-extrapolated value?

::: misses
- [f1 - d] That's the h/2 result alone.
- [any] $\frac{4f_{h/2} - f_h}{3}$.
:::
:::
:::

::: check
kind: parts
given: N = 2 | 5 | 10

## $-u'' = \lambda u$ on (0, 1) with fixed ends is solved with {N} equal linear elements.

::: part
answer: 6*N^2*(1 - cos(pi/N))/(2 + cos(pi/N))
tolerance: 0.5%

### What is the consistent-mass estimate of $\lambda_1$?

::: misses
- [4*N^2*sin(pi/(2*N))^2] That's the lumped mass.
- [any] $\frac{6}{h^2}\cdot\frac{1 - \cos\pi h}{2 + \cos\pi h}$.
:::
:::

::: part
answer: 4*N^2*sin(pi/(2*N))^2
tolerance: 0.5%

### What is the lumped-mass estimate?

::: misses
- [any] $\frac{4}{h^2}\sin^2\frac{\pi h}{2}$.
:::
:::
:::

::: check
kind: parts
given: k1 = 0.5 | 2; k2 = 3 | 8; V = 1 | 100

## A wall has two layers of equal thickness with conductivities {k1} and {k2}, and its faces are at 0 and {V}.

::: part
answer: V*k2/(k1 + k2)
tolerance: 0.5%

### What value do two linear elements give at the interface?

::: misses
- [V*k1/(k1 + k2)] The poorer conductor takes the larger drop.
- [any] Balance $\frac{k_1}{h}U = \frac{k_2}{h}(V - U)$.
:::
:::
:::

::: check
kind: parts
given: F = 4 | 25 | 100

## A linear-element solution's error must shrink by a factor of {F}.

::: part
answer: sqrt(F)
tolerance: 0.5%

### By what factor must the number of elements grow, if you care about u?

::: misses
- [F] The error in u goes as $h^2$.
- [any] $\sqrt F$.
:::
:::

::: part
answer: F
tolerance: 0.5%

### And if you care about the slope u′?

::: misses
- [sqrt(F)] The slope's error goes as h.
- [any] F.
:::
:::
:::

::: check
kind: parts
given: k = 3 | 10; h = 0.1 | 0.02

## A uniform mesh of linear elements has element length {h} and coefficient k = {k}; the load is f = 1.

::: part
answer: 2*k/h
tolerance: 0.5%

### What is an interior node's diagonal stiffness entry?

::: misses
- [k/h] Two elements meet at each interior node.
- [any] $\frac{2k}{h}$.
:::
:::

::: part
answer: h
tolerance: 0.5%

### What is its load entry?

::: misses
- [h/2] The hat spans two elements and has area h.
- [any] $\int\phi_j\,dx = h$.
:::
:::
:::
:::
