Two functions f and g are inverse functions if fog(x) = x and gof (x) = x for all values of x in the domain of f and g. For instance, f (x) = 2x and g(x) = x are inverse functions because fog(x) = f (g(x)) = f ( x) = 2( x) = x and gof (x) = g(f (x)) = g(2x) = (2x) = x.