# A natural function with discontinuities (Part 3)

This post concludes this series about a curious function:

In the previous post, I derived three of the four parts of this function. Today, I’ll consider the last part ($90^\circ \le \theta \le 180^\circ$).

The circle that encloses the grey region must have the points $(R,0)$ and $(R\cos \theta, R \sin \theta)$ on its circumference; the distance between these points will be $2r$, where $r$ is the radius of the enclosing circle. Unlike the case of $\theta < 90^\circ$, we no longer have to worry about the origin, which will be safely inside the enclosing circle.

Furthermore, this line segment will be perpendicular to the angle bisector (the dashed line above), and the center of the enclosing circle must be on the angle bisector. Using trigonometry,

$\sin \displaystyle \frac{\theta}{2} = \frac{r}{R}$,

or

$r = R \sin \displaystyle \frac{\theta}{2}$.

We see from this derivation the unfortunate typo in the above Monthly article.