SOLUTION: Could you please help me with the following problem: The following data was obtained for two variables x and y. x 2 4 -2 3 6 y 5 0 15 2.5 -5 Write an equation expres

Algebra ->  Functions -> SOLUTION: Could you please help me with the following problem: The following data was obtained for two variables x and y. x 2 4 -2 3 6 y 5 0 15 2.5 -5 Write an equation expres      Log On


   



Question 665864: Could you please help me with the following problem:
The following data was obtained for two variables x and y.
x 2 4 -2 3 6
y 5 0 15 2.5 -5
Write an equation expressing the relationship of x and y.

Answer by MathLover1(20850) About Me  (Show Source):
You can put this solution on YOUR website!
x 2 4 -2 3 6
y 5 0 15 2.5 -5

take two points and find equation of the line passing through these points
(2,5) and (4,0)
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) = (2, 5) and (x2, y2) = (4, 0).
Slope a is a+=+%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29+=+%280-5%29%2F%284-2%29+=+-2.5.
Intercept is found from equation a%2Ax%5B1%5D%2Bb+=+y%5B1%5D, or -2.5%2A2+%2Bb+=+10. From that,
intercept b is b=y%5B1%5D-a%2Ax%5B1%5D, or b=5--2.5%2A2+=+10.

y=(-2.5)x + (10)

Your graph:




y=-2.5x+%2B+10
now take other two points
(-2,15) and (3,2.5)
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) = (-2, 15) and (x2, y2) = (3, 2.5).
Slope a is a+=+%28y%5B2%5D-y%5B1%5D%29%2F%28x%5B2%5D-x%5B1%5D%29+=+%282.5-15%29%2F%283--2%29+=+-2.5.
Intercept is found from equation a%2Ax%5B1%5D%2Bb+=+y%5B1%5D, or -2.5%2A-2+%2Bb+=+10. From that,
intercept b is b=y%5B1%5D-a%2Ax%5B1%5D, or b=15--2.5%2A-2+=+10.

y=(-2.5)x + (10)

Your graph:




y=-2.5x+%2B+10..same equation
now check if all points lie on same line:


since all points lie on same line, equation y=-2.5x+%2B+10 is an equation that expressing the relationship of x and y from your table