Solveeit Logo

Question

Question: How do you graph the line \[x + 2y = 4\]?...

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

Explanation

Solution

Here, we will substitute different values of xx and yy in the given equation to get corresponding values of yy and xx. From this we will get coordinate points and using these points we will draw a graph.

Complete step by step solution:
The given equation is x+2y=4x + 2y = 4. We observe from this equation that the powers of xx and yy are both one. So, the given equation is a linear equation.
The graph of a linear equation is always a straight line. Let us draw the graph as follows:
Let us find two points lying on the graph of the given linear equation. The two points to be found are those that satisfy the linear equation.
Let us substitute x=0x = 0 in the given equation and find the value of yy.
(0)+2y=4 2y=4\begin{array}{l}\left( 0 \right) + 2y = 4\\\ \Rightarrow 2y = 4\end{array}
Dividing both sides by 2, we get
y=2\Rightarrow y = 2
We see that when x=0x = 0, we get y=2y = 2. So, one of the points is A(0,2)A(0,2).
To find another point, put y=0y = 0.
x+2(0)=4x + 2\left( 0 \right) = 4
x=4\Rightarrow x = 4
In this case, we get x=4x = 4. So, the second point is B(4,0)B(4,0).
Using these points, we will draw the graph of x+2y=4x + 2y = 4.
The point A(0,2)A(0,2) will lie on the yy-axis, since the xx - coordinate is zero. The point B(4,0)B(4,0) will lie on the xx - axis since the yy- coordinate is zero.
Therefore, we get the graph as follows:

Note:
Another method to draw the graph is by slope-intercept form. We shall compare the given linear equation to the slope-intercept form of a linear equation which is y=mx+cy = mx + c, where mmis the slope of the line and ccis the yy - intercept, i.e., the point where the graph cuts the yy - axis.
Let us rewrite the equation x+2y=4x + 2y = 4 as y=2x2y = 2 - \dfrac{x}{2}.
Comparing the equation y=2x2y = 2 - \dfrac{x}{2} with y=mx+cy = mx + c, we get
m=12m = - \dfrac{1}{2} and c=2c = 2.
Here the slope is 12 - \dfrac{1}{2} and the yy - intercept is 22. So, one of the points is A(0,2)A(0,2).
First, we have to mark the yy - intercept. Since, the yy - intercept is positive, i.e., 22, it will lie on the +y + y axis. Now, the slope is 12 - \dfrac{1}{2} .
Here the numerator 1 - 1 means we have to go 1 unit down the point 22 and the denominator 2 means we have to go right by 2 units. So, the point we reach is (2,1)(2,1) which satisfies the equation x+2y=4x + 2y = 4. So, the second point is B(4,0)B(4,0).
Therefore, we get the graph as follows: