Derivative is Zero Implies Constant Function

See Mean Value Theorem (MVT), which gives the following results:

Corollary

If g:IR is differentiable on an interval I and satisfies g(x)=0 for all xI then g(x)=k for some constant kR.

Proof

Take x,yI and suppose x<y. Apply the Mean Value Theorem (MVT) to g on the interval [x,y] to get that:

g(c)=g(y)g(x)yx=0

Thus g(y)=g(x), but since x,y were arbitrary then set k=g(x)=g(y)=, then it follows that g(x)=k for all xI.

Corollary

If f,g are differentiable on an interval I and satisfy f(x)=g(x) for all xI then f(x)=g(x)+k for some constant kR.

Proof

Let h(x)=f(x)g(x) and apply the previous corollary to the differentiable function h.