Skip to content
Family Table Math
Auto

Linear and Non-linear Relations

A relation connects two quantities, like the number of hours you work and the money you earn. Some relations grow by the same amount every step, and their graphs are straight lines. Others speed up, slow down, or level off, and their graphs curve. Learning to tell them apart helps you pick the right tool and make good predictions.

A relation is a connection between two variables, usually called xx and yy. You can show the same relation in different ways:

  • a table of values (pairs of numbers),
  • a graph (points on a grid),
  • an equation (a rule like y=2x+1y = 2x + 1),
  • a pattern or a real situation.

Usually xx is the independent variable (the one you choose or control, like time) and yy is the dependent variable (the one that depends on it, like distance).

A relation is linear when its graph is a straight line. That happens when yy changes by the same amount every time xx goes up by the same step. We say the relation has a constant rate of change.

A relation whose graph is not a straight line is non-linear. Its rate of change is not constant: the graph gets steeper or flatter as you move along it.

Here is a quick test using a table. Make sure the xx-values go up in equal steps (for example, by 11 each time). Then find the first differences: subtract each yy-value from the next one.

first difference=next y−previous y\text{first difference} = \text{next } y - \text{previous } y
  • If the first differences are all the same, the relation is linear.
  • If they are not all the same, the relation is non-linear.
xxy=2x+1y = 2x + 1first differencey=x2y = x^2first difference
001100
11333−1=23 - 1 = 2111−0=11 - 0 = 1
2255224433
3377229955
449922161677

For y=2x+1y = 2x + 1 the first differences are always 22, so it’s linear. For y=x2y = x^2 they are 1,3,5,71, 3, 5, 7, which keep growing, so it’s non-linear.

You can often tell just by looking at the equation.

EquationLinear?Why
y=2x+1y = 2x + 1yesxx is only multiplied by a number, and a number is added
y=x4−3y = \dfrac{x}{4} - 3yesdividing xx by a number is the same as multiplying by 14\dfrac{1}{4}
y=x2y = x^2noxx is squared
y=2xy = 2^xnoxx is in the exponent
y=12xy = \dfrac{12}{x}noxx is in the denominator

A linear equation can be written as y=mx+by = mx + b, where mm and bb are numbers. (Your curriculum also writes this as y=ax+by = ax + b. It means exactly the same thing.)

The shape of a graph tells you how the rate of change behaves.

  • Straight line: the rate of change is constant. Each step right gives the same rise (or the same fall).
  • Curving upward and getting steeper: the rate of change is increasing. The values grow faster and faster.
  • Falling and levelling off: the values go down, but by less and less each step. The rate of change is getting closer to zero.
Graphs of y = 2x + 1 (a straight line), y = x squared and y = 2 to the power x (curving upward), and y = 12/x (falling and levelling off) y = 2x + 1 2 4 4 8 0 constant rate y = x² 2 4 12 24 0 rate increasing y = 2ˣ 2 4 12 24 0 rate increasing fast y = 12/x (x > 0) 2 4 4 8 0 falling, levelling off
The same four relations as graphs. Only y=2x+1y = 2x + 1 is a straight line. (Each graph has its own scale on the yy-axis.)

Patterns can be linear or non-linear too.

  • A linear growing pattern adds the same amount each time: 4,7,10,13,…4, 7, 10, 13, \ldots (add 33).
  • A linear shrinking pattern takes away the same amount each time: 30,26,22,18,…30, 26, 22, 18, \ldots (subtract 44).
  • A non-linear pattern changes by different amounts: doubling 1,2,4,8,…1, 2, 4, 8, \ldots or halving 64,32,16,8,…64, 32, 16, 8, \ldots

For a linear relation, keep adding the same first difference, or use the equation. For a non-linear relation, look for the pattern in the table (for example, “each value doubles”) and follow that instead. Never assume a curve will keep going in a straight line.

Decide whether each relation is linear or non-linear.

xx0011223344
Relation A: yy5588111114141717
Relation B: yy11339927278181

Solution. The xx-values go up by 11 each time, so we can use first differences.

Relation A: 8−5=38 - 5 = 3, 11−8=311 - 8 = 3, 14−11=314 - 11 = 3, 17−14=317 - 14 = 3. The first differences are all 33, so A is linear. Its graph is a straight line that rises 33 for every 11 step right.

Relation B: 3−1=23 - 1 = 2, 9−3=69 - 3 = 6, 27−9=1827 - 9 = 18, 81−27=5481 - 27 = 54. The first differences are not the same, so B is non-linear. Notice that each yy-value is 33 times the one before, so it grows faster and faster.

Example 2: Linear or not, from an equation

Section titled “Example 2: Linear or not, from an equation”

Which of these relations are linear?

(a) y=4x−7(b) y=x2+1(c) y=20x(d) y=x2+3(e) y=3x\text{(a) } y = 4x - 7 \qquad \text{(b) } y = x^2 + 1 \qquad \text{(c) } y = \frac{20}{x} \qquad \text{(d) } y = \frac{x}{2} + 3 \qquad \text{(e) } y = 3^x

Solution.

(a) Linear. It has the form y=mx+by = mx + b with m=4m = 4 and b=−7b = -7.

(b) Non-linear. xx is squared.

(c) Non-linear. xx is in the denominator. For example, the points (1,20)(1, 20), (2,10)(2, 10), (4,5)(4, 5) don’t lie on a straight line.

(d) Linear. x2\dfrac{x}{2} is the same as 12x\dfrac{1}{2}x, so m=12m = \dfrac{1}{2} and b=3b = 3.

(e) Non-linear. xx is in the exponent.

Check (c) with first differences: x=1,2,3,4x = 1, 2, 3, 4 gives y=20,10,203,5y = 20, 10, \tfrac{20}{3}, 5. The first differences are −10-10, then about −3.33-3.33, then about −1.67-1.67. Not constant, so non-linear. ✓

Pattern A is made of tiles: Figure 1 has 11 tile, Figure 2 has 55, Figure 3 has 99, Figure 4 has 1313. Pattern B is a set of squares: Figure nn is an nn by nn square of tiles, so it has 1,4,9,16,…1, 4, 9, 16, \ldots tiles.

  • (a) Describe how each pattern grows.
  • (b) Predict the number of tiles in Figure 10 of each pattern.

Solution.

(a) Pattern A: the first differences are 5−1=45 - 1 = 4, 9−5=49 - 5 = 4, 13−9=413 - 9 = 4. It grows by 44 tiles every time, so it’s linear, with a constant rate of change of 44 tiles per figure.

Pattern B: the first differences are 3,5,73, 5, 7. They keep getting bigger, so it’s non-linear, and its rate of change is increasing.

(b) Pattern A: from Figure 1 to Figure 10 is 99 more steps, and each step adds 44:

1+9×4=1+36=37 tiles1 + 9 \times 4 = 1 + 36 = 37 \text{ tiles}

(You can also write the rule t=4n−3t = 4n - 3. Check: 4(10)−3=374(10) - 3 = 37. ✓)

Pattern B: Figure 10 is a 1010 by 1010 square, so it has 102=10010^2 = 100 tiles.

Pattern A is bigger at Figure 2 (55 tiles vs 44). Pattern B catches up at Figure 3 (both have 99), then pulls ahead from Figure 4 on (1616 vs 1313) and never looks back. That’s what an increasing rate of change does.

A candle is 2424 cm tall and burns down 33 cm every hour. A ball is dropped from 160160 cm, and each bounce reaches half the height of the one before.

  • (a) Make a table for each one, and decide if it’s linear.
  • (b) When will the candle burn out? How high is the ball’s 5th bounce?

Solution.

(a)

Hour0011223344
Candle height (cm)24242121181815151212
Bounce00 (drop)11223344
Ball height (cm)1601608080404020201010

The candle’s first differences are all −3-3, so it’s linear (a constant rate of change of −3-3 cm per hour).

The ball’s first differences are −80,−40,−20,−10-80, -40, -20, -10. They’re not the same, so it’s non-linear. The height still goes down, but by less and less each bounce.

(b) The candle loses 33 cm per hour from 2424 cm: 24÷3=824 \div 3 = 8, so it burns out after 88 hours.

The ball’s 5th bounce is half of 1010 cm, which is 55 cm.

Using first differences when the xx-values don’t go up evenly. For y=2x+1y = 2x + 1 with x=0,1,3,4x = 0, 1, 3, 4, the yy-values are 1,3,7,91, 3, 7, 9 and the differences are 2,4,22, 4, 2. That looks non-linear, but it isn’t: the jump from x=1x = 1 to x=3x = 3 is two steps. Check the xx-column first. If the steps aren’t equal, divide each change in yy by the change in xx.

Thinking “increasing” means “linear”. Lots of relations go up without being straight lines, like y=x2y = x^2 for x≥0x \ge 0 and y=2xy = 2^x. Linear means “goes up (or down) by the same amount each step”.

Calling y=x4y = \dfrac{x}{4} non-linear. Dividing xx by a number is fine: it’s the same as multiplying by a fraction. It’s dividing a number by xx, as in y=4xy = \dfrac{4}{x}, that makes a relation non-linear.

Judging from only two or three points. Over a short stretch, a curve can look almost straight. Use a table with several points, or check the equation.

Subtracting in the wrong order. A first difference is the next value minus the previous one. For a shrinking pattern the first differences should be negative, like −3-3 for the candle.

Predicting a curve with a straight line. If the bounce heights are 160,80,40160, 80, 40, the next one is 2020 (half), not 00 (another drop of 4040). Follow the pattern the table actually shows.

1. (Warm-up) Find the first differences, and decide if the relation is linear.

xx0011223344
yy2266101014141818
Solution

The first differences are 6−2=46 - 2 = 4, 10−6=410 - 6 = 4, 14−10=414 - 10 = 4, 18−14=418 - 14 = 4. They’re all the same, so the relation is linear, with a constant rate of change of 44.

2. (Warm-up) Which of these relations are linear?

  • (a) y=7−2xy = 7 - 2x
  • (b) y=x3y = x^3
  • (c) y=5xy = \dfrac{5}{x}
  • (d) y=0.5x+1y = 0.5x + 1
Solution

(a) Linear. It’s y=−2x+7y = -2x + 7, so m=−2m = -2 and b=7b = 7.

(b) Non-linear. xx is cubed.

(c) Non-linear. xx is in the denominator.

(d) Linear, with m=0.5m = 0.5 and b=1b = 1.

3. (Warm-up) Is this relation linear? Describe how yy changes.

xx1122334455
yy60603030202015151212
Solution

The first differences are 30−60=−3030 - 60 = -30, 20−30=−1020 - 30 = -10, 15−20=−515 - 20 = -5, 12−15=−312 - 15 = -3. They’re not the same, so the relation is non-linear.

The values of yy go down, but by less and less each step, so the graph falls and then levels off. (The rule is y=60xy = \dfrac{60}{x}.)

4. (Core) A row of squares is made from toothpicks. Figure 1 (one square) uses 44 toothpicks, Figure 2 uses 77, Figure 3 uses 1010, and Figure 4 uses 1313.

  • (a) Is the pattern linear? Explain.
  • (b) Explain why the rule t=3n+1t = 3n + 1 works, where nn is the figure number.
  • (c) How many toothpicks are in Figure 25?
  • (d) Which figure uses exactly 100100 toothpicks?
Solution

(a) Yes. The first differences are all 33: each new square needs 33 more toothpicks.

(b) Start with 11 toothpick on the left end. Each square adds 33 more (top, bottom and right side), so nn squares use 3n+13n + 1. Check: n=1n = 1 gives 44, and n=4n = 4 gives 1313. ✓

(c) t=3(25)+1=76t = 3(25) + 1 = 76 toothpicks.

(d) Solve 3n+1=1003n + 1 = 100: 3n=993n = 99, so n=33n = 33. Figure 33 uses 100100 toothpicks. Check: 3(33)+1=1003(33) + 1 = 100. ✓

5. (Core) Is this relation linear? If so, find its rate of change (the change in yy for each increase of 11 in xx) and its equation.

xx0022446688
yy3377111115151919
Solution

The xx-values go up by 22 each time (equal steps), and yy goes up by 44 each time. So the relation is linear.

For each increase of 11 in xx, yy goes up by 4÷2=24 \div 2 = 2. So the rate of change is 22.

When x=0x = 0, y=3y = 3, so the equation is y=2x+3y = 2x + 3.

Check: x=8x = 8 gives 2(8)+3=192(8) + 3 = 19. ✓

6. (Core) Complete a table for y=2x+1y = 2x + 1, y=x2y = x^2 and y=2xy = 2^x for x=0,1,2,3,4,5x = 0, 1, 2, 3, 4, 5. Which relation has the largest value at x=5x = 5? Which relations are linear?

Solution
xx001122334455
y=2x+1y = 2x + 111335577991111
y=x2y = x^20011449916162525
y=2xy = 2^x1122448816163232

At x=5x = 5, y=2xy = 2^x is largest (3232). Only y=2x+1y = 2x + 1 is linear: its first differences are all 22.

Notice that y=x2y = x^2 and y=2xy = 2^x are tied at x=4x = 4 (both 1616), but after that the doubling pattern pulls ahead.

7. (Core) A phone battery is at 100%100\% and drops 8%8\% every hour while streaming video.

  • (a) Is the battery level a linear or non-linear relation of time? Explain.
  • (b) Write an equation for the battery level BB after hh hours.
  • (c) After how many hours will the battery reach 20%20\%?
Solution

(a) Linear. It drops by the same amount (8%8\%) every hour, so the rate of change is constant: −8%-8\% per hour.

(b) B=100−8hB = 100 - 8h.

(c) Solve 100−8h=20100 - 8h = 20: 8h=808h = 80, so h=10h = 10. The battery reaches 20%20\% after 1010 hours.

Check: 100−8(10)=100−80=20100 - 8(10) = 100 - 80 = 20. ✓

8. (Challenge) You fold a sheet of paper in half again and again. After 00 folds there is 11 layer, after 11 fold there are 22 layers, after 22 folds there are 44 layers.

  • (a) Is the number of layers a linear relation of the number of folds?
  • (b) How many layers are there after 66 folds?
  • (c) If the paper is 0.10.1 mm thick, how thick would the stack be after 1010 folds (if you could fold it that many times)?
Solution

(a) No. The number of layers doubles each time: 1,2,4,8,…1, 2, 4, 8, \ldots The first differences are 1,2,4,…1, 2, 4, \ldots, which aren’t constant, so it’s non-linear. (The rule is L=2fL = 2^f.)

(b) 26=642^6 = 64 layers.

(c) After 1010 folds there are 210=10242^{10} = 1024 layers, so the stack is

1024×0.1=102.4 mm1024 \times 0.1 = 102.4 \text{ mm}

That’s more than 1010 cm, from one thin sheet! Doubling grows very fast.

9. (Challenge) Jordan made this table and says the relation is non-linear because the first differences are 3,6,3,63, 6, 3, 6. Is Jordan right? Explain, and find the equation if it is linear.

xx1122445577
yy4477131316162222
Solution

Jordan is not right. The xx-values don’t go up in equal steps (they go up by 1,2,1,21, 2, 1, 2), so the first differences can’t be compared directly.

Divide each change in yy by the change in xx:

31=3,62=3,31=3,62=3\frac{3}{1} = 3, \qquad \frac{6}{2} = 3, \qquad \frac{3}{1} = 3, \qquad \frac{6}{2} = 3

The rate of change is always 33, so the relation is linear. Going back one step from (1,4)(1, 4) gives x=0x = 0, y=4−3=1y = 4 - 3 = 1, so the equation is y=3x+1y = 3x + 1.

Check: x=7x = 7 gives 3(7)+1=223(7) + 1 = 22. ✓