I have to do the following exercise:

Let $f$ and $g$ two differentiable functions such that $f(0)=g(0)$ and $f'(x)\leq g'(x)$ for all $x$ in $\mathbb{R}$. Prove that $f(x)\leq g(x)$ for any $x\geq0$.

Now, I know this is true because the first derivative of a function is the angular coefficient of the function in a point $x$. So, $f'(x)\leq g'(x)$ means, in other words, that the function $g(x)$ grows faster than $f(x)$. I think this is the base for a more formal proof, could someone help me to figure out a more formal proof?

  • $\begingroup$ Hint: Fundamental Theorem of Calculus. $\endgroup$ Commented Jun 4, 2017 at 16:30
  • $\begingroup$ This hint is misleading, as noted by Robert Lewis at the end of his answer. $\endgroup$ Commented Apr 5, 2023 at 9:05

2 Answers 2


Hint: consider the function $h(x) := g(x) - f(x)$, so that $h(0) = 0$ and $h'(x) \geq 0$ for every $x\geq 0$.

Now, for a fixed $x> 0$, it is enough to apply the mean value theorem to $h$ in the interval $[0, x]$.

  • $\begingroup$ (+1) but note that we do not need $h'(0)$ to be $\ge0.$ The MVT does not even require $h'(0)$ to exist. $\endgroup$ Commented Apr 5, 2023 at 9:07

For $x \ge 0$, we have

$f(x) = f(0) + \displaystyle \int_0^x f'(s) ds = g(0) + \displaystyle \int_0^x f'(s) ds, \tag{1}$

since $f(0) = g(0)$; and since $f'(x) \le g'(x)$, we have

$\displaystyle \int_0^x f'(s) ds \le \displaystyle \int_0^x g'(s) ds; \tag{2}$


$f(x) = g(0) + \displaystyle \int_0^x f'(s) ds \le g(0) + \displaystyle \int_0^x g'(s) ds = g(x). \tag{3}$

NB: Note added in edit: I think it is only fair to admit this is sort of a "low-tech" argument, since it does in fact assume $f, g \in C^1$. Something suitable for first-year calculus. Rigel's answer above seems to indicate a more sophisticated view of the matter.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .