The CG of a Can of Beer

Aside from providing the solution to an amusing puzzle, this page is primarily an exercise in the use of HTML5 MathML for math expressions. MathML is either not supported, or not supported well, by several web browsers, particularly on mobile devices, so on this page, I have supplemented it with MathJax.

It seems to work fairly well on Firefox (native), Safari (using MathJax), Chrome for Android (using MathJax) and Safari for iPhone (native).

I may also use this page as a test case for responsive web design.

Problem statement

When a can of beer is full, the center of gravity is at the center of the can.   As the beer is consumed, the center of gravity moves down.   When the can is finally empty, the center of gravity is back at the center.   At what level of beer in the can does the center of gravity reach its lowest point and start moving up again?

Assumptions

We will assume that the can is a uniform cylinder and that we are only concerned with its center of gravity when it is sitting upright.   We will assume that the gravitational field is constant over the height of the can, so we may consider the center of mass to be equivalent to the center of gravity.

Solution

First, we define the following constants:
2h= the height of the can,
mb= the mass of the beer,
mc= the mass of the can, and
k= mb mc

For our independent variable, we define x, where 0x1, as the proportion of beer remaining in the can.

The dependent variable, y, is the height of the center of mass of the can and the beer together, normalized to the height of the midpoint, h.   The varying physical quantities are:

hx= the height of the center of mass of the beer,
hy= the height of the center of mass of the beer and can together, and
mbx= the mass of the beer remaining in the can.

Figure 1. Center of gravity of a can of beer.
The mass times the distance of the center of mass (from the base of the can, in this case) is sometimes called the "mass moment".   The mass moment of the beer and the can together must be equal to the mass moment of the beer plus the mass moment of the can:
hy mbx + mc = hx mbx + hmc
That is another way of saying that the height of the center of mass of the beer and can together is the mass-weighted average of the height of the center of mass of the beer and the height of the center of mass of the can.

Solving for y,

y mbx + mc = mbx2 + mc

y mb mc x + 1 = mb mc x2 + 1

y k x + 1 = k x2 + 1

y = k x2 + 1 k x + 1

That function tells us how the center of mass moves as the beer is consumed.   The shape of the curve depends on the ratio k of the initial mass of the beer to the mass of the can.

Figure 2. Variation in the height of the center of mass as a function of the proportion of beer remaining, for several values of k.

y reaches a minimum when its derivative goes to zero.   Differentiating,

dy dx = k k x2 + 2x - 1 kx + 1 2

It can be seen that the derivative is zero when kx2 + 2x - 1 = 0 .    The positive solution for that polynomial is the proportion of beer left when the center of mass is at its lowest level.   Using the quadratic formula, we get

x = -2+ 4+4k 2k

which simplifies to

x = k+1 -1 k
and that is the solution to the problem!

For a typical 12-ounce aluminum beer can filled with American light lager (specific gravity very close to 1.000), the mass of the beer is 355 g, and the mass of the can is about 15 g.   In that case, k=355÷1524, so the center of mass is at its lowest when there is one-sixth of the beer remaining in the can:

x = 25 -1 24 = 16

Alternative solution

We can find the minimum without using calculus by making the observation that the center of mass will be going down as long as we are removing beer that is above it and the center of mass will start going up when we begin removing beer below it.   In other words, the center of mass will be at its lowest when it coincides with the surface of the beer.   At that point, hy = 2hx , which can be visualized as the intersection of the two dotted lines in Figure 1.

So, if we substitute 2x  for  y in the mass moment equation,

2x h mbx + mc = xh mbx + mch

and simplify, we get the same polynomial as before, without having to use a derivative:

2x k x + 1 = k x2 + 1

2k x2 + 2x = k x2 + 1

kx2 + 2x - 1 = 0

Now that I have a theoretical solution to this puzzle, I intend to collect some empirical data to see if my theory is supported by evidence.

Cheers!


David Thomas
19 August 2014