You can put this solution on YOUR website! f(x) is a linear function. So it is one-to-one which means it has an inverse. So f^(-1) exists and there are no restrictions on the inverse (because f(x) is one-to-one throughout its domain)
Because there are no restrictions on the inverse at all, we know that f(f^(-1)(x)) = x for all values of x