Problem statement: Given a glass of water with some volume of water in it, what is the maximum angle that we can tilt it so that it doesn't spill out?
We solve a similar problem: Given a full glass of water, if we hold it at an angle theta, how much liquid is left?
Given this, we can then interpolate an answer for the first problem.
Assume that a glass has radius 1 and height
Model this as a cylinder:
Let the tilt be a plane, e.g.
To find the volume of water left, we need to find the
This is solved as
The volume of air is thus total volume - volume under slope - volume under flat base.
Total volume:
Volume under slope:
Volume under flat base:
Which if we let
Volume under slope:
Volume under flat base:
A closed formula is thus
We evaluate these for cylinders of height 1 to 10, for 1 to 89 degrees of the base from the horizontal: