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 [itex]x_1 = 0[/itex] and [itex]t_1 = 0[/itex] at one end and [itex]x_2 = 6[/itex] and [itex]t_2 = 0[/itex] 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 [itex]\gamma = 1 / \sqrt {1 - v^2 / c^2} = 1.25[/itex].
The Lorentz transformation equations are
[tex]x^\prime = \gamma (x - v t)[/tex]
[tex]t^\prime = \gamma (t - v x / c^2)[/tex]
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
[tex]x_1^\prime = \gamma (x_1 - v t_1) = 1.25 (0 - 0.6 \cdot 0) = 0[/tex]
[tex]t_1^\prime = \gamma (t_1 - v x_1) = 1.25 (0 - 0.6 \cdot 0) = 0[/tex]
[tex]x_2^\prime = \gamma (x_2 - v t_2) = 1.25 (6 - 0.6 \cdot 0) = 7.5[/tex]
[tex]t_2^\prime = \gamma (t_2 - v x_2) = 1.25 (0 - 0.6 \cdot 6) = -4.5[/tex]
We expect the distance between the two objects in frame B to equal [itex]x_2^\prime - x_1^\prime = 7.5 - 0 = 7.5[/itex]. But this can't be right, because it should be contracted to [itex]L_0 / \gamma = 6 / 1.25 = 4.8[/itex], according to the length contraction equation!
The problem is that [itex]t_1^\prime[/itex] and [itex]t_2^\prime[/itex] 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 [itex]x_2^\prime - x_1^\prime[/itex]. 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 [itex]x_2^\prime[/itex] when [itex]t_2^\prime = 0[/itex], not when [itex]t_2^\prime = -4.5[/itex]. This means we can't use [itex]t_2 = 0[/itex] in the Lorentz transformation, but must leave it unknown instead. Nevertheless,
we can still use [itex]x_2 = 6[/itex] 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 [itex]t_2^\prime = 0[/itex] and leaving [itex]t_2[/itex] unknown)
[tex]x_2^\prime = 1.25 (6 - 0.6 t_2)[/tex]
[tex]0 = 1.25 (t_2 - 0.6 \cdot 6)[/tex]
Solving these gives us [itex]x_2^\prime = 4.8[/itex] and [itex]t_2 = 3.6[/itex].
Now we can calculate the distance between the two objects in frame B as [itex]x_2^\prime - x_1^\prime = 4.8 - 0 = 4.8[/itex], 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 [itex]x_1^\prime = 0[/itex] and [itex]t_1^\prime = 0[/itex].
For object 2, we can follow similar reasoning as before,
up to the assumption that I put in boldface earlier. We cannot now use [itex]x_2 = 6[/itex] because the object is moving. Object 2 is at position [itex]x_2 = 6[/itex] only at time [itex]t_2 = 0[/itex], in frame A. But now [itex]t_2[/itex] is unknown, so [itex]x_2[/itex] is also unknown, and the Lorentz transformation equations for object 2 now look like this:
[tex]x_2^\prime = 1.25 (x_2 - 0.6 t_2)[/tex]
[tex]0 = 1.25 (t_2 - 0.6 x_2)[/tex]
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 [itex]x_2 = 6[/itex] at [itex]t_2 = 0[/itex], so we can easily write down an equation which tells where object 2 is at any time, in frame A (its
equation of motion):
[tex]x_2 = 6 + 0.8 t_2[/tex]
We now have three equations in three unknowns. We can easily solve them to get [itex]t_2 = 6.923[/itex], [itex]x_2 = 11.539[/itex], and [itex]x_2^\prime = 9.231[/itex].
Therefore the distance between the two objects (which are moving in frame A) is [itex]x_2^\prime - x_1^\prime = 9.231 - 0 = 9.231[/itex] 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!

)