B11 · Lesson 13 · Radiation and noise lab
Planck's integrals, Wien's constant, blackbody band fractions, simulated Johnson noise and receiver cascades in Python
Lessons 9 to 12 used formulas whose constants come from integrals: Stefan–Boltzmann's σ from , Wien's 2898 µm·K from a transcendental equation, kT/C noise from integrating a noise spectrum through a filter. In this lab you'll compute each of those from scratch, then use them as an engineer would: how much of a lamp's light is visible, what a thermal camera's 8 to 14 µm band collects, whether a simulated resistor's noise really settles at kT/C, and what noise temperature a chain of amplifiers adds.
- The curve is a blackbody's spectrum per unit wavelength, scaled to its peak, on a log wavelength axis.
- The shaded band runs between the two edge sliders, and the readout gives the fraction of all the radiated power inside it, from Planck's law integrated in closed form (step 3 does it numerically).
- Set the band to 0.4 to 0.7 µm and compare 2700 K (a warm lamp), 3000 K and 5772 K (the Sun). Then set 8 to 14 µm and 300 K: that's what a thermal camera sees.
Predict
About what fraction of a 3000 K incandescent filament's radiation falls in the visible band, 0.4 to 0.7 µm?
About 8%: the filament peaks near 1 µm, in the infrared, and most of its power lies beyond 0.7 µm. That's why incandescent bulbs were so inefficient as lights. The Sun, at 5772 K, puts 37% of its power into the same band.
Name it
Planck's integrals
Substituting turns every blackbody quantity into a pure number times a power of T. The total power needs , which gives . The photon count needs , so the average photon carries .
Wien's constants
Per unit wavelength the spectrum goes as , which peaks where , at x = 4.965; that's = 2898 µm·K. Per unit frequency it goes as , peaking at x = 2.821. The two peaks don't describe the same light: the frequency peak lies at a wavelength 1.76 times longer.
Band fractions
Expanding and integrating term by term, the fraction of power at wavelengths shorter than λ is
and a band's share is the difference of two such values. The series converges quickly when x is a few or more.
Noise in a simulation
To simulate a resistor's Johnson noise, draw independent Gaussian samples every Δt with variance , which spreads the one-sided density 4kTR evenly up to the Nyquist frequency . Passing them through a discrete RC filter should leave a variance close to kT/C. For a chain of stages, Friis's formula from lesson 12, , gives the total.
Worked example
Compute σ from Planck's integral and check it against 5.670 × 10⁻⁸ W/(m²·K⁴).
Show the solution
- Power per area as an integral.
- The integral.
- Check it numerically. A numerical integral on a fine grid to x = 50 matches 6.4939 to many digits, since the integrand falls as .
- The constant. In W/(m²·K⁴),
- Mean photon energy. The same integral with gives 2.4041, and the ratio, 2.701, is the mean photon energy in units of kT.
Answer σ = 5.6704 × 10⁻⁸ W/(m²·K⁴), matching 5.670 × 10⁻⁸.
Worked example
What fraction of the radiation falls in the visible band, 0.4 to 0.7 µm, for a 2700 K lamp, a 3000 K filament and the 5772 K Sun?
Show the solution
- Limits of the band. For the band, x runs from and the fraction is the difference of F at the two ends.
- The 2700 K lamp. 5.0%.
- The 3000 K filament. 8.1%.
- The 5772 K Sun. 36.6%.
- What it means for lighting. A warm-white incandescent bulb turns only about 5% of its power into visible light (less in useful lumens, since the eye favors green). LEDs skip the blackbody altogether, putting nearly all their output where it's wanted.
Answer 5.0% for the 2700 K lamp, 8.1% for the 3000 K filament and 36.6% for the Sun.
Worked example
A thermal camera looks in the 8 to 14 µm band. What fraction of a 300 K object's radiation is in that band, and how much power per cm² is that?
Show the solution
- Limits of the band. At 300 K,
- Fraction in the band.
- Total from a blackbody at 300 K.
- Power in the band.
- Why cameras use this band. That band also sits in a window where the atmosphere hardly absorbs, and it contains the peak of room-temperature emission (9.7 µm). Those two facts are why uncooled thermal cameras use it.
Answer 0.376 of the radiation is in the band, 17.3 mW/cm².
Check
Step 1. Write planck_integrals() returning a tuple (I3, I2, sigma): the integrals and computed numerically, and σ from the first.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 2. Write wien() returning (x_lambda, b, x_nu): the root of by Newton's method, Wien's constant in µm·K, and the root of .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 3. Write band_fraction(T, l1, l2) returning the fraction of a blackbody's power between wavelengths l1 and l2 (µm) at temperature T, by integrating Planck's law numerically in x.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 4. Write rc_noise(R, C, T, n, seed): simulate n samples of a resistor's Johnson noise (Gaussian, variance with ) through the discrete filter , starting at 0, and return the variance of v over the second half of the run.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 5. Write cascade(stages) for a list of (gain_dB, noise_temperature_K) stages, returning (Te, NF_dB): the chain's noise temperature by Friis's formula and its noise figure referred to 290 K.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A blackbody is at 1000 K.
(a)
At what wavelength does its spectrum per unit wavelength peak?
Write units the way you normally would: 1.5 µm, 1500 nm and 0.0015 mm are the same answer.
(b)
Its spectrum per unit frequency peaks at . What wavelength is that frequency?
Check
How many photons per second does each cm² of a blackbody at 3000 K emit?
Check
What's the average energy of a photon in blackbody radiation at 300 K?
Write units the way you normally would: 1.5 eV, 1500 meV and 0.0015 keV are the same answer.
Check
At what frequency does a photon's energy hf equal kT at 4 K, where Johnson noise starts to fall below its classical value?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Explain why
Why can a single number, 2898 µm·K, give the peak wavelength of every blackbody?
Planck's law depends on wavelength and temperature only through the combination , apart from an overall factor. Written in that variable, x, the shape of the spectrum per unit wavelength is for every temperature, so its peak always falls at the same x, the root of , which is 4.965. Converting back, = 2898 µm·K. The same scaling makes every band fraction and every mean energy a pure number times a power of T, which is why one numerical integral serves every temperature.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.