How do you graph #y-5x=-2# using a table of values?

1 Answer
Dec 26, 2015

For several arbitrary values of #x# generate corresponding values of #y#.
For each such pair, plot the corresponding point on the Cartesian plane.
Draw a line through the points you have plotted.

Explanation:

To simplify generation of data points, I would suggest rewriting the equation as:
#color(white)("XXX")y=5x-2#
then generate values of #y# for #x in {0, 1, 2, 3}#

#{: (color(black)(x),,color(black)(y)), (0,,-2), (1,,+3), (2,,+8), (3,,+13) :}#

Plotting the points:
graph{(x^2+(y+2)^2-0.05)((x-1)^2+(y-3)^2-0.05)((x-2)^2+(y-8)^2-0.05)((x-3)^2+(y-13)^2-0.05)=0 [-13.12, 18.93, -2.66, 13.37]}

Draw the line
graph{(x^2+(y+2)^2-0.05)((x-1)^2+(y-3)^2-0.05)((x-2)^2+(y-8)^2-0.05)((x-3)^2+(y-13)^2-0.05)(y-5x+2)=0 [-13.12, 18.93, -2.66, 13.37]}