1 Introduction

Quite recently, a certain interest has been revived [1] about a not so old problem, known as the leaky tank car problem [2], aimed at describing the motion of a tank car filled with a liquid that is draining out (vertically relative to the car) of an off-center hole [3]. The interest is, primarily, didactic in nature, since practical observations of the phenomenon are difficult and, seemingly, only relegated to a physics laboratory. Nevertheless, the theoretical exercise behind the problem is quite interesting for Newton dynamics and is usually assumed to be surprisingly complex. The correct and complete quantitative description of the motion [2, 3] (under general assumptions concerning the fluid flow) is, indeed, perceived as mathematically involved, and this allowed the literature [1, 3] to be enriched by toy models mainly aimed at illuminating the physical content of an interesting problem.

Nevertheless, this problem is no doubt hard to understand, mainly due to the counterintuitive expectations about it, and a long debate has flourished on the web in recent years, with confusing, conflicting and even discouraging discussions appeared on well-known physics forums [4]. Such discussions, however, often present a genuine interest of (primarily) physics students struggling with their naively intuitive ways of reasoning, which certainly reveal some lack in their physics mastering, but clearly show in this all the difficulties inherent in the problem under study. It is then interesting to explore the possibility of finding quite a different approach centered around the physical aspects of the intriguing problem, rather than the (more reassuring, in some respects) mathematical ones. The known results appeared in the specialized literature mentioned above have to be obviously recovered, but this should occur in a more physically transparent manner, in order to get new insight into the problem. This is just the primary aim of the present paper, which aspires to develop a deeper understanding of mechanical problems, regardless of their difficulties, by focusing on the physics content of it. Furthermore, the consideration of intriguing generalizations will result in unveiling a number of features that even render far more interesting the problem itself, even for teaching purposes. Finally, we will also show that, despite the apparent difficulties, the mathematics required can be essentially limited to a minimum, that is—with the exception of finding the solution of a differential equation—even to a pre-calculus stage. Thus, the leaky tank car problem will reveal to be well suitable also for teaching marvelous, non-trivial physics to undergraduate students.

Where applicable, in the following we will always tend to use a pre-calculus formalism, although the careful reader will be able to easily translate it into a more formal calculus one.

2 Physical insight into the model

Let us consider a tank car of mass m and horizontal surface area \(S_c\), with a small hole of surface area \(S_h\) (with \(S_h \ll S_c\)) and located horizontally at distance D from the center of the tank (see Fig. 1a). Initially, at time \(t=0\) the tank car is filled with water (or any other liquid) of mass \(M_0\), while we denote with M(t) the mass of the water inside the car at time t. x(t) is instead the horizontal coordinate of the center of the car, which is assumed to start to move from the rest at \(x=0\) at time \(t=0\). Since, at this initial time, water is part of the physical system, in our analysis we maintain it as a part of the system as a whole also when it (or part of it) exits the drain. This is a crucial point (see below) for the energy and momentum balance of the system, which will play a key role in our description.

Fig. 1
figure 1

A leaky tank car (filled with liquid at height h) of length 2L with a draining small hole H at position D off-center. a Model 1: water flows overall from its center of mass G to the hole. b Model 2: water flows from its “left” center of mass \(G_L\) to the hole and from its “right” center of mass \(G_R\) to the hole (see text)

2.1 Water draining

Three basic assumptions will be made:

  1. A1

    the water exits the drain with zero horizontal velocity relative to that of the tank car;

  2. A2

    water is incompressible and inviscid;

  3. A3

    the Bernoulli equation holds for the water, that is energy (density) is conserved in the water flow and kinetic energy (density) of the water in the tank (in the rest frame of the tank) can be neglected.

In our simple picture, then, assumption A3 requires for instance that no remarkable variations of pressure and velocity develop for the water flowing inside the car, so as to neglect turbulence effects that would have only complicated the analytic solution of the problem, without leading to more interesting physical results. Assumption A2 implies that the continuity equation holds, so that the vertical velocity of water exiting the drain is given by (\({\hat{v}}_E = - {\hat{z}}\) in the reference frame in Fig. 1a):

$$\begin{aligned} v_E \, = \, - \frac{S_c}{S_h} \, {\dot{h}} \, , \end{aligned}$$
(1)

where \({\dot{h}} = {\dot{h}}(t)\) is the velocity with which the free surface of the water lowers with time.Footnote 1 Instead, from assumption A3 follows that the Torricelli law holds:

$$\begin{aligned} v_E \, = \, \sqrt{2 g h} \, . \end{aligned}$$
(2)

From these two equations, the variation of water height h(t) with time may be easily deduced even without employing calculus. By introducing the emptying time \(t_s\) defined by \(h(t_s) = 0\), that is

$$\begin{aligned} t_s \, = \, \frac{S_c}{S_h} \, \sqrt{\frac{2 h_0}{g}} \, , \end{aligned}$$
(3)

the time equation \(h=h(t)\) for the water height can be written as:

$$\begin{aligned} h \, = \, h_0 \left( 1 - \frac{t}{t_s} \right) ^2 \!\!\! , \end{aligned}$$
(4)

from which the time equation for the mass \(M=M(t)\) of the water inside the car immediately follows by introducing the water density \(\rho \), i.e., \(M = \rho S_c h\) (and thus \(M_0 = \rho S_c h_0\)):

$$\begin{aligned} M \, = \, M_0 \left( 1 - \frac{t}{t_s} \right) ^2 \!\!\! , \qquad {\dot{M}} \, = \, - \, \frac{2M_0}{t_s} \left( 1 - \frac{t}{t_s} \right) , \qquad {\ddot{M}} \, = \, \frac{2M_0}{t_s^2} \, . \end{aligned}$$
(5)

Note that the initial value of the mass rate \({\dot{M}}_0 \equiv {\dot{M}}(0) = - 2 M_0/t_s\) is obviously negative (water drains from the hole), while the time variation of the mass rate \({\ddot{M}}\) results to be constant with time and positive.

2.2 Equation of motion

The dynamics of the system is described by the Newton law:

$$\begin{aligned} M_{\mathrm{tot}} \, a \, = \, F , \end{aligned}$$
(6)

where F is the horizontal force acting on the system tank car + water, \(a = \ddot{x}(t)\) is the acceleration of such system and the total mass is given by \(M_{\mathrm{tot}} = m + M(t)\). The active force driving the system is, of course, the weight, which drains the water from the hole. According to McDonald [2], water moves horizontally inside the car flowing overall in the \(+x\) direction (see Fig. 1a) from the center of mass G of the water (located at \(x=0\)) to the exiting hole H (located at \(x=D\)).Footnote 2 Such a motion is due to the force F developed as a constraint reaction by the car (inside) walls, acting overall in the \(+x\) direction. As a consequence of the action–reaction principle, the force \(F_w\) done by water upon the car is opposite to F, i.e., \(F_w = - F\). Now, from assumption A3 it follows that water moves inside the tank car according to a stationary regime since, otherwise, the Bernoulli equation should not hold. As a result, within the assumptions made, the force \(F_w\) has to be constant (it does not depend on time), and so does F, so that the problem at hand is just a dynamic problem of a constant force acting on a variable mass system. This result, which in the previous literature [2, 3] is not so transparent (and, thus, we will dwell a bit more on this point), is instead obvious when remembering that the active force (weight) driving the system is constant in time.

Indeed, when the hole is closed, weight is balanced by constraint forces exerted by car walls, but, after opening the drain, the constraint from the hole surface no more applies, and a force unbalance comes out that, of course, is always ruled by the weight (which is a constant force). In particular, a net horizontal force emerges as a consequence of constraint forces from lateral car walls, as explained above. Weight acts constantly on the water inside the car, and as a direct consequence of assumption A3 (or, explicitly, of the Torricelli law), it causes as well a mass flow acceleration \({\ddot{M}}\) that is constant in time. This uniform acceleration is simply a manifestation of a constant force exerted by the water flow on the car. With zero mass flow acceleration we would have no force, while a non-constant mass flow acceleration would result into a variable in time force, since the water flow would “push” more or less the car depending on time. In a sense, the situation is similar to that of a body A pushing with a constant force on a body B that, in turn, pushes on another body C. B moves with uniformly accelerated motion, acting on C with a constant force. In the analogy, B is the water (upon which the weight acts) pushing on the car C: the leaky tank car problem just assumes a mass losing body C.

Once established this, the expression for the force F entering into Eq. (6) may be deduced as follows from the impulse–momentum theorem. The momentum \(p_{w_{\mathrm{ins}}}\) of the water acting on the car walls overall in the \(-x\) direction is given by the product of the mass element \(\Delta M\) flowing in the time interval \(\Delta t\) with velocity \(v_w\), which is simply given in the model above by \(D/\Delta t\):

$$\begin{aligned} p_{w_{\mathrm{ins}}} = - \, \Delta M \cdot v_w = - \, \Delta M \cdot \frac{D}{\Delta t} = - \, {\dot{M}} D. \end{aligned}$$
(7)

The variation of such momentum in time equals the water impulse, \(F_w \Delta t = \Delta p_{w_{\mathrm{ins}}}\), so that

$$\begin{aligned} - \, F \cdot \Delta t = - \, D \, \Delta {\dot{M}} \, . \end{aligned}$$
(8)

At this level, it is now quite clear what qualitatively explained above about the constancy of the pushing force F. Indeed, from Eq. (5), \(\Delta {\dot{M}}\) exactly mimics \(\Delta t\), that is, a change in the mass rate just drives a change in the time for the water to cover the distance D. This is just a direct consequence of the basic assumptions introduced above or, in particular, of the stationary regime (without turbulences) assumed for the water moving inside the car in the rest frame of the car.Footnote 3 Now, since the force F is constant from the beginning (\(t=0\)) to the end (\(t=t_s\)) of the motion, we then have:

$$\begin{aligned} F \cdot t_s = D \left( {\dot{M}}(t_s) - {\dot{M}}(0) \right) = - \, D \, {\dot{M}}_0 \, , \end{aligned}$$
(9)

from which the expression for the force immediately follows:

$$\begin{aligned} F = - \, \frac{{\dot{M}}_0 D}{t_s} = \frac{2 M_0 D}{t_s^2} = {\ddot{M}} D \end{aligned}$$
(10)

(where we have also used Eqs. (5)). We then recover the obvious result that a constant mass flow acceleration \({\ddot{M}}\) induces a constant force F on the car.

By substituting Eq. (10) into Eq. (6), the equation of motion of the system results to be:

$$\begin{aligned} \left[ m + M(t) \right] \ddot{x}(t) = \frac{2 M_0 D}{t_s^2} \, . \end{aligned}$$
(11)

Note that the acceleration \(\ddot{x}(t)\) is always positive (i.e., it is in the \(+x\) direction), and since the force is constant, it reaches a maximum when the total mass of the system is at a minimum, that is, at \(t=t_s\) (\(M(t_s)=0\)).

2.3 Initial conditions

In order to solve the equation of motion, initial conditions are required, and as envisaged by McDonald [2], they can be deduced from the conservation law for the total momentum \(p_{\mathrm{tot}}\), which we write as \(p_{\mathrm{tot}} (t \le 0) = p_{\mathrm{tot}} (t>0)\). For \(t \le 0\), the momentum is obviously zero, while for later times it results from four different contributions, namely:

  • momentum of the tank car:

    \(p_{\mathrm{car}} = m \, {\dot{x}}(t)\);

  • momentum of the water moving along with the car: \(p_{w_{\mathrm{car}}} = M(t) \, {\dot{x}}(t)\);

  • momentum of the water acting on the car (see (7)): \(p_{w_{\mathrm{ins}}} = - {\dot{M}}(t) \, D\);

  • momentum of the water exiting from the car; in the time interval \(\Delta t\) it is given by: \(p_{w_{\mathrm{out}}} = \Delta M(t) \cdot {\dot{x}}(t)\).

By introducing the mass rate (which is negative) in the last contribution, \(\Delta M(t) \cdot {\dot{x}}(t) = - {\dot{M}}(t) \, \Delta t \cdot {\dot{x}}(t)\), the conservation law for the momentum becomes:Footnote 4

$$\begin{aligned} \left[ m + M(t) \right] {\dot{x}}(t) - {\dot{M}}(t) \, D - {\dot{M}}(t) \, \Delta t \cdot {\dot{x}}(t) = 0. \end{aligned}$$
(12)

From this, for \(t=0\) (and, thus, \(\Delta t=0\)) we deduce that the initial velocity \({\dot{x}}(0) = {\dot{x}}_0\) is given by:

$$\begin{aligned} {\dot{x}}_0 = \frac{{\dot{M}}_0 D}{m + M_0} = - \frac{2D}{t_s} \frac{\mu }{1+\mu } \, , \end{aligned}$$
(13)

where in the last equality we have conveniently introduced the physically relevant parameter (see below) \(\mu = M_0/m\) denoting the ratio of the total water mass versus the tank car mass.

Interestingly enough, the tank car starts to move at \(x_0=0\) with a nonvanishing velocity \({\dot{x}}_0 \ne 0\). (For \(D=0\) the car does not move due to symmetry reasons, while for \(M_0=0\) no water is present in the car, and so, no motion starts.) Also, such initial velocity is always negative, \({\dot{x}}_0 < 0\), thus requiring an initial thrust on the car in the \(-x\) direction, being necessarily due to the action of weight at the initial time instant.

What happens? Before the drain is opened, the velocity of the tank is zero: The reactions exerted by the car walls constraining the water inside the tank obviously balance each other (and with weight). However, when the draining hole is set free, water starts to exit from the hole due to its weight or, in other words, the walls of the tank (suddenly) push on the water to move it toward the drain. A sudden change in force balance involving constraint reactions from the car walls (and weight) then takes place. Differently from what happened before, at the opening of the drain the walls of the tank suddenly push on water to move it toward the hole, and the reaction on the walls of the tank gives it an initial velocity. This is then the result of an impulsive force acted by water on the lateral walls, and since there is more water on the left of the drain than on its right, the initial velocity is in the \(-x\) direction (with reference to Fig. 1a). The initial throw given by gravity on the water element falling (vertically) from the hole, when this is set free, then provides indirectly the (horizontal) initial throw in the \(-x\) direction to the system, a crucial role being played by the unbalance of left and right actions caused by the different quantity of water on the left and on the right of the drain.

What just envisaged no longer applies as the time goes by since, after the initial impulse, the wall on the left pushes more fluid with respect to that on the right, and a flow of water is established toward the right direction. This results into pushing the car just in that direction, as discussed in the previous subsection, since the walls of the tank have to arrest the motion of the water toward the drain, in order for the water to leave the car with zero (horizontal) relative velocity.

2.4 Qualitative description of the motion

The picture thus emerged is then the following. The leaky tank car problem is just a variable mass problem ruled by a constant positive force, which is basically dictated, in the present model, by the requirement of the Bernoulli equation (that is, ultimately, by energy conservation), resulting into a positive (non-constant) acceleration at any time. Momentum conservation requires, instead, that the initial velocity be negative, this paralleling the more well-known example of a ball launched upwards under the action of its weight (which gives, however, a constant acceleration on Earth surface). Then, the car initially moves toward left (in Fig. 1a), but the modulus of its velocity decreases (since \(\ddot{x} > 0\)), approaching zero: At this time (\(t_{\mathrm{inv}}\)), an inversion of motion takes place. Three possible cases may then occur, according to the actual emptying time: (1) no inversion takes place, and once the “fuel” (the water exiting the hole) is run out, the car still moves toward left by inertia (\(t_{\mathrm{inv}} > t_s\)); (2) the car stops when completely empty (\(t_{\mathrm{inv}} = t_s\)); (3) the car undergoes an inversion of its motion, and after the emptying time is reached, it continues moving toward right (\(t_{\mathrm{inv}} < t_s\)). The puzzle of the inversion of the motion, already envisaged by McDonald [2], is thus easily explained physically.

Of course, by neglecting any friction, the water fallen from the car continuously moves in order to assure total momentum conservation. In case (2), it is thus clear that a part of the water fallen moves leftward, while another part moves rightward: the water fallen from the car invert itself the direction of motion before the car does. All these interesting points, now discussed only qualitatively, will be addressed appropriately below.

2.5 A more realistic physical model

In the McDonald model [2] recalled above, we have assumed that water flows homogeneously inside the car from the center of mass G of water to the hole, and this led to the equation of motion (11) with the initial condition (13). More realistically, such overall flux in the \(+x\) direction is due to water flowing rightward from the left of the hole as well as to water flowing leftward from the right of the hole. With reference to Fig. 1b, we can then generalize the previous physical model to a more precise one by differentiating the centers of mass \(G_L,G_R\) of the water at the left/right of the hole, located at distances \(D_L=(L+D)/2\) and \(D_R=(L-D)/2\), respectively.

In the McDonald model, the time intervals \(\Delta t_L,\Delta t_R\) for the water to cover the distances \(D_L, D_R\) from \(G_L,G_R\) to the hole were implicitly assumed to be equal, this implying evidently that the (horizontal) velocities of the water flowing leftward and rightward were different (since \(D_L \ne D_R\)). However, such assumption is not very well justified, since the vertical velocities of the water falling leftward and rightward in the hole are expected to be equal, depending only on the height h of the water in the car, according to the assumption A2. Then, we have \(D_L / \Delta t_L = D_R / \Delta t_R\), so that \(\Delta t_L = (D_L/D_R) \Delta t_R\), and from the conservation law for the volumetric flow rate, we obtain \(\Delta t_{L,R} = (2 D_{L,R}/L) \Delta t\). Interestingly enough,

$$\begin{aligned} \frac{D_L}{\Delta t_L} = \frac{D_R}{\Delta t_R} = \frac{L/2}{\Delta t} \, , \end{aligned}$$
(14)

that is, the horizontal velocities with which the water flows leftward and rightward are both equal to an “average” velocity with which water covers globally a distance L/2 in the time \(\Delta t\).

The most interesting—and unexpected—consequence of such result is that what deduced above within the McDonald model still holds, provided that a providential replacement be implemented. Indeed, the horizontal force in Eq. (6) is now given more realistically by \(F = F_L - F_R\), where \(F_L, F_R\) is the horizontal force acting on the left, right wall in the system tank car + water due to the water flowing leftward, rightward from \(G_L, G_R\) to the draining hole in the \(\pm x\) direction. By following the same reasoning as above, the impulse–momentum theorem applied separately to \(F_L\) and \(F_R\) gives:

$$\begin{aligned} F_L = \frac{M_0 (L+D)}{2 t_s^2} \, , \qquad \qquad F_R = \frac{M_0 (L-D)}{2 t_s^2} \, . \end{aligned}$$
(15)

As expected, \(F_L\) is greater than \(F_R\), and more intriguingly:

$$\begin{aligned} F = F_L - F_R = - \, \frac{{\dot{M}}_0 D}{2 t_s} = \frac{M_0 D}{t_s^2} = \frac{{\ddot{M}} D}{2} \, , \end{aligned}$$
(16)

which result is just half of that in Eq. (10). This means that the equation of motion in (11) (and the initial condition for the velocity) is now replaced by:

$$\begin{aligned} \left[ m + M(t) \right] \ddot{x}(t) = \frac{M_0 D}{t_s^2} \, , \qquad {\dot{x}}_0 = \frac{{\dot{M}}_0 D}{2(m + M_0)} = - \frac{D}{t_s} \frac{\mu }{1+\mu } \, . \end{aligned}$$
(17)

2.6 Generalizations

The problem studied above is worth of intriguing generalizations, whose didactic and physical interest rises little doubt. First of all, note that we can refer to it properly as a one-dimensional (1D) problem, since the car is able to move only in the x direction, and as evident from Fig. 1, only any motion of water in this direction (effectively induced by motion in the vertical z direction) is relevant, while what happens in the y direction (not shown in those figures, indeed) does not matter.

Fig. 2
figure 2

Generalizations of the leaky tank car problem (top view). a 1D problem with two draining holes. b, c 2D problem with one hole located in different position. df 2D problem with two holes located in different positions. Left: original system. Right: equivalent 1D system

An immediate generalization is to consider a tank car with two (or more) draining holes, obviously located at different distances \(D_1\) and \(D_2\) from the center, as for example in Fig. 2a1. (Differently from Fig. 1, in these figures we show a top view of the tank car, in the xy plane.) Now, the total force on the car, replacing that in Eq. (16), is:

$$\begin{aligned} F = \frac{M_0 (D_1 - D_2)}{2 \, t_s^2} \, , \end{aligned}$$
(18)

and similarly, we have an initial condition on the velocity in Eq. (17) with D replaced by \((D_1-D_2)/2\). (Of course, a leaky tank car with two holes at equal distances from the center experiences no net force, so that it does not move.) More in general, when assuming equal surface areas of the holes, the two holes problem is equivalent to that with just one draining hole located in the center of mass of the two holes (see Fig. 2a2), and similar results apply to the cases with more than two holes.

Case b1) of Fig. 2, where the (single) hole is located on the midline of the car base, shows an apparently two-dimensional (2D) problem but, due to the symmetric action of the water along the y axis (resulting into a vanishing y-component net force), it is effectively again reducible to a 1D problem (see Fig. 2b2).

The situation is somewhat different for the case c1), where the hole is distant \(D_x\),\(D_y\) from the x,y axes. Here, the net force F always acts along the line joining the center of the car with the hole. Since a similar conclusion holds as well for the initial velocity, again the problem is equivalent to a 1D problem (16), (17) with \(D=\sqrt{D_x^2 + D_y^2}\), the car moving in the center hole direction, as in Fig. 2c2.

Interesting enough, analogous results apply for 2D problems with two or more holes, few typical examples being reported in Fig. 2d–f, and a “center of mass theorem” for the holes again holds: The interested student can easily explore similar results with geometries different from those considered in Fig. 2.

Here, instead, we point out the intriguing fact that draining water from a tank car can only produce a translational motion, while no rotation can be induced. This is, indeed, a consequence of the fact that, as envisaged above, the net force F acting on the car always points in the direction of the line joining the center of mass of the car with the given hole, which in turn is a direct physical consequence of the fact that water effectively moves from the center of mass to the holes. As a result, no torque acts on the car at all, and the angular momentum conservation law applies not only to the car+water system, but also to the water and—especially—to the car separately. If initially the car does not spin, water drainage never induces rotation (and, anyway, its angular velocity does not change). Interestingly, the leaky tank car problem is pure translational.

Finally, it is instructive to give an explicit statement of the “center of mass theorem,” whose formal proof is straightforward from what discussed above:

A leaky tank car problem with n holes of equal area, located at \((D_{1x}, D_{1y})\), \((D_{2x}, D_{2y})\), ...\((D_{nx}, D_{ny})\), is equivalent to a problem with just one hole located at \((D_{x}, D_{y})\), with

$$\begin{aligned} D_x = \sum _{i=1}^n \frac{D_{ix}}{n} \, , \qquad D_y = \sum _{i=1}^n \frac{D_{iy}}{n} \, , \end{aligned}$$
(19)

the car moving along the direction joining this point with the center of mass of the water, with initial velocity given by Eq. (17) and net force in (16) with \(D=\sqrt{D_x^2 + D_y^2}\).

In a sense, this means that the most general case can always be reduced to that in Fig. 2c. From a physical point of view, this theorem immediately follows from the fact the system never rotates by itself, along with the assumption that an equal mass of water (accounting to \(M_0/n\)) flows from each hole.

The situation of course changes when differently sized holes are present, but a generalization of the above theorem can be formulated (a formal proof of it is again left to the interested student:)

A leaky tank car problem with n holes of different surface areas \(S_1, S_2, \dots , S_n\), located at positions \(\vec {D}_1, \vec {D}_1, \dots , \vec {D}_n\), is equivalent to a problem with just one hole located at

$$\begin{aligned} \vec {D} = \frac{S_1 \vec {D}_1 + S_2 \vec {D}_2 + \dots S_n \vec {D}_n}{S_1 + S_2 + \dots S_n} \end{aligned}$$
(20)

with net force on the car given by

$$\begin{aligned} \vec {F} = \frac{M_0 \, \vec {D}}{t_s^2} \, , \end{aligned}$$
(21)

and initial velocity

$$\begin{aligned} \vec {v}_0 = \frac{{\dot{M}}_0 \, \vec {D}}{2(m + M_0)} \, . \end{aligned}$$
(22)

3 Motion of the leaky tank car

The motion of the system considered is obviously given by the solution of Eq. (17), with M(t) given by (5), for a tank car starting its motion at \(x_0=0\) with initial velocity given by (17). Differently from what done until now, however, this requires necessarily the use of calculus, that is how to solve a differential equation with non-constant coefficients. For undergraduate students, this is not a serious problem, but for pre-calculus ones the following expressions should be provided them without too much pain.

3.1 Solution of the equation of motion

Such solution [2] for acceleration \(a(t)=\ddot{x}(t)\), velocity \(v(t)= {\dot{x}}(t)\) and position x(t) can be cast conveniently in a physically meaningful (though quite involved) form as follows:

$$\begin{aligned} a(t)= & {} \frac{D}{t_s^2} \, \frac{\mu }{\displaystyle 1 + \mu \left( 1 - \frac{t}{t_s} \right) ^2} \, , \end{aligned}$$
(23)
$$\begin{aligned} v(t)= & {} - \, \frac{D}{t_s} \, \frac{\mu }{1 + \mu } \left\{ 1 - \frac{1 + \mu }{\sqrt{\mu }} \left[ \arctan \sqrt{\mu } - \arctan \sqrt{\mu } \left( 1 - \frac{t}{t_s} \right) \right] \right\} , \end{aligned}$$
(24)
$$\begin{aligned} x(t)= & {} - \, D \left\{ \frac{\mu }{1 + \mu } \, \frac{t}{t_s} - \frac{1}{2} \left[ \log \frac{1 + \mu }{\displaystyle 1 + \mu \left( 1 - \frac{t}{t_s} \right) ^2} \right. \right. \nonumber \\&\quad - 2 \sqrt{\mu } \left( 1 - \frac{t}{t_s} \right) \left( \arctan \sqrt{\mu } \left. \left. - \arctan \sqrt{\mu } \left( 1 - \frac{t}{t_s} \right) \right) \right] \right\} . \end{aligned}$$
(25)

Note that, of course, all such quantities are proportional to D, so that they vanish for a central drain hole at \(D=0\). Also, the scales for position, velocity and acceleration are set by D, \(D/t_s\) and \(D/t_s^2\), respectively (while \(t_s\) is the appropriate scale for time). Indeed, distance D of the hole off-center and emptying time \(t_s\) are the only physical kinematic quantities describing the problem. Instead, the only dynamic quantity relevant for the system is, as already pointed out, the mass ratio \(\mu = M_0/m\), and in Fig. 3, we plot the above solutions for different values of such parameter from the starting at \(t=0\) to the emptying of the tank car at \(t=t_s\). The initial and final values of xva are given by:

(26)

respectively.

Fig. 3
figure 3

a Acceleration a, b velocity v and c position x of a leaky tank car as function of time, for different values of the mass ratio parameter \(\mu \). The inversion of the motion and the transit of the car for the origin (when realized) are pointed out

In these figures, we have highlighted the physically interesting points where the car undergoes an inversion of its motion (for different values of \(\mu \)), which is evidently defined by the equation \(v(t_{\mathrm{inv}}) =0\), that is (for finite values of \(M_0, m\)):

$$\begin{aligned} t_{\mathrm{inv}} = t_s \, \frac{\displaystyle \frac{1 + \mu }{\sqrt{\mu }} \, \tan \frac{\sqrt{\mu }}{1 + \mu }}{\displaystyle 1 + \sqrt{\mu } \, \tan \frac{\sqrt{\mu }}{1 + \mu }} \, . \end{aligned}$$
(27)

The realization of such inversion obviously depends on the final values in (26), that is, on the emptying time and the mass ratio parameter \(\mu \), and from Fig. 3, we see that decreasing \(\mu \) leads to a later inversion.

Once inversion of motion is realized, one can also ask whether the car is able to transit again for the originFootnote 5before it empties (surely, after inversion, the car will transit for the origin by inertia, if we assume no friction); of course, as arguable from Fig. 3, this occurs only for sufficiently large values of \(\mu \).

3.2 Limiting cases

One may wonder if the involved mathematical expressions in Eqs. (2325) may assume more physically appealing forms in some limiting cases, namely for very large and small \(\mu \) values, which for undergraduate student employing calculus may result into useful exercises about Taylor expansions (for \(\mu \rightarrow \infty \), a novel parameter \(\nu = 1/\mu \) tending to zero has to be introduced). The following results may then be appreciated only in a calculus-based presentation, although some physical cases could be discussed as well within a pre-calculus presentation. For technical details, see Appendix.

Interesting enough, and apparently unexpected, such limiting cases are not ruled solely by the mass ratio parameter \(\mu \), but rather separately by the \(M_0\) and m mass parameters. The reason is that a hidden dependence on \(M_0\) is present in the emptying time \(t_s\) that, from Eq. (3), we can now write as:

$$\begin{aligned} t_s \, = \, \sqrt{\frac{2 S_c M_0}{\rho S_h^2 g}} \, . \end{aligned}$$
(28)

For an appreciably nonvanishing water mass (\(M_0 \ne 0\)), the emptying time \(t_s\) is finite, and standard Taylor expansion methods may be applied to Eqs. (23-25), although with some caveats (see Appendix A).

For large car masses (\(m \rightarrow \infty \); \(\mu \rightarrow 0\)), the leaky tank car just undergoes an approximately uniformly accelerated motion:

$$\begin{aligned} \begin{array}{c} \displaystyle a \simeq \frac{D}{t_s^2} \, \mu \, , \qquad v \simeq - \, \frac{D}{t_s} \left( 1 - \frac{t}{t_s} \right) \mu \, , \qquad \displaystyle x \simeq - D \left( 1 - \frac{t}{2t_s} \right) \frac{t}{t_s} \, \mu \, , \end{array} \end{aligned}$$
(29)

ending at \(t=t_s\) with vanishing velocity. Note, however, that in such case, the small quantity of water in the car, when compared to the mass of the car, does not allow an effectively appreciable motion: the (approximately constant) acceleration is very small as well as the initial velocity \(v(t\!=\!0) \!=\! - (D/t_s) \mu \), so that the car moves effectively just for a negligible distance, from \(x(t\!=\!0)=0\) to \(x(t\!=\!t_s) \!=\! - D \mu /2 \rightarrow 0\).

For small car masses (\(m \rightarrow 0\); \(\mu \rightarrow \infty \)), instead, no appreciable inertia is opposed by the car to its motion, which is then completely dominated by the action of the moving water. The car effectively covers a large distance (tending to infinity for \(\mu \rightarrow \infty \)) before emptying, and since \(t_s\) is finite, acceleration and velocity increase considerably when the emptying time is approaching. Then, the inversion of motion occurs at a time approximately equal to half the emptying time:

$$\begin{aligned} t_{\mathrm{inv}} \simeq \left( \frac{1}{2} + \frac{1}{3 \mu } \right) t_s \, \end{aligned}$$
(30)

as can be deduced by Taylor expanding Eq. (27) around \(\nu = 1/\mu = 0\). Just until this time (or, more accurately, just at the beginning, for \(t \ll t_s\)), the acceleration can be approximated to a constant equal to \(D/t_s^2\) (see Appendix A).

In the limit of vanishing or infinite water mass, the approximate analysis becomes a bit more tricky (and we refer the reader to Appendix), since the emptying time \(t_s\) is no more finite, and a different time scale rules the motion for a finite car mass (\(m \ne 0\)).

For vanishing water masses (\(M_0 \rightarrow 0\); \(\mu \rightarrow 0\)), the emptying process rapidly reaches an end, and during such negligibly small time the acceleration may be considered approximately constant. However, the velocity is as well exceedingly small, so that the car is only able to cover a very small distance during its motion.

Just the opposite happens for very large water masses (\(M_0 \rightarrow \infty \); \(\mu \rightarrow \infty \)), for which the emptying process lasts for an exceedingly large time (\(t_s \rightarrow \infty \)). Even in this case we have approximately a uniformly accelerated motion, but now both acceleration and velocity practically vanish due to the extremely large inertia suffered by the system, the car again covering only a negligibly small distance.

4 Motion of the water flowing from the car

The motion of the tank car when water drains through the hole, as described above, is not the only interesting problem to study for such a physical system. Indeed, it is as well quite intriguing to learn also about the (horizontal) motion of the water exiting the car, and this for several reasons, primarily originated by asking what happens to water flowing from the car when inversion occurs.

In the following, we will consider the problem in some detail but, without embarking in complicate hydrodynamics descriptions (which are certainly untimely in the present framework), once instead completely known the motion of the tank car, we can fruitfully make recourse to the momentum conservation law in order to obtain some insight into the motion of the water exiting the car.

Here, the problem is to estimate the four different momentum contributions discussed in Sect. 2.3, while determinate solutions (23-25) (with Eqs. (5)) apply for different values of the mass ratio parameter \(\mu \) (including, in case, also the limiting cases already considered above). This is apparently just a useful mathematical exercise (for students trained in calculus), which we indeed address in Appendix, but the physical interpretation of the results obtained, as well as the conclusions drawn from it, are surprisingly interesting. We then dwell here upon the physical aspects of this problem, referring the reader to Appendix B for technical details.

The focus is, evidently, on the contribution \(p_{w_{\mathrm{out}}}\) to the total momentum of the system introduced above. Of course, for \(t=0\) we have \(p_{w_{\mathrm{out}}} =0\), since no momentum is carried by the water exiting the car at the beginning (for \(t=0\) we still have no water flowing horizontally outside the car). Afterward, \(p_{w_{\mathrm{out}}}\) will be negative: this is a direct consequence of the fact that the car start to move in the \(-x\) direction (see above)—until inversion occurs (if any)—and that the water exiting the car follows such motion, just as a projectile released by a plane. For \(t= t_{\mathrm{inv}}\), \(p_{w_{\mathrm{out}}}\) takes a minimum, since from now on the car—inverting its motion—releases water from the hole in the \(+x\) direction, thus increasing the value of \(p_{w_{\mathrm{out}}}\), while still negative. This behavior is, indeed, confirmed by the calculations (and plots) reported in Appendix, from which however we deduce that, for finite \(m, M_0\), when the car is empty we still have \(p_{w_{\mathrm{out}}} (t_s) < 0\). This is not a surprising result, though naively unexpected, and does not contradict the obvious fact that the last drops of water exiting the car do follow the motion of the car in the \(+x\) direction (once inversion occurred). It simply means that the overall motion of the water exited from the car is always in the \(-x\) direction, even after inversion.

This is due to the fact that, according to Eq. (5), most of the water exits the car before inversion, as can be easily seen by evaluating the mass \(M_\pm (t)\) of water exited from the car and flowing in the \(\pm x\) direction as function of time:

$$\begin{aligned} M_-(t)= & {} \left\{ \begin{array}{ll} M_0 - M(t) , \qquad &{} 0 \le t \le t_{\mathrm{inv}} , \\ M_0 - M_{\mathrm{inv}} , \qquad &{} t > t_{\mathrm{inv}} , \end{array} \right. \end{aligned}$$
(31)
$$\begin{aligned} M_+(t)= & {} \left\{ \begin{array}{ll} 0 , \qquad &{} 0 \le t \le t_{\mathrm{inv}} , \\ M_{\mathrm{inv}} - M(t) , \qquad &{} t_{\mathrm{inv}} < t \le t_s , \\ M_{\mathrm{inv}} , \qquad &{} t> t_s \end{array} \right. \end{aligned}$$
(32)

(\(M_{\mathrm{inv}} \equiv M(t_{\mathrm{inv}})\)).Footnote 6 The large quantity of water still flowing by inertia in the \(-x\) direction after inversion, notwithstanding the additional water, with minor mass, starting to flow in the \(+x\) direction, thus explains the overall negative value of \(p_{w_{\mathrm{out}}}\).

We then remain with the following picture. At the beginning, the tank car moves in the \(-x\) direction—and so does the water flowing outside from it—until inversion, which always takes place for any value of \(\mu \): indeed, from the analysis of the water flowing outside the car, if the inversion of motion would not occur, there would be nothing going in the \(+x\) direction assuring momentum conservation. After the inversion, the car moves in the \(+x\) direction, the water still draining from it doing the same, while the water already exited from the car continues its flowing in the \(-x\) direction. Such a picture is allowed by momentum conservation, since the momentum of the system (tank car) + (water inside moving with it) + (water drained from the car and moving outside) is balanced by the momentum of the water moving inside the car, which always flows globally from the center of mass toward the hole, that is in the \(+x\) direction, without undergoing any inversion. While time goes by, however, such momentum decreases more and more (with the decreasing of the mass of water still inside the car), until vanishing when the emptying process is completed: since the water already exited from the car moves by inertia in the \(-x\) direction, necessarily at a certain time the water has to start to drain in the \(+x\) direction, this explaining the motion inversion even for water.

Fig. 4
figure 4

Velocity of the water flowing outside the tank car as function of time, for different values of the mass ratio parameter. The inversion point marks the transition from a one-valued behavior (water flowing only leftward) to a two-valued one (water flowing partly leftward and rightward). Note that the final values of the rightward velocity are always greater than the corresponding values (in modulus) of the leftward velocity due to momentum conservation, since the opposite applies for the corresponding masses. By increasing the initial water mass (i.e., increasing \(\mu \)), final values of these velocity (in modulus), as well as the initial ones, always increase

All this is made quantitative in Appendix B, and reported in the corresponding plots, where it is evident that the scale for any momentum contribution is set by the quantity \(M_0 D / t_s\), as expected. Also, from those plots, it can be appreciated the dependence of \(p_{w_{\mathrm{out}}}\) from the mass ratio parameter \(\mu \): obviously, \(p_{w_{\mathrm{out}}}\) becomes more and more negative for increasing \(\mu \) (since the quantity of water mass available increases), but this is no longer true after inversion for higher values of \(\mu \) (around \(\mu =5\)). Indeed, for higher values of the water mass, inversion takes place earlier, and more water flows outside the car in the \(+x\) direction.

Particularly interesting is the limiting case of \(\mu \rightarrow \infty \) realized when the car mass is negligible compared to water mass (\(m \rightarrow 0\)),Footnote 7 since this is the only case when \(p_{w_{\mathrm{out}}}\) again vanishes (after the starting) at the emptying time. Here \(p_{w_{\mathrm{out}}}\) is totally symmetric around the inversion point that now occurs at \(t_{\mathrm{inv}} = t_s/2\), being indeed described by a parabola intersecting the time axis at \(t=0\) and \(t=t_s\) and with its vertex at \(t=t_s/2\). The tank car stops its motion when empty, and \(p_{w_{\mathrm{out}}}\) vanishes at this point, but the water already exited obviously does not stop moving, a given (greater) quantity of water flowing (slower) in the \(-x\) direction, and another (smaller) quantity flowing (faster) instead in the \(+x\) direction, perfectly balancing their momenta: More precisely, \(3/4 \, M_0\) water moves in the \(-x\) direction with velocity \(- 2/3 \, D/t_s\), while the remaining \(1/4 \, M_0\) water moves in the \(+x\) direction with velocity \(2 \, D/t_s\), each component carrying exactly half of the momentum \(p_{w_{\mathrm{out}}}\).

From the mathematical results concerning \(p_{w_{\mathrm{out}}}\) and reported in Appendix, it can be also deduced the behavior of the velocity \(v_\pm (t)\) of water flowing leftward/rightward outside the car as function of time,Footnote 8 before and after inversion. For reference, the result is reported, for different values of the mass ratio parameter \(\mu \), in Fig. 4, which well summarizes what described above.

5 Conclusions

The leaky tank car problem is a unique opportunity to illustrate a number of physical issues concerning standard mechanics in a highly nonstandard fashion, able to capture even the interest of students involved in science at different levels. A direct evidence of this is the strong interest shown for such a problem in various physics forums [4] on the web, which, however, clearly show as well a quite discouragingly confused analysis of it. This is mainly due to the intricacies of the issue, and for this reason we have here approached it from a different perspective, while taking in due account the known results in the literature. Indeed, in the present paper we have especially pointed out the intriguing physical aspects of the problem, although sometimes concealed behind mathematical properties [2, 3], by just employing only the strictly required mathematical tools. In particular, we have shown that calculus is effectively required only to find the solution of the Newtonian equation of motion, or even to study the limiting cases of such solutions and related quantities, whereas only some (pseudo) numerical ability is claimed to build insightful plots. While undergraduate students are well able to take up this mathematical challenge (and we certainly urge them to do it), any interested student can on the other hand appreciate all the physical content of the problem.

Indeed, in addition to the intriguing properties—deduced within the simple model assumed with its generalization—properly related to the motion of the leaky tank car (only partially present in the literature), above we have as well presented the equally interesting features concerning the motion of the water flowing from the car. Noteworthy and unexpected are a number of suitable generalizations of the problem, further stimulating physics interest, along with an important general theorem underlying the fact that water drainage never induces rotation.

Fig. 5
figure 5

a Acceleration a, b velocity v and c position x of a leaky tank car as function of time in the limit \(\mu \rightarrow 0\). Red: exact expressions. Blue: approximate expansions at leading orders. For large car masses \(m \rightarrow \infty \) and finite water mass \(M_0 \ne 0\) (left column), in a finite emptying time (\(t_s \ne 0\)) acceleration and velocity are negligible, the car covering just a small distance during its motion, without inversion. For small water masses \(M_0 \rightarrow 0\) and finite car mass \(m \ne 0\) (right column), acceleration is approximately constant but the velocity is negligibly small, the car again covering just a small distance during its motion, without inversion, in the now negligibly small emptying time (\(t_s = \sqrt{\mu } \; t_l \rightarrow 0\))

The approach followed here may be as well applied to other interesting problems, not limited to mechanics.