"Mathematicians are machines for turning coffee into theorems".
-Paul Erdòs
I'm pretty sure almost everyone reading this has drunk a cup of coffee before. If you get coffee from Starbucks or Dunkin' Donuts, it comes in a brown cylindrical frustum cup full of the delicious good stuff to keep you up as you work on typing the answer to that one Calculus problem that has stumped everyone else. A few days ago I was cleaning up after I spilled a cup of Joe and wondered, 'is there a formula to the limit of tipping a coffee (or otherwise frustum shaped) cup?' It seems likely, since there is a formula for doing the same thing with a cylinder.
(For those of you who are confused, a frustum is a cylinder that has one of its circles larger than the other, and all parallel cross sections line up on a line perpendicular to the base) I may not be experienced with Calculus, but I do know all the Trigonometry stuff, and using it and simple math, I deduced that if a=radius of cylindrical cup, and $h_1$=height of the cup, and $h_2$=height of liquid, then the maximum angle you can tip the cup, assuming $0$ surface friction, is $$\sin^{-1} \frac{\sqrt{a+(h_1-h_2)}} {2(h_1-h_2)} $$ I think, anyway. But frustums are much harder. Considering all the variables are the same, and $a_1$ is the radius of the top of the frustum and $a_2$ is the smaller base, the one issue I have is, should I calculate the radius $a_3$ which would be the average, or the average radius of the area directly between $h_1$ or $h_2$. I've tried a lot over the last few days, and they are all flawed.
So, just to recap, if the top and bottom of the frustum cup are $a_1$ and $a_2$ respectively, $h_1$ is the height of the cup, and $h_2$ is the height of the liquid in the cup, then what is the formula for how much you can tilt it before the coffee spills out? Or am I providing insufficient information? Thanks in advance.

