---
title: Transform methods for PDEs
heading: Turning a PDE into an ODE, and the skin effect it explains
eyebrow: A12 · Lesson 47 · Transform methods for PDEs
xp: 40
---

::: hook
Separation of variables needs a finite region with boundaries on every side. A rod that's very long, a wall heated on one face, a conductor carrying AC current: these are better handled by transforms. Fourier-transforming in a direction that runs to infinity, or Laplace-transforming in time, turns the PDE into an ODE in the remaining variable, which you already know how to solve. One result stands out for electrical engineers: a sinusoidal drive at a surface penetrates a diffusing medium only a **skin depth** $\delta = \sqrt{2D/\omega}$, with the phase lagging as it goes. With D = α it's the daily and yearly temperature waves in the ground; with $D = 1/\mu\sigma$ it's the skin effect that crowds AC current to the surface of a wire.
:::

::: play
- AC current density inside a copper conductor, from its surface (x = 0) inward: $J = e^{-x/\delta}\cos(\omega t - x/\delta)$. The dashed curves are the envelope $\pm e^{-x/\delta}$.
- Turn the phase ωt: the pattern travels inward while it shrinks, so deeper layers lag behind the surface. At one skin depth the amplitude is down to 37% and the phase is 57° behind.
- Raise the frequency: the skin depth shrinks as $1/\sqrt f$, from 8.5 mm at 60 Hz to 66 µm at 1 MHz.
:::
:::

```sim plot
view: graph
x: x = 0..3 mm
y: J = -1.1..1.1
slider: f = 50..10M = 10k Hz log
slider: p = 0..360 step 5 = 0 °
plot: exp(-x/(1000/sqrt(pi*f*4*pi*1e-7*5.8e7)))*cos(p*pi/180 - x/(1000/sqrt(pi*f*4*pi*1e-7*5.8e7))) | samples: 600 | label: current density
plot: exp(-x/(1000/sqrt(pi*f*4*pi*1e-7*5.8e7))) | dashed | label: envelope
plot: -exp(-x/(1000/sqrt(pi*f*4*pi*1e-7*5.8e7))) | dashed
readout: skin depth δ, mm = 1000/sqrt(pi*f*4*pi*1e-7*5.8e7)
readout: amplitude left 1 mm in, % = 100*exp(-1/(1000/sqrt(pi*f*4*pi*1e-7*5.8e7)))
```

::: predict
## A wire's surface temperature swings sinusoidally. How does the swing change with depth in a diffusing medium?

- [ ] It falls linearly to zero at one skin depth
- [x] It shrinks exponentially and lags further behind in phase
- [ ] It stays the same size but lags in phase
- [ ] It shrinks but stays in phase

::: reveal
Both at once: $e^{-x/\delta}\cos(\omega t - x/\delta)$. The amplitude falls by a factor e per skin depth, and the phase lags by one radian per skin depth. At $x = \pi\delta$ the inside is exactly out of step with the surface, though by then the amplitude is only 4% of it.
:::
:::

::: nameit
## Fourier transform in space

On an infinite line, transform $u_t = \alpha u_{xx}$ in x: each wavenumber k obeys $\hat u_t = -\alpha k^2\hat u$, so $\hat u = \hat u_0\,e^{-\alpha k^2t}$. Transforming back gives the initial condition convolved with the heat kernel (lesson 43):

$$u(x, t) = \int f(s)\,\frac{e^{-(x - s)^2/4\alpha t}}{\sqrt{4\pi\alpha t}}\,ds$$

## Laplace transform in time

For a semi-infinite region $x > 0$ at rest, with its surface suddenly raised to $U_0$: transforming in t gives $sU = \alpha U''$, so $U = \frac{U_0}{s}e^{-x\sqrt{s/\alpha}}$, whose inverse is

$$u = U_0\,\text{erfc}\left(\frac{x}{2\sqrt{\alpha t}}\right)$$

The heat penetrates a distance of order $\sqrt{\alpha t}$.

## A sinusoidal surface drive

With $u(0, t) = A\cos\omega t$, trying $u = \text{Re}\{Ae^{j\omega t}X(x)\}$ gives $j\omega X = \alpha X''$, so $X = e^{-(1 + j)x/\delta}$ with

$$\delta = \sqrt{\frac{2\alpha}{\omega}}, \qquad u = Ae^{-x/\delta}\cos\left(\omega t - \frac x\delta\right)$$

## The skin effect

Inside a good conductor, Maxwell's equations reduce to a diffusion equation for the current density with diffusivity $1/\mu\sigma$, so

$$\delta = \sqrt{\frac{2}{\omega\mu\sigma}} = \frac{1}{\sqrt{\pi f\mu\sigma}}$$

For copper ($\sigma$ = 5.8 × 10⁷ S/m), δ = 66 µm at 1 MHz. A round wire of radius $a \gg \delta$ carries current in a ring about δ thick, so $R_{ac}/R_{dc} \approx \frac{a}{2\delta}$.
:::

::: example
## A steel slab (α = 1 × 10⁻⁵ m²/s) at 20 °C has its surface suddenly raised to 220 °C. How hot is it 10 mm in, after 10 s?

::: solution
1. **The similarity variable.**
   $$\begin{aligned} \frac{x}{2\sqrt{\alpha t}} &= \frac{0.01}{2\sqrt{10^{-4}}} \\ &= 0.5 \end{aligned}$$
2. **Read off erfc.** erfc(0.5) = 0.480, so it has risen by
   $$0.480 \times 200 = 96\ \text{°C}$$
   to 116 °C.

**Answer:** 10 mm in, after 10 s, the steel is at 116 °C.
:::
:::

::: example
## Soil has α = 5 × 10⁻⁷ m²/s. How deep does the yearly temperature swing reach, and where is it a half year out of step?

::: solution
1. **The yearly frequency.**
   $$\begin{aligned} \omega &= \frac{2\pi}{1\text{ year}} \\ &= 1.99 \times 10^{-7}\ \text{rad/s} \end{aligned}$$
2. **The penetration depth.**
   $$\begin{aligned} \delta &= \sqrt{\frac{2 \times 5 \times 10^{-7}}{1.99 \times 10^{-7}}}\ \text{m} \\ &= 2.24\ \text{m} \end{aligned}$$
3. **Half a year out of step.** That's at $\pi\delta = 7.0$ m, where the swing is $e^{-\pi}$ = 4% of the surface's: a cellar there is slightly warmest in winter.

**Answer:** the swing reaches a depth of about δ = 2.24 m, and it is a half year out of step at 7.0 m, where it is 4% of the surface swing.
:::
:::

::: example
## A boron implant starts as a Gaussian with σ = 50 nm. It's annealed for 30 minutes with $D = 10^{-14}$ cm²/s. How wide is it afterward, and how far does its peak fall?

::: solution
1. **Transform in x.** Fourier-transform the diffusion equation $c_t = Dc_{xx}$ in x: each component $e^{jkx}$ decays as $e^{-Dk^2t}$.
2. **A Gaussian stays Gaussian.** A Gaussian of variance $\sigma_0^2$ has transform $e^{-k^2\sigma_0^2/2}$, so after time t the transform is
   $$e^{-k^2(\sigma_0^2 + 2Dt)/2}$$
   still a Gaussian, with variance $\sigma_0^2 + 2Dt$.
3. **The spread.**
   $$\begin{aligned} Dt &= 10^{-18}\ \text{m}^2/\text{s} \times 1800\ \text{s} \\ &= 1.8 \times 10^{-15}\ \text{m}^2 \end{aligned}$$
   so $2Dt = 3600$ nm².
4. **The new width.**
   $$\begin{aligned} \sigma &= \sqrt{2500 + 3600}\ \text{nm} \\ &= 78\ \text{nm} \end{aligned}$$
5. **The peak.** The dose is conserved, so the peak falls by $50/78 = 0.64$. Widths add in squares, so a short anneal barely changes a wide profile.

**Answer:** afterward σ = 78 nm, and the peak falls to 0.64 of its starting height.
:::
:::

::: check
given: f = 1 | 10 | 100 | 1000
answer: 1e6/sqrt(pi*f*1000*4*pi*1e-7*5.8e7)
unit: µm
tolerance: 0.5%

## What's the skin depth of copper (σ = 5.8 × 10⁷ S/m) at {f} kHz?

::: right
Right. $1/\sqrt{\pi f\mu_0\sigma}$ = {answer} µm.
:::

::: misses
- [1e6/sqrt(f*1000*4*pi*1e-7*5.8e7)] With $\omega = 2\pi f$, $\delta = 1/\sqrt{\pi f\mu\sigma}$: keep the π.
- [any] Not yet. $\delta = \sqrt{2/(\omega\mu\sigma)}$.
:::
:::

::: check
given: x = 5 | 10 | 20; a = 0.00001 | 0.0001; t = 10 | 60
answer: erfc((x/1000)/(2*sqrt(a*t)))
tolerance: 0.5%

## A thick slab with diffusivity {a} m²/s has its surface temperature suddenly raised. What fraction of the rise has reached {x} mm in after {t} s?

::: right
Right. $\text{erfc}\left(\frac{x}{2\sqrt{\alpha t}}\right)$ = {answer}.
:::

::: misses
- [erf((x/1000)/(2*sqrt(a*t)))] That's the part still missing; the fraction arrived is erfc.
- [any] Not yet. $u/U_0 = \text{erfc}\left(\frac{x}{2\sqrt{\alpha t}}\right)$.
:::
:::

::: check
given: a = 0.0000003 | 0.0000005 | 0.000001
answer: sqrt(2*a/(2*pi/86400))*100
unit: cm
tolerance: 0.5%

## Ground with diffusivity {a} m²/s: what's the skin depth of the daily temperature swing?

::: right
Right. $\sqrt{2\alpha/\omega}$ = {answer} cm.
:::

::: misses
- [sqrt(a/(2*pi/86400))*100] It's $\sqrt{2\alpha/\omega}$; don't drop the 2.
- [any] Not yet. $\omega = 2\pi/(86\,400\text{ s})$.
:::
:::

::: check
given: k = 0.5 | 2 | 3
answer: exp(-k)
tolerance: 0.5%

## At a depth of {k} skin depths, what fraction of the surface swing's amplitude remains?

::: right
Right. $e^{-x/\delta}$ = {answer}, lagging by {k} rad.
:::

::: misses
- [exp(-k^2)] The amplitude falls as $e^{-x/\delta}$, not as a Gaussian.
- [any] Not yet. $e^{-x/\delta}$.
:::
:::

::: check
given: a = 0.5 | 1 | 2; f = 1 | 10
answer: a/(2*1000/sqrt(pi*f*1e6*4*pi*1e-7*5.8e7))
tolerance: 1%

## A copper wire of radius {a} mm carries {f} MHz. Roughly what's $R_{ac}/R_{dc}$?

::: right
Right. $a/(2\delta)$ = {answer}.
:::

::: misses
- [a/(1000/sqrt(pi*f*1e6*4*pi*1e-7*5.8e7))] The current ring's area is about $2\pi a\delta$, against $\pi a^2$: that's $a/(2\delta)$.
- [any] Not yet. Area $\pi a^2$ against a ring $2\pi a\delta$.
:::
:::

::: check
kind: choice

## A long rod at rest has one end's temperature suddenly changed. Which transform turns its heat equation into an ODE in x most directly?

- [ ] A Fourier transform in x
- [x] A Laplace transform in t
- [ ] A Fourier series in x
- [ ] A z-transform

::: misses
- [1] x runs only from 0 to ∞ with a condition at x = 0; the Laplace transform in t handles the starting-from-rest condition directly.
- [3] Fourier series need a finite interval.
- [4] That's for discrete time.
:::
:::

::: check
kind: parts
given: s = 30 | 50; D = 1 | 5; t = 10 | 60

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

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

### What is its σ afterward?

::: misses
- [s + sqrt(120*D*t)] Variances add, not widths.
- [any] $\sqrt{\sigma_0^2 + 2Dt}$, with $2Dt$ in nm².
:::
:::

::: part
answer: s/sqrt(s^2 + 120*D*t)
tolerance: 0.5%

### By what factor does the peak concentration fall?

::: misses
- [s^2/(s^2 + 120*D*t)] The peak goes as $1/\sigma$.
- [any] The dose is fixed, so the peak scales as $\sigma_0/\sigma$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.1..2, t = 0.1..2

## The heat kernel $u = \frac{1}{\sqrt{4\pi\alpha t}}e^{-x^2/(4\alpha t)}$ spreads a unit of heat released at x = 0. Write α as a.

::: step
answer: 2*a*t

### What is its variance, the mean of $x^2$?
:::

::: step
answer: 1/sqrt(4*pi*a*t)

### What is the temperature at x = 0?
:::

::: right
Right. The width grows as $\sqrt{t}$ and the peak falls as $1/\sqrt{t}$, keeping the area fixed.
:::
:::

::: explain
## Why does the skin depth shrink as the square root of the frequency?

::: model
Inside a conductor, the current density obeys a diffusion equation with diffusivity $1/\mu\sigma$: a change at the surface spreads inward the way heat does, covering a distance d in a time of order $\mu\sigma d^2$. A sinusoidal drive reverses every half period, so it can only push the current a distance whose diffusion time is about one period before the next reversal starts undoing it. Setting $\mu\sigma\delta^2 \sim 1/\omega$ gives $\delta \sim 1/\sqrt{\omega\mu\sigma}$: four times the frequency halves the depth. That's why AC resistance rises as $\sqrt f$ once the skin depth is smaller than the wire.
:::
:::

::: practice

::: check
given: f = 1 | 5 | 10 | 50 | 100 | 500
answer: 1e6/sqrt(pi*f*1000*4*pi*1e-7*5.8e7)
unit: µm
tolerance: 0.5%

## Copper skin depth at {f} kHz?

::: misses
- [any] $1/\sqrt{\pi f\mu_0\sigma}$.
:::
:::

::: check
given: x = 2 | 15; a = 0.00002 | 0.0001; t = 5 | 30
answer: erfc((x/1000)/(2*sqrt(a*t)))
tolerance: 0.5%

## Fraction at {x} mm after {t} s, α = {a}?

::: misses
- [any] $\text{erfc}\left(\frac{x}{2\sqrt{\alpha t}}\right)$.
:::
:::

::: check
given: a = 0.8 | 1.5; f = 2 | 20
answer: a/(2*1000/sqrt(pi*f*1e6*4*pi*1e-7*5.8e7))
tolerance: 1%

## $R_{ac}/R_{dc}$, copper, a = {a} mm, {f} MHz?

::: misses
- [any] $a/(2\delta)$.
:::
:::
:::
