Let’s Start With a Story
Imagine you work at a café and earn $15 per hour. As you work more hours, the amount of money you earn grows as well. Every additional hour adds another $15 to your pay.
Many situations in everyday life behave like this - when one thing changes, another changes alongside it in a steady and predictable way.
This idea is at the heart of what mathematicians call a linear function.
So What Is a Linear Function?
A linear function describes a relationship between two things where the change happens at a constant rate. In other words, for every equal increase in one quantity, the other quantity changes by the same amount.
You may see it written like this: y = mx + b
If that expression looks unfamiliar, don’t worry about remembering it right now. The most important thing is understanding the idea behind it.
Let’s look at each part using our café example.
| Symbol | What It Represents | Café Example |
|---|---|---|
| y | The result we want to know | Total money earned |
| x | The amount we choose or change | Hours worked this week |
| m | How much the result changes each time | $15 earned per hour |
| b | What you already have before starting | Money earned last week |
The b is easy to overlook, but it is important.
Imagine you already earned $60 last week. This week you work 3 hours at $15/hour.
Your total is not just 3 x $15 = $45. It is $45 + $60 = $105.
That $60 is your b - your starting point before this week even begins.
When b = 0, it simply means you are starting from nothing.
Try It Yourself - The Café Calculator
Play with the sliders below. Try setting last week’s earnings to $60 and see what happens to your total!
☕ Your Café Earnings Calculator
Your formula
y = 15 x 1 + 0
This week
$15
Last week (b)
$0
Total (y)
$15
Seeing the Pattern
Suppose you earn $15 per hour with no carry-over from last week.
| Hours Worked | Money Earned |
|---|---|
| 0 | $0 |
| 1 | $15 |
| 2 | $30 |
| 3 | $45 |
| 4 | $60 |
Notice something - every time the hours increase by 1, the money earned increases by $15. The increase stays the same each time. That steady pattern is what makes this relationship linear.
Explore Further - The Graph Builder
Now that you understand the idea, try building your own linear function below. Watch how changing m and b affects the shape and position of the line.
📈 Build Your Own Linear Function!
y = 1x + 0
A Helpful Way to Think About It
A linear function is like walking up a staircase where every step has the same height. You always move upward by the same amount.
Because the change is consistent and predictable, linear functions are often used to model things such as:
- Hourly wages
- Distance travelled at a constant speed
- Monthly savings
- Phone plans with a fixed cost per month
Whenever a relationship grows or decreases at a steady rate, a linear function may be a useful model.
Key Idea
A linear function describes a relationship where the output changes at a constant rate as the input changes. The formula y = mx + b is simply a compact way of describing that pattern.
Before memorizing the formula, focus on recognizing the idea:
Equal changes in the input produce equal changes in the output.
Quick Quiz - Test Yourself!
🧠 Quick Quiz - Test Yourself!