+v                   -v 
       ------->              <-------
       A'     F'             F      A
When they meet the situation is the situation is the following:
                  -v  
              F<------A*       *=explosion
             A'------>F'            
                  +v
However IMO the first assertion is much more challenging: How do we proof that length contraction takes place, how do we demonstrate that the speed of both trains is equal,   and how to prove that the length of both trains are equal.
  
IMO, In order to discover how nature works you have to perform all experiments in one frame. That is the easiest way to measure in an uniform way and to discover the rules that link all those measurements together. In a second pass you can review those same experiments in a different frame.
   
                          v=0          +2v
                    G<----------B   B'---->G'                        
                    ........................ track of A'F'
   A<--------->F           A'------->F'
      L0  v=0                  +v
............................................. track of AF
The above picture shows four trains. All are discussed in the same frame
   
                         v=w          v=w'
                    G<----------B   B'---->G'                        
                    ......................... track of A'F' 
   A<----------F           A'<------>F'
      L0  v=v                   v=0
............................................. track of AF
The above picture again shows four trains. The rest frame is the train A'F'
There is also a program (demonstration) of this thought experiment.
To get a copy select: SR.BAS
To see the listing of the program select: SR.HTM
 
                     /           /  x t3        \
                    /           /    \.          \ 
                   /           /      \ .         \ 
                  /           /        \  .        \ 
              t3 x           /          \   .       \            
                /  .        /            \    .      \ 
               /     .     /              \     .     \    
              /        .  /                \      .    \ 
             /           x t2            t1 x       .   \ 
            /          ./                    \.       .  \
           /         . /                      \ .       . \ 
          /        .  /                        \  .       .\
      t1 x       .   /                          \   .       x t2
        /  .   .    /                            \    .   .  \
       /     .     /                              \     .     \
      A'    t0    F'                               F    t0     A 
         ------>                                     <-------                            
The above sketch shows two trains:
The sketch for the train A'F' consists of two parts:
In order to synchronise the two clocks in the train AF the same method is used. The position of the flash is in the middle of AF.
The explosion is at t2. At that moment, the position of the front F' of the train A'F' and the back A of the train FA, is the same.
The explosition reaches the back A' of A'F' at t3
  
The explosition reaches the front F of FA at t3
What the sketch shows is t3(A') in the reference frame of the train A'F' = t3(F) in the reference frame of train FA.  
For a mathematical discussion select MATH.HTM
 
                    <--               --->          
                   B    G           B'  G' 
               t6  |    |           /   /
                   |    |        /   /
             t5    |    |     /   / 
                  |     |  /      /
                 |      X       /
                 |    / |    / 
              t4 | /    | /             
                /      / 
               /      x         
           t3 /     ./ 
             /    . /           
            x   .  /                
           /  .   /                   
       t2 /      /   
         /        /
        /          /
       /           /
    t1|           |
      x           x 
      | .       . |
      |   .   .   |
      |     .     |
      A'    t0    F'                                                      
         -----> 
           v
IMO something is wrong with this sketch.
When you observe the train B'G' its speed in the track frame is 2*v and its length is the smallest. That is correct
When you observe the train BG its speed in the track frame is zero.
The length of BG should be the same as A'F' before it started to move
Around t5 the length of B'G' should not decrease (as shown) but the length of BG should increase. However this is inconflict with SR.
For a mathematical discussion select MATH.HTM
Back to my home page Contents of This Document