2 cars approach each other, with 20 km between them. The speed of each car is 10 kmph. At 20 km apart from each, a fly starts traveling from one car towards another at 15 kmph. Once it reaches the other car, it turns back and starts towards the first car. It continues to do this until the cars meet/collide. How much distance does the fly cover in total?
The answer is fairly simple for this one. However, this can be solved by summing the infinite geometric series as well, by considering relative motion of the fly w.r.t. one or the other car and generating a geometric series of distances which can then be summed.
I am trying to solve this question by assuming the relative motion of one car and the fly w.r.t. only car, instead of switching between the cars. But I am unable to solve it this way. I don't understand the issue with this approach.
Would really appreciate it if somebody could help me understand what I'm doing wrong.
Edit: details of my approach
At the moment the fly starts from train A, i assume the frame of reference of train B which is moving towards A and the fly.
Relative velocity of fly = 25 kmph Relative velocity of train A w.r.t. B = 20 kmph
When the frame of reference of train B was assumed (to calculate relative velocity for ease of calculation), the fly had just started from A and the distance between them was 20 km.
Hence the distance covered by fly in first trip until it reaches train B = 20 km
Time taken by fly to cover the above distance= 20/25 hr = 4/5 hr
Distance covered by train A during this time = (4/5)*20 = 16 km
Distance left between train B (and fly which is now at train B) and train A = 4 km
Assuming the frame of reference of train B again as the fly starts moving towards train A -
Relative speed of fly w.r.t. train B = 5 kmph (15-10)
Relative speed of train A w.r.t B = 20 kmph
The distance between fly and train A = 4 km
Both meet at a point which divides this 4 km in 1:4 ratio since the ratio of relative speed of fly w.r.t. B and relative speed of A w.r.t. B is 1:4 (5 kmph : 20 kmph). Hence, fly covers 4/5 km (4/(1+4))
And so on and so forth. However through this method, i am unable to get to the correct answer which is 15 km. The fly's first journey itself, from A to B, is 20 km (> 15 km) in my approach. I am just not able to understand what I'm overlooking.
Kindly help with your analysis of my mistaken approach and please let me know where am I exactly messing it up.
Hence the distance covered by fly in first trip until it reaches train B = 20 km" That can't work as B is moving toward the fly. If we fix B part of the distance travelled is the fly's distance toward $B$ but part of it is actually the universe shrinking as the universe rushes toward $B$ and $10$kmh. If the fly flew of $t$ time then of the distance $25t$ that the fly flew only $15t$ is the distance the fly flew. The other $10t$ is the distance that the universe shrank as it approached $B$.
– fleablood Dec 05 '22 at 21:42