# How do you graph the equation y=x?

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 = m x + b$, with $m = 1 , b = 0$:

$y = 1 x + 0$

This gives us the y-intercept of 0 (and so we have the point $\left(0 , 0\right)$) and slope of 1 - which means that for every point we move to the right, we move 1 up $\left(\text{slope" ="rise"/"run} = \frac{{y}_{2} - {y}_{1}}{{x}_{2} - {x}_{1}}\right)$.

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 $\left(0 , 0\right) , \left(2 , 2\right) , \left(- 3 , - 3\right)$ and so forth.

In the end, it looks like this:

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