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 : 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?
1.4%, down from 4% for bare glass. A quarter-wave layer reflects , which is zero only if . No durable material has an index that low, so good coatings use several layers, which is exactly what the matrix method in this lab computes.
Name it
One propagation constant for every medium
covers everything from a lossless dielectric (σ = 0: α = 0, ) to a good conductor (). Python's cmath.sqrt takes the principal root, which has the positive real part a decaying wave needs.
Fresnel at any angle
With , computed as a complex number so it also works beyond the critical angle,
and the reflectances are . Beyond the critical angle is imaginary and both become 1.
Thin-film stacks
At normal incidence each layer of index n and thickness d has a characteristic matrix
Multiply them in order, form with the substrate index , and the reflection is .
Polarization loss
A linear antenna at angle ψ receiving , collects the fraction of the power.
Worked example
Find α and β for copper (σ = 5.8 × 10⁷ S/m) at 1 MHz, and for seawater (σ = 4 S/m, = 81) at 1 kHz.
Show the solution
- Copper at 1 MHz. a skin depth of 66 µm.
- Is seawater a conductor at 1 kHz? so it's still a good conductor.
- Seawater at 1 kHz. a skin depth of 7.96 m, which is why submarines are reached at very low frequencies.
Answer copper has α = β = 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
- Angle inside the glass.
- Perpendicular (s) polarization.
- Parallel (p) polarization.
- 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 , , 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?
Light reflects twice: at the air-to-coating surface and at the coating-to-glass surface. A layer a quarter wavelength thick makes the second reflection travel an extra half wavelength there and back, so it returns half a cycle out of step with the first. If the two reflections are equally strong, which happens when the coating's index is the geometric mean of the two on either side, they cancel completely. At other wavelengths the layer is no longer a quarter wave thick, the phase difference isn't half a cycle, and the cancellation is partial, which is why coated lenses look faintly purple: red and blue, at the ends of the spectrum, reflect a little more than green.
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.