Consider a smooth function $f : [0, 1] \to \mathbb{R}$. Moreover, consider:
$$g(x) = 1 + \varepsilon f(x),$$
for $x \in [0, 1]$ and some $\varepsilon > 0$.
Which are the conditions on $\varepsilon$ which guarantee that $g(x) > 0$? I guess the answer is something in the form:
$$0 < \varepsilon < M,$$
for some $M > 0$.
My attempt
Let $[0, 1] = I^- \cup I^+$, where:
- $f(x) < 0 ~\forall x \in I^-$;
- $f(x) \geq 0 ~\forall x \in I^+$.
For $x \in I^+$, then $g(x) > 0$.
For $x \in I^-$, since function $f$ is (smooth, then) bounded, then:
$$\exists F > 0 : f(x)> -F ~\forall x \in I^-.$$
Therefore:
$$g(x) = 1 + \varepsilon f(x) > 1 - \varepsilon F ~\forall x \in I^-.$$
If $\varepsilon < \frac{1}{F}$, then:
$$1 - \varepsilon F > 0,$$
and hence
$$g(x) > 0 ~\forall x \in [0, 1].$$
Questions
Is there some easies way to achieve this kind of results?
Is there any better upper bound for $\varepsilon$?
It's easier than you think. You just need that your function is continuous. Indeed, since $f$ is continuous, for the extreme value theorem $f$ must attain a maximum $M$ and a minimum $m$.
Then (SPOILER)