๐ Key idea of this section
LINEAR means equal steps: whenever x grows by the same amount, y grows by the same amount. That constant ratio ฮy รท ฮx IS the slope. (ฮ is the Greek letter delta โ mathematicians write ฮy for "change in y.")
A function machine keeps a diary called an input-output table. Here's the diary of y = 2x + 3, with the y-steps written in:
x: 0 1 2 3 4 y: 3 5 7 9 11 ฮy: +2 +2 +2 +2
Equal x-steps (each +1) produce equal y-steps (each +2). That constant-step pattern is the fingerprint of a linear function, and the step size 2 is the slope.
The detective game, upgraded
The fun version is the reverse: you see the diary but NOT the recipe. Here's a table with a twist โ the x's do NOT step by 1:
x: 1 5 9 13 y: 2 8 14 20
Step 1: measure both step sizes. ฮy = 8 โ 2 = 6 each time, and
ฮx = 5 โ 1 = 4 each time. Constant steps on both sides: linear!
Step 2: slope = ฮy รท ฮx = 6 รท 4 = 3/2.
(Not 6! Always divide the y-change by the x-change.)
Step 3: so the rule is y = (3/2)x + b, with b unknown. Use ANY row
to find b โ pick x = 1, y = 2:
2 = (3/2) ร 1 + b (the row must fit the rule)
2 = 3/2 + b
b = 2 โ 3/2 = 1/2 (subtract 3/2 from both sides)
Step 4: the rule is y = (3/2)x + 1/2.
Step 5: test drive on a row you DIDN'T use: x = 9 gives
(3/2) ร 9 + 1/2 = 27/2 + 1/2 = 28/2 = 14 โ
A rule that fails even one row is a wrong rule โ send it back!
Arithmetic sequences: linear functions in disguise
Look at this list, where each term is the previous one plus 4:
7, 11, 15, 19, ...
A list with a constant jump is called an arithmetic sequence, and the jump is called the common difference. Here's the secret: an arithmetic sequence IS a linear function, where the input is the position number n:
position n: 1 2 3 4 term a(n): 7 11 15 19
The y-steps are 4 per n-step of 1, so the slope is 4 โ the common difference IS the slope. Walk the table back to n = 0: a(0) = 7 โ 4 = 3. So:
a(n) = 4n + 3
You may also meet the classic form a(n) = aโ + (n โ 1)d, where aโ is the first term and d is the common difference. Both forms are the same machine:
a(n) = 7 + (n โ 1) ร 4
= 7 + 4n โ 4 (distribute the 4: 4รn and 4ร(โ1))
= 4n + 3 (combine: 7 โ 4 = 3) โ same rule!
Predict far ahead: a(10) = 4 ร 10 + 3 = 43, and a(100) = 403. No counting on fingers needed โ that's the power of having the rule.
The not-linear alarm
Check this table: x: 0, 1, 2, 3 and y: 1, 3, 7, 13. The y-steps are 2, 4, 6 โ GROWING steps. No constant slope exists, so no linear rule fits. (The hidden rule is y = xยฒ + x + 1 โ a squared term always bends the steps. That's a story for another lesson.)
โ๏ธ Your Turn!
Write the rule for the arithmetic sequence 9, 13, 17, 21, ... as a function of n, then find a(10).
๐ Show the answers
Answer: common difference d = 4, so slope 4. Walk back: a(0) = 9 โ 4 = 5, so a(n) = 4n + 5. Then a(10) = 4 ร 10 + 5 = 45. Test drive: a(1) = 9 โ , a(4) = 21 โ .