Work So Far: I know the general definition of $\varepsilon-\delta$ continuity at a point $x_0$: $\forall \varepsilon > 0$ $\exists \delta > 0$ such that
$$|x-x_0| < \delta \implies |f(x)-f(x_0)| < \varepsilon$$
Of course, as usual, it is best to begin by setting out to find the necessary $\delta$. The starting point for my problem is thus
$$|x-1| < \delta \implies \left| \frac{1}{x+2} - \frac 1 3 \right| < \varepsilon$$
Through successive manipulations, we see that
\begin{align*} \left| \frac{1}{x+2} - \frac 1 3 \right| &= \left| \frac{3}{3(x+2)} - \frac{x+2}{3(x+2)} \right| \\ &= \left| \frac{3-(x+2)}{3(x+2)} \right| \\ &= \left| \frac{-x+1}{3(x+2)} \right| \\ &= \frac{|x-1|}{3|x+2|} \\ &< \varepsilon \end{align*}
Clearly the assumption $|x-1| < \delta$ is meant to be used here; however, $\delta$ shouldn't be a function of $x$, so I need to do something with the $|x+2|$ in the denominator...
The Question: How do I proceed from here? (Preferably using different functions as examples because this is a homework problem and I want to ultimately do it myself.)
From what I understand, I imagine this is a case where $\delta$ should be chosen to be the minimum of a pair of values, one (usually) a constant, and the other to be a multiple of $\varepsilon$.
However when I've seen such problems in the past - e.g. as examples in texts, or as MSE posts when searching for an answer to this - what to use for $\delta$ has often felt like it's just been "pulled out of thin air," so to speak. A thorough explanation as to how one derives those values (again, in particular alongside examples) would be greatly appreciated, because this is something that's been bugging me for a long time and I've never had a proper answer.
And thanks for the insights you can offer!
$$\delta := \min(\delta_1,\delta_2)$$
or whatever, but I suppose that can be shelved for a while since this other post did help somewhat there.
– PrincessEev Sep 27 '20 at 00:46$$\delta := \min \left( 6 \varepsilon, 1 \right)$$
or am I getting something confused?
– PrincessEev Sep 27 '20 at 00:59