

How to Solve Two Trains Travelling in Opposite Directions Problems
In this section, we will learn the concept of two trains heading in opposite directions. The concept behind it is relative speed. We can define relative speed as the speed of a moving body concerning another. The train on the left is going to the north, and the one on the right is going to the south. First, let's start with what happens when both trains are at rest. When both trains are at rest, they are stationary, and their speeds equal zero. Next, let's see what happens when two trains are moving at equal speeds in opposite directions.

Two Trains Coming From the Opposite Direction
What is Relative Speed?
We can define relative speed as the speed of a moving body with respect to another. When two bodies move in the same direction, their relative speed is computed by their difference. But when two bodies move in the opposite direction, the relative speed is calculated by adding the speed of both bodies.
Two Trains Move in Opposite Directions Along Parallel Tracks
Two Trains concept is a mathematical analogy that describes the motion of two trains running in opposite directions on parallel tracks; these trains will never collide. It also shows that if one train changes its direction, it collides with the other. The "Two Trains" concept is a popular analogy for parallel lines in mathematics. It features two trains travelling down parallel tracks in opposition to one another. The trains pass one another and proceed on their routes after they come together.
In this article, we shall study the idea of two trains passing one another:
When two train passes a moving object (having some length) in the opposite direction
Let the length of the faster train be l meters, and the length of the slower train be m meters
Let the speed of a faster train be x km/hr
Relative speed = (x + y) km/hr.
Then, the time is taken by the faster train to pass the slower train $= \dfrac{(l + m)meter}{(x + y) km/hr}$
Now we will learn to calculate when two trains run on parallel tracks (having some length) in the opposite direction.
Two trains, A and B, come from opposite directions; Train A crosses B in 2 minutes, and the length of train $A$ is double the length of train B. The speeds of train A and B are $50 \mathrm{~km} / \mathrm{hr}$ and $22 \mathrm{~km} / \mathrm{hr}$ respectively.
Ans:
Formula used:
Time taken by train $\mathrm{A}$ of length ' $a$ ' to cross train $\mathrm{B}$ of length ' $b$ ' running in opposite direction $=\dfrac{(a+ b)}{\left(v_1+v_2\right)}$ where $v_1$ and $v_2$ are the speeds of trains $A$ and $B$ respectively.
Distance $=$ speed $\times$ time
Let the length of Train A be '2l' $m$, and the Length of Train B be 'l' $m$.
$\Rightarrow \text { Relative speed }=(50+22) \mathrm{kmph}=72 \mathrm{kmph}=20 \mathrm{~m} / \mathrm{s}$
$\Rightarrow \text { Time }=2 \text { minutes }=120 \text { seconds. }$
$\Rightarrow(\mathrm{l}+2 \mathrm{l})=20 \times 120$
$\Rightarrow 3 \mathrm{l}=2400$
$\Rightarrow \mathrm{l}=800 \mathrm{~m}$
Thus, length of Train $\mathrm{A}=2 \mathrm{l}=1600 \mathrm{~m}$
Two Trains are Heading in Opposite Directions Related Solved Examples
Here are some examples related to two trains running in opposite directions, which are like this;
Q 1. Two trains running in opposite directions cross a man standing on the platform in 27 seconds and 17 seconds, respectively and they cross each other in 23 seconds. The ratio of their speed is?
Ans: According to the problem statement, the time of crossing of a man standing on the platform is 27 seconds and 17 seconds. Let the speed of one train be $x$, and the speed of another train be $y$ in meters per second
As speed is defined as the ratio of distance and time. So, distance is the product of speed and time. This can be mathematically expressed as:
$\text{speed}=\dfrac{\text { distance }}{\text { time }}$
$\text { distance }=\text { speed } \times \text { time }$
Therefore, distance travelled by first train $=27 x \mathrm{m}$.
Distance travelled by second train $=17 \mathrm{y} \mathrm{m}$.
Also, the time of crossing over by two trains is 23 seconds. Now, time can be related as
$\text { time }=\dfrac{\text { distance }}{\text { speed }}$
The total distance travelled $(27 x+17 y) m$.
The total speed is the relative speed, and since both trains move in opposite directions, their speed is added. So, the final speed for crossover $=x+y$
Therefore, the time is taken to cross over
$\dfrac{27 x+17 y}{x+y}=23$
$27 x+17 y=23 x+23 y$
$27 x-23 x=23 y-17 y$
$4 x=6 y$
$\dfrac{x}{y}=\dfrac{6}{4}=\dfrac{3}{2}$
Hence, the obtained ratio is $\dfrac{3}{2}$.
Q 2. With speeds of 34 km/hr and 38 km/hr, respectively, two 250 m and 150 m long trains travel on parallel lines in opposing directions. After what duration will they cross each other?
Solution- Relative speed of train = (34 + 38) km/hr
= 72 km/hr
$= 72 \times \dfrac{5}{18}$ m/sec
= 20 m/sec
Time required for two trains to cross each other = Sum of train lengths upon the relative speed of trains
$= \dfrac{(250+150)}{20}$
$= \dfrac{400}{20}$
= 20 Sec.
Consequently, the 20-second distance between the two trains was crossed.
Thus the trains cross each other at 20 sec.
Q 3. With speeds of 54 km/hr and 36 km/hr, two 162 m and 158 m long trains travel on parallel lines in opposing directions. After what duration will they cross each other?
Solution- Relative speed of train = (54 +36) km/hr
= 90 km/hr
$= 90 \times \dfrac{5}{18}$ m/sec
= 25 m/sec
Time required for two trains to cross each other = Sum of train lengths upon the relative speed of trains
$= \dfrac{(162+158)}{25}$
$= \dfrac{320}{20}$
= 16 Sec.
Consequently, the 16-second distance between the two trains was crossed.
Thus the trains cross each other at 16 sec.
Two Trains are Moving in Opposite Directions Related Practice Problems
Here are some practice problems related to two trains running in opposite directions, which are like this;
Q 1. With speeds of 56km/hr and 52 km/hr, respectively, two trains that are 136 m and 242m long travel on parallel lines in opposing directions. After what duration will they cross each other?
Ans. 12.6 sec.
Q 2. With speeds of 50km/hr and 40 km/hr, respectively, two trains that are 126 m and 158 m long travel on parallel lines in opposing directions. After what duration will they cross each other?
Ans. 11.36 sec.
Q 3. Two trains are moving at equal speeds in the opposite direction along two parallel railway tracks. If the wind is blowing with speed $u$ along the track so that the relative velocities of the trains for the wind are in the ratio $1: 2$, then the speed of each train must be?
Ans. 3u
Summary
This article mainly learned about two trains running in opposite directions, one of the important topics for Mathematics. This article discusses how two trains are moving with equal speeds in opposite directions and two trains, a and b coming from the opposite direction. Due to this reason, examples and practice problems related to two trains heading in opposite directions have been given in this article, but their concept has also been talked about. We wish this article will prove to be very useful from the point of view of examination and knowledge.
FAQs on Two Trains Travelling in Opposite Directions Explained
1. What is the formula to find the time taken for two trains to cross each other when travelling in opposite directions?
To find the time taken for two trains to completely cross each other while travelling in opposite directions, you use the formula: Time = Total Distance / Relative Speed. Here, the total distance is the sum of the lengths of both trains (L1 + L2), and the relative speed is the sum of their individual speeds (S1 + S2). The complete formula is: Time = (L1 + L2) / (S1 + S2).
2. What is meant by 'relative speed' when two trains are moving in opposite directions?
When two trains move in opposite directions, their relative speed is the speed at which they approach each other. This is calculated by adding their individual speeds. For example, if Train A moves at 60 km/h and Train B moves towards it at 40 km/h, their relative speed is 60 + 40 = 100 km/h. This means the distance between them is decreasing at a rate of 100 km every hour.
3. How is the calculation for relative speed different when trains move in the same direction?
The calculation is fundamentally different.
- Opposite Directions: The relative speed is the sum of their speeds (S1 + S2), as they are closing the distance between them faster.
- Same Direction: The relative speed is the difference between their speeds (S1 - S2, assuming S1 is the faster train), representing the speed at which the faster train overtakes the slower one.
4. Why is the total distance considered the sum of the lengths of both trains when they cross each other?
The crossing process is complete only when the rear of the first train passes the rear of the second train. Imagine the front of the first train meeting the front of the second. To complete the crossing, the first train must travel its own length (L1) and also cover the entire length of the second train (L2). Therefore, the total distance covered in the context of one train passing the other is the sum of their lengths (L1 + L2).
5. How should you handle a problem where train speeds are in km/hr but their lengths are in metres?
This is a common source of error. To ensure your calculation is correct, you must convert the units to be consistent. The standard practice is to convert the speed from kilometres per hour (km/hr) to metres per second (m/s). To do this, you multiply the speed in km/hr by the conversion factor 5/18. For example, a speed of 36 km/hr becomes 36 * (5/18) = 10 m/s. Always perform this conversion before applying the time-distance formula.
6. Can you explain with a simple example how to calculate the crossing time for two trains moving in opposite directions?
Certainly. Suppose Train A (120m long) travels at 20 m/s, and Train B (80m long) travels towards it at 30 m/s.
- Total Distance: Sum of lengths = 120m + 80m = 200m.
- Relative Speed: Sum of speeds = 20 m/s + 30 m/s = 50 m/s.
- Time to Cross: Total Distance / Relative Speed = 200m / 50 m/s = 4 seconds.
7. How does a problem change if a train is crossing a stationary object like a pole instead of another moving train?
The core concept changes in two ways:
- Distance: When crossing a stationary point object like a pole or a standing man, the distance the train needs to cover is just its own length. The width of the pole is considered negligible.
- Speed: Since the pole is stationary, its speed is zero. Therefore, the 'relative speed' is simply the speed of the train itself.











