Hi, I wrote this tutorial to help me understand special relativity.
I hope that it will work for you too.
- Each of the round buttons opens an interactive figure or animation.
- Press them in any order and as often as you wish (though it makes sense to go left
to right).
- Although this tutorial describes moving objects keep in mind that none of them
are accelerating either by propulsion or gravity. They are coasting in a straight line. Einstein
proposed or accepted that the laws of physics are the same for everyone
moving in such conditions, and that light travels at the same speed for everyone.
- The first idea agrees with our intuition but the second does not. If we stand on a dock
looking at a passing boat and see a man walking on the boat towards the bow it is obvious that
he is moving at a faster speed than the boat; but a light beam emitted from anywhere on the boat travels
at the same speed for all observers regardless of the travelling direction.
- As we shall see, this implies that we measure the clocks of a person moving relative to us running
slower than ours, while that person notices nothing unusual. In addition, we measure the person
shorter in the direction they are moving.
- This is very real. In fact, the accuracy of the GPS that we use for driving directions depends on
compensating adjustments for both special and general relativity effects.
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:
- λ The photon's wavelength for a receding source is \(\lambda_{observed} = \lambda_{emitted}\sqrt{\frac{1+\beta}{1-\beta}}\)
(swap the signs for an approaching one).
- ν The photon's frequency \(\nu = \frac{c}{\lambda}\).
- E The photon's energy \(E = h\nu = \frac{hc}{\lambda}\) greater for an observer
it is approaching and weaker if receding.
- T The temperature column of a glowing (black) body whose brightest color is at the observed
wavelength (Wien's law: \(T = \frac{2.898 \times 10^{6}\ \text{nm·K}}{\lambda}\)) hotter (blue-shifted),
cooler (red-shifted).
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:
- \(\bbox[LightCyan]{c^2 \Delta \tau^2 + v^2 \Delta t^2 = c^2 \Delta t^2}\)
- \(c^2 \Delta \tau^2 = \Delta t^2 (c^2 - v^2)\)
- \( \frac{\Delta t^2 }{\Delta \tau^2 } = \frac{c^2} {c^2 - v^2} = \frac{1}{1 - \frac{v^2}{c^2}} \)
- \(\bbox[LightCyan]{\frac{\Delta t }{\Delta \tau } = \frac{1}{\sqrt{1 - \frac{v^2}{c^2}}} \ or \
\gamma = \frac{1}{\sqrt{1 - \beta ^2}}}\) End of proof
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}}\).
- we'll need this equation from the time dilation 💡 derivation:
\(\bbox[LightCyan]{\frac{\Delta t}{\Delta \tau} = \gamma = \frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}}\)
(It applies here because the round trip starts and ends at the same place in the box, the bulb,
just like the flash in the 💡 animation.)
- in our frame: \(\Delta t_{total} = \frac{x(c+v) + x(c-v)}{c^2 - v^2} = \frac{2xc}{c^2 - v^2} = \frac{\frac{2x}{c}}{1 - \frac{v^2}{c^2}} =
\frac{2x \gamma^2 }{c} \)
- in the moving frame: \(\Delta \tau_{total} = \frac{2\chi}{c}\)
- Thus: \(\frac{\Delta t}{\Delta \tau} = \gamma = \frac{ \frac{2x \gamma^2 }{c}}{\frac{2\chi}{c}}
\Rightarrow \bbox[LightCyan]{x = \frac{\chi}{\gamma}}\)
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)}\).
- Eliminate \(\chi\): \(\frac{x}{\gamma} - v\tau = \gamma x - \gamma vt\)
- \(v\tau = \gamma vt - \gamma x + \frac{x}{\gamma}
\quad\Rightarrow\quad
\tau = \gamma t + \frac{x}{v}\!\left(\frac{1}{\gamma} - \gamma\right)\)
- \(\tau = \gamma t + \frac{x}{v}\!\left(\sqrt{1-\frac{v^2}{c^2}} - \frac{1}{\sqrt{1-\frac{v^2}{c^2}}}\right)\)
- \(\tau = \gamma t + \frac{x}{v}\!\left(\frac{-\frac{v^2}{c^2}}{\sqrt{1-\frac{v^2}{c^2}}}\right) =
\gamma t - \gamma \frac{v x}{c^2}\)
- \(\bbox[LightCyan]{\tau = \gamma\left(t - \frac{v x}{c^2}\right)}\) which is the time coordinate transformation
- Alternatively we could eliminate x to obtain: \(\bbox[LightCyan]{t = \gamma\left(\tau + \frac{v \chi}{c^2}\right)}\)
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
- Our blue clock is like the one shown in the 🕓 animation. You cannot change anything about it in this interactive figure.
- The red clock is identical to the blue clock when it does not move through space, which is when you set the speed slider to β = v/c = 0.
- When you change the speed of the red clock (β = v/c) its world lines (bulb - thick red, mirrors - thin purple, each 1 unit from the bulb in the red clock's own frame) tilt.
- Set the speed slider at β = 0.4. Look at point 6 in our blue stationary clock corresponding to the 4th flash.
Follow the horizontal NOW line to the red clock bulb's worldline. You see that it intersects it
at around 5.5. So, even though the two clocks read the same time at the origin, when our clock bulb flashes
the corresponding flash in the moving clock has not happened yet.
- The same should happen from the point of view of the moving clock. Indeed if you follow the
thin purple line from point 6 in the red worldline to the blue worldline you see that it intersects it at
around 5.5. So from the point of view of the moving ship when its bulb flashes the corresponding flash
in the stationary clock has not happened yet.
- You can do a similar exercise to see that in your reference frame of choice the mirror reflections of your clock
happen simultaneously, but, they are not simultaneous in the other clock.
- Lengths behave the same way. Set the speed slider at β = 0.6.
In the red clock's own frame each of its mirrors is 1 unit from its bulb (follow the green and light-blue light
paths: the light leaves the bulb and gets back at the red clock's mark 2, so it took 1 time unit to go out and 1 to
come back, which means the mirror is 1 unit away).
Now look at our x axis, which is our NOW line at time 0.
The red clock's mirror worldlines cross it at about 1.2 and 2.8 (as indicated by the thick red bar on the x axis).
Compared to our mirror worldlines, which cross the x axis at 1 and 3, the distance between their mirrors is 80% of ours.
- Notice the difference from the time exercise above. For time, we followed a NOW line until it met a clock's worldline.
For length, we do the reverse: we follow the worldlines of the two ends of an object until they meet a NOW line.
That is because measuring a length means marking both ends at the same NOW.
- The same should happen from the point of view of the moving clock. Their NOW line at time 0 is their space axis χ
(the lower of the two red axes). Let's swap roles: this time we follow our mirror
worldlines to their NOW line and see where they cross their χ axis. It is clear that our right mirror worldline intersects their χ axis at about
0.8 units of their scale. We cannot see the intersection of the left mirror worldline because it falls below the bottom of the diagram
(at a negative time, before the clocks started), but using simple geometry it is clearly at a symmetrical point or at about -0.8.
Thus, from the perspective of the moving clock, our lengths are only 80% of theirs.
- Play with the proper-time and proper-length sliders to move the hyperbolas.
Notice that for all moving clock speeds the proper-time hyperbola crosses our ct worldline and the moving
worldline at exactly the same time marking. The same happens with the proper-length hyperbola and the respective
length axes.
- This happens because the two clock worldlines have the same origin. In other words, the two clocks were together
and perfectly synchronized and at that moment they were set to time = 0.
- The moving clock then moves away. The black proper-time hyperbola connects all the places-and-times where a clock that left the
origin at any steady speed would show the same elapsed time. The brown proper-length hyperbola does the same
for distances: it connects all the points that are the same distance from the origin, as measured by observers moving at any steady speed.
- So, what the hyperbolas are telling us is that the people traveling with the moving clock do not feel that their clock is
running slower than ours. They feel the time passing exactly as we do.
OK, let's do the math.
- Time-dilation (see 💡 button): \(c^2\tau^2 + v^2t^2 = c^2t^2\)
- Set \(vt = x\) (the distance the clock traveled) and rearrange: \((ct)^2 - x^2 = (c\tau)^2\)
- The left side is called the spacetime interval. Observers moving differently disagree about the time
\(t\) and the distance \(x\) between two events, but they all get the same value for this combination.
It equals \((c\tau)^2\), where \(\tau\) is the time shown by the traveling clock itself.
- Set the right-hand side to a constant to get the proper-time hyperbola:
\(\bbox[LightCyan]{(ct)^2 - x^2 = \text{constant}}\)
- The proper-length hyperbola is similar but rotated toward the x-axis.
- The constant proper-length is a space-like interval where the signs are flipped relative to the proper-time hyperbola equation:
\(\bbox[LightCyan]{x^2 - (ct)^2 = \text{constant}}\)
Where the constant now represents the square of the proper length instead of proper time.