⬆ My Code
speed β: 0.500
zoom 🔎 25
proper time: 3.00
proper space: 3.00
⤆ show/hide
-0.200 c 550 nm 545 THz 5000 K

Approaching light source
👁〰️⇦💡
0.200 c 550 nm 545 THz 5000 K

Receding light source
👁〰️💡⇨

Hi, I wrote this tutorial to help me understand special relativity. I hope that it will work for you too. As you try it out just remember the following:

Enjoy, and feel free to contact me with questions or comments.

Actually, one last note: Though special relativity may become more intuitive after playing with these animations and interactive figures you definitely need math to understand it. So, I included some. The important math set up and final equations are highlighed. In between are derivations using simple algebra. You can either follow them, try them on your own or ignore them. .

RELATIVISTIC DOPPLER EFFECT

There is no medium necessary for light waves to propagate. Light travels through empty space at a constant speed c, for all observers regardless of how or how fast they are moving. However, the wavelength expands (red‑shifts) or contracts (blue‑shifts) for a receding or approaching light source, respectively. A good example is a galaxy billions of light‑years away. Because the universe is expanding, distant galaxies recede from us, and the light they emit is stretched to longer wavelengths. This is the same effect behind Hubble’s law: the farther away a galaxy is, the faster it appears to recede, and the more its light is red‑shifted.

Play with the figure sliders and notice how the wavelength and frequency change but the speed stays constant.

Note: because it is annoying to see constant movement on your screen, the animation will stop after 10 s. Just press the button again or use the sliders to restart it.

DERIVATION OF THE TIME DILATION FORMULA

The animation shows a box moving left to right with velocity v. It does not move vertically. A flash of light emited by the bulb on the top travels to a sensor on the bottom. In our stationary frame, the box moves horizontally a distance \(v \Delta t\) while the ligh flash traces a diagonal with length \(c \Delta t\). In the moving box's frame, the light travels vertically a distance of \(c \Delta \tau\), where \(\Delta \tau\) is the time interval measured by a clock in the moving box.


REF: lecture 11 Spacetime... Scott Hughes MIT dpt. Physics
Note: you will probably find descriptions stating that the Lorentz factor \(\gamma = \frac{\Delta \tau }{\Delta t}\), which will confuse you. So, let's clarify. The Lorentz factor \(\gamma\) is always equal or greater than 1. In this animated thought experiment \(\Delta t\) is what our clock measures, which is a greater interval than \(\Delta \tau\). \(\Delta \tau\) is what the clock in the box measures. In other words, if a device in the moving box sent us signals every second, we would receive them at intervals greater than a second.

DERIVATION OF THE SPACE CONTRACTION FORMULA

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, moving objects are flattened in the direction that they are moving. While this not possible to verify by direct measurements, the length contraction indirectly explains certain observations in particle accelerators, properties of electromagnetism, and small corrections in GPS calculations.
REF: lecture 11 Spacetime... Scott Hughes MIT dpt. Physics

BONUS: DERIVATION OF THE LORENTZ-EINSTEIN COORDINATE TRANSFORMATION EQUATIONS

Look at the yellow highlighted section. The blue arrows represent space-time lengths traveled by the flash from the bulb to the mirror. The purple arrows are the same lenghts 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)}\).

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

MINKOWSKI OR SPACETIME DIAGRAMS

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.
A satellite 🛰️ coasts at 0.5c relative to us. It moves both in time and in space. 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 the maximum speed allowed in spacetime — 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, and in a spacetime diagram they lie on the same horizontal line. 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) have tilted worldlines, but they can never tilt beyond the 45° light line.

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. 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, they reflections happen at different times.

PUTTING IT ALL TOGETHER: OBSERVE 😐 THINK 🤔 AND BE SURPRISED 😮

OK, let's do the math.