Draw the graphof leniar equation x+y=4?

2 Answers
Jun 21, 2018

graph{x+y=4 [-22.8, 22.81, -11.4, 11.42]}

Explanation:

x+y=4x+y=4
now to find the points where it intersects put
x=0 in the equation to get y=4 ......hence we got our first point(0,4)
again put y=0 to get x=4...............hence we got our second point(4,0)
join both the lines and extend bothways to get the graph

Jun 21, 2018

See below

Explanation:

You can rewrite the equation as y=-x+4y=x+4, i.e. y=p(x)y=p(x), with p(x)p(x) being a polynomial of degree 11. Every polynomial of degree 11 represents a line.

To draw a line, you only need to sample two points, and to sample two points you choose two values for xx and compute the corresponding yy values. Let's choose x=0x=0 and x=1x=1, we get

y = -0+4=4y=0+4=4
y = -1+4 = 3y=1+4=3

So, this line passes through the points (0,4)(0,4) and (1,3)(1,3).

Draw these two points and connect them, and you have the line.

graph{-x+4}