f(x) = x - 1
g(x) = 2x
To compute g(f(x)), replace every instance of x in the definition of g(x) with f(x). This would given you
g(f(x)) = g (x - 1) = 2 (x - 1) = 2x - 2
8.3m questions
10.9m answers