find an equation of the linear function f using the given information. please show all steps and work

f(-1)=1, f(1)=-2

Your data tells me you were given the two points

(-1,1) and (1,-2)

find the slope of the line, then use whatever method you learned to find the equation.