I'm struggling to find the solution this problem:
A boy at the stern of a canal barge leaps off onto the tow path and while the barge keeps moving, runs along the path until he gets to the bow, where he instantly picks up a thermos flask of coffee and runs back until he gets to the stern. An observer noticed that while the boy was running, the barge moved forward a distance equal to its length. How far does the boy run compared to the length of the barge?
My initial thought was that the boy traveled two barge lengths (there & back) end of story. But that seems incorrect because it implies he would be traveling at twice the speed of the barge. If he were traveling at only twice the speed, he would only reach the bow of the boat by the time the boat travels a distance equal to its length.
Any help?
Very nice question! A diagram is usually helpful with this sort of thing, so...
The red line represents the stern of the barge; the pink line the bow; and the green line is the boy.
Let's say the barge, whose length is $L$, moves at $v_{\text{barge}}$ and the boy at $v_{\text{boy}}$. Also say he reaches the bow (point $P$) after a time $\tau$ and returns to the stern (point $Q$) at time $T$.
When the boy reaches the bow, the barge has travelled a distance $v_{\text{barge}} \tau$; so $$v_{\text{boy}}\tau=v_{\text{barge}} \tau + L \tag{1}$$
By time $T$, the barge has travelled its length; so $$L=v_{\text{barge}}T \tag{2}$$
After getting to the bow, the boy runs in the opposite direction; so we also have $$L=v_{\text{boy}}\tau-v_{\text{boy}}(T-\tau) \tag{3}$$
We want to know the total distance the boy ran, $d = v_\text{boy} T$, in terms of $L$.
After a bit of manipulation, we find $$L= \frac{2dL} {d-L} - d$$
which we can solve to find the distance ran