You can prove that their derivatives are the same.

However, that doesn't mean that the functions are the same, just that the functions differ by a constant. However, you could look at as , thus eliminating the problem of differing by a constant.

Hope this helps.