# How do you graph the function #y=-x+6#?

##### 2 Answers

See a solution process below:

#### Explanation:

First, solve for two points which solve the equation and plot these points:

**First Point:** For

**Second Point:** For

We can next plot the two points on the coordinate plane:

graph{((x-6)^2+y^2-0.035)((x-4)^2+(y-2)^2-0.035)=0 [-10, 10, -5, 5]}

Now, we can draw a straight line through the two points to graph the line:

graph{(y+x-6)((x-6)^2+y^2-0.035)((x-4)^2+(y-2)^2-0.035)=0 [-10, 10, -5, 5]}

#### Explanation:

#"one way is to find the intercepts, that is where the graph"#

#"crosses the x and y axes"#

#• " let x = 0, in the equation for y-intercept"#

#• " let y = 0, in the equation for x-intercept"#

#x=0rArry=6larrcolor(red)"y-intercept"#

#y=0rArr-x+6=0rArrx=6larrcolor(red)"x-intercept"#

#"plot the points "(0,6)" and "(6,0)#

#"draw a straight line through them for graph"#

graph{(y+x-6)((x-0)^2+(y-6)^2-0.04)((x-6)^2+(y-0)^2-0.04)=0 [-15.79, 15.81, -7.9, 7.9]}