43.0k views
0 votes
Write a linear function f with the given values

x 1 0 -1
f(x) -1 1 3

1 Answer

5 votes

Answer:

f(x) = -2x + 1

Explanation:

The formula for a linear function is f(x) = mx + b, where m is the slope of the line, and b is the y-intercept.

The x values are 1, 0, and -1.

The f(x) values are -1, 1, and 3.

Let's first find the slope of this function, by choosing two random points and using the formula (y2-y1)/(x2-x1).

Use x1 = 1 and x2 = 0, and y1 = -1 and y2 = 1.

(1 - (-1))/(0-1) = -2

So, the slope is -2. Now, we need to find the y-intercept, which is the value of y when x = 0. Using the given values, when x = 0, y = 1, so the y-intercept is 1.

Combining these into the formula of a linear function, you get:

f(x) = -2x + 1

User AMIC MING
by
6.8k points