Skip to the page
Home Campus
Start free

No Solution or Infinitely Many Solutions

When two lines are parallel or are the same line, a pair of simultaneous equations has no solution or infinitely many. See it on a graph, in the gradients, and in the algebra, and find the unknown that makes it happen.

Before you start

  • The solution of two simultaneous equations is the point where their lines meet (lesson 2.5).
  • Writing ax+by=cax + by = c in the form y=mx+cy = mx + c (a different cc) gives the gradient mm and the yy-intercept (lesson 2.3).
  • Multiplying every term of an equation by the same number gives an equivalent equation, with the same solutions (lesson 2.1).

Three Possibilities

So far every pair of lines has met at one point. Two straight lines can also be parallel, so that they never meet, or they can be the same line, so that they meet at every point.

How many solutions?

A pair of linear simultaneous equations has

exactly one solution when the two lines meet at one point;

no solution when the two lines are parallel and different;

infinitely many solutions when the two equations give the same line: every point of the line is a solution.

Example 1: Seeing it on a graph

Draw the graphs of each pair for −2≤x≤2-2 \le x \le 2 and say how many solutions the pair has. (a) y=2x+3y = 2x + 3 and y=2x−1y = 2x - 1 (b) y=3x+2y = 3x + 2 and 2y=6x+42y = 6x + 4

Solution

(a) y=2x+3y = 2x + 3 passes through (−2,−1)(-2, -1) and (2,7)(2, 7); y=2x−1y = 2x - 1 through (−2,−5)(-2, -5) and (2,3)(2, 3).

The parallel lines y = 2x + 3 and y = 2x − 1, always 4 units apart up the page; they never meetxy−3−2−1123−6−5−4−3−2−112345678Oy = 2x + 3y = 2x − 1

For every xx, the first line is 44 units above the second. They are parallel and never meet, so no pair (x,y)(x, y) satisfies both equations.

(b) Divide every term of 2y=6x+42y = 6x + 4 by 22: y=3x+2y = 3x + 2. It is the same equation as the first, so it gives the same line, through (−2,−4)(-2, -4) and (2,8)(2, 8).

The line y = 3x + 2 drawn solid and the line 2y = 6x + 4 drawn dashed on top of it: they are the same line; the points (−1, −1), (0, 2) and (1, 5) are on bothxy−3−2−1123−5−4−3−2−1123456789Oy = 3x + 22y = 6x + 4(−1, −1)(0, 2)(1, 5)

Every point of the line satisfies both equations: (−1,−1)(-1, -1), (0,2)(0, 2), (1,5)(1, 5) and infinitely many more.

(a) No solution: the lines are parallel. (b) Infinitely many solutions: both equations give the line y=3x+2y = 3x + 2.

The Signs in the Algebra

When you solve such a pair by elimination or substitution, both variables disappear at once, and a statement with no letters is left.

Reading the last line

A false statement such as 0=70 = 7: it is never true, whatever xx and yy are, so there is no solution.

A true statement such as 0=00 = 0: it is always true, so every solution of one equation is a solution of the other. There are infinitely many solutions: all the points of one line.

Example 2: Elimination ends in 0 = 7

Solve x+2y=4x + 2y = 4 and 2x+4y=152x + 4y = 15.

Solution

x+2y=4x + 2y = 4 \quad (1)

2x+4y=152x + 4y = 15 \quad (2)

(1) ×2\times 2: 2x+4y=82x + 4y = 8 \quad (3)

Subtract (3) from (2): 0x+0y=15−80x + 0y = 15 - 8, that is 0=70 = 7.

This is false for every xx and yy: no pair can make 2x+4y2x + 4y equal to both 88 and 1515.

The parallel lines x + 2y = 4 and 2x + 4y = 15, which never meetxy−3−2−11234567−2−1123456Ox + 2y = 42x + 4y = 15

In the form y=mx+cy = mx + c: y=−12x+2y = -\frac{1}{2}x + 2 and y=−12x+334.y = -\frac{1}{2}x + 3\frac{3}{4}\text{.} Same gradient, different yy-intercepts: parallel lines.

There is no solution.

Example 3: Elimination ends in 0 = 0

Solve 3x−y=23x - y = 2 and 6x−2y=46x - 2y = 4. If there are infinitely many solutions, write down three of them.

Solution

3x−y=23x - y = 2 \quad (1)

6x−2y=46x - 2y = 4 \quad (2)

(1) ×2\times 2: 6x−2y=46x - 2y = 4, which is (2) exactly. Subtract: 0=00 = 0.

This is always true: (2) is (1) multiplied by 22, so the two equations give the same line, y=3x−2y = 3x - 2.

Any value of xx gives a solution: x=0x = 0, y=−2y = -2; x=1x = 1, y=1y = 1; x=2x = 2, y=4y = 4.

Check (2,4)(2, 4): 6−4=26 - 4 = 2, true; 12−8=412 - 8 = 4, true.

There are infinitely many solutions: every pair with y=3x−2y = 3x - 2, for example (0,−2)(0, -2), (1,1)(1, 1) and (2,4)(2, 4).

Telling from the Equations

You can tell how many solutions there are before solving, by writing both equations in the form y=mx+cy = mx + c.

Gradients and y-intercepts

For two lines that are not vertical:

different gradients: the lines meet at one point, so there is one solution;

the same gradient and different yy-intercepts: the lines are parallel, so there is no solution;

the same gradient and the same yy-intercept: the lines are the same, so there are infinitely many solutions.

Vertical lines have an undefined gradient (lesson 2.4). Two vertical lines x=hx = h are parallel if the numbers hh differ (no solution) and are one line if they are equal. A vertical line and a line that is not vertical always meet at one point (one solution).

Example 4: How many solutions?

Without solving, say how many solutions each pair has. (a) 2x+3y=62x + 3y = 6 and 4x+6y=54x + 6y = 5 (b) 2x+3y=62x + 3y = 6 and 3x+2y=63x + 2y = 6

Solution

(a) 3y=−2x+63y = -2x + 6, so y=−23x+2y = -\frac{2}{3}x + 2. And 6y=−4x+56y = -4x + 5, so y=−23x+56y = -\frac{2}{3}x + \frac{5}{6}. Same gradient −23-\frac{2}{3}, different yy-intercepts (22 and 56\frac{5}{6}): parallel.

(b) y=−23x+2y = -\frac{2}{3}x + 2 and 2y=−3x+62y = -3x + 6, so y=−32x+3y = -\frac{3}{2}x + 3. Different gradients: the lines meet at one point.

(For (b) the point is (1.2,1.2)(1.2, 1.2): subtracting the equations gives x−y=0x - y = 0, so x=yx = y, and 5x=65x = 6.)

(a) No solution (b) Exactly one solution

Example 5: One equation a multiple of the other

Show that x−2y=3x - 2y = 3 and −3x+6y=−9-3x + 6y = -9 have infinitely many solutions, and write down four of them.

Solution

Multiply every term of x−2y=3x - 2y = 3 by −3-3: −3x+6y=−9-3x + 6y = -9. This is the second equation, so the two are equivalent and give the same line.

In the form y=mx+cy = mx + c, both are y=12x−32y = \frac{1}{2}x - \frac{3}{2}: same gradient and same yy-intercept.

Solutions: make xx the subject, x=3+2yx = 3 + 2y, and choose yy. y=0y = 0: (3,0)(3, 0). y=1y = 1: (5,1)(5, 1). y=−1y = -1: (1,−1)(1, -1). x=0x = 0: −2y=3-2y = 3, y=−1.5y = -1.5: (0,−1.5)(0, -1.5).

Check (5,1)(5, 1) in both: 5−2=35 - 2 = 3; −15+6=−9-15 + 6 = -9.

Infinitely many solutions, for example (3,0)(3, 0), (5,1)(5, 1), (1,−1)(1, -1) and (0,−112)(0, -1\frac{1}{2}).

Finding the Unknown

For no solution, the xx and yy parts of the two equations must be in the same ratio (the same gradient) while the numbers on the right are not. For infinitely many, the whole of one equation is a multiple of the other.

Example 6: Finding k

(a) Find kk so that 2x+ky=52x + ky = 5 and 4x+6y=14x + 6y = 1 have no solution. (b) Find kk so that 2x+3y=52x + 3y = 5 and 4x+6y=k4x + 6y = k have infinitely many solutions.

Solution

(a) In the second equation the xx term 4x4x is 22 times the 2x2x of the first. For the lines to be parallel, the yy term must be 22 times as well: 6=2k6 = 2k, so k=3k = 3.

Then the first equation is 2x+3y=52x + 3y = 5; doubled, it is 4x+6y=104x + 6y = 10, but the second says 4x+6y=14x + 6y = 1. Subtracting gives 0=90 = 9: no solution, as wanted.

By gradients: y=−2kx+5ky = -\frac{2}{k}x + \frac{5}{k} and y=−23x+16y = -\frac{2}{3}x + \frac{1}{6}. Equal gradients need k=3k = 3; the intercepts are then 53\frac{5}{3} and 16\frac{1}{6}, which differ.

(b) Doubling 2x+3y=52x + 3y = 5 gives 4x+6y=104x + 6y = 10. For the second equation to be the same line, k=10k = 10.

(a) k=3k = 3 (b) k=10k = 10

In a Real Setting

Example 7: Facts that clash, and facts that repeat

(a) The sum of two numbers is 1010, and twice the first added to twice the second is 2525. Find the numbers. (b) A cup of coffee and a bun cost $3.503.50; two cups of coffee and two buns cost $77. Find the price of each.

Solution

(a) x+y=10x + y = 10 and 2x+2y=252x + 2y = 25. Doubling the first gives 2x+2y=202x + 2y = 20. Subtract: 0=50 = 5, which is false.

The facts contradict each other: if the sum is 1010, twice the sum is 2020, not 2525. No such numbers exist.

(b) Let a coffee cost $xx and a bun $yy: x+y=3.5x + y = 3.5 and 2x+2y=72x + 2y = 7. The second is the first doubled; subtracting gives 0=00 = 0.

The second fact only repeats the first, so the prices cannot be found. Coffee $22 and bun $1.501.50 fits, and so do coffee $1.801.80 and bun $1.701.70, and many more.

(a) No solution: the facts contradict each other. (b) Infinitely many solutions: one more independent fact is needed to find the prices.

Common Mistakes

  • Writing "x=0x = 0" from 0=00 = 0, or "x=7x = 7" from 0=70 = 7. Neither statement has a letter in it. 0=70 = 7 means no solution; 0=00 = 0 means infinitely many.
  • Saying "equal gradients, so parallel" without looking at the intercepts. Equal gradients and equal yy-intercepts give the same line, not parallel lines.
  • Saying "infinitely many solutions, so any pair works". Only the pairs on the line work: (1,1)(1, 1) solves 3x−y=23x - y = 2, but (1,2)(1, 2) does not.
  • Comparing gradients without making yy the subject. In 2x+3y=62x + 3y = 6 the gradient is −23-\frac{2}{3}, not 22 or 33.

Practice Questions

Work each question on paper before you open its solution. The questions get harder as you go.

Question 1

Without solving, say how many solutions each pair has. (a) y=4x−1y = 4x - 1 and y=4x+3y = 4x + 3 (b) y=−2x+5y = -2x + 5 and y=3x+5y = 3x + 5 (c) y=12x+1y = \frac{1}{2}x + 1 and 2y=x+22y = x + 2

ShowHide solution

(a) Same gradient 44, different yy-intercepts: parallel, no solution.

(b) Different gradients: one solution (both cross the yy-axis at 55, so they meet at (0,5)(0, 5)).

(c) Dividing by 22: y=12x+1y = \frac{1}{2}x + 1, the same line: infinitely many.

(a) none (b) one (c) infinitely many

Question 2

Draw the graphs of x+y=4x + y = 4 and x+y=1x + y = 1 on the same axes. What do they show about the simultaneous equations x+y=4x + y = 4 and x+y=1x + y = 1?

ShowHide solution

x+y=4x + y = 4 crosses the axes at (4,0)(4, 0) and (0,4)(0, 4); x+y=1x + y = 1 at (1,0)(1, 0) and (0,1)(0, 1).

The parallel lines x + y = 4 and x + y = 1xy−3−2−1123456−3−2−1123456Ox + y = 4x + y = 1

The lines are parallel (both have gradient −1-1) and never meet. A sum cannot be both 44 and 11.

The lines are parallel, so the equations have no solution.

Question 3

Solve 3x+2y=73x + 2y = 7 and 6x+4y=96x + 4y = 9.

ShowHide solution

First ×2\times 2: 6x+4y=146x + 4y = 14. Subtract the second: 0=50 = 5, false.

There is no solution.

Question 4

Solve x−4y=2x - 4y = 2 and 2x−8y=42x - 8y = 4. Write down three solutions if there are many.

ShowHide solution

First ×2\times 2: 2x−8y=42x - 8y = 4, the same as the second. Subtracting gives 0=00 = 0, always true.

Solutions: x=2+4yx = 2 + 4y. y=0y = 0: (2,0)(2, 0); y=1y = 1: (6,1)(6, 1); y=−1y = -1: (−2,−1)(-2, -1).

Check (6,1)(6, 1): 6−4=26 - 4 = 2; 12−8=412 - 8 = 4.

Infinitely many solutions, for example (2,0)(2, 0), (6,1)(6, 1), (−2,−1)(-2, -1).

Question 5

Solve by substitution (a) y=2x−3y = 2x - 3 and 4x−2y=64x - 2y = 6, (b) y=5−xy = 5 - x and 2x+2y=72x + 2y = 7.

ShowHide solution

(a) 4x−2(2x−3)=64x - 2(2x - 3) = 6, so 4x−4x+6=64x - 4x + 6 = 6, that is 6=66 = 6: always true. Infinitely many solutions, all the points of y=2x−3y = 2x - 3, such as (0,−3)(0, -3) and (3,3)(3, 3).

(b) 2x+2(5−x)=72x + 2(5 - x) = 7, so 2x+10−2x=72x + 10 - 2x = 7, that is 10=710 = 7: false. No solution.

(a) Infinitely many solutions (b) No solution

Question 6

Show, by writing each in the form y=mx+cy = mx + c, that 4x−6y=34x - 6y = 3 and 6x−9y=26x - 9y = 2 have no solution. Then confirm it by elimination.

ShowHide solution

−6y=−4x+3-6y = -4x + 3, so y=23x−12y = \frac{2}{3}x - \frac{1}{2}. −9y=−6x+2-9y = -6x + 2, so y=23x−29y = \frac{2}{3}x - \frac{2}{9}.

Same gradient 23\frac{2}{3}, different yy-intercepts: parallel lines, no solution.

Elimination: first ×3\times 3: 12x−18y=912x - 18y = 9; second ×2\times 2: 12x−18y=412x - 18y = 4. Subtract: 0=50 = 5, false.

The lines are parallel; there is no solution.

Question 7

Which of these pairs has exactly one solution? Find it. (a) 5x−y=35x - y = 3 and 10x−2y=610x - 2y = 6 (b) 5x−y=35x - y = 3 and 10x−2y=310x - 2y = 3 (c) 5x−y=35x - y = 3 and x+y=3x + y = 3

ShowHide solution

(a) The second is the first doubled: infinitely many.

(b) The first doubled is 10x−2y=610x - 2y = 6, not 33: subtracting gives 0=30 = 3, no solution.

(c) Add: 6x=66x = 6, so x=1x = 1, then y=2y = 2. Check: 5−2=35 - 2 = 3; 1+2=31 + 2 = 3.

Only (c): x=1x = 1, y=2y = 2.

Question 8

Find the value of kk for which 3x−2y=43x - 2y = 4 and kx−4y=5kx - 4y = 5 have no solution.

ShowHide solution

The yy term of the second, −4y-4y, is 22 times −2y-2y. For parallel lines, the xx term must also be 22 times: k=6k = 6.

Then the first doubled is 6x−4y=86x - 4y = 8, but the second is 6x−4y=56x - 4y = 5: subtracting gives 0=30 = 3, no solution.

k=6k = 6

Question 9

Find the value of kk for which 3x−2y=43x - 2y = 4 and 9x−6y=k9x - 6y = k have infinitely many solutions.

ShowHide solution

The second has 33 times the xx and yy terms of the first. For the same line, k=3×4=12k = 3 \times 4 = 12.

k=12k = 12

Question 10

The simultaneous equations px+4y=qpx + 4y = q and 3x+2y=53x + 2y = 5 have infinitely many solutions. Find pp and qq.

ShowHide solution

The yy term 4y4y is 22 times 2y2y, so the first equation must be the second multiplied by 22: 6x+4y=106x + 4y = 10.

So p=6p = 6 and q=10q = 10.

p=6p = 6, q=10q = 10

Question 11

At a museum, 2 adult tickets and 4 child tickets cost $5656, and 1 adult ticket and 2 child tickets cost $3030. Explain why these facts cannot both be right.

ShowHide solution

Let an adult ticket cost $xx and a child ticket $yy: 2x+4y=562x + 4y = 56 and x+2y=30x + 2y = 30.

Doubling the second: 2x+4y=602x + 4y = 60. Subtracting the first: 0=40 = 4, false.

2 adults and 4 children are exactly twice 1 adult and 2 children, so they should cost twice $3030, which is $6060, not $5656.

The equations have no solution: the facts contradict each other.

Question 12

Ali says, "Three files and a pen cost $77." Ben says, "Six files and two pens cost $1414." Can you find the price of a file? Give two possible pairs of prices.

ShowHide solution

Let a file cost $xx and a pen $yy: 3x+y=73x + y = 7 and 6x+2y=146x + 2y = 14. The second is the first doubled: subtracting gives 0=00 = 0.

Ben's fact only repeats Ali's, so the price of a file cannot be found. Any pair with y=7−3xy = 7 - 3x (and both prices positive) fits: file $22 and pen $11; file $1.501.50 and pen $2.502.50.

Check: 3(2)+1=73(2) + 1 = 7; 3(1.5)+2.5=4.5+2.5=7.3(1.5) + 2.5 = 4.5 + 2.5 = 7\text{.}

No: there are infinitely many possible prices, for example a file $22 and a pen $11, or a file $1.501.50 and a pen $2.502.50.

Key Points

  • Two lines meet once (one solution), are parallel (no solution) or are the same line (infinitely many solutions).
  • In the algebra, a false statement such as 0=70 = 7 means no solution; a true statement such as 0=00 = 0 means infinitely many.
  • In the form y=mx+cy = mx + c: different gradients, one solution; same gradient and different yy-intercepts, none; same gradient and same yy-intercept, infinitely many.
  • If one equation is a multiple of the other, they give the same line; if only their xx and yy parts are in that ratio, the lines are parallel.
  • With infinitely many solutions, only the points of that line are solutions; name some by choosing xx or yy.
  • In a real setting, no solution means the facts contradict each other; infinitely many means one fact only repeats the other.

‹ 2.8 Equations to Tidy First and Choosing a Method 2.10 Solving Problems with Simultaneous Equations ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.