How to check a functional equation correctness

This should probably do what you want: Function Transformations in af(k(x-c))+d Form | Component Based Approach