For this case the transformation of f (x) is given by
g (x) = 2 ^ (x + 2)
To prove it, we must verify that equality is met by replacing the ordered pairs shown in the function g (x)
For (-2,1)
g (-2) = 2 ^ ( -2 + 2)
g(-2)=1
For (-1,2)
g (-1) = 2 ^ ( -1+ 2)
g(-1)=2
For (0,4)
g (0) = 2 ^ ( 0+ 2)
g(0)=4
answer
g (x) = 2 ^ (x + 2)