*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.

*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.*

$2h=$ | the height of the can, |

${m}_{b}=$ | the mass of the beer, |

${m}_{c}=$ | the mass of the can, and |

$k=$ | $\frac{{m}_{b}}{{m}_{c}}$ |

For our independent variable, we define $x$, where $0\le x\le 1$, 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 |

${m}_{b}x=$ | the mass of the beer remaining in the can. |

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:
*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.

$$hy\left({m}_{b}x+{m}_{c}\right)=hx{m}_{b}x+h{m}_{c}$$

That is another way of saying that the height of the center of mass of the beer and can together
is the
Solving for *y*,

$$y\left({m}_{b}x+{m}_{c}\right)={m}_{b}{x}^{2}+{m}_{c}$$

$$y\left(\frac{{m}_{b}}{{m}_{c}}x+1\right)=\frac{{m}_{b}}{{m}_{c}}{x}^{2}+1$$

$$y\left(kx+1\right)=k{x}^{2}+1$$

$$y=\frac{k{x}^{2}+1}{kx+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.

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

$$\frac{dy}{dx}=\frac{k\left(k{x}^{2}+2x-1\right)}{{\left(kx+1\right)}^{2}}$$

It can be seen that the derivative is zero when $k{x}^{2}+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=\frac{-2+\sqrt{4+4k}}{2k}$$

which simplifies to

$$x=\frac{\sqrt{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\xf715\approx 24$, so the center of mass is at its lowest when there is one-sixth of the beer remaining in the can:

$$x=\frac{\sqrt{25}-1}{24}=\frac{1}{6}$$

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\text{for}y$ in the mass moment equation,

$$2xh\left({m}_{b}x+{m}_{c}\right)=xh{m}_{b}x+{m}_{c}h$$

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

$$2x\left(kx+1\right)=k{x}^{2}+1$$

$$2k{x}^{2}+2x=k{x}^{2}+1$$

$$k{x}^{2}+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