[Math] finding upper bound for delta epsilon definition of limit proof

calculus

So I've asked this same question in the past but I'm still troubled with this problem. They have simply asked for a proof of this limit using the delta epsilon definition of limit. I have a proof which I can follow but the thing which I can't quite get is how they choose $\delta=\min\left(\dfrac{1}{2\pi},\dfrac{\epsilon}{2\pi^3}\right)$. I'm hoping that someone can explain the process behind finding these $\delta$

The limit is $$ \lim_{x\to \dfrac{1}{\pi}} \dfrac{\pi}{x}=\pi^2$$

Best Answer

If $x \neq 0$, then $$ \left|\frac{\pi}{x} - \pi^{2}\right| = \pi \left| \frac{1}{x} - \pi\right| = \pi^{2}\left|\frac{x - \frac{1}{\pi}}{x}\right|. $$ If, in addition, we have $\left|x - \frac{1}{\pi}\right| < \frac{1}{2\pi}$ (this is to bound away the annoying denominator by preliminarily bounding $\left|x-\frac{1}{\pi}\right|$), then $\frac{1}{2\pi} < x < \frac{3}{2\pi}$, and hence $$ \pi^{2}\left| \frac{x - \frac{1}{\pi}}{x}\right| < \pi^{2}\cdot 2\pi \left|x - \frac{1}{\pi}\right| = 2\pi^{3}\left|x - \frac{1}{\pi}\right|. $$ Given any $\varepsilon > 0$, we have $2\pi^{3}\left|x - \frac{1}{\pi}\right| < \varepsilon$ if further we have $|x - \frac{1}{\pi}| < \varepsilon/2\pi^{3}$. To make all the above "if"'s happen simultaneously, it suffices to take $\delta := \min \left\{ \frac{1}{2\pi}, \varepsilon/2\pi^{3} \right\}$.