given acceleration of the train is constant a
now, let mass of each locomative be m, mass of coach be M and there
be n locomotives
then
tension in the first coupler from the engine = T1
T1 = n*m*a
tension in second coupler = T2
T2 = (n-1)*m*a
hence for last coupler
an = m*a
hence
we can see the value of tension decreases as we move from the first
locomotive to the last car
when brakes are applied, the decelertion is -a
hence
the compression in the couplers in this case decreases as wee move
from the first locomotive to the last one
Trains are connected by couplers, which are under tension as the locomotive pulls the train. Imagine...