DEV Community

Surendra Singh Kamboj
Surendra Singh Kamboj

Posted on AI-assisted

Finding an unknown light's wavelength from Newton's rings, in JavaScript

Newton's rings usually get used the other way round in textbooks (given the wavelength, predict a ring's diameter), but the more useful direction in a real lab is the reverse: measure a ring's diameter with a travelling microscope, and back out the wavelength of whatever light source you have.

function wavelengthFromRing({ Dn, n, R }) {
  return (Dn ** 2) / (4 * n * R);
}

// 10th dark ring measured at 5.00 mm diameter, lens radius of curvature 1.0 m
const lambda = wavelengthFromRing({ Dn: 5.0e-3, n: 10, R: 1.0 });
console.log((lambda * 1e9).toFixed(1), 'nm');
Enter fullscreen mode Exit fullscreen mode

That gives 625.0 nm — squarely in the orange-red part of the visible spectrum, consistent with (say) an LED source rather than the sodium lamp (589 nm) used as the standard reference.

Measured D10 Lens R Wavelength found
5.00 mm 1.0 m 625.0 nm
4.854 mm 1.0 m 589.0 nm (sodium light, for comparison)

Why this direction is the practical one

In the actual Class 12 practical, you don't know the exact radius of curvature of your lens to begin with either — so real procedure uses two rings (D_n and D_m) to eliminate lambda and find R first with a known sodium lamp, then swaps in an unknown source and solves for its lambda using the now-known R. Two unknowns, two sequential measurements.

A common mistake

Measuring ring radius with a scale that's actually calibrated for diameter (or vice versa) is an easy slip — the formula needs the full diameter D_n, not the radius, and squaring an off-by-2 error quadruples the final answer.

Try adjusting the wavelength and curvature yourself on PractiSci's Newton's rings lab, part of the wave optics topic guide.

Full disclosure: I build PractiSci, a free virtual physics and chemistry lab for Class 11-12.

Top comments (0)