Why is the door that is farther away from the train observed to close
first?

By observe, in SR, we don't mean *see*, we mean essentially to record the time and place of events according to rods and (synchronized) clocks at rest. For example,

- Assume that, at the front and back of the train, there are identical
clocks that are synchronized in the frame of the
*train*.
- Further assume that, at the ends of the tunnel, there are identical
clocks that are synchronized in the frame of the
*tunnel*.

By the relativity of simultaneity, the clocks on the train are *not* synchronized in the frame of the tunnel where it is observed that the clock at the front is *behind* the clock at the back.

Symmetrically, the clocks in the tunnel are *not* synchronized in the frame of the train where it is observed that the clock at the entrance of the tunnel is *behind* the clock at the exit.

- Finally, assume that the length contracted train in the frame of the
tunnel just fits within the tunnel.

Thus, there is a moment, *according to the tunnel clocks*, that the contracted train is completely within the tunnel.

But remember, in the frame of the tunnel, the train clocks are not synchronized. In particular, since the clock at the front of the train is observed to be *behind* the clock at the back, it must be the case that, as *recorded by the clocks on the train*, the door at the exit of the tunnel closes *earlier* than the door at the entrance.

That is, in the frame of the train, the front of the train just reaches the exit, the door there closes for an instant without hitting the train *and there is still a trailing portion of the train that is yet to enter the tunnel*.

When the back of the train just clears the entrance of the tunnel, the door at the entrance closes for an instant without hitting the train and there is a leading portion of the train that has exited the tunnel.

As always, I recommend that you draw a spacetime diagram of this sequence of events to get a better 'picture' of how this works.

## Best Answer

It is because of the relativity of simultaneity.

In the garage frame, the two doors are closed at the same time when the ladder is completely inside.

In the ladder frame, the front door is closed first, the front end crashes with the front door. The rear end keep moving into the garage and the rear door is closed after it enters.

So in both frames, the garage can "trap" the ladder.