DEV Community

Cover image for An unhinged carriage problem
Paul Cochrane πŸ‡ͺπŸ‡Ί
Paul Cochrane πŸ‡ͺπŸ‡Ί

Posted on • Originally published at peateasea.de on

An unhinged carriage problem

As part of tutoring high school students in maths and physics, I sometimes run across problems that I find interesting. Here’s a deep dive into one involving an unhinged railway carriage which, at first glance, seems to lack sufficient information.

I find it interesting that some solutions become almost embarrassingly obvious given the right perspective. I also like that there’s usually more than one way to solve a problem. This is one of those situations. Here’s the problem:

A train is moving straight and horizontally at a constant speed. The last carriage is uncoupled from the train and slows with a constant deceleration. The train continues to move at its previous speed. The carriage moves straight and horizontally, eventually coming to a stop after 200 m. Determine the distance the train travelled from the time the carriage was uncoupled to the moment the carriage stopped.

Write the answer in metres (m)

When I first saw this, my instinct was that there wasn’t enough information. The solution requires a very specific answer in metres, yet we’ve not been told the carriage’s deceleration, nor the train’s speed. That struck me as odd.

It turns out that it is possible to calculate a definite value for how far the train travelled before the carriage stopped; it just wasn’t obvious to me from the get-go. This leads to one piece of advice:

Have a go at solving the problem, even if you’re unsure.

There’s another piece of advice that I usually dish out to my students:

Try solving the problem in more than one way. If you get the same answer by a different path, then the answer is more likely to be correct. You might also learn something along the way.

But I’m getting ahead of myself.

Let’s have a go at solving the problem. We’ll first use a geometric argument by drawing the speed versus time graphs for the train and the unhinged carriage. Later, we’ll look at other paths to a solution.

Visualising speed versus time

I’m a big fan of drawing pictures and diagrams to get a feel for a given situation. Interestingly enough, my gut feeling this time wasn’t to draw a train moving along a track (which would have been my usual approach) but to draw graphs of speed versus time.

The question mentions constant speed a couple of times, as well as the uncoupled carriage’s constant deceleration. Thus, my physics-addled mind’s eye straight away saw lines on a speed versus time graph, and I started doodling these on a piece of paper. What follows is a more neatly-drawn1 version interspersed with explanations.

First, we need some axes and to label them:

Graph axes with grid showing only speed and time axes labels

The carriage’s initial speed is the same as the train’s speed when it is uncoupled. Let’s call this vtv_t and mention it on the graph, so that we can refer to it again later.

Graph axes with grid showing label for train speed

Since we’re only interested in elapsed time, the time that the carriage is uncoupled from the train happens at zero seconds. The time that the carriage stops, we’ll call t1t_1 . We now label the graph with this information:

Graph axes with grid showing labels for start and end times

We know that the carriage slows with constant deceleration and that deceleration is simply negative acceleration, hence we’ll denote it by βˆ’a-a . Deceleration is a line of negative slope (βˆ’a)(-a) in the speed versus time graph and connects the time-speed coordinate (0,vt)(0, v_t) with (t1,0)(t_1, 0) . Adding this to the graph, we have:

Graph axes with grid showing uncoupled carriage speed over time

We also know that the area under a speed versus time graph is the distance travelled. Therefore, we shade this area to highlight it and make a note on the graph that this is equal to 200Β m200\ \mathrm{m} .

Graph axes with grid showing distance covered by carriage with shaded area under curve

That’s cool. We’ve described, in a graphical form, the uncoupled carriage’s behaviour from when it separated from the train up until it stopped moving.

So what happened to the train over this time? Well, we know that it kept going at the same speed. And we know that constant speed on a speed versus time graph is also a straight line, but with zero slope. In other words, it’s a horizontal line from the time-speed coordinate (0,vt)(0, v_t) to (t1,vt)(t_1, v_t) . Let’s add that to our graph:

Graph axes with grid showing train speed curve

As with the carriage, the area under its curve is how far the train travelled in this time. We can shade in this area as well:

Graph axes with grid showing distance travelled by train as shaded area below train speed curve

It’s clear from the graph that the area under the line representing the train’s speed versus time behaviour is enclosed by a rectangle. It’s also clear that the area under the carriage’s curve is enclosed by a triangle, and that the triangle’s hypotenuse bisects the rectangle. In such a case, the triangle’s area is half the rectangle’s area. Since we know that the triangle’s area is equal to 200Β m200\ \mathrm{m} , we can say that the rectangle’s area must be equal to double that, i.e. 400Β m400\ \mathrm{m} . Thus, the train travelled 400Β m400\ \mathrm{m} in the time it took the uncoupled carriage to come to a halt.

There we have it! That’s the answer!

Now we can see that it wasn’t important how fast the carriage decelerated, nor was it important how fast the train was travelling. Thus, my initial feeling about missing information was unfounded. Hence, we see why it was a good idea to attempt to solve the problem to see if we could get anywhere. Also, the answer sort of β€œpops out” at us as soon as we draw the speed versus time graphs: we only needed a bit of geometry and to know the physical meaning of the area under the curve to find the answer. It’s almost blindingly obvious in the end.

We now put our fingers in our ears and go β€œla! la! la!” loudly, to try and ignore the fact that we know the answer. Then, we’ll solve the problem algebraically without using any pictures or graphs.

Why do this β€œthe hard way”? Why not? Come on, let’s dig in and see what happens!

An algebraic approach

As with the graphical approach above, we collect what we know from the problem description and see if we can make some headway by combining things logically.

We know that the train travels at a constant speed the entire time, so let’s call that vtv_t . We’re told that the last carriage is unhinged (i.e. uncoupled) from the train at some time; thereafter, it decelerates at a constant rate. Since deceleration is negative acceleration, let’s call this quantity βˆ’a-a . The carriage starts with the same speed as the train, finally coming to a stop at some later time. Let’s set the initial time to zero and call the time the carriage stops t1t_1 . With this information, we can write an equation to describe the carriage’s speed between these two times. Let’s call the carriage’s speed vcv_c , which we can write as:

vc=vtβˆ’at, \begin{equation} v_c = v_t - a t, \end{equation}

where tt is the elapsed time.

Note that this equation has the same form as the equation for a straight line in the plane:

y=mx+c, y = m x + c,

where y=vcy = v_c , m=βˆ’am = -a , x=tx = t and c=vtc = v_t .

We can see that (1) behaves the way we want by considering the start and end points.

At the uncoupling event, t=0t = 0 , hence when we substitute this into (1), we find that the speed of the carriage when it gets unhinged is:

vc(0)=vtβˆ’aβ‹…0=vt, v_c(0) = v_t - a \cdot 0 = v_t,

which is the yy intercept. That makes sense, because we know that the carriage’s initial speed is the same as the train’s speed. Cool, that means we’re probably on the right track.

The βˆ’at-a t term in (1) linearly decreases the value of vcv_c , tracing out a line which then intersects the xx -axis at t1t_1 . In other words, the speed is equal to zero at t1t_1 . This is the behaviour we want at the other end of the time interval. Good, we’re still on the right track.

We know that the carriage stops at t1t_1 , thus we have the relationship:

vc(t1)=vtβˆ’at1=0. v_c(t_1) = v_t - a t_1 = 0.

That might not look that useful, but we can rearrange it to give an expression for the time when the carriage stops, and that could come in handy later:

vtβˆ’at1=0, \begin{equation} v_t - a t_1 = 0, \end{equation}
β‡’at1=vt, \begin{equation} \Rightarrow a t_1 = v_t, \end{equation}
β‡’t1=vta. \begin{equation} \Rightarrow t_1 = \frac{v_t}{a}. \end{equation}

What else do we know? Well, we know that the train travels at constant speed between t=0t = 0 and t=t1t = t_1 . That means we know how far the train went in that time: this is its speed multiplied by the elapsed time. In other words, the distance the train travelled (which we’ll call dtd_t ) is:

dt=vtt1. d_t = v_t t_1.

Since we have an expression for t1t_1 (Equation (4)), we can rewrite the expression for dtd_t to see if it might be useful:

dt=vtt1, \begin{equation} d_t = v_t t_1, \end{equation}
=vtvta, \begin{equation} = v_t \frac{v_t}{a}, \end{equation}
β‡’dt=vt2a. \begin{equation} \Rightarrow d_t = \frac{v_t^2}{a}. \end{equation}

Hrm, that doesn’t look like it’s going to be of much help. Oh well. Let’s add it to the growing pile of things that we know anyway and see what else we know and/or can deduce.

What about the distance the last carriage travels? We know that its value is 200Β m200\ \mathrm{m} . Can we write an expression for it in terms of the other things we know? Yes, we can! We know that the carriage’s speed is described by:

vc=vtβˆ’at. v_c = v_t - a t.

We also know that distance is the integral of the speed between two points in time.2 Thus, to find the distance travelled by the carriage, we integrate Equation (1) with respect to time between the start and end points, t=0t = 0 and t=t1t = t_1 . To be consistent with our other notation, let’s call the distance travelled by the carriage dcd_c . Putting this all together, we have:

dc=∫0t1vtβˆ’atΒ dt, d_c = \int_{0}^{t_1} v_t - a t\ dt,
=[vttβˆ’12at2]0t1, = \left[v_t t - \frac{1}{2} a t^2 \right]_{0}^{t_1},
β‡’dc=vtt1βˆ’12at12. \Rightarrow d_c = v_t t_1 - \frac{1}{2} a t_1^2.

Squinting at this result, one gets the feeling that it’d be nice to remove at least one of the variables. Since we already have an expression for t1t_1 (Equation (4)), we can try substituting that into the equation for dcd_c to see what happens:

dc=vtvtaβˆ’12a(vta)2, d_c = v_t \frac{v_t}{a} - \frac{1}{2} a \left( \frac{v_t}{a} \right)^2,
=vt2aβˆ’12avt2a2, = \frac{v_t^2}{a} - \frac{1}{2} a \frac{v_t^2}{a^2},
=vt2aβˆ’12vt2a, = \frac{v_t^2}{a} - \frac{1}{2} \frac{v_t^2}{a},
=12vt2a. = \frac{1}{2} \frac{v_t^2}{a}.

Hrm, that vt2a\frac{v_t^2}{a} bit looks familiar. Hang on! That’s the same as the expression for the distance the train travelled from earlier (Equation (7)). In other words,

dc=12dt, d_c = \frac{1}{2} d_t,
β‡’dt=2dc. \Rightarrow d_t = 2 d_c.

This means that the carriage travelled half the distance that the train travelled. Which is the same as saying that the train travelled twice the distance that the carriage travelled. Wow, that turned out to be a very simple relationship in the end!

Now, we know that dc=200Β md_c = 200\ \mathrm{m} , as that was given to us in the question. Thus, the distance the train travelled in the time it took for the carriage to come to a stop is dt=400Β md_t = 400\ \mathrm{m} .

And that’s it! We solved the problem. Yay! And we got the same result as the graphical approach outlined earlier. Cool! πŸŽ‰ I love it when a calculation comes together. πŸ˜‰

There’s something else one can learn here:

What looks like a dead end in a calculation might come in useful anyway.

After all, calculating the distance travelled by the train in terms of its velocity and the carriage’s deceleration looked like it wasn’t very helpful. But in the end, it gave us a useful, simplifying hint which led to the answer.

An average solution

There’s another way of looking at this problem. We can consider average speeds.

The fundamental insight with this approach is that, for a situation involving constant acceleration, the distance travelled is proportional to the average speed.

Let’s first consider the case for the train. Its speed at both the beginning ( t=0t = 0 ) and at the end ( t=t1t = t_1 ) is equal to vtv_t . We know that the distance it travels is its speed multiplied by the elapsed time:

dt=vt(t1βˆ’0)=vtt1. d_t = v_t (t_1 - 0) = v_t t_1.

Because the train doesn’t change speed, that means the train’s average speed, vΛ‰t\bar{v}_t , is the same as the train’s speed. I.e.

vˉt=vt,0+vt,12=vt+vt2=2vt2=vt, \bar{v}_t = \frac{v_{ t,0} + v_{t,1}}{2} = \frac{v_t + v_t}{2} = \frac{2 v_t}{2} = v_t,

where vt,0v_{t,0} and vt,1v_{t,1} are the speeds of the train at the beginning and end of the time interval, respectively.

We can now write the distance the train travelled in terms of its average speed:

dt=vtt1=vˉtt1. d_t = v_t t_1 = \bar{v}_t t_1.

This can be formulated more loosely as:

dt∼vΛ‰t. d_t \sim \bar{v}_t.

Because we’re considering the same time interval for both the distance travelled by the train and by the unhinged carriage, the elapsed time (which is equal to t1t_1 ) ends up being just a scaling constant. Hence, the distance travelled is proportional to the average speed.

Of course, the carriage does change speed, and over the same time interval. We also have a constant acceleration3 for the unhinged carriage, so we have the same kind of proportionality relationship between the distance and average speed, i.e.:

dc∼vΛ‰c. d_c \sim \bar{v}_c.

The average speed for the carriage is:

vˉc=vc,0+vc,12, \bar{v}_c = \frac{v_{c,0} + v_{c,1}}{2},

where vc,0v_{c,0} and vc,1v_{c,1} are the speeds of the carriage at the beginning and end of the time interval, respectively.

Because the carriage’s speed at the beginning is equal to the train’s speed, and the carriage’s speed at the end is equal to zero, we have vc,0=vtv_{c,0} = v_t and vc,1=0v_{c,1} = 0 . Thus, the carriage’s average speed ends up being:

vˉc=vt+02=vt2. \bar{v}_c = \frac{v_t + 0}{2} = \frac{v_t}{2}.

I’m sure you can see where this is going. But let’s continue anyway to nail everything down more firmly.

Since the distances are proportional to the average speeds, the ratios of the distances will be equal to the ratios of the respective average speeds. In other words, we can write:

dtdc=vˉtvˉc. \frac{d_t}{d_c} = \frac{\bar{v}_t}{\bar{v}_c}.

Since we know what dcd_c , vˉt\bar{v}_t and vˉc\bar{v}_c are, we can rearrange this to give us our only unknown, dtd_t :

dt=dcvˉtvˉc, d_t = d_c \frac{\bar{v}_t}{\bar{v}_c},
=dcvtvt2, = d_c \frac{v_t}{\frac{v_t}{2}},
=dcvt2vt, = d_c v_t \frac{2}{v_t},
=2dc. = 2 d_c.

And since we know that dc=200Β md_c = 200\ \mathrm{m} , we have the distance the train travels to be

dt=2dc=2β‹…200Β m=400Β m, d_t = 2 d_c = 2 \cdot 200\ \mathrm{m} = 400\ \mathrm{m},

which is our result from before. Yay!

Wrapping up

So there we have it. Although the solution wasn’t very mind-blowing, the journey turned out to be much more instructive than the destination. And that’s much more valuable from a problem-solving perspective.

  1. Why, yes, I did create these graphs with TikZ. Why do you ask? ↩

  2. Yes, I’m slyly re-using the idea of the distance being the area under the curve here. ↩

  3. Well, it’s a deceleration, but that’s just a negative acceleration. I might have mentioned this before. πŸ˜‰ ↩

Top comments (0)