On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Arithmetic Operations · Grade 6-8

Linear Relationship

A linear relationship has a constant rate of change m and a starting value b, graphing as a straight line.

y=mx+b
y = 2 · x012345678(0, 0)

A line where each step of 1 in x always moves y by 2: the unchanging trade that makes a relationship linear.


Quick Answer

A linear relationship has a constant rate of change m and a starting value b, graphing as a straight line. Use it when every equal step in one quantity adds or subtracts the same amount from the other: a phone plan at $15 plus $5 per gigabyte, a candle that burns 2 cm shorter each hour. The rule y=mx+b gives any value directly, and its two numbers tell you how fast the quantity changes (m) and where it starts (b).

Why This Matters

With m and b you can predict any value without listing every step: a taxi at $3 plus $2 per mile costs 2(15)+3=33 dollars for 15 miles. You can also run the rule backward to find when a quantity reaches a target. Mistake a curve for a line and long-range predictions go badly wrong, so the equal-steps check comes first.

Intuitive Explanation

Picture a taxi meter. The moment you sit down it shows $3. Every mile adds $2: $5 after one mile, $7 after two, $9 after three. Two numbers describe the whole ride: the starting value b=3 and the amount added per mile, m=2. Together they give y=2x+3.

Plot those fares and the points line up exactly, because each step to the right climbs the same amount. That steady climb is the rate of change, or slope. It can be negative: a 20 cm candle that burns 2 cm each hour follows y=−2x+20, a straight line going down.

To test a table, look at the differences between outputs for equal steps in the input. For x=0,1,2,3 and y=4,7,10,13, the differences are 3, 3, 3, so the table is linear with m=3 and b=4. If the x steps are uneven, divide: change in y over change in x.

Growth alone does not make something linear. A savings account holding $100 that earns 10% a year has $110, then $121, then $133.10. It increases every year, but the increases are $10, $11 and $12.10, because each year's interest is paid on a bigger balance. Those widening gaps make the graph curve upward.

Think of it like this. A linear relationship is a staircase whose steps all have the same height. Know the height of one step and where the stairs begin, and you know the height after any number of steps. Real stairs stop somewhere; the line keeps going in both directions, even to negative inputs.

Core idea. A linear relationship adds the same amount each step, drawing a straight line y=mx+b.


When to Use

Use a linear model when a quantity changes by the same amount for each equal step: $2 per mile, a drop of 3 degrees every hour, a starting fee plus a rate, or a table whose output differences are all equal. Write y=mx+b, with m the change per step and b the value at zero. If the gaps between outputs grow or shrink, the relationship is nonlinear; if they are equal and the line starts at 0, it is the proportional case y=kx.

Tip. Ask: Does each equal step in x add the same fixed amount to y?

How to Recognize It

Before you write y=mx+b, find two numbers in the situation: how much it starts with and how much it changes per unit.

  1. Is there a starting amount before anything happens, like a $15 sign-up fee or a candle that is 20 cm tall?

    That amount is b, and it makes the relationship linear but not proportional. If the start is zero, as with pay for hours worked, b=0 and you have the proportional case y=kx.

  2. In the table, do the x values go up by the same amount from row to row?

    If they jump unevenly, such as 1, 2, 5, 6, divide each change in y by its change in x instead of comparing the raw jumps in y. Equal quotients mean linear; unequal quotients mean nonlinear.

  3. Is something multiplied at each step, like money that doubles or a town that grows 10% a year?

    Then the changes get bigger each time and the graph curves upward: a nonlinear, exponential pattern. Linear change only ever adds or subtracts, as with $20 saved every week.

  4. Does the question want the whole rule, rather than just how steep the line is?

    Then give both m and b. If it only asks how fast something changes, like centimetres per hour, the slope alone answers it and the starting value can be left out.

Linear Relationship compared with Proportional relationship / direct variation, Nonlinear relationship, and Slope alone

Each row describes how one quantity changes with another, so one table can fit several of them. Ask whether the change per step is steady, and if it is, whether the rule starts at zero or needs a starting value.

Linear Relationship

Meaning
Use this when equal steps in the input add a constant amount to the output, possibly from a nonzero starting value.
Key test
Does each equal step in x add the same fixed amount to y?
Formula
y=mx+b
Example
A plan costs $15 to start plus $5 per gigabyte. Write the rule and find the cost for 4 GB.

Proportional relationship / direct variation

Meaning
A special linear case through the origin with b=0.
Key test
Use when there is no starting value, just a constant ratio.
Formula
y=kx
Example
$10/month with no join fee

Nonlinear relationship

Meaning
Rate of change is not constant; graph curves.
Key test
Use when the differences between equal steps themselves change.
Formula
y=x2, y=2x
Example
Compound interest

Slope alone

Meaning
The rate m inside the relationship, not the whole rule.
Key test
Use when you only need steepness, not the starting value.
Formula
m=ΔyΔx
Example
Just the 10 in y=10x+20

Formula & Notation

y=mx+b
y=mx+b,  m=ΔyΔx=const,  b=y∣x=0

How to read it: m is the slope (rate of change), b is the y-intercept (starting value)

Worked Examples

Example 1 — Phone plan

Easy

A plan costs $15 to start plus $5 per gigabyte. Write the rule and find the cost for 4 GB.
Show the steps and the answer
  1. Read the starting value and the rate: $15 before any data is used, $5 for each gigabyte.

    The $15 is paid even at 0 GB, so it is b; the $5 comes with every gigabyte, so it is m.

  2. Write the rule: C=5g+15.

    Each gigabyte adds the same $5, which is what makes the plan linear.

  3. Substitute g=4: C=5(4)+15=20+15=35.

    The rule turns any number of gigabytes straight into a cost.

  4. Check by counting up from $15: $20, $25, $30, $35.

    Four steps of $5 land on $35, matching the rule.

Answer: $35

Takeaway: A start-up fee plus a fixed charge per unit gives y=mx+b: the fee is b and the charge per unit is m.

Example 2 — Growth that speeds up

Standard

An account holds $100,$110,$121,$133.10 over years. Is it linear?
Show the steps and the answer
  1. Find the yearly changes: 110−100=10, 121−110=11, 133.10−121=12.10.

    A linear relationship would add the same amount in every year.

  2. Compare them: 10, 11 and 12.10 keep growing.

    Unequal changes over equal time steps mean the graph cannot be a straight line.

  3. Find what stays the same instead: 110100=121110=133.10121=1.1.

    Each year multiplies the balance by 1.1, which is 10% interest on the current balance.

  4. Name the model: A=100(1.1)t.

    A constant multiplier per step is exponential growth, one kind of nonlinear relationship.

Answer: No, it's nonlinear (exponential growth)

Takeaway: Test for a line with differences: equal differences give a line, while equal ratios point to exponential growth.

Example 3 — Find the mistake: a rate from one point

Application

A bike rental charges a fixed fee plus a rate per hour. A 2-hour rental costs $26 and a 5-hour rental costs $50. Kim writes: "The rate is 26÷2=13 dollars per hour." Find the mistake and find the rate and the fee.
Show the steps and the answer
  1. Test Kim's rate on the other rental: 13×5=65, but 5 hours cost $50.

    Dividing one total by its hours works only when no fixed fee is hiding inside the total.

  2. Use both rentals: m=50−265−2=243=8.

    The 3 extra hours added $24, so each hour adds $8; the fee is in both totals and cancels in the difference.

  3. Find the fee: 26−8(2)=26−16=10.

    Whatever the 2 hours of riding don't explain is the starting value b.

  4. Write C=8h+10 and check: 8(5)+10=50.

    The rule fits both rentals.

Answer: $8 per hour plus a $10 fee: C=8h+10.

Takeaway: Find the rate from the change between two points; dividing a single total by its input mixes the fee into the rate.

Where You'll See It

  • Converting Celsius to Fahrenheit

    The rule F=1.8C+32 is linear: each degree Celsius adds 1.8 degrees Fahrenheit, starting from 32 at 0 °C. So 100 °C is 1.8(100)+32=212 °F, the boiling point of water.

  • Filling a pool that already has water

    A pool holds 500 litres and a hose adds 40 litres per minute, so V=40t+500. After 30 minutes it holds 40(30)+500=1,700 litres. The 500 is the head start b, and the hose rate is the slope.

  • Saving toward a bike

    Ana has $40 and saves $12 a week, so her savings are S=12w+40. To reach $160 she solves 12w+40=160, so 12w=120 and w=10 weeks.

Common Mistakes

  1. The slip: Assuming any increasing pattern is linear

    Instead: require a constant difference between equal steps, not just growth.

  2. The slip: Ignoring the y-intercept b

    Instead: the starting value shifts the whole line up or down even when the rate is right.

  3. The slip: Reading the rate from a single point

    Instead: compute it as change-in-y over change-in-x across two points.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. For y=3x+2, find y when x=0, 1 and 2. How much does y grow per step?

    Hint: Substitute each value of x, then compare the results.

  2. A candle is 20 cm tall and burns 2 cm per hour. Write a rule for its height h after t hours, and find the height after 6 hours.

    Hint: Start at 20 and take away the same amount each hour.

  3. Find the slope of the line through (1,4) and (5,16).

    Hint: Divide the change in y by the change in x.

  4. A table shows x=0,2,4,6 and y=5,9,13,17. Write the equation of the line.

    Hint: Find how much y changes for each 1 step in x, and where y starts.

  5. A table shows x=1,2,3,4 and y=1,4,9,16. Is the relationship linear or nonlinear?

    Hint: Find how much y changes from each value to the next.

  6. A line passes through (0,4) and (4,12). Ben says the slope is 12÷4=3. Correct his work.

    Hint: Slope compares changes between two points, not one point's coordinates.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Is a horizontal line a linear relationship?

Yes. A horizontal line such as y=5y = 5 is y=0x+5y = 0x + 5, with slope 0: every step in xx changes yy by zero, which is still a constant change. A parking lot that charges a flat $5 however long you stay has this graph. A vertical line like x=3x = 3 is different: it is not a function of xx at all, because one input would have many outputs.

How many points do I need to be sure a relationship is linear?

Two points always fit some straight line, so two points prove nothing. You need at least three, and they must all lie on one line: the slope from the first point to the second must equal the slope from the second to the third. Real measurements are never perfect, so with data people check that many points lie close to one line.

Can I find the slope by dividing the total by the input, like $40 for 4 gigabytes?

Only if the relationship starts at zero. With a $15 base fee, $40 for 4 gigabytes means $25 of usage, so the slope is $6.25 per gigabyte, not $10. Dividing the total by the input mixes the starting value into the rate. Use two points instead: the change in cost divided by the change in gigabytes.

What does the point where the line crosses the x-axis mean?

It is where yy becomes 0, found by setting y=0y = 0 and solving. For a gift card that starts at $60 and loses $4 each time you buy a drink, y=−4x+60y = -4x + 60 reaches 0 when x=15x = 15, so the card covers 15 drinks. In stories the xx-intercept answers questions like when a tank runs dry or when savings reach zero.

Learning Path

← Before

Rate of Change
Linear Relationship

You are here

You need Rate of Change (how much one quantity changes per unit of another) first. A linear relationship combines a constant rate with a starting value, giving the rule y=mx+b and a straight-line graph. Next, Linear Functions treat that rule as a function to graph, solve and compare, and Slope looks closely at m, computed from any two points.

See Also