I found online that by using the definition of angular diameter, the formula for the solid angle of a celestial object can be defined in terms of the radius of the object, $R$, and the distance from the observer to the object, $D$: $$\Omega = 2 \pi \left( 1-\frac{\sqrt{D^2-R^2}}{D} \right) : D \geq R $$
I know the definition of angular diameter, d, is:
$$d\equiv 2D \tan{\left(\frac{\delta}{2}\right)} $$ where $\delta$ is the angular diameter, $d$ is the physical diameter and $D$ is the distance from the observer to the object.
I also know that the definition of a solid angle (steradian) is
$$\Omega = \frac{A}{r^2} $$ where $A$ is the area of the spherical cap.
I'm unsure of how to use the last two equations to get to the first one. I have been unable to find a derivation for the first expression.