Do inequalities hold under differentiation?

Consider $x^2\leq x $ in $[0,1]$. Does that imply that $2x\leq 1$ for all x in $[0,1] $? ( A counterexample ).

Note you can never differentiate with an inequality. Instead, the general idea for checking inequalities with differentiation is that we take $h (x)=f (x)-g (x) $ and then try the derivative test to see whether function is increasing or decreasing. That way, if the inequality $h(a) \geq 0$ holds at a particular point a, we can prove it holds for all $x \geq a$ if $h$ is increasing and for all $x \leq a$ if $h$ is decreasing.


Your question is equivalent to is a function which attains only non-positive values necessarily non-increasing? So, the answer is no because there exist increasing functions whose graphs are under the $x$-axis:

enter image description here

(As a general remark, the rates of change of a function has "nothing" to do with the image of the function in the sense that: (i) given a set $X$, we can find functions having $X$ as image and different rates of change; (ii) given a function, there are other functions having the same rates of change and different images.)

Details: As differentiation is linear, the question

Does $f\leq g$ imply $f'\leq g'$?

is the same as

Does $h\leq 0$ imply $h'\leq 0$?

which can be rewritten as

Is a function which attains only non-positive values necessarily non-increasing?

From this point of view, the answer becomes clear: No because there are (a lot of) increasing functions whose graphs are under the $x$-axis (take any bounded increasing function and apply a translation). Probably, the simplest example is a line segment (see picture above).


Take two functions whose derivative have whatever inequality you wish (ie., $f^\prime > g^\prime$ or vice versa). Then just add or subtract a constant to one of the functions to make it larger or smaller than the other.

In short, you can very easily create pairs of functions whose values obey one inequality relation and their derivatives hold another. Or the same.