Linear Functions- Definition, Graph, and Applications
What Is a Linear Function?
A linear function is any equation that graphs as a straight line. That's it. No curves, no weird shapes—just a line that goes up, down, or sideways at a constant rate.
The standard form looks like this:
f(x) = mx + b
Or in math class notation:
y = mx + b
Where m is the slope and b is the y-intercept. Once you know these two values, you can graph any linear function in seconds.
The Two Parts You Need to Know
Slope (m)
Slope tells you how steep the line is. It's calculated as:
Slope = rise / run (change in y divided by change in x)
Positive slope? Line goes up from left to right. Negative slope? Line goes down. A slope of zero gives you a flat horizontal line.
Y-Intercept (b)
This is where the line crosses the y-axis. Plug in x = 0 and solve for y. That point (0, b) is your y-intercept.
Forms of Linear Equations
Linear equations show up in different outfits. Here's the breakdown:
- Slope-Intercept Form: y = mx + b — easiest to graph, just plug in m and b
- Point-Slope Form: y - y₁ = m(x - x₁) — useful when you know one point and the slope
- Standard Form: Ax + By = C — A, B, and C are integers, A should be positive
- Two-Point Form: y - y₁ = [(y₂ - y₁)/(x₂ - x₁)](x - x₁) — use when you have two points but no slope
How to Graph a Linear Function
Here's the fastest way to graph y = mx + b:
- Plot the y-intercept (0, b) on the y-axis
- Use the slope m to find a second point — rise m units up (or down if negative), run 1 unit right
- Draw a line through the two points
Example: Graph y = 2x + 3
- Y-intercept is 3, so plot (0, 3)
- Slope is 2, so go up 2, right 1 → plot (1, 5)
- Connect the dots
Linear Functions vs. Other Function Types
| Type | Equation | Graph Shape | Rate of Change |
|---|---|---|---|
| Linear | y = mx + b | Straight line | Constant |
| Quadratic | y = ax² + bx + c | Parabola (U-shape) | Changes |
| Exponential | y = a·bˣ | Curved, rapid growth/decay | Percentage-based |
| Absolute Value | y = |x| | V-shape | Changes at vertex |
Real-World Applications
Linear functions aren't just textbook junk. They model actual situations:
- Taxi fares: Base fare + rate per mile — that's y = mx + b
- Cell phone bills: Monthly fee + cost per minute over limit
- Distance problems: Distance = speed × time + starting distance
- Salary with commission: Base pay + percentage of sales
- Unit conversions: Converting between Celsius and Fahrenheit uses linear relationships
Any situation with a constant rate of change is a linear function in disguise.
How to Find the Equation From Two Points
Got two points? Find the slope first:
m = (y₂ - y₁) / (x₂ - x₁)
Then plug one point and the slope into point-slope form: y - y₁ = m(x - x₁)
Example: Points (1, 3) and (3, 7)
- m = (7 - 3) / (3 - 1) = 4/2 = 2
- y - 3 = 2(x - 1)
- y = 2x + 1
Common Mistakes to Avoid
- Confusing slope sign: Negative slope goes down, not up
- Forgetting to simplify: Always reduce fractions in slope
- Mixing up x and y intercepts: Y-intercept has x = 0, x-intercept has y = 0
- Writing horizontal lines wrong: y = 3 means x can be anything, y is always 3
Quick Reference Cheat Sheet
| What You Know | Use This Form |
|---|---|
| Slope and y-intercept | y = mx + b |
| Slope and one point | y - y₁ = m(x - x₁) |
| Two points | Find slope, use point-slope |
| Intercepts only | Plot (0, b) and (a, 0), draw line |
When Linear Functions Don't Apply
Linear models break down when the rate of change isn't constant. Population growth, compound interest, and radioactive decay all curve—they need exponential or other nonlinear models.
If your data points don't form a straight line when plotted, a linear function won't cut it. Always check your scatter plot first.