How do you graph the equation y=x?

1 Answer

See below for a couple of suggestions:

Explanation:

We can do this a couple of different ways.

Slope intercept form

We can rewrite #y=x# into the general form of a slope-intercept equation #y=mx+b#, with #m=1, b=0#:

#y=1x+0#

This gives us the y-intercept of 0 (and so we have the point #(0,0)#) and slope of 1 - which means that for every point we move to the right, we move 1 up #("slope" ="rise"/"run"=(y_2-y_1)/(x_2-x_1))#.

Point plot

We can also see that for every value we choose of #x#, we will get the exact same value for #y# and can therefore plot points such as #(0,0), (2,2), (-3, -3)# and so forth.

In the end, it looks like this:

graph{x [-10, 10, -5, 5]}