In the frame K in which the particles are at rest, their positions are A and B whose coordinates may be taken as,
A:(0,0,0),B=(l0,0,0)
In
the frame K′ with respect to which K is moving with a
velocity v the coordinates of A and B at time t′
in the moving frame are
A=(vt′,0,0)B=(l0√1−β2+vt′,0,0),β=vc
Suppose
B hits a stationary target in K′ after time
t′B while A hits it after time tB+Δt. Then,
l0√1−β2+vt′B=v(t′B+Δt)
So, l0=vΔt√1−v2c2