DEV Community

Cover image for Fresnel biprism: fringe width without cutting a double slit, in JavaScript
Surendra Singh Kamboj
Surendra Singh Kamboj

Posted on AI-assisted

Fresnel biprism: fringe width without cutting a double slit, in JavaScript

Young's double slit experiment needs two slits cut a fraction of a millimetre apart. A Fresnel biprism gets the same interference pattern from a single piece of glass instead — a thin prism with a near-180-degree apex angle that splits one beam into two overlapping virtual sources. Here's the geometry, checked in JavaScript.

How a biprism fakes two slits

A biprism is effectively two thin prisms joined base to base. A narrow slit placed in front of it gets refracted into two overlapping beams that appear to radiate from two virtual, coherent sources separated by a small distance d\.

Once that separation exists, the fringe width formula is identical to Young's double slit:

beta = lambda * D / d
Enter fullscreen mode Exit fullscreen mode

The separation itself comes from the biprism's geometry — if the slit sits a distance a\ before the biprism, the glass has refractive index mu\, and the refracting angle is alpha\:

d = 2 * a * (mu - 1) * alpha
Enter fullscreen mode Exit fullscreen mode

Checked in JavaScript

const lambda = 589e-9;  // sodium light, metres
const a = 0.1;           // slit-to-biprism distance, m
const D = 1.0;           // slit-to-screen distance, m
const mu = 1.5;          // biprism refractive index
const alpha = 0.5 * Math.PI / 180; // 0.5 degree refracting angle

const d = 2 * a * (mu - 1) * alpha;
const beta = lambda * D / d;

console.log((d * 1000).toFixed(4));    // 0.8727 mm source separation
console.log((beta * 1000).toFixed(4)); // 0.6749 mm fringe width
Enter fullscreen mode Exit fullscreen mode

Half a degree of biprism angle puts the two virtual sources less than a millimetre apart, and sodium light produces fringes about 0.67 mm wide a metre away — fine enough to need a travelling microscope, but measurable.

Mistakes worth avoiding

  • Plugging the refracting angle directly into the fringe-width formula instead of first computing the virtual source separation d\.
  • Forgetting to convert the biprism angle from degrees to radians.
  • Assuming a bigger biprism angle gives sharper fringes — it increases d\, which actually shrinks the fringe width.

Try it yourself: PractiSci has a free interactive Fresnel biprism lab where you can change slit distance, angle and wavelength and watch the fringe pattern update live. More on interference: wave optics topic guide.

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

Top comments (0)