Where Did Linear Functions Come From?
People have been solving problems about constant rates for thousands of years. Ancient farmers needed to know how much grain to plant for a certain area of land. Merchants needed to figure out the total cost of many items at the same price. These are all situations where one quantity changes at a steady, constant rate — and that's exactly what linear functions describe.
Here's the big question these thinkers were trying to answer: If something changes at a steady rate, how can we predict what will happen next? That's the power of a linear function — it gives you a formula to make predictions.
Core Principles of Linear Functions
Before we start solving problems, let's lock in a few key ideas. A linear function is a rule that creates a straight line when you graph it. It always has a constant rate of change, meaning the output goes up (or down) by the same amount each time the input goes up by one.
Slope (Rate of Change)
Y-Intercept (Starting Value)
y = mx + b
Constant Rate
Seeing a Linear Function on a Graph
A picture is worth a thousand words — especially in math. When you graph a linear function, you always get a straight line. The diagram below shows the function y = 3x + 2. Notice how the line starts at the point (0, 2) on the y-axis. That's the y-intercept. Then it rises 3 units for every 1 unit it moves to the right. That's the slope.
Look at how the line goes up from left to right. Every time x increases by 1, y increases by 3. That's the constant rate of change. The line crosses the y-axis at 2. That's the starting value, or y-intercept.
The Math Behind Linear Models
Every linear function can be written using slope-intercept form. Let's break down the formula and see what each letter means.
To find the slope when you know two points, use the slope formula.
Let's see how these formulas connect to real life. Imagine a taxi charges $4 just to get in the car, plus $2 per mile. The function would be: y = 2x + 4. Here, m = 2 (dollars per mile) and b = 4 (the flat fee).
Three Types of Linear Models
Linear functions show up in three very common situations: distance problems, cost problems, and constant rate problems. The diagram below compares all three side by side.
| Model Type | What Slope Means | What Y-Intercept Means | Example |
|---|---|---|---|
| Distance | Speed (miles per hour) | Starting distance (usually 0) | d = 60t (driving 60 mph) |
| Cost | Price per item or unit | Flat fee or membership cost | C = 3n + 5 ($3/item + $5 shipping) |
| Constant Rate | Amount gained or lost per unit | Starting amount | y = 15x + 50 (saving $15/week, starting with $50) |
Worked Example: Movie Streaming Cost
Let's work through a real problem step by step. You sign up for a streaming service that charges a $10 monthly fee plus $3 for each movie you rent. How much will you spend if you rent 7 movies this month?
When Linear Models Work — and When They Don't
Linear functions are super useful, but they don't work for every situation. Let's compare when they're a great fit and when you need a different kind of model.
| Strengths ✅ | Limitations ⚠️ |
|---|---|
| Easy to write and use — just y = mx + b | Only works when the rate of change is constant |
| Great for predictions — plug in any x to find y | Can't model things that speed up or slow down (like a bouncing ball) |
| Graphs are simple straight lines, easy to read | Doesn't handle curves, like population growth |
| Works for distance, cost, temperature, savings, and more | May give unrealistic answers far outside the data range |
From Linear to Nonlinear: What Comes Next?
You've learned that a linear function has a constant rate of change. But what happens when the rate itself changes? That's where nonlinear functions come in. In future courses, you'll meet exponential functions (where things double repeatedly) and quadratic functions (where things speed up or slow down).
| Feature | Linear (You Are Here!) | Nonlinear (Coming Soon) |
|---|---|---|
| Graph Shape | Straight line | Curved line |
| Rate of Change | Always the same (constant) | Changes as x changes |
| Equation Form | y = mx + b | y = ax² + bx + c, y = a × bˣ, and others |
| Real-World Example | Driving at a steady 50 mph | A ball thrown into the air (slows, stops, falls) |
The great news is that everything you learn about linear functions — slope, y-intercept, graphing, writing equations — will help you understand those more advanced models when you get there. You're building a strong foundation right now!
Practice Problems
Lesson Summary
A linear function is a rule written as y = mx + b, where m (the slope) is the constant rate of change and b (the y-intercept) is the starting value. Its graph is always a straight line. You can use this form to model distance, cost, and constant rate problems by identifying what the slope and y-intercept mean in the real-world situation.
To solve a problem, write the equation by finding m and b, then substitute your known value and simplify. Linear models work best when the rate of change stays constant. If the rate changes, you'll explore nonlinear functions in future courses. Great work — you now have a powerful tool for making predictions!