In the last chap­ter every equa­tion had one unknown and one answer. Many real ques­tions have two unknowns at once: the price of a pen and the price of a note­book, or the ages of two sis­ters. This les­son intro­duces lin­ear equa­tions in two vari­ables, shows that each one has not one solu­tion but infi­nitely many, and explains why all those solu­tions together draw a straight line.

The gen­eral form

A lin­ear equa­tion in two vari­ables is an equa­tion that can be writ­ten as

ax+by+c=0ax + by + c = 0

where xx and yy are the vari­ables and aa, bb, cc are real num­bers, with aa and bb not both zero. "Lin­ear" means each vari­able appears only to the power 11: there is no x2x^{2}, no xyxy and no 1x\displaystyle \frac{1}{x}.

Exam­ples: x+y−1=0x + y - 1 = 0, 2x−y=42x - y = 4 and 3x=2y+53x = 2y + 5 are all lin­ear equa­tions in two vari­ables. The last one can be rearranged into the gen­eral form by bring­ing every term to the left:

3x−2y−5=0,so a=3, b=−2, c=−53x - 2y - 5 = 0, \qquad \text{so } a = 3,\ b = -2,\ c = -5

Solu­tions come in pairs

A solu­tion of an equa­tion in two vari­ables is a pair of num­bers, one value for xx and one for yy, that makes the equa­tion true. We write a solu­tion as an ordered pair (x,y)(x, y), always with xx first.

Take the equa­tion

x+y−1=0x + y - 1 = 0

It can be rearranged as y=1−xy = 1 - x. Now choose any value of xx and work out yy:

xx 00 11 22
y=1−xy = 1 - x 11 00 −1-1
solu­tion (0,1)(0, 1) (1,0)(1, 0) (2,−1)(2, -1)

Each pair is a solu­tion. Check (2,−1)(2, -1): 2+(−1)−1=02 + (-1) - 1 = 0. And there is noth­ing spe­cial about 00, 11 and 22: any value of xx at all, includ­ing frac­tions and neg­a­tives, gives a match­ing yy. So a lin­ear equa­tion in two vari­ables has infi­nitely many solu­tions.

Why the graph is a straight line

Each solu­tion (x,y)(x, y) is also a point on a graph: go xx units along the xx-axis and yy units up the yy-axis. Plot the three points from the table, (0,1)(0, 1), (1,0)(1, 0) and (2,−1)(2, -1), on squared paper. They lie exactly in a line. Join them with a ruler and extend the line in both direc­tions.

Every point on that line is a solu­tion of x+y−1=0x + y - 1 = 0, and every solu­tion is a point on that line. So the line is a pic­ture of the whole equa­tion. This is true of every lin­ear equa­tion in two vari­ables:

Remem­ber. The graph of ax+by+c=0ax + by + c = 0 is always a straight line. Two points are enough to draw it; a third point is a use­ful check that you have not made a slip.

Exam­ple 1

Write 4x=7−3y4x = 7 - 3y in the form ax+by+c=0ax + by + c = 0 and state aa, bb and cc.

Bring every term to the left: 4x+3y−7=04x + 3y - 7 = 0. So a=4a = 4, b=3b = 3 and c=−7c = -7.

Exam­ple 2

Make a table of solu­tions for 2x−y=42x - y = 4 and describe its graph.

First make yy the sub­ject: y=2x−4y = 2x - 4.

xx 00 11 22 33
y=2x−4y = 2x - 4 −4-4 −2-2 00 22

The points (0,−4)(0, -4), (1,−2)(1, -2), (2,0)(2, 0) and (3,2)(3, 2) lie on one straight line. Each time xx goes up by 11, yy goes up by 22, so the line climbs steeply from left to right. It crosses the yy-axis at (0,−4)(0, -4) and the xx-axis at (2,0)(2, 0).

Exam­ple 3

Is (3,2)(3, 2) a solu­tion of 2x−y=42x - y = 4? Is (1,1)(1, 1)?

For (3,2)(3, 2): 2×3−2=6−2=42 \times 3 - 2 = 6 - 2 = 4. Yes, it is a solu­tion.

For (1,1)(1, 1): 2×1−1=12 \times 1 - 1 = 1, not 44. No, it is not a solu­tion, so the point (1,1)(1, 1) is not on the line.

Exam­ple 4

Find kk if (2,1)(2, 1) is a solu­tion of kx+3y=11kx + 3y = 11.

Put x=2x = 2 and y=1y = 1 into the equa­tion. That leaves a lin­ear equa­tion in one vari­able, kk:

2k+3=112k=8k=4\begin{aligned} 2k + 3 &= 11 \\ 2k &= 8 \\ k &= 4 \end{aligned}

Where a line meets the axes

Two points that are espe­cially easy to find are where the line crosses the axes.

  • On the xx-axis, y=0y = 0.
  • On the yy-axis, x=0x = 0.

For 2x+3y=122x + 3y = 12: putting y=0y = 0 gives 2x=122x = 12, so x=6x = 6 and the line crosses the xx-axis at (6,0)(6, 0). Putting x=0x = 0 gives 3y=123y = 12, so y=4y = 4 and it crosses the yy-axis at (0,4)(0, 4). Plot these two points and join them, and you have the line.

Writ­ing an equa­tion in two vari­ables

Exam­ple 5

The cost of 22 pens and 33 pen­cils is ₹40. Write this as an equa­tion.

Let one pen cost xx rupees and one pen­cil cost yy rupees. Then 2x+3y=402x + 3y = 40.

This one equa­tion can­not tell you both prices: x=14,y=4x = 14, y = 4 works, and so does x=5,y=10x = 5, y = 10. To pin down a sin­gle answer you need a sec­ond fact, which gives a sec­ond equa­tion. That is the sub­ject of the rest of this chap­ter.

Prac­tice

  1. Write 5y=2x+95y = 2x + 9 in the form ax+by+c=0ax + by + c = 0 and state aa, bb and cc.
  2. Is (2,3)(2, 3) a solu­tion of 3x+2y=123x + 2y = 12?
  3. Is (4,−1)(4, -1) a solu­tion of x−2y=5x - 2y = 5?
  4. Com­plete the table for x+2y=6x + 2y = 6 when x=0,2,4,6x = 0, 2, 4, 6.
  5. For y=3x−1y = 3x - 1, find yy when x=0x = 0, 11 and 22, and write the three solu­tions as ordered pairs.
  6. Find kk if (3,−2)(3, -2) is a solu­tion of 2x+ky=122x + ky = 12.
  7. Where does the line 5x+2y=205x + 2y = 20 cross the xx-axis and the yy-axis?
  8. Which of the points (1,4)(1, 4), (2,1)(2, 1) and (3,0)(3, 0) lie on the line 2x+y=62x + y = 6?
  9. A school bag costs xx rupees and a water bot­tle yy rupees. Three bags and two bot­tles cost ₹950. Write an equa­tion.
  10. How many solu­tions does x+y=10x + y = 10 have? Give two of them.

Answers

Show answers
  1. 2x−5y+9=02x - 5y + 9 = 0, so a=2a = 2, b=−5b = -5, c=9c = 9. (Writ­ing −2x+5y−9=0-2x + 5y - 9 = 0 is the same equa­tion.)
  2. Yes: 3×2+2×3=123 \times 2 + 2 \times 3 = 12.
  3. No: 4−2×(−1)=64 - 2 \times (-1) = 6, not 55.
  4. y=3,2,1,0y = 3, 2, 1, 0, giv­ing (0,3)(0, 3), (2,2)(2, 2), (4,1)(4, 1), (6,0)(6, 0).
  5. y=−1,2,5y = -1, 2, 5, giv­ing (0,−1)(0, -1), (1,2)(1, 2), (2,5)(2, 5).
  6. 6−2k=126 - 2k = 12, so −2k=6-2k = 6 and k=−3k = -3.
  7. y=0y = 0 gives x=4x = 4, so (4,0)(4, 0). x=0x = 0 gives y=10y = 10, so (0,10)(0, 10).
  8. (1,4)(1, 4) and (3,0)(3, 0). For (2,1)(2, 1), 2×2+1=52 \times 2 + 1 = 5, not 66.
  9. 3x+2y=9503x + 2y = 950
  10. Infi­nitely many. For exam­ple (3,7)(3, 7) and (10,0)(10, 0); any pair of num­bers that add up to 1010 will do.