The given functions are

First we find fog(x)= f(g(x))
So we need to substitute the value of g(x) for x in f(x), that is


Now we need to check the value of gof(x)
gof(x) = g(f(x))
So we need to substitute the value of f(x) in g(x), that is


And since

So the functions are inverse of each other .
Correct option is C .