From rules to pic­tures

When two quan­ti­ties are tied together by a rule of the form y=ax+by = ax + b, we call it a lin­ear rela­tion­ship. Draw it in the coor­di­nate plane and you get a straight line. In this les­son you will find aa and bb from just two pairs of read­ings, plot the line from two points, and then see what each num­ber con­trols: aa (the slope) and bb (the yy-inter­cept).

Find­ing the rule from two read­ings

Exam­ple 1. A tuition cen­tre charges a fixed monthly fee plus a charge per class attended. A stu­dent who attended 88 classes paid ₹11001100; another who attended 1414 classes paid ₹17001700. Find the rule y=ax+by = ax + b for the bill yy after xx classes.

Put both read­ings into the rule.

1100=8a+b,1700=14a+b1100 = 8a + b, \qquad 1700 = 14a + b

Now sub­tract the first equa­tion from the sec­ond. That gives 600=6a600 = 6a, so a=100a = 100. Then b=1100−800=300b = 1100 - 800 = 300.

y=100x+300y = 100x + 300

So each class costs ₹100100, and the fixed fee is ₹300300. See how the two num­bers carry mean­ing. The coef­fi­cient is the charge per class, and the con­stant is what you pay even at x=0x = 0, before attend­ing a sin­gle class.

Graph of the tuition bill y = 100x + 300 for 0 to 16 classes, passing through (8, 1100) and (14, 1700) and meeting the bill axis at the fixed fee of 300 rupees.
The two read­ings fix the line y = 100x + 300.

Exam­ple 2. Water boils at 100∘100^\circC, which is 212∘212^\circF, and freezes at 0∘0^\circC, which is 32∘32^\circF. Find the rule F=aC+bF = aC + b.

At C=0C = 0, F=32F = 32, so straight away b=32b = 32. At C=100C = 100 we get 212=100a+32212 = 100a + 32, which gives a=1.8a = 1.8. So F=1.8C+32F = 1.8C + 32. A pleas­ant day at 25∘25^\circC, then, is 77∘77^\circF.

Plot­ting y=ax+by = ax + b

Two points are enough to fix a straight line. So choose two con­ve­nient val­ues of xx, find yy for each, plot the two points, join them, and extend the line.

Exam­ple 3. Plot y=3x−2y = 3x - 2.

Putting x=0x = 0 gives y=−2y = -2, so one point is (0,−2)(0, -2). Putting x=2x = 2 gives y=4y = 4, so another is (2,4)(2, 4). Draw the line through them.

Every other point on the line sat­is­fies the equa­tion too. For exam­ple, (1,1)(1, 1) is on it since 3(1)−2=13(1) - 2 = 1; (3,5)(3, 5) is not, since 3(3)−2=7≠53(3) - 2 = 7 \neq 5.

The line y = 3x - 2 drawn through (0, -2) and (2, 4); the point (1, 1) lies on it, while the point (3, 5), marked with a cross, is off the line.
Two points fix the line y = 3x - 2.

Exam­ple 4. The points (−2,−6)(-2, -6), (0,0)(0, 0), (1,3)(1, 3), (3,9)(3, 9) lie on a line. What is its equa­tion?

Look closely at each pair. In every one, yy is three times xx, so the line is y=3xy = 3x.

What aa does: the slope

Draw y=12x\displaystyle y = \dfrac{1}{2}x, y=xy = x and y=2xy = 2x on one grid. All three pass through the ori­gin, since x=0x = 0 gives y=0y = 0. The line y=xy = x makes equal angles with both axes. The line y=2xy = 2x is steeper, and y=12x\displaystyle y = \dfrac{1}{2}x is flat­ter.

The num­ber aa in y=axy = ax is called the slope. The larger aa is, the steeper the line. It is also the amount yy rises when xx increases by 11, which is exactly the con­stant dif­fer­ence you met in lin­ear pat­terns.

Now draw y=−xy = -x and y=−3xy = -3x. What do you notice? These lines fall from left to right. A neg­a­tive slope means that yy decreases as xx increases.

Five lines through the origin: y = x/2, y = x and y = 2x rise ever more steeply from left to right, while y = -x and y = -3x fall from left to right.
Larger slope, steeper line; neg­a­tive slope, falling line.

This gives a lovely link with the last les­son: lin­ear growth is a line with pos­i­tive slope, and lin­ear decay is a line with neg­a­tive slope.

What bb does: the yy-inter­cept

Draw y=2x−3y = 2x - 3, y=2xy = 2x and y=2x+4y = 2x + 4. All three are equally steep, which means they are par­al­lel. But they cross the yy-axis at dif­fer­ent heights: at −3-3, at 00 and at 44.

Why? Putting x=0x = 0 in y=ax+by = ax + b gives y=by = b. So the line crosses the yy-axis at (0,b)(0, b), and bb is called the yy-inter­cept. Here is an easy way to pic­ture it. Change bb and the line slides up or down with­out tilt­ing. Change aa and the line tilts about its yy-inter­cept.

Three parallel lines of slope 2: y = 2x + 4, y = 2x and y = 2x - 3, crossing the y-axis at (0, 4), (0, 0) and (0, -3).
Same slope, dif­fer­ent y-inter­cepts: the lines are par­al­lel.

Exam­ple 5. With­out plot­ting, describe y=−4x+6y = -4x + 6.

The slope is −4-4, so the line falls steeply from left to right. The yy-inter­cept is 66, so it crosses the yy-axis at (0,6)(0, 6). It crosses the xx-axis where y=0y = 0. Solv­ing −4x+6=0-4x + 6 = 0 gives x=1.5x = 1.5, so that point is (1.5,0)(1.5, 0).

Exam­ple 6. Which is steeper, y=5x−1y = 5x - 1 or y=−7x+3y = -7x + 3? Which passes through (1,4)(1, 4)?

Since ∣−7∣>∣5∣|{-7}| > |5|, the sec­ond line is steeper. Steep­ness ignores the sign. Now test (1,4)(1, 4) in each: 5(1)−1=45(1) - 1 = 4 ✓, but −7(1)+3=−4≠4-7(1) + 3 = -4 \neq 4. So only the first line passes through it.

Prac­tice

  1. A gym charges a fixed fee plus an hourly court charge. 66 hours cost ₹720720; 1111 hours cost ₹10201020. Find y=ax+by = ax + b.
  2. A courier charges by weight. A 22 kg par­cel costs ₹9595; a 55 kg par­cel costs ₹155155. Find the rule and the cost of an 88 kg par­cel.
  3. Plot y=−2x+5y = -2x + 5 using x=0x = 0 and x=3x = 3. Is (4,−3)(4, -3) on the line?
  4. The points (−1,5)(-1, 5), (0,3)(0, 3), (2,−1)(2, -1) lie on a line. Find its equa­tion.
  5. For each line give the slope, the yy-inter­cept and the point where it crosses the xx-axis: (a) y=2x−8y = 2x - 8; (b) y=−12x+3\displaystyle y = -\dfrac{1}{2}x + 3; (c) y=5xy = 5x.
  6. Which of these lines are par­al­lel to y=3x+1y = 3x + 1? (a) y=3x−9y = 3x - 9; (b) y=−3x+1y = -3x + 1; (c) y=3xy = 3x; (d) y=x+3y = x + 3.
  7. A line has slope −4-4 and passes through (2,1)(2, 1). Find its equa­tion.
  8. Sketch y=x+2y = x + 2, y=x−2y = x - 2 and y=−x+2y = -x + 2 on one grid. Which two are par­al­lel, and where do the other two meet?

Answers

Show answers
  1. 720=6a+b720 = 6a + b, 1020=11a+b1020 = 11a + b: 300=5a300 = 5a, a=60a = 60, b=360b = 360. y=60x+360y = 60x + 360.
  2. 95=2a+b95 = 2a + b, 155=5a+b155 = 5a + b: a=20a = 20, b=55b = 55. y=20x+55y = 20x + 55; 88 kg costs ₹215215.
  3. Points (0,5)(0, 5) and (3,−1)(3, -1). At x=4x = 4: y=−3y = -3 ✓, so (4,−3)(4, -3) is on the line.
  4. yy falls 22 for each rise of 11 in xx, and y=3y = 3 at x=0x = 0: y=−2x+3y = -2x + 3.
  5. (a) Slope 22, inter­cept −8-8, crosses xx-axis at (4,0)(4, 0). (b) Slope −12\displaystyle -\dfrac{1}{2}, inter­cept 33, crosses at (6,0)(6, 0). (c) Slope 55, inter­cept 00, crosses at (0,0)(0, 0).
  6. Same slope 33: (a) and (c).
  7. y=−4x+by = -4x + b with 1=−8+b1 = -8 + b, so b=9b = 9. y=−4x+9y = -4x + 9.
  8. y=x+2y = x + 2 and y=x−2y = x - 2 are par­al­lel (slope 11). y=x+2y = x + 2 and y=−x+2y = -x + 2 both have inter­cept 22: they meet at (0,2)(0, 2).