MathSci Problems
Intro to Linear Functions
Imagine a car cruising down the highway at a steady speed. Every hour, it covers the exact same distance. That’s what linear functions are all about: steady, predictable change.
A linear function is any equation that fits this form:
f(x) = mx + b
Here, m is the slope (how steep the line is), and b is the y-intercept (where the line crosses the vertical axis). What makes it linear is that the variable x is raised to the power of 1. No squares, no roots, no dividing by variables.
When you graph a linear function, you always get a straight line. That straightness tells us the function’s rate of change never changes. For every step you take in x, the output f(x) goes up or down by the same amount.
Calculating slope
Pick any two points on a line, such as (x₁, y₁) and (x₂, y₂). The slope between them is
m = (y₂ − y₁) / (x₂ − x₁)
No matter which points you choose, you’ll get the same result, because the rate of change is constant across the entire line.
Geometrically, this slope tells you the rise over run, or how far up or down the line moves for every step to the right.
Physically, slope is a rate. If x is time and y is distance, the slope tells you your speed, like kilometers per hour.
Different types of slopes tell different stories. If m > 0, the function increases as you move right. If m < 0, it decreases. If m = 0, the line is flat and the output doesn’t change. A vertical line, on the other hand, has an undefined slope because the run is zero (you can’t divide by zero). And a vertical line isn’t even a function, since it assigns many y-values to the same x.
In calculus, slope becomes something deeper. It’s the derivative, which measures instantaneous rate of change. That’s useful for functions whose rates of change vary. But for lines, you don’t need calculus, since the slope is always the same.
The many forms of linear equations
There’s more than one way to write a line. Each form gives you a different perspective, like different camera angles of the same scene. You can convert between them with a bit of algebra.
Slope-intercept form is y = mx + b.
It’s the go-to for graphing. Start at b on the y-axis, then rise and run using the slope. It’s also great for comparing two functions quickly, since whichever one has the bigger slope grows faster.
Point-slope form is y − y₁ = m(x − x₁)
This is perfect when you know the slope and one point. You don’t need to know where it crosses the y-axis. You just build the line from any point.
Standard form is Ax + By = C
This one’s popular in systems of equations. It’s tidy, and the coefficients are usually integers. It’s great for algebraic manipulation.
Intercept form is x/a + y/b = 1
This form shows you exactly where the line hits the x-axis and y-axis. It’s especially useful in economics or optimization problems where you’re working with boundaries or constraints.
How to graph a line
Once you know which form you’re working with, there are several ways to graph a line by hand.
One method is the slope-intercept method. Start at (0, b). From there, use the slope to move. For example, if the slope is 3/2, go up 3 units and right 2 units.
Another option is the intercept method. Set x = 0 to get the y-intercept, and set y = 0 to get the x-intercept. Plot both points and draw the line between them.
You could also use the point-slope method. Start at a given point, move with the slope to find another, and draw the line through both.
Or use the table method. Pick a few x-values, plug them in to get the corresponding y-values, and plot the resulting points.
You don’t have to use the same method every time. Just go with whatever fits the information you’re given.
Parallel and perpendicular lines
When are two lines perfectly aligned, or perfectly opposed?
Parallel lines have the same slope but different y-intercepts. That means they’re climbing or falling at the same rate, but they never touch. This happens when m₁ = m₂ and b₁ ≠ b₂.
Perpendicular lines form a 90° angle with each other. Their slopes are negative reciprocals, meaning m₁ ⋅ m₂ = −1. For example, if one line has a slope of 2, a line perpendicular to it would have a slope of −1/2.
Vertical and horizontal lines are always perpendicular to each other. A vertical line has an undefined slope, and a horizontal line has slope 0, but geometrically, they still form right angles.
Real-world connections
Linear functions show up all the time because so much of real life involves steady change. Some classic examples:
In physics, speed equals distance divided by time. That’s a straight-line relationship if you’re moving at constant speed.
In business, profit increases linearly with each unit sold, at least until costs change.
In chemistry, the Beer–Lambert law links absorbance and concentration in a straight line.
In computer science, linear time algorithms scale like T(n) = kn + c.
In everyday life, you see it when converting currencies, calculating total cost with tax, converting temperature units, or splitting bills evenly.
Lines may be simple, but learning them well makes you ready for the more complicated plots ahead!
Reflect & Explore
Here are some open-ended questions to help you think more deeply about this material and connect it to related ideas.
- Think of three very different real-world situations that could all share the same positive slope. Explain what the slope means in each context and how the y-intercept changes the story.
- Pick a scenario that people often model linearly (total phone-data cost, wage vs. hours, etc.). Describe where the linear model starts to break down and what real-world signal would tell you to switch to a new model.
- Choose one linear relationship you care about (any field). Describe it in four ways: a sentence, an equation, a small input-output table, and a quick sketch. Reflect on what each representation reveals that the others hide.