C1034 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C10 · Lesson 34 · Wave lab

Waves in lossy media, at boundaries and through coatings, in Python

Lessons 27 to 31 covered how plane waves travel, carry power, take on polarizations, decay in conductors and reflect at boundaries. With complex numbers all of it reduces to a few short functions: one propagation constant that covers copper, seawater and glass alike; the Fresnel formulas for any angle, including total internal reflection; and a matrix method that computes the reflection of any stack of thin layers, the way anti-reflection coatings are designed.

  • The curves are the power reflected from air into a material of index n, against the angle of incidence, for the two polarizations: s (E parallel to the surface) and p (E in the plane of incidence).
  • At normal incidence both reflect ((n−1)/(n+1))2: 4% for glass. As the angle grows, s reflects more and more; p falls to zero at Brewster's angle before rising.
  • At grazing incidence both approach 100%, which is why a lake mirrors the far shore.

Predict

A single quarter-wave layer of MgF₂ (n = 1.38) coats glass (n = 1.5). At the design wavelength, about how much light does the surface reflect?

Name it

One propagation constant for every medium

γ=α+jβ=jωμ(σ+jωε)

covers everything from a lossless dielectric (σ = 0: α = 0, β=ωμε) to a good conductor (α=β=1/δ). Python's cmath.sqrt takes the principal root, which has the positive real part a decaying wave needs.

Fresnel at any angle

With cos⁡θt=1−(n1sin⁡θi/n2)2, computed as a complex number so it also works beyond the critical angle,

rs=n1cos⁡θi−n2cos⁡θtn1cos⁡θi+n2cos⁡θt,rp=n2cos⁡θi−n1cos⁡θtn2cos⁡θi+n1cos⁡θt

and the reflectances are |r|2. Beyond the critical angle cos⁡θt is imaginary and both become 1.

Thin-film stacks

At normal incidence each layer of index n and thickness d has a characteristic matrix

M=[cos⁡δjsin⁡δ/njnsin⁡δcos⁡δ],δ=2πndλ

Multiply them in order, form [BC]=Mtotal[1ns] with the substrate index ns, and the reflection is r=(n0B−C)/(n0B+C).

Polarization loss

A linear antenna at angle ψ receiving Ex=cos⁡ωt, Ey=bcos⁡(ωt+δ) collects the fraction (cos⁡ψ+bsin⁡ψcos⁡δ)2+(bsin⁡ψsin⁡δ)21+b2 of the power.

Worked example

Find α and β for copper (σ = 5.8 × 10⁷ S/m) at 1 MHz, and for seawater (σ = 4 S/m, εr = 81) at 1 kHz.

Show the solution
  1. Copper at 1 MHz. α=β=1.51×104m−1 a skin depth of 66 µm.
  2. Is seawater a conductor at 1 kHz? σωε=8.9×105 so it's still a good conductor.
  3. Seawater at 1 kHz. α=β=0.126m−1 a skin depth of 7.96 m, which is why submarines are reached at very low frequencies.

Answer copper has α = β = 1.51×104 m⁻¹ at 1 MHz, and seawater has α = β = 0.126 m⁻¹ at 1 kHz.

Worked example

What does glass (n = 1.5) reflect at 45° for each polarization?

Show the solution
  1. Angle inside the glass. cos⁡θt=1−(0.707/1.5)2=0.882
  2. Perpendicular (s) polarization. Rs=(0.707−1.5×0.8820.707+1.323)2=0.092
  3. Parallel (p) polarization. Rp=(1.5×0.707−0.8821.061+0.882)2=0.0085
  4. What it means. Reflected light is already strongly s-polarized at 45°, which is what polarizing sunglasses exploit.

Answer glass reflects 9.2% of s-polarized light and 0.85% of p-polarized light at 45°.

Check

What percentage of light does an air–material surface reflect at normal incidence, for n = 1.5?

Check

Write propagation(f, er, sigma): return (alpha, beta) for a plane wave at frequency f in a medium with relative permittivity er and conductivity sigma (μ = μ₀).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write fresnel(n1, n2, theta): the power reflectances (Rs, Rp) for light going from index n1 into n2 at theta degrees. Use a complex square root so total internal reflection comes out as 1.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write multilayer(ns, ds, lam): the normal-incidence reflectance of a stack, where ns lists the indices from the incident medium to the substrate and ds the thicknesses of the layers in between.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write plf(b, delta, psi): the fraction of power a linear antenna at psi degrees collects from a wave Ex=cos⁡ωt, Ey=bcos⁡(ωt+δ), with delta in degrees.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does a quarter-wave coating cancel reflection, and why only at one wavelength?

Practice

Keep practicing

One kind of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.