Lesson 8 of 15

Proper Time and the Twin Paradox

Proper Time

Every clock measures its own proper time τ\tau — the time elapsed along its own worldline. For a clock moving at constant velocity vv for coordinate time Δt\Delta t:

Δτ=Δtγ=Δt1v2c2\Delta\tau = \frac{\Delta t}{\gamma} = \Delta t\sqrt{1 - \frac{v^2}{c^2}}

Because γ1\gamma \geq 1, proper time is always less than or equal to coordinate time. Moving clocks run slow — time dilation.

The Twin Paradox

Alice stays on Earth; Bob travels at v=0.8cv = 0.8c for T/2T/2 then returns. Earth's coordinate time for the round trip is TT. Bob's proper time is:

τBob=Tγ\tau_\text{Bob} = \frac{T}{\gamma}

For v=0.8cv = 0.8c, γ=5/31.667\gamma = 5/3 \approx 1.667, so Bob ages only 0.6T0.6 T — he returns younger than Alice.

There is no paradox: Bob's worldline is not straight (he decelerates and turns around), so the situation is not symmetric. Alice follows the straight worldline between the two events — which is the worldline of maximum proper time (the spacetime geodesic).

v/cv/cγ\gammaBob ages (T=20 yr)
0.61.2516 yr
0.81.66712 yr
0.99≈7.09≈2.82 yr

Your Task

Implement proper_time(t, v) returning the proper time for coordinate time tt at constant speed vv, and twin_age_difference(T, v) returning how much less the traveling twin ages compared to the stay-at-home twin. Use c=299792458.0c = 299792458.0 m/s defined inside each function.

Python runtime loading...
Loading...
Click "Run" to execute your code.