x-y=2 write using function notation
First, sove the equation for y:
x - y = 2
-y = -x + 2
y = x - 2
Then, replace 'y' with 'f(x)':
f(x) = x - 2