Write a linear function f with f(2)=-2 and f(1)=1