• Foundation
  • About 15 min
  • 5 practice questions

Solutions of a linear equation and its graph

Check whether an ordered pair solves a linear equation, find as many solutions as you like, and draw the straight-line graph of the equation using its intercepts.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Test whether an ordered pair (x, y) is a solution of a linear equation in two variables.
  • Explain why such an equation has infinitely many solutions, and find unknown coefficients from a given solution.
  • Draw the graph of a linear equation using the points where it cuts the axes, and read solutions from it.

For an equation in one variable, such as 3x = 12, there is just one answer. With two variables things change: many pairs of values can make the equation true. In this lesson we find these pairs and see that, when plotted, they all line up.

What a solution is

A solution of a linear equation in two variables is a pair of values, one for x and one for y, that makes the two sides equal. We write it as an ordered pair (x, y): the first number is always the value of x.

Worked example 1: checking pairs

Which of (3, 4), (6, 2) and (4, 3) are solutions of 2x + 3y = 18?

  • (3, 4): 2(3) + 3(4) = 6 + 12 = 18. Yes.
  • (6, 2): 2(6) + 3(2) = 12 + 6 = 18. Yes.
  • (4, 3): 2(4) + 3(3) = 8 + 9 = 17 ≠ 18. No. Order matters: (3, 4) works but (4, 3) does not.

Infinitely many solutions

Choose any value for x, put it into the equation, and you get a one-variable equation for y, which you can solve. Every choice of x gives a solution, so a linear equation in two variables has infinitely many solutions. For 2x + 3y = 18, taking x = 1.5 gives 3 + 3y = 18, so y = 5 and (1.5, 5) is another solution.

All the solutions lie on a straight line

Rewrite 2x + 3y = 18 as y = −⅔x + 6. This has the form y = mx + d, whose graph is a straight line. So when we plot every solution we get a line, and:

Every solution of a linear equation in two variables is a point on its graph, and every point on the graph is a solution. The graph is a straight line.

Two points are enough to draw a line. The easiest two are where the line crosses the axes: put x = 0 to find where it cuts the y-axis, and y = 0 to find where it cuts the x-axis. Plot a third point as a check.

Drawing the graph of ax + by + c = 0

  1. Put x = 0 Solve for y: the point (0, y) on the y-axis
  2. Put y = 0 Solve for x: the point (x, 0) on the x-axis
  3. Find a check point Choose another x and find y
  4. Plot and join All three should lie on one straight line

Worked example 2: graph using intercepts

Draw the graph of 3x + 4y = 24.

Solutions of 3x + 4y = 24
x084
y603

Working: x = 0 gives 4y = 24, so y = 6: point (0, 6). y = 0 gives 3x = 24, so x = 8: point (8, 0). Check point: x = 4 gives 12 + 4y = 24, so 4y = 12 and y = 3: point (4, 3). Plot (0, 6), (8, 0) and (4, 3); they lie on one line. From the graph you can read more solutions, such as (−4, 9): check 3(−4) + 4(9) = −12 + 36 = 24.

Worked example 3: a line through the origin

Draw the graph of 3x − 2y = 0.

Working: x = 0 gives y = 0, so both intercepts are at the origin (0, 0); we need another point. x = 2 gives 6 − 2y = 0, so y = 3: point (2, 3). x = −2 gives y = −3: point (−2, −3). The line passes through the origin. In general, when c = 0, the point (0, 0) satisfies ax + by = 0, so the line always passes through the origin.

Worked example 4: finding an unknown coefficient

(2, −1) is a solution of kx + 5y = 7. Find k.

Working: substitute x = 2 and y = −1: 2k + 5(−1) = 7, so 2k − 5 = 7, 2k = 12 and k = 6. Check: 6(2) + 5(−1) = 12 − 5 = 7.

Useful facts

  • x = a constant (for example x = 3) is a vertical line; y = a constant (for example y = −2) is a horizontal line.
  • x = 0 is the y-axis and y = 0 is the x-axis.
  • Multiplying an equation by any non-zero number k does not change its solutions: 3x + 4y = 7 and 6x + 8y = 14 have the same graph.

Key takeaways: a solution is an ordered pair that satisfies the equation, and there are infinitely many of them. They form a straight line: points on the line are exactly the solutions. Use the intercepts (put x = 0, then y = 0) to draw it quickly, and plot a third point to check.

Check your understanding

  1. 1. Which ordered pair is a solution of 4x − 3y = 10?

    1. (2, 4)
    2. (1, 2)
    3. (3, 1)
    4. (4, 2)
    Show answer

    Answer: D. (4, 2): 4(4) − 3(2) = 16 − 6 = 10, which works. (2, 4) gives 8 − 12 = −4, (1, 2) gives 4 − 6 = −2 and (3, 1) gives 12 − 3 = 9.

  2. 2. At which point does the graph of 5x + 2y = 20 cut the x-axis?

    1. (0, 10)
    2. (4, 0)
    3. (10, 0)
    4. (0, 4)
    Show answer

    Answer: B. On the x-axis y = 0, so 5x = 20 and x = 4. The point is (4, 0). (0, 10) is where it cuts the y-axis.

  3. 3. The point (3, k) lies on the line 2x + y = 11. What is k?

    1. 5
    2. 8
    3. 4
    4. 17
    Show answer

    Answer: A. Substitute x = 3: 2(3) + k = 11, so 6 + k = 11 and k = 5.

  4. 4. How many solutions does the equation x − 2y = 3 have?

    1. Exactly one
    2. Exactly two
    3. None
    4. Infinitely many
    Show answer

    Answer: D. For every value we choose for x we can solve for y (y = (x − 3) ÷ 2), so there are infinitely many solutions, all on one straight line.

  5. 5. Which equation's graph passes through the origin?

    1. x + y = 1
    2. 7x = 2y
    3. y = 3x + 2
    4. x = 4
    Show answer

    Answer: B. 7x = 2y is 7x − 2y = 0, with constant term 0, so (0, 0) satisfies it: 7(0) = 2(0). The others give 0 = 1, 0 = 2 and 0 = 4 at the origin.

Privacy · Terms · Refunds · Delivery