Two lines, three sto­ries

Two lin­ear equa­tions in xx and yy are really two straight lines. Solv­ing the pair means find­ing where the lines meet, and two lines can meet once, never, or every­where. First we'll see all three cases on a graph, and then learn a quick coef­fi­cient test that tells you which case you're in with­out draw­ing any­thing at all.

A pair of lin­ear equa­tions

The gen­eral form is

a1x+b1y+c1=0,a2x+b2y+c2=0a_1 x + b_1 y + c_1 = 0, \qquad a_2 x + b_2 y + c_2 = 0

A solu­tion is a pair of val­ues (x,y)(x, y) that sat­is­fies both equa­tions at the same time. On a graph, it's a point lying on both lines.

The three pic­tures

Inter­sect­ing lines, exactly one solu­tion.

Take x+y=5x + y = 5 and x−y=1x - y = 1. Two points are enough to draw each line: the first passes through (0,5)(0, 5) and (5,0)(5, 0), the sec­ond through (1,0)(1, 0) and (3,2)(3, 2). They cross at (3,2)(3, 2). Check: 3+2=53 + 2 = 5 ✓ and 3−2=13 - 2 = 1 ✓. The pair is con­sis­tent with a unique solu­tion.

Graph of x + y = 5 through (0, 5) and (5, 0), and x - y = 1 through (1, 0); the two lines cross at the single point (3, 2), the unique solution.
Inter­sect­ing lines: one solu­tion, (3, 2)

Par­al­lel lines, no solu­tion.

Now take 2x+y=42x + y = 4 and 2x+y=82x + y = 8. They have the same slope but dif­fer­ent inter­cepts: the first runs through (0,4)(0, 4) and (2,0)(2, 0), the sec­ond through (0,8)(0, 8) and (4,0)(4, 0). Like two rail­way tracks, they never meet. And that makes sense, since no pair (x,y)(x, y) can make 2x+y2x + y equal to both 44 and 88. The pair is incon­sis­tent.

Two parallel lines of equal slope: 2x + y = 4 through (0, 4) and (2, 0), and 2x + y = 8 through (0, 8) and (4, 0). They never meet, so there is no solution.
Par­al­lel lines: no solu­tion

Coin­ci­dent lines, infi­nitely many solu­tions.

Finally take x−2y=3x - 2y = 3 and 3x−6y=93x - 6y = 9. Look closely: the sec­ond is just the first mul­ti­plied by 33, so they are the same line drawn twice. Every point on it, (3,0)(3, 0), (5,1)(5, 1), (1,−1)(1, -1), and infi­nitely many more, is a solu­tion. The pair is depen­dent (and there­fore also con­sis­tent).

The lines x - 2y = 3 and 3x - 6y = 9 drawn on top of each other as one line, passing through (1, -1), (3, 0) and (5, 1): every point on it is a solution.
Coin­ci­dent lines: infi­nitely many solu­tions

The coef­fi­cient test

Draw­ing takes time, and read­ing a cross­ing point off graph paper is unre­li­able when the coor­di­nates are frac­tions. A faster way is to com­pare ratios of coef­fi­cients:

Com­pare Lines Solu­tions Name
a1a2≠b1b2\displaystyle \frac{a_1}{a_2} \neq \frac{b_1}{b_2} inter­sect exactly one con­sis­tent
a1a2=b1b2≠c1c2\displaystyle \frac{a_1}{a_2} = \frac{b_1}{b_2} \neq \frac{c_1}{c_2} par­al­lel none incon­sis­tent
a1a2=b1b2=c1c2\displaystyle \frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2} coin­cide infi­nitely many depen­dent

One cau­tion before you use it: put the equa­tions in the form ax+by+c=0ax + by + c = 0 before you read off aa, bb, cc, and that includes the sign of cc. Read­ing cc from 2x+y=42x + y = 4 as +4+4 instead of −4-4 is the most com­mon slip of all.

Exam­ple. Clas­sify 4x−6y+10=04x - 6y + 10 = 0 and 6x−9y+15=06x - 9y + 15 = 0.

a1a2=46=23\displaystyle \frac{a_1}{a_2} = \frac{4}{6} = \frac{2}{3}, b1b2=−6−9=23\displaystyle \frac{b_1}{b_2} = \frac{-6}{-9} = \frac{2}{3}, c1c2=1015=23\displaystyle \frac{c_1}{c_2} = \frac{10}{15} = \frac{2}{3}. All equal: coin­ci­dent, infi­nitely many solu­tions.

Exam­ple. Clas­sify 3x+2y−7=03x + 2y - 7 = 0 and 6x+4y+5=06x + 4y + 5 = 0.

36=12\displaystyle \frac{3}{6} = \frac{1}{2}, 24=12\displaystyle \frac{2}{4} = \frac{1}{2}, −75\displaystyle \frac{-7}{5}. First two equal, third dif­fer­ent: par­al­lel, no solu­tion.

Prac­tice

  1. Solve graph­i­cally: x+2y=6x + 2y = 6 and x−y=0x - y = 0. Ver­ify the solu­tion alge­braically.
  2. Clas­sify with­out draw­ing: (a) 5x−3y+1=05x - 3y + 1 = 0 and 10x−6y+2=010x - 6y + 2 = 0; (b) x+3y=4x + 3y = 4 and 2x+6y=52x + 6y = 5; (c) 2x−y=12x - y = 1 and x+y=5x + y = 5.
  3. For what value of kk does the pair 3x+ky=63x + ky = 6 and 6x+4y=126x + 4y = 12 have infi­nitely many solu­tions?
  4. For what value of kk does the pair kx+2y=5kx + 2y = 5 and 3x+y=13x + y = 1 have no solu­tion?
  5. Two lines are par­al­lel and both pass through (1,2)(1, 2). What can you con­clude?

Answers

Show answers
  1. Lines through (0,3),(6,0)(0, 3), (6, 0) and (0,0),(2,2)(0, 0), (2, 2) cross at (2,2)(2, 2). Check: 2+4=62 + 4 = 6 ✓, 2−2=02 - 2 = 0 ✓.
  2. (a) All ratios 12\displaystyle \frac{1}{2}: coin­ci­dent, infi­nitely many. (b) Rewrite as x+3y−4=0x + 3y - 4 = 0 and 2x+6y−5=02x + 6y - 5 = 0: 12=36≠−4−5\displaystyle \frac{1}{2} = \frac{3}{6} \neq \frac{-4}{-5}, par­al­lel, none. (c) 21≠−11\displaystyle \frac{2}{1} \neq \frac{-1}{1}: inter­sect­ing, one solu­tion.
  3. Need 36=k4=−6−12\displaystyle \frac{3}{6} = \frac{k}{4} = \frac{-6}{-12}. Both outer ratios are 12\displaystyle \frac{1}{2}, so k4=12\displaystyle \frac{k}{4} = \frac{1}{2}, giv­ing k=2k = 2.
  4. Need k3=21≠−5−1\displaystyle \frac{k}{3} = \frac{2}{1} \neq \frac{-5}{-1}. So k=6k = 6; and 2≠52 \neq 5 con­firms the lines are par­al­lel, not coin­ci­dent.
  5. They are the same line. Dis­tinct par­al­lel lines share no point; two lines shar­ing a point and hav­ing the same direc­tion must coin­cide.