Linear Equations & Functions
Middle School Math · Pre-High School PrepPreview
1. Introduction
Straight lines are everywhere: the steady climb of a hiking trail, the constant drip of a leaky faucet filling a bucket, the bill from a phone plan that charges a flat fee plus a fixed amount per gigabyte. Whenever something changes at a constant rate, its graph is a straight line, and the math that describes it is called a linear equation.
In this article you will learn to read and write the equation of a line, measure how steep it is (its slope), and find where it crosses the axes. You will also meet the idea of a function — a rule that turns each input into exactly one output — and see why lines are the friendliest functions of all. These tools are the gateway to all of high school algebra, so building strong intuition now pays off for years.
We will lean heavily on pictures and concrete numbers. A line is just a visual record of a rule like "start at and go up every step." Once you can translate freely between the graph, the equation, and the story, linear functions become second nature. You will learn to spot slope from a graph, build an equation from two points, and use function notation to describe real-world rates.
Linear relationships are the simplest kind of change: equal steps in one direction produce equal steps in another. That predictability is what makes them so useful in science, business, and everyday life. Whether you are tracking miles driven, water flowing into a tank, or savings growing at a fixed weekly rate, the same slope-intercept pattern appears again and again.
By the end of this chapter you should be able to look at any equation in the form and immediately describe its graph: where it starts, how steep it is, and whether it rises or falls. You should also be able to go in reverse — start from two points or a real-world story and build the equation yourself. Function notation will feel natural, not like a new language, because you will see it as just another name for the output of a linear rule.
2. Core Concepts
The coordinate plane
We graph lines on the coordinate plane: two number lines crossing at the origin . The horizontal line is the -axis, the vertical line is the -axis. Any point is named by an ordered pair , where tells you how far right (or left) and tells you how far up (or down). The point means "go right and up." The first coordinate is always ; the second is always — mixing them up is one of the most common graphing errors.
What makes an equation "linear"
A linear equation is one whose graph is a perfectly straight line. The signature feature is that changes by the same amount every time increases by — a constant rate of change. There are no exponents on the variables (no ), no variables multiplied together, and no variables in a denominator. Plain is linear; is not.
Slope: the steepness of a line
The slope, written , measures how steep a line is and which way it tilts. It is the rise over run — the vertical change divided by the horizontal change as you move along the line:
If goes up each time goes right , the slope is . Slope carries meaning:
- A positive slope rises from left to right (uphill).
- A negative slope falls from left to right (downhill).
- A slope of is a flat, horizontal line ( never changes).
- A vertical line has an undefined slope (the run is , and we cannot divide by ).
The bigger the absolute value of the slope, the steeper the line: a slope of is much steeper than a slope of .
The slope between two points
Given any two points and on a line, the slope is
The subscripts just label the points — "point " and "point ." The key rule is consistency: whichever point you call point , its coordinates must go first in both the top and the bottom. The top is the change in ; the bottom is the change in , in the same order.
The -intercept and slope-intercept form
The -intercept is the point where the line crosses the -axis — the value of when . We call it . Combining the slope and the -intercept gives the most useful equation of a line, slope-intercept form:
where is the slope and is the -intercept. You can read a line's whole story straight from this form: start at height on the -axis, then climb by for every step right. For , you start at and rise each time increases by .
The -intercept
The -intercept is where the line crosses the -axis — the value of when . To find it, set in the equation and solve for . For , setting gives , so . The -intercept is . Intercepts are useful anchors when graphing and when interpreting real-world models (like "how many miles until the cost hits zero?" — often not meaningful, but the technique is the same).
Functions and function notation
A function is a rule that assigns to each input exactly one output. Think of a function as a machine: you drop in an input, the machine does its job, and out comes a single, predictable output. We write functions with function notation, like , read "f of ." Here is the input and is the output. So means "the output when the input is ."
Every linear equation is a function, because each produces exactly one . We can rename as and write — same line, just emphasizing the input-output relationship.
The vertical line test
How can you tell from a graph whether it is a function? Use the vertical line test: imagine sweeping a vertical line across the graph. If that vertical line ever touches the graph in more than one place at once, the graph is not a function (one input would have two outputs). A straight, non-vertical line always passes the test. A perfectly vertical line fails it.
Rate of change in real life
In word problems, the slope is almost always the "per" rate: dollars per mile, liters per hour, pages per minute. The -intercept is usually a starting amount: a flat fee, an initial volume, a beginning balance. Recognizing this pattern lets you write directly from a story without plotting points first.
Parallel lines
Two non-vertical lines are parallel if they never cross — they have the same slope but different -intercepts. If but , the lines are parallel. For example, and are parallel (both have slope ).
Reading a graph to find slope and intercept
From a graph you can read the -intercept directly: it is where the line crosses the -axis. To find slope, pick two clear points on the line, count the rise (vertical change) and run (horizontal change), and write . If the line goes up for every steps right, the slope is . Always move from left to right when counting run so your sign is consistent.
Tables and linear patterns
A table of inputs and outputs that grows by a constant amount each step represents a linear function. If increases by and always increases by , the slope is . The -value when in the table is the -intercept. Tables, graphs, and equations are three views of the same line — learning to move between them deepens your understanding.
Continue reading with Premium
Upgrade to read the full article and unlock all Premium features.
Free
- Unlimited practice — all difficulties
- 3 hints / day
- Community solutions
- 2 timed mocks / month
Premium
- ✓Full article + all 57+ theory guides
- ✓Unlimited hints on practice problems
- ✓Unlimited timed mock exams & PDF worksheets