HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Lorentz Transformations and Spacetime
  1. 1The Lorentz transformation
  2. 2Spacetime diagrams, the interval and the twin paradox
  3. 3Adding velocities and the relativistic Doppler effect
  1. Physics
  2. /Lorentz Transformations and Spacetime
  3. /The Lorentz transformation

Course 29.2·Lesson 1 of 3

The Lorentz transformation

The Lorentz transformation changes an event (x,t)(x, t)(x,t) in a frame S into (x′,t′)(x', t')(x′,t′)

Lesson 1 of 3Show all lessonsHide
Lorentz Transformations and Spacetime
  1. 1The Lorentz transformation
  2. 2Spacetime diagrams, the interval and the twin paradox
  3. 3Adding velocities and the relativistic Doppler effect

Try the code and the simulations beside the lesson.

One rule for every event

In the last course we found three effects: moving clocks run slow, moving rods are short, and simultaneity depends on the frame. Each came from a special set-up, a light clock or a lamp in a carriage. Can one rule give them all? It can. It replaces Galileo's rule.

Let a frame S' move at the speed vvv along the xxx axis of a frame S. Let their origins meet at t=t′=0t = t' = 0t=t′=0. An event at (x,t)(x, t)(x,t) in S is at (x′,t′)(x', t')(x′,t′) in S', with

x′=γ (x−vt)\displaystyle x' = \gamma\,(x - vt)x′=γ(x−vt)
t′=γ(t−vxc2)\displaystyle t' = \gamma\left(t - \dfrac{vx}{c^2}\right)t′=γ(t−c2vx​)

and y′=yy' = yy′=y, z′=zz' = zz′=z. This is the Lorentz transformation, and γ=1/1−v2/c2\gamma = 1/\sqrt{1 - v^2/c^2}γ=1/1−v2/c2​ as before.

Where it comes from, in outline

We need a rule that is linear, so that steady motion stays steady. It must become Galileo's rule when vvv is small. And a light pulse from the origin, x=ctx = ctx=ct in S, must also be x′=ct′x' = ct'x′=ct′ in S', by the second postulate. Try x′=γ(x−vt)x' = \gamma(x - vt)x′=γ(x−vt) and, by the first postulate, the same form back again, x=γ(x′+vt′)x = \gamma(x' + vt')x=γ(x′+vt′). Put x=ctx = ctx=ct and x′=ct′x' = ct'x′=ct′ into both. Then ct′=γ(c−v)tct' = \gamma(c - v)tct′=γ(c−v)t and ct=γ(c+v)t′ct = \gamma(c + v)t'ct=γ(c+v)t′. Multiply the two:

c2=γ2(c2−v2)\displaystyle c^2 = \gamma^2(c^2 - v^2)c2=γ2(c2−v2)

So γ=1/1−v2/c2\gamma = 1/\sqrt{1 - v^2/c^2}γ=1/1−v2/c2​. Solving for t′t't′ then gives the second line of the transformation.

A neater form with ctctct

Physicists often measure time in metres: ctctct is the distance light goes in the time ttt. With β=v/c\beta = v/cβ=v/c the transformation looks the same for both coordinates:

x′=γ (x−β ct)\displaystyle x' = \gamma\,(x - \beta\,ct)x′=γ(x−βct)
ct′=γ (ct−βx)\displaystyle ct' = \gamma\,(ct - \beta x)ct′=γ(ct−βx)

To go back from S' to S, change the sign of vvv:

x=γ (x′+β ct′)\displaystyle x = \gamma\,(x' + \beta\,ct')x=γ(x′+βct′)
ct=γ (ct′+βx′)\displaystyle ct = \gamma\,(ct' + \beta x')ct=γ(ct′+βx′)

The transformation also works for differences between two events: Δx′=γ(Δx−vΔt)\Delta x' = \gamma(\Delta x - v\Delta t)Δx′=γ(Δx−vΔt) and Δt′=γ(Δt−vΔx/c2)\Delta t' = \gamma(\Delta t - v\Delta x/c^2)Δt′=γ(Δt−vΔx/c2).

Worked example: one event in two frames

In S, an event happens at x=1500 mx = 1500\ \text{m}x=1500 m and t=4.0 μst = 4.0\ \mu\text{s}t=4.0 μs. The frame S' moves at 0.6c0.6c0.6c. Find x′x'x′ and t′t't′.

  1. Time in metres. ct=3.00×108 m/s×4.0×10−6 s=1200 mct = 3.00 \times 10^8\ \text{m/s} \times 4.0 \times 10^{-6}\ \text{s} = 1200\ \text{m}ct=3.00×108 m/s×4.0×10−6 s=1200 m.
  2. The factor. At 0.6c0.6c0.6c, γ=1.25\gamma = 1.25γ=1.25.
  3. The position. x′=1.25×(1500 m−0.6×1200 m)x' = 1.25 \times (1500\ \text{m} - 0.6 \times 1200\ \text{m})x′=1.25×(1500 m−0.6×1200 m), so x′=975 mx' = 975\ \text{m}x′=975 m.
  4. The time. ct′=1.25×(1200 m−0.6×1500 m)=375 mct' = 1.25 \times (1200\ \text{m} - 0.6 \times 1500\ \text{m}) = 375\ \text{m}ct′=1.25×(1200 m−0.6×1500 m)=375 m, so t′=1.25 μst' = 1.25\ \mu\text{s}t′=1.25 μs.

Check. Go back with the inverse: x=1.25×(975 m+0.6×375 m)=1500 mx = 1.25 \times (975\ \text{m} + 0.6 \times 375\ \text{m}) = 1500\ \text{m}x=1.25×(975 m+0.6×375 m)=1500 m. It fits.

A spacetime diagram with x in metres across, from 0 to 2000, and c t in metres up, from 0 to 2000. A dashed orange line at 45 degrees through the origin is the path of a light pulse. Two blue lines through the origin are the axes of a frame moving at 0.6 c: the c t prime axis leans to the right of the vertical axis, and the x prime axis rises above the horizontal axis, each by the same angle of 31 degrees, so both lean towards the light line. A red point E sits at x equal to 1500 metres and c t equal to 1200 metres. Thin dashed red lines from E run parallel to the two blue axes and meet them, to show how the coordinates x prime and c t prime are read.

The three effects again

  • Time dilation. A clock at rest at x′=0x' = 0x′=0 ticks twice, Δt′\Delta t'Δt′ apart. Use the inverse form with Δx′=0\Delta x' = 0Δx′=0: Δt=γ Δt′\Delta t = \gamma\,\Delta t'Δt=γΔt′.
  • Length contraction. A rod at rest in S' has Δx′=L0\Delta x' = L_0Δx′=L0​. In S we mark its ends at the same time, Δt=0\Delta t = 0Δt=0. Then L0=γ ΔxL_0 = \gamma\,\Delta xL0​=γΔx, so Δx=L0/γ\Delta x = L_0/\gammaΔx=L0​/γ.
  • Simultaneity. Two events at the same time in S, Δt=0\Delta t = 0Δt=0, are Δt′=−γv Δx/c2\Delta t' = -\gamma v\,\Delta x/c^2Δt′=−γvΔx/c2 apart in S'. The event further along +x+x+x happens first in S'.

At low speeds γ≈1\gamma \approx 1γ≈1 and vx/c2vx/c^2vx/c2 is tiny, so the transformation becomes Galileo's rule. Newton's mechanics is the slow-speed edge of relativity.

Put the event on the blue ct′ct'ct′ axis. Then x′=0x' = 0x′=0: the event happens at the origin of S'. Now put it on the blue x′x'x′ axis. Which readout becomes zero?

Practise with new numbers

Try it in Python

The program changes three events from S to S' and back again, and checks that it gets the events it started with.

Predict first. The third event is a light flash at x=ctx = ctx=ct. Will it also have x′=ct′x' = ct'x′=ct′? Then run it. Check with Show the answer.

1. Change beta = 0.6 to beta = -0.6. What changes, and what stays the same?

2. Add an event of your own and check that the program gets it back.

Common mistakes

  • Forgetting the vx/c2vx/c^2vx/c2 term. It is the term that makes simultaneity depend on the frame.
  • Using the wrong sign for the inverse. Going back from S' to S, vvv becomes −v-v−v.
  • Mixing ttt and ctctct. Write both coordinates in the same unit, or keep ccc in every term.
  • Using it for frames that do not share an origin. The formulas assume the origins meet at t=t′=0t = t' = 0t=t′=0. Otherwise use differences between events.
  • Changing yyy and zzz. Only xxx and ttt change for motion along xxx.

Remember these

  • x′=γ(x−vt)x' = \gamma(x - vt)x′=γ(x−vt) and t′=γ(t−vx/c2)t' = \gamma(t - vx/c^2)t′=γ(t−vx/c2), with y′=yy' = yy′=y and z′=zz' = zz′=z.
  • In ctctct: x′=γ(x−βct)x' = \gamma(x - \beta ct)x′=γ(x−βct) and ct′=γ(ct−βx)ct' = \gamma(ct - \beta x)ct′=γ(ct−βx).
  • The inverse has +v+v+v in place of −v-v−v.
  • The same rules hold for Δx\Delta xΔx and Δt\Delta tΔt between two events.
  • Time dilation, length contraction and simultaneity are all inside it.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. An event has x=0x = 0x=0 and t=2.0 μst = 2.0\ \mu\text{s}t=2.0 μs in S. What is t′t't′ in a frame moving at 0.8c0.8c0.8c?
  1. Two events happen at the same place and the same time in S. Are they at the same place and time in every frame?
  1. What does the Lorentz transformation become when vvv is much less than ccc?
  1. Why must a light pulse with x=ctx = ctx=ct in S also have x′=ct′x' = ct'x′=ct′ in S'?

References

  • OpenStax University Physics Volume 3, Chapter 5 Relativity, section on the Lorentz transformation.
  • Taylor and Wheeler, Spacetime Physics (second edition, 1992), on the Lorentz transformation.

Enroll free in Lorentz Transformations and Spacetime

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

Lightning strikes a railway track twice…Hard · High School (11–12) · by StemPy Lab
Pair 1 of events, in a frame S: Δ x = 600 m and Δ t = 1.00 µs…Advanced · High School (11–12) · by StemPy Lab
A frame S' moves at 0.8c along +x past a frame S, and the origins met at t = t' = 0…Hard · High School (11–12) · by StemPy Lab
Next: lesson 2Spacetime diagrams, the interval and the twin paradox
← Lorentz Transformations and Spacetime
← PreviousSpacetime diagrams, the interval and the twin paradox →

Discussion (0)

Log in to join the discussion.

Loading…

in a frame S' moving at
vvv
:
x′=γ(x−vt)x' = \gamma(x - vt)x′=γ(x−vt)
and
t′=γ(t−vx/c2)t' = \gamma(t - vx/c^2)t′=γ(t−vx/c2)
. Time dilation, length contraction and the relativity of simultaneity all follow from it.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

The Lorentz transformation in codePython Lab · by StemPy Lab