# How do you graph the line y=-x+2?

Mar 7, 2016

I decided that the best way to do this is by using pictures with a bit of explanation

#### Explanation:

The equation $y = x$ is saying: whatever value you decide to give to $x$ will also end up being the same value for $y$

Notice that the graph goes upwards as you move from left to right
This is called a positive slope (gradient)
If it had been $y = - x$ then the slope would go down as you move from left to right.

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is what happens when the $x$ in the equation is written as $- x$

Negative values of $x$ are made positive: Example $y = \left(- 1\right) \times \left(- 2\right) = + 2$

Positive values of $x$ are made negative: Example $y = \left(- 1\right) \times \left(2\right) = - 2$

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The equation $y = - x + 2$ is virtually the same as $y = - x$ but the whole thing is lifted up 2