We are given the formula y=x. The easiest way to graph the equation of a line is simply by giving some values of x and the joining all the points. Consider the following
X Y
-2 -2
-1 -1
0 0
1 1
2 2
3 3
If we graph this points and the join them with a line, we get