0

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.

  • 4
    Welcome to Math.SE. It's hard for us to tell what you're doing wrong if we can't see what work you've done. If you edit your post to give the full details of your work, then we may be able to see what the problem is. – Ravi Fernando Dec 05 '22 at 19:26
  • 1
    Hi @RaviFernando thanks for your suggestion. I have edited my question to include my approach. – Shiro Kumo Dec 05 '22 at 20:27
  • Oh, it's not going to work. If you do it relative to $B$ then you can't say the fly starts $20$km away as the fly will fly less than $20$km is the first leg meaning they weren't actually $20$ apart to begin with. You can somehow put it that fly is actually only traveling to something flying toward him but... that's not really fixing B – fleablood Dec 05 '22 at 21:26
  • "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" 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
  • 1
    The time until the cars meet is $20/(10+10)=1$ hour, the distance traveled is therefore $15\cdot 1=15$ km. – Joshua Tilley Dec 05 '22 at 23:05
  • @fleablood that's interesting and makes sense at a high level for me. Thanks for sharing. Will ponder over this. – Shiro Kumo Dec 06 '22 at 04:42

2 Answers2

1

The trouble with frame of reference to a car is that when the fly leaves a car and the distance between them is $D$, the fly won't fly the entire distance $D$ because the other car will have moved toward the fly in that time. But if we fix the car then how do we take that into account if we think of $B$ as still?

If the car $B$ is still then the ground is moving under the fly at $10$kmh toward car $B$ so although the fly did fly $20$km in $t$ but the ground moved $10t$ so the distance of the fly over the ground is $20 -10t$.

So to begin with. The fly is flying at $25$kmh so it takes $\frac {20}{25}=\frac 45$hr for the fly to reach the train. And the fly flew $20$km but the ground moved $10\times \frac 45= 8$km so the fly only flew $20-8=12$ over the ground. Meanwhile train $A$ and $20$kmh has got $20\times \frac 45 = 16$km and the trains are now $20-16=4$ km apart.

We need to have the fly fly back. The fly flies away from $B$ at $5$kmh while train $A$ comes toward and $20$kmh. So the time it takes for the fly to meet the train is $\frac {4}{20+5}=\frac 4{25}$hr. In this time the fly flew $5\times 4{25}= \frac 45$ km but the ground moved $10\times \frac 4{25}=\frac 85$ so the fly *over ground flew $\frac {12}5$km. As that to the $12$ earlie and the fly has flowe $12 + \frac {12}5$ km.

Meanwhile in $\frac 4{25}$hr train $A$ and move $20\times \frac 4{25}=\frac {16}5$ and the trains are now $4 - \frac {16}5= \frac {4}5$km apart.

Compared to the original $20$ km this is $\frac {\frac {4}5}{20}= \frac {1}{25}$ the original distance. Each leg the distance is $\frac {1}{25}$ of the one before.

So the fly over ground will fly $(12+\frac {12}5)\sum (\frac {1}{25})^k = \frac{72}5 \times \frac 1{\frac {24}{25}} =\frac {72\times 25}{5\times 24}=15$km.

....

But I wouldn't do it with a fixed $B$.

.....

If we do it with the mid point and crash as the center.

We have the speed of fly plus speed of train B is $25$kmp. So first leg is $\frac {20}{25}=\frac 45$. So the fly fly $15\times \frac 45 = 12$.

Trains are now $20 - (10+10)\times 45= 4$km apart. Now by symmetry everything is as before but we have only to do $\frac 15$ the distance.

So the answer if $12 \times \sum \frac 1{5}^2 = 12\times \frac 1{\frac 45}=15$km.

Much simpler.

fleablood
  • 124,253
0

To sum the series, here is how I would approach it...

The speed of the fly is $15 \frac kh$ the speed of each car is $10 \frac kh$ at each leg the fly covers $\frac 35$ of the distance between it and the oncoming car before they meet.

In the meantime, the trailing car closes the distance between the two cars. Each leg is $\frac {1}{5}$ the previous leg.

$(20)(\frac 35)\sum_\limits{n=0}^\infty (\frac 15)^n\\ (20)(35)\left(\frac {1}{1-\frac 15}\right)\\ (20)(\frac 35)(\frac 54) = 15$

Now, if we put this in a moving frame of reference such that one car is stationary, the speed of the fly is $25 \frac kh$ and the trailing car is $20\frac kh$

The fly covers the distance of the first leg in $\frac 45$ hour. The second leg is $\frac 15$ the first leg.

Total time is $\frac 45 \sum (\frac 15)^n = (\frac 54)(\frac 54) = 1$ hour.

Transition back to the original frame of reference, the fly travels $15$ km.

user317176
  • 11,017
  • Hi, thanks a lot for answering the question. Appreciate it. I understand the solution. However, just wished to know what was i doing incorrectly. So in you solution, i have a query regarding the second approach (relative frame of motion) - the fly covers first leg in 4/5 hour. Wouldn't that mean that in the first leg it covered 20 km? (Since 20 km/25 kmph = 4/5 hour) This has been one of the major points I am not able to understand. Thanks again for the solution. – Shiro Kumo Dec 06 '22 at 04:37