Back to Home Page
speed β: 0.500
zoom 🔎 30
proper time: 3.0
proper length: 3.0
⤆ show/hide
View from:
Show the light as:
⇦ behind
λ = 953 nm
ν = 315 THz
E = 1.30 eV
T = 3042 K
ahead ⇨
λ = 318 nm
ν = 944 THz
E = 3.90 eV
T = 9126 K

Hi, I wrote this tutorial to help me understand special relativity. I hope that it will work for you too.

RELATIVISTIC DOPPLER EFFECT

Play with the speed slider and with the radio buttons.

View from the planets, with higher saucer speeds (βc) its length contracts, its clock runs slow, and the planets measure the light ahead with more energy and shorter wavelengths, while they measure the light behind with less energy and longer wavelengths.

View from the saucer, the aliens in the saucer feel no movement regardless its speed but they see planets and stars stream past. The light beams are always green (with a 550 nm wavelength). The planets are not round. Their width shrinks at higher coasting speeds.

What remains constant for all observers (aliens and planet denizens) is the speed of the light (c).

Beam or single photons? A spotlight emits countless photons. Together they act like the classical wave of the electric field drawn in beam mode. Switch to single photons and each spotlight emits one photon at a time. A photon is drawn as a short wave packet. This wave is the photon's probability amplitude, which tells where the photon is likely to be detected. Every observer counts the same number of crests, but the Doppler effect stretches or squeezes the whole packet, not just its wavelength. A real photon emitted by an atom is a packet a meter or more long containing millions of wavelengths; only a few are drawn here.

The console:

DERIVATION OF THE TIME DILATION FORMULA

Click the button to restart the animation.

From our stationary frame we observe a box moving horizontally left to right with velocity v. The light bulb on top of the box flashes and the flash travels to the sensor on the bottom. In our frame the light flash traces a diagonal with length \(c \Delta t\) measured by our stationary clock. In the moving box's frame, the light travels vertically a distance of \(c \Delta \tau\), measured by a clock in the moving box. The height of the box is the same in both reference frames because the box is not moving in the vertical direction. Therefore, we can apply the Pythagorean theorem:

Note that the Lorentz factor \(\gamma\) is always equal or greater than 1 because the speed v is always less than c, so the square root is never more than 1. That is why \(\Delta t \ge \Delta \tau \), where \(\Delta t\) is what the stationary frame clock measures and \( \Delta \tau\) is what the moving frame clock measures.

Reference: lecture 11 Spacetime... Scott Hughes MIT dpt. Physics

DERIVATION OF THE SPACE CONTRACTION FORMULA

Click the button to restart the animation.

In our reference frame we see a box with length x moving to the right with speed v. A light bulb on the left end of the box flashes. The flash travels to the right taking a time interval of \(\frac{x}{c-v}\) to reach a mirror at the right end of the box. After reflecting on the mirror the flash travels back to the bulb taking a time interval of \(\frac{x}{c+v}\). Thus, our clock measures the total round trip time as \(\bbox[LightCyan]{\Delta t_{total} = \frac{x}{c-v} + \frac{x}{c+v}} \). But a clock in the moving box's frame measures the total round trip time as \(\bbox[LightCyan]{\Delta \tau_{total} = \frac{2\chi}{c}}\).

Which means that, as we measure them, moving objects are shorter in the direction they are moving. Nobody has photographed a shrunken spaceship, but the effect shows up in real experiments. Muons are tiny particles created high in the atmosphere by cosmic rays. They live so briefly that they should decay long before reaching the ground, yet plenty of them are detected at sea level. From our point of view, their clocks run slow (time dilation). From the muon's point of view, its clock runs normally but the atmosphere is squeezed thin (length contraction). Both points of view give the same answer.

Reference: lecture 11 Spacetime... Scott Hughes MIT dpt. Physics

BONUS: DERIVATION OF THE LORENTZ-EINSTEIN COORDINATE TRANSFORMATION EQUATIONS

Look at the yellow highlighted arrows. This is a diagram of the distance covered by the flash from the bulb to the mirror only, we are not including the return trip. The blue arrows are ordinary distances, measured in our frame. The purple arrows are the same lengths in the moving frame. Importantly the origins of both frames are the same. Looking at the blue arrows first: vt is the distance covered by the box, x is the distance covered by the flash, and \(\frac{\chi}{\gamma}\) is the length of the box as measured in the moving frame but converted to our frame using the space contraction formula derived above.

Adding these lengths we obtain the Lorentz coordinate transformation equation for space: \(x = vt + \frac{\chi}{\gamma}\quad\Rightarrow\quad \bbox[LightCyan]{\chi = \gamma(x - vt)}\)

If we do the same from the point of view of the moving frame we obtain a similar equation with a reversed sign: \(\frac{x}{\gamma} = \chi + v\tau \quad\Rightarrow\quad \bbox[LightCyan]{x= \gamma(\chi + v\tau)}\).

Reference: ...Lorentz transformation ... JM Levy U. Paris

MINKOWSKI OR SPACETIME DIAGRAMS

Click the button to restart the animation.

The objects in this animation are moving in a Minkowski spacetime diagram. They move vertically in time and horizontally in space. There is only one space dimension. The red 🔴 and blue 🔵 balls are some distance apart but not moving relative to each other. They are in our reference frame, so the animation shows them moving only in time (vertically) along their respective worldlines.
A satellite 🛰️ coasts at 0.5c relative to us. It moves both in time and in space and its worldline is tilted. The worldline of any object is tilted away from the vertical (not moving) by less than 45 degrees (light speed), to the left or to the right depending on the direction it moves. A flash 💥 emitted by the red ball travels with speed c to the blue ball, gets reflected, and travels back to the red ball. Because it is a light pulse, it moves at speed c, the cosmic speed limit: nothing with mass can reach it, and no message can travel faster. In the diagram it moves along a 45‑degree diagonal, meaning it advances equally in the ct and x directions.
This happens because, by convention, one unit of time on the vertical axis corresponds to the distance light travels in that time. If we measure x in meters, then the ct axis also has units of meters. I'm sure you have used the expression “it’s two hours from here” instead of saying “it’s 100 miles from here.” We're doing something similar but reversed: we measure time in units of distance on the ct axis.
One meter on the ct axis means ct = 1 m, or t = 1 m / (300,000,000 m/s) — the time it takes light to travel one meter. That is why a light pulse always appears at 45° in a spacetime diagram.
This may feel confusing 😕 until you sketch a few spacetime diagrams yourself — then it suddenly clicks.

A CLOCK AND TWO MIRRORS DEFINING SIMULTANEOUS EVENTS

Meet our clock. A light bulb flashes in our stationary reference frame. The light travels in opposite directions toward mirrors placed at equal distances from the bulb. When the reflected light returns to the bulb, another flash is triggered. These intervals define the clock’s ticking. The two mirror reflections are simultaneous events in our frame, so in our spacetime diagram they lie on the same horizontal line. You can think of that horizontal line as crossing our NOW moment in all of space. The bulb and mirrors trace three vertical worldlines. The photon paths always appear at 45° (as in the previous animation). Moving objects (none appear in this animation) would have worldlines tilted away from the vertical, to the left or to the right. The faster they move, the more they tilt, but anything with mass always stays steeper than the 45° light line. Only light travels exactly along it.

THIS IS NOT TRUE BUT IT IS HOW WE INTUITIVELY THINK ABOUT TIME

Our stationary clock has blue worldlines (the thick worldline in the center for the bulb and the side thin worldlines for the mirrors). Odd numbers 1, 3, ... etc mark the simultaneous reflection events. A moving clock, shown in red, is also displayed. You can adjust its speed and zoom level with the sliders. The photons in the moving clock are fired at the speed of light, but in this intuitive (Galilean) picture their speed relative to us changes depending on the clock’s motion. IN REALITY, LIGHT SPEED IS THE SAME IN ALL FRAMES. (This has been tested: light from fast-moving sources, such as pairs of stars orbiting each other, or particles racing through accelerators at nearly the speed of light, always arrives at speed c.) But in this intuitive but wrong demonstration, if the clock moves to the right, the photon fired toward the left mirror appears to move slower than c (its worldline looks steeper) until it reaches the mirror. The reflection on the moving mirror causes it to move faster than c on its return trip. The opposite happens for the photon fired toward the right mirror. As a result, both clocks remain synchronized: you can always draw a horizontal line that intersects both bulbs and all four mirrors. This matches our everyday intuition — that the NOW we experience is shared everywhere in the Universe. But this intuition is not correct. Press the next 🚀 button to see why.

WHY MOTION DESYNCHRONIZES CLOCKS

This animation shows a moving light clock in our spacetime diagram. Our own identical clock is not drawn, but the gridlines correspond to its ticks, just as in the previous clock 🕓 animation. Unlike in the Galilean 🔭 interactive figure, here the speed of light is not affected by the clock’s motion, so the photons always trace 45-degree stippled lines. Because of this, the two reflections that are simultaneous in the moving clock’s own frame are not simultaneous in ours. From our perspective, the moving clock’s spacetime axes are Lorentz-transformed: its time axis becomes the tilted cτ worldline of the ship, and its space axis χ is reconstructed by connecting the two reflection events—the events that are simultaneous in the ship’s frame (connected by the thin red lines). For us, the reflections happen at different times.

PUTTING IT ALL TOGETHER IN THIS MINKOWSKI SPACE-TIME DIAGRAM

OK, let's do the math.