The train's speed relative to the man is 3 times the man's running speed.
Let's denote the man's running speed as 'm' and the train's speed as 't'.
Since the man can cross the bridge in the same direction as the train, we can assume that the train's speed is faster than the man's running speed. Let 'x' be the distance the man has to cover to get to the other side of the bridge.
According to the problem, the man can barely make it across the bridge if he runs in the same direction as the train. This means that the time it takes the man to cover the distance 'x' is almost equal to the time it takes the train to cover the same distance.
In terms of speed and time, this can be expressed as:
x/m ≈ (x+x)/t
Simplifying the equation:
x/m ≈ 2x/t
Multiplying both sides by m:
x ≈ 2mx/t
Dividing both sides by x:
1 ≈ 2m/t
Solving for t:
t ≈ 2m
Since the man can also run backward towards the train and barely make it, this means that the relative speed of the train and the man is equal to the sum of their speeds.
Relative speed = m + t ≈ m + 2m = 3m
Therefore, the train's speed relative to the man is 3 times the man's running speed.