Systems of linear equations · Lesson 2

How many solutions: parallel and identical lines

Each linear equation is a line, and a solution to the system is a point on both lines. Two lines in a plane can meet in only three ways, so a system of two linear equations has exactly one solution, no solution or infinitely many.

Different slopes: the lines cross once, so there is exactly one solution. **Same slope, different yy-intercepts: the lines are parallel and never meet, so there is no solution. Same slope and same yy-intercept: the two equations describe the same line, so every point on it is a solution and there are infinitely many**.

To compare, put both equations in the same form. Solving each for yy shows the slope and intercept: 6x−2y=106x - 2y = 10 becomes y=3x−5y = 3x - 5. For two equations in the form ax+by=cax + by = c, a faster test is to ask whether one equation's left side is a multiple of the other's. If it isn't, the slopes differ and there is exactly one solution. If it is, multiply the whole equation by that number and compare the right sides: equal right sides mean the same line, different right sides mean parallel lines.

For example, doubling x+2y=5x + 2y = 5 gives 2x+4y=102x + 4y = 10. Paired with 2x+4y=102x + 4y = 10, the system has infinitely many solutions. Paired with 2x+4y=72x + 4y = 7, it has none.

When a constant such as kk appears, work backward. For no solution, choose kk so that one left side is a multiple of the other, then confirm the right sides do not match after scaling. For infinitely many, the right sides must match too.

How many solutions a system of two linear equations has
Slopes and interceptsExampleNumber of solutions
Different slopesy=2x+1y = 2x + 1 and y=−x+4y = -x + 4Exactly one, (1,3)(1, 3)
Same slope, different yy-interceptsy=2x+1y = 2x + 1 and y=2x−3y = 2x - 3None (parallel lines)
Same slope, same yy-intercepty=2x+1y = 2x + 1 and 4x−2y=−24x - 2y = -2Infinitely many (the same line)

Worked example Easy

y=3x+2y = 3x + 2

6x−2y=106x - 2y = 10

How many solutions does the given system of equations have?

  1. ZeroAnswer
  2. Exactly one
  3. Exactly two
  4. Infinitely many

How to solve it

  1. Put the second equation in slope-intercept form. Subtract 6x6x from both sides: −2y=−6x+10-2y = -6x + 10. Divide by −2-2: y=3x−5y = 3x - 5.
  2. Compare with y=3x+2y = 3x + 2. Both lines have slope 3, but the yy-intercepts are 2 and −5-5.
  3. Same slope with different intercepts means parallel lines, which never meet. The system has zero solutions.

Why each choice is right or wrong

  • A. Correct. The second equation is y=3x−5y = 3x - 5. It has the same slope as y=3x+2y = 3x + 2 but a different intercept, so the lines are parallel and never meet.
  • B. Incorrect. This compares the 3 in the first equation with the 6 in the second before rewriting. The slope of 6x−2y=106x - 2y = 10 is 3, not 6, so the slopes are equal.
  • C. Incorrect. Two different lines can cross at most once, so a system of two linear equations can't have exactly two solutions.
  • D. Incorrect. Infinitely many solutions would need the same intercept as well, but the intercepts are 2 and −5-5. Setting the equations equal gives 3x+2=3x−53x + 2 = 3x - 5, or 2=−52 = -5, which is never true.

Worked example Medium

2x+3y=72x + 3y = 7

kx+9y=12kx + 9y = 12

In the given system of equations, kk is a constant. For what value of kk does the system have no solution?

  1. −6-6
  2. 23\frac{2}{3}
  3. 22
  4. 66Answer

How to solve it

  1. No solution means parallel lines, so the second left side must be a multiple of the first. The yy-coefficient went from 3 to 9, so the multiple is 3.
  2. Multiply the whole first equation by 3: 6x+9y=216x + 9y = 21. For the left sides to match, k=6k = 6.
  3. Check the right sides: 21 and 12 are different, so the lines are parallel, not the same line. With k=6k = 6 the system has no solution.

Why each choice is right or wrong

  • A. Incorrect. This sets the slopes as opposites instead of equal. The first slope is −23-\frac{2}{3}, and setting −k9=23-\frac{k}{9} = \frac{2}{3} gives k=−6k = -6. Parallel lines have equal slopes, and with k=−6k = -6 the lines cross once.
  • B. Incorrect. This writes the ratio upside down: k2=39\frac{k}{2} = \frac{3}{9} gives k=23k = \frac{2}{3}. The second equation's coefficients are 3 times the first's, so k2=93\frac{k}{2} = \frac{9}{3}.
  • C. Incorrect. This copies the first equation's xx-coefficient without scaling it. With k=2k = 2 the slopes are −23-\frac{2}{3} and −29-\frac{2}{9}, which differ, so the system has exactly one solution.
  • D. Correct. Tripling the first equation gives 6x+9y=216x + 9y = 21. With k=6k = 6 the left sides match but the right sides, 21 and 12, don't, so the lines are parallel.

Trap Comparing coefficients before the equations match

In y=3x+2y = 3x + 2 and 6x−2y=106x - 2y = 10, the numbers 3 and 6 are not both slopes. Rewrite the second equation as y=3x−5y = 3x - 5 first, or scale one equation until the yy-coefficients match. Comparing too early leads to "Exactly one", a choice these questions usually include.

Trap Scaling only part of an equation

When you multiply an equation to compare it with another, multiply every term, including the right side. For no solution, the scaled right sides must be different. For infinitely many, they must be equal. If a question with two constants asks for infinitely many solutions, the value you get by scaling only the xx-term is often a choice.

Desmos When Desmos isn’t faster

For these questions, comparing coefficients by hand usually takes a few seconds once both equations are in the same form, so it is the faster method. Desmos is a useful check.

To check a system with numbers, type each equation on its own line. If the lines cross, click the point to see the one solution. Parallel lines never meet, so there is no intersection point to click. If the two equations are the same line, the second graph lies exactly on top of the first and you see what looks like a single line.

For a question with a constant kk, you can type the equation with kk in it, such as kx+9y=12kx + 9y = 12. Because kk is not defined, Desmos offers a button to add a slider for it. Add the slider, type each answer choice as its value in turn, and look for the value that makes the lines parallel. This takes longer than setting up the multiple by hand, and two lines with nearly equal slopes can look parallel at normal zoom, so use the slider to confirm an answer, not to find it.