Proof for Mendelson 2.4.8 - preserving positivity under continuity

2026.06.04 · 3 min · topology

Intro

I recently finished a proof for a problem that I found particularly interesting. The problem itself is about proving that if a continuous function f:RRf: \mathbb{R} \rightarrow \mathbb{R} is positive at some point aa, then there’s a closed interval FF around aa on which ff takes only positive values. In fact, there is a positive constant kk such that every value of ff on FF is at least kk. Or in other words, kk is a positive lower bound for ff on FF.

I like this problem for multiple reasons. First, the result is interesting. Informally, it means that continuity of f:RRf:\mathbb{R} \rightarrow \mathbb{R} implies we can select a neighborhood of aa that preserves a property of f(a)f(a) itself. In this case, that property is positivity. Given the density of real numbers, this result feels intuitive to me, but it’s still nice to see it proven formally.

Additionally, working through the problem was both challenging and fun. It forced me to invoke continuity in a way that was new to me, in that I had to come up with an ϵ\epsilon and a δ\delta! You might say it forced me to use the claw of the hammer. Additionally, my first attempt at the proof—which I will share—was wrong; I chose an ϵ\epsilon that was a little too slippery and ended up importing heavy machinery for a light problem.

Anyway, here’s the problem, formally stated.

The problem

Let R\mathbb{R} be the set of real numbers and f:RRf:\mathbb{R} \rightarrow \mathbb{R} a continuous function. Suppose that for some aRa \in \mathbb{R}, f(a)>0f(a) \gt 0. Prove that there is a positive number kk and a closed interval F=[aδ,a+δ]F = [a - \delta, a + \delta] for some δ>0\delta \gt 0 such that f(x)kf(x) \geq k for xFx \in F.

Proof - attempt 1

Let ϵ=f(a)\epsilon = f(a). Since ff is continuous, we may take δ\delta' such that f(x)f(a)<ϵ|f(x) - f(a)| \lt \epsilon whenever xa<δ|x - a| \lt \delta'. Choose δ=δ2\delta = \frac{\delta'}{2}. Let F=[aδ,a+δ]F = [a - \delta, a + \delta] and k=minf(F)k = \min{f(F)}. Since xaδ<δ|x - a| \leq \delta \lt \delta' for all xFx \in F, we have f(x)f(a)<f(a)|f(x) - f(a)| \lt f(a). Therefore f(x)>0f(x) \gt 0. Since k=minf(F)k = \min{f(F)}, it follows that k>0k \gt 0 and f(x)kf(x) \geq k, as required.

Reflection

The problem with this proof is the choice of kk. It quietly assumes that the image of the closed interval FF contains a minimal value. In other words, it makes use of the Extreme Value Theorem. That’s not material I have covered in Mendelson.

Beyond that, if we’re smarter with our choices of ϵ\epsilon and kk, we can avoid the need for such a heavy tool.

Proof - attempt 2

Let ϵ=f(a)2\epsilon = \frac{f(a)}{2}. Since ff is continuous, we may take δ\delta' such that f(x)f(a)<ϵ|f(x) - f(a)| \lt \epsilon whenever xa<δ|x - a| \lt \delta'. Choose δ=δ2\delta = \frac{\delta'}{2}. Let F=[aδ,a+δ]F = [a - \delta, a + \delta] and k=ϵk = \epsilon. Since xaδ<δ|x - a| \leq \delta \lt \delta' for all xFx \in F, we have f(x)f(a)<f(a)2|f(x) - f(a)| \lt \frac{f(a)}{2}. Hence f(x)>f(a)2=kf(x) \gt \frac{f(a)}{2} = k, as required.

Reflection

We end up proving a stronger statement than what the problem asks for, since we demonstrate f(x)>kf(x) \gt k. And I think that’s a nice takeaway. Prove the stronger statement if it’s easier.

But the real lesson here likely has to do with sharpening my sense for when something is justified. To me, taking k=minf(F)k = \min{f(F)} seemed intuitive. I implicitly reasoned that a continuous function on a closed interval should attain a minimal value on that interval.

The problem is that my intuition was leaning on ideas that I had not yet earned the right to use.

↑ top  ·  home tagged: topology