SOLUTION: I am having trouble solving the relationship between x and f(x) for the following input output -1 3 0 2 1 1

Algebra ->  Graphs -> SOLUTION: I am having trouble solving the relationship between x and f(x) for the following input output -1 3 0 2 1 1      Log On


   



Question 694619: I am having trouble solving the relationship between x and f(x) for the following
input output
-1 3
0 2
1 1

Answer by MathLover1(20850) About Me  (Show Source):
You can put this solution on YOUR website!
the relationship between x and f%28x%29 for the following
f%28x%29=ax%2Bb or y=ax%2Bb
given:
input output
x...........f%28x%29 or y
-1 +3
0 2
1 1
so, you are given three points which you can plot on a Cartesian coordinate system and graph a line that contains these points
(x,y)= (-1,3)
(x,y)= (0,2)...this is y-intercept
(x,y)= (1,1)
now we can find the equation of a line passing through these points
Solved by pluggable solver: FIND EQUATION of straight line given 2 points
hahaWe are trying to find equation of form y=ax+b, where a is slope, and b is intercept, which passes through points (x1, y1) = (1, 1) and (x2, y2) = (0, 2).
Slope a is a+=+%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29+=+%282-1%29%2F%280-1%29+=+-1.
Intercept is found from equation a%2Ax%5B1%5D%2Bb+=+y%5B1%5D, or -1%2A1+%2Bb+=+2. From that,
intercept b is b=y%5B1%5D-a%2Ax%5B1%5D, or b=1--1%2A1+=+2.

y=(-1)x + (2)

Your graph:




so,the equation of a line passing through these points is y=-x%2B2 where a=-1 and b=2
now we can check if all three given points lie on this line


as you can see, all three given points do lie on this line