Following up on posting #114... I wrote all of this offline and pasted it into the reply window. I haven't found any problems with the LaTex equations or other typos yet, but don't take that as a guarantee!
Here's a worked-out example that uses the Lorentz transformation equations to calculate the distance between two objects in frame B, (a) when the objects are at rest in frame A, and (b) when the objects are moving in frame A. It shows that the well-known length contraction formula gives the correct result for (a) but not for (b).
The setup: in frame A we have two objects, 1 and 2. Alternatively, they could be the two ends of a single object. Assume that in frame A at time 0 they have coordinates x_1 = 0 and t_1 = 0 at one end and x_2 = 6 and t_2 = 0 at the other end. Imagine little flashbulbs going off on both objects at time 0, if you like.
Frame B is moving to the right at 0.6c with respect to frame A, so \gamma = 1 / \sqrt {1 - v^2 / c^2} = 1.25.
The Lorentz transformation equations are
x^\prime = \gamma (x - v t)
t^\prime = \gamma (t - v x / c^2)
We'll use units of light-years for distance and years for time, so c = 1 and we can omit c from our equations to simplify them.
Case (a): The objects are stationary in frame A
We use the Lorentz transformation to find the coordinates of the two objects in frame B. First let's try
x_1^\prime = \gamma (x_1 - v t_1) = 1.25 (0 - 0.6 \cdot 0) = 0
t_1^\prime = \gamma (t_1 - v x_1) = 1.25 (0 - 0.6 \cdot 0) = 0
x_2^\prime = \gamma (x_2 - v t_2) = 1.25 (6 - 0.6 \cdot 0) = 7.5
t_2^\prime = \gamma (t_2 - v x_2) = 1.25 (0 - 0.6 \cdot 6) = -4.5
We expect the distance between the two objects in frame B to equal x_2^\prime - x_1^\prime = 7.5 - 0 = 7.5. But this can't be right, because it should be contracted to L_0 / \gamma = 6 / 1.25 = 4.8, according to the length contraction equation!
The problem is that t_1^\prime and t_2^\prime are different. In frame B, the two objects are moving, so we have to measure their positions
at the same time in order to calculate the distance between them using x_2^\prime - x_1^\prime. Because of the relativity of simultaneity, two events at different locations that are simultaneous in frame A are not simultaneous in frame B, and vice versa.
We need to find x_2^\prime when t_2^\prime = 0, not when t_2^\prime = -4.5. This means we can't use t_2 = 0 in the Lorentz transformation, but must leave it unknown instead. Nevertheless,
we can still use x_2 = 6 because object 2 is stationary in frame A, that is, it's always at that position no matter what time it is. (I've put this in boldface because it's a crucial assumption that we're going to return to later.)
So our two Lorentz transformation equations for object 2 now become (substuting t_2^\prime = 0 and leaving t_2 unknown)
x_2^\prime = 1.25 (6 - 0.6 t_2)
0 = 1.25 (t_2 - 0.6 \cdot 6)
Solving these gives us x_2^\prime = 4.8 and t_2 = 3.6.
Now we can calculate the distance between the two objects in frame B as x_2^\prime - x_1^\prime = 4.8 - 0 = 4.8, which agrees with the result from the length contraction equation.
Case (b): The objects are moving in frame A
Now, let's suppose the two objects are both moving to the right in frame A, at speed 0.8c. At time 0 they have the same coordinates that we assumed before. The only difference is that now, they're moving.
For object 1, we can use the Lorentz transformation just like before, to get x_1^\prime = 0 and t_1^\prime = 0.
For object 2, we can follow similar reasoning as before,
up to the assumption that I put in boldface earlier. We cannot now use x_2 = 6 because the object is moving. Object 2 is at position x_2 = 6 only at time t_2 = 0, in frame A. But now t_2 is unknown, so x_2 is also unknown, and the Lorentz transformation equations for object 2 now look like this:
x_2^\prime = 1.25 (x_2 - 0.6 t_2)
0 = 1.25 (t_2 - 0.6 x_2)
We have two equations for three unknowns, which are impossible to solve, as is. We need another equation! Fortunately, object 2 moves at constant velocity 0.8 ly/yr in frame A, starting from x_2 = 6 at t_2 = 0, so we can easily write down an equation which tells where object 2 is at any time, in frame A (its
equation of motion):
x_2 = 6 + 0.8 t_2
We now have three equations in three unknowns. We can easily solve them to get t_2 = 6.923, x_2 = 11.539, and x_2^\prime = 9.231.
Therefore the distance between the two objects (which are moving in frame A) is x_2^\prime - x_1^\prime = 9.231 - 0 = 9.231 ly in frame B, whereas we got 4.8 ly in case (a).
Appendix
There's a way we can verify our answer for case (b) without using the Lorentz transformation equations. I'll describe the steps and show the results here, and leave it as an exercise for the reader to perform the calculations.
Step 1: The distance between the moving objects in frame A is already length-contracted, so use the length-contraction equation "backwards" to find the proper distance between them. That is, find the distance between the objects in the reference frame in which they are at rest. I'll call this frame R. The proper distance turns out to be 10 ly.
Step 2: Use the relativistic "velocity addition" equation to find the velocity of frame B relative to frame R, given that the velocity of frame R relative to frame A is 0.8 ly/yr and the velocity of frame B relative to frame A is 0.6 ly/yr. This velocity turns out to be 0.3846 ly/yr.
Step 3: Use the length contraction equation with the velocity found in step 2, to find the distance between the objects in frame B. This turns out to be 9.231 ly. (Surprise!

)