- Practice
- About 17 min
- 5 practice questions
Graph of a linear equation in two variables
Draw the graph of a linear equation such as ax + by + c = 0 by making a table of ordered pairs, plotting them and joining them with a line, and read where the line crosses the axes.
If something looks wrong, please tell us.
By the end of this lesson you can
- Rewrite a linear equation to make y the subject.
- Make a table of values and the matching ordered pairs.
- Plot the points, check they are collinear and draw the line.
- Read the points where the graph cuts the axes and check whether a point lies on it.
In Mathematics Part I you meet linear equations in two variables, such as 2x − y + 3 = 0. Each solution (x, y) is a point of the plane. When all the solution points are plotted, they lie on one straight line, called the graph of the equation.
Method
- Write the equation with y as the subject, if possible.
- Choose some convenient values of x (small integers, including 0) and find the matching values of y.
- Write the results as ordered pairs (x, y) in a table.
- Plot the points on graph paper and check that they are collinear.
- Draw the line through them and extend it across the graph. Label it with its equation.
From equation to graph
- Make y the subject For example y = 2x + 3.
- Table of values Pick x, compute y.
- Plot the ordered pairs At least three points.
- Check collinearity A point off the line means an arithmetic slip.
- Draw and label the line This line is the graph.
Two points are enough to fix a line, but plotting three is wise: if the third point is not on the line through the other two, you have made a mistake.
Worked example 1: graph of 2x − y + 3 = 0
Rewrite as y = 2x + 3. Choose x = −2, −1, 0, 1, 2.
| x | −2 | −1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| y = 2x + 3 | −1 | 1 | 3 | 5 | 7 |
| (x, y) | (−2, −1) | (−1, 1) | (0, 3) | (1, 5) | (2, 7) |
Plot these points: they lie on one straight line. Draw it. The line cuts the Y-axis at (0, 3). To find where it cuts the X-axis, put y = 0: 0 = 2x + 3 gives x = −1.5, so the point is (−1.5, 0). The line passes through quadrants I, II and III: for example (−2, −1) is in quadrant III.
Worked example 2: graph of x + y = 4
y = 4 − x. For x = 0, 1, 2, 4 we get y = 4, 3, 2, 0: points (0, 4), (1, 3), (2, 2), (4, 0). The line cuts the Y-axis at (0, 4) and the X-axis at (4, 0). Notice that (2, 2) has equal co-ordinates, so it is also on the line y = x.
Worked example 3: is the point on the line?
Does (3, 9) lie on the graph of y = 2x + 3? Put x = 3: y = 2 × 3 + 3 = 9. Yes. Does (−3, −2) lie on it? 2 × (−3) + 3 = −3, not −2, so no.
Worked example 4: collinear points
Are A(1, 2), B(3, 6) and C(−1, −2) collinear? Each point satisfies y = 2x (2 = 2 × 1, 6 = 2 × 3, −2 = 2 × (−1)), so they all lie on the line y = 2x, which passes through the origin. They are collinear.
Special straight-line graphs
-
y = b or x = a
- Parallel to an axis
- Only one variable appears
-
y = mx
- Passes through the origin
- Example: y = 2x, y = x
-
ax + by + c = 0
- General form
- Cuts the axes where x = 0 and where y = 0
To graph a linear equation: make a table of at least three ordered pairs, plot them, check they are collinear and draw the line. Put x = 0 to find where it cuts the Y-axis and y = 0 for the X-axis.
Key takeaways: every solution of a linear equation in two variables is a point, and all of them lie on a straight line. Make a table, plot at least three points and join them. A point lies on the graph exactly when its co-ordinates satisfy the equation. The graph meets the Y-axis where x = 0 and the X-axis where y = 0.
Check your understanding
-
1. For the equation y = 3x − 1, what is y when x = 2?
- 5
- 7
- 6
- 1
Show answer
Answer: A. y = 3 × 2 − 1 = 6 − 1 = 5, so (2, 5) is a point of the graph.
-
2. Where does the graph of y = 2x + 6 cut the X-axis?
- (0, 6)
- (3, 0)
- (6, 0)
- (−3, 0)
Show answer
Answer: D. On the X-axis y = 0, so 0 = 2x + 6 and x = −3. The point is (−3, 0).
-
3. Which point lies on the graph of x + 2y = 8?
- (2, 2)
- (4, 4)
- (4, 2)
- (8, 4)
Show answer
Answer: C. Check each: 2 + 4 = 6; 4 + 8 = 12; 4 + 4 = 8; 8 + 8 = 16. Only (4, 2) gives 8.
-
4. Why is it good to plot at least three points when drawing the graph of a linear equation?
- Two points can never fix a line
- The third point checks the arithmetic: all three must be collinear
- The graph is a curve
- Three points make a triangle
Show answer
Answer: B. Two points fix a line, but if a value was worked out wrongly you would not notice. A third point that is not on the line shows a mistake.
-
5. Where does the graph of 3x − y = 0 cut the Y-axis?
- (0, 0)
- (0, 3)
- (3, 0)
- (0, −3)
Show answer
Answer: A. Put x = 0: 0 − y = 0, so y = 0. The line y = 3x passes through the origin (0, 0).
Sign in to keep track of the lessons you finish.