Consider an ellipse with semi-axes $a$ and $b$, taller than it is wide with a small circle of radius $r$ inside. Assume the circle falls to the lowest point possible while staying inside the ellipse.
If $2r\le a-c$ then the circle and ellipse will meet at a single point at the bottom. If $2r>a-c$ the circle and ellipse will intersect at two points on the opposite side, leaving a space between the bottom of the circle and the bottom of the ellipse. For this case, given the radius of the circle and the dimensions of the ellipse how do I calculate the distance $d$ between the bottom of the circle and the bottom of the ellipse?


By the Law of Sines, we have that $$ \frac{|CF_1|}{|PF_1|}=\frac{\sin(\alpha)}{\sin(\theta)}=\frac{\sin(\alpha)}{\sin(\pi-\theta)}=\frac{|CF_2|}{|PF_2|}\tag{1} $$ and by the defining property of an ellipse, $$ \frac{|CF_1|+|CF_2|}{|PF_1|+|PF_2|}=e=\frac{\sqrt{a^2-b^2}}{a}\tag{2} $$ Thus, $(1)$ and $(2)$ imply $$ \frac{|CF_1|}{|PF_1|}=\frac{|CF_2|}{|PF_2|}=e\tag{3} $$ The Law of Cosines says that $$ |PC|^2+|PF_1|^2-2|PC||PF_1|\cos(\alpha)=e^2|PF_1|^2\tag{4} $$ and $$ |PC|^2+|PF_2|^2-2|PC||PF_2|\cos(\alpha)=e^2|PF_2|^2\tag{5} $$ Therefore, since $|PF_1|+|PF_2|=2a$, subtracting $(5)$ from $(4)$ and dividing by $|PF_1|-|PF_2|$ yields $$ \frac{b^2}a=a\left(1-e^2\right)=|PC|\cos(\alpha)\tag{6} $$ Plugging $(6)$ into $(4)$ and solving for $|PF_1|$ gives $$ |PF_1|=a\left(1-\sqrt{1-\frac{|PC|^2}{b^2}}\right)\tag{7} $$ and therefore, $$ |CF_1|=\sqrt{a^2-b^2}\left(1-\sqrt{1-\frac{|PC|^2}{b^2}}\right)\tag{8} $$ Letting $r=|PC|$, the distance from the right end of the circle to the right end of the ellipse is $|CF_1|+a-\sqrt{a^2-b^2}-r$, that is $$ \bbox[5px,border:2px solid #C0A000]{d=a-r-\sqrt{a^2-b^2}\sqrt{1-\frac{r^2}{b^2}}}\tag{9} $$ for $\frac{b^2}a\le r\le b$ and $d=0$ for $r\le\frac{b^2}a$.