How to find the difference of a function?​