# How do you graph y-x=0?

Jan 17, 2017

see explanation.

#### Explanation:

The equation $y - x = 0$ may be written as follows.

add x to both sides of the equation.

$y \cancel{- x} \cancel{+ x} = 0 + x$

$\Rightarrow y = x \text{ is the equation}$

This tells us that the x and y coordinates are equal.

To graph, choose values of x

$x = - 2 \to y = - 2 \Rightarrow \left(- 2 , - 2\right) \text{ is a point on graph}$

$x = 0 \to y = 0 \Rightarrow \left(0 , 0\right) \text{ is a point on graph}$

$x = 3 \to y = 3 \Rightarrow \left(3 , 3\right) \text{ is also a point on graph}$

Plot these 3 coordinate points and draw a straight line through them. Thus you have the graph of y - x = 0
graph{x [-10, 10, -5, 5]}