Final answer:
To write a linear function given two points, we can use the point-slope form of a linear function. By finding the slope and plugging in a point, we can determine the equation of the linear function.
Step-by-step explanation:
To write a linear function, we need to find the slope and y-intercept. Given f(2)=-2 and f(1) = 1, we can determine the slope by using the formula (y2-y1)/(x2-x1). Thus, the slope is (-2-1)/(2-1) = -3.
Using the point-slope form of a linear function, we have the equation f(x) - y = m(x - x1), where m is the slope (in this case, -3) and (x1, y1) is one of the given points.
Substituting in the values for f(2) = -2 and x1 = 2, we get -2 - y = -3(x - 2). Simplifying, we have -2 - y = -3x + 6. Rearranging the terms, the linear function is f(x) = -3x + 4.
Learn more about Writing a linear function