<s>[INST] Finding largest delta value given epsilon for delta-epsilon limit The formal definition of the limit is that $\lim_{x\to c} f(x)=L$ if and only if for any $\varepsilon >0$ there exists a $\delta >0$ such that $|x-c| <\delta \rightarrow |f(x)-L| < \varepsilon$. Use this definition for $\lim_{x \to 5} (x^2 -15x+50)$ to find the largest value for delta that satisfies epsilon equal to one.
Source: FAMAT State Convention 2019, Limits&Derivatives #29
Attempted solution: I set $|x^2-15x+50 - 0| < 1$ and solved for $x$, obtaining the following inequalities: $\frac{15-\sqrt{29}}{2} < x < \frac{15+\sqrt{29}}{2}$ and $x<\frac{15-\sqrt{21}}{2} $ or $ x > \frac{15+\sqrt{21}}{2}$
Next, I tried getting this in the form  $|x-c| <\delta$ by changing each inequality as follows:
$\frac{5-\sqrt{29}}{2} < x-5 < \frac{5+\sqrt{29}}{2}$ and $x-5<\frac{5-\sqrt{21}}{2} $ or $ x-5 > \frac{5+\sqrt{21}}{2}$
I don't know how to translate this result to $\delta$ because it does not follow a neat $-\delta<x-c<\delta \rightarrow |x-c| <\delta$
Answer provided by the competition:

 $\frac{5-\sqrt{21}}{2}$

Edit: See comment to where I'm currently at
 [/INST] I don't agree with the provided answer:
$|(x^2-15x+50) - 0| < 1$ is satisfied on two intervals: $(\frac{5-\sqrt{29}}{2}, \frac{5-\sqrt{21}}{2})$ and $(\frac{5+\sqrt{21}}{2}, \frac{5+\sqrt{29}}{2})$. Only the second interval contains $5.$ Now, $|\frac{5+\sqrt{21}}{2} - 5| = |\frac{-5+\sqrt{21}}{2}| = \frac{5-\sqrt{21}}{2} \approx 0.2087$ and $|\frac{5+\sqrt{29}}{2} - 5| = |\frac{-5+\sqrt{29}}{2}| = \frac{\sqrt{29}-5}{2} \approx 0.1926.$ We need to take the least of these as our largest possible $\delta,$ i.e. $\frac{\sqrt{29}-5}{2}.$
</s>