How to do you graph x+y=2 by plotting points?

1 Answer

This x+y=2 is a linear equation. We only need two points to draw a line. Therefore, set x=0 then solve for y afterwards do the other way around. set y=0 then solve for x.Connect the points.

Explanation:

This is how to do it. From x+y=2

Set x=0
x+y=2
0+y=2
y=2

this means we have a point at (x,y)=(0,2)

Now, let us do the other way around

From x+y=2

set y=0

x+y=2
x+0=2

x=2

this means we have another point at (x,y)=(2,0)

We now have two distinct points (0,2) and (2,0). We connect these two points using a straight line to draw the graph of x+y=2

graph{y=-1x-2[-5,5,-2.5,2.5]}

God bless ....I hope the explanation is useful.