Graphing Linear Functions
The graph of a linear function is a straight line, and every point on that line is a solution of the equation. That second part is the key idea: a graph is not decoration — it is a picture of every input-output pair the function produces.
Because two points determine a line, graphing a linear function only ever takes three moves: find two points, plot them, and draw the line through them. Everything in this article is a strategy for finding those two points quickly.
Function notation is just
When you see , read as the -value. The equation and the function have exactly the same graph. Writing just means the -value when .
To find a point, pick any , substitute, and compute. For : gives the point , and gives the point . Plot both and connect them — the graph below shows the result.
Choosing smart points
Any two -values work, but some make the arithmetic easier. is almost always a good first pick, because it gives the -intercept immediately. For an equation like that is not solved for , use the intercepts: set to find where the line crosses the -axis, then set to find where it crosses the -axis.
If the function has a fraction slope, pick -values that clear the fraction. For , choosing and keeps every coordinate a whole number.
Is a point on the graph?
A point is on the graph exactly when substituting its -value into the function produces its -value. To test whether is on the graph of , compute . It matches, so the point is on the line. If the output had been anything other than , the point would miss the line.
Worked examples
Example 1: graph from function notation
Graph .
Answer: The line through and .
Example 2: graph using intercepts
Graph .
Answer: The line through and .
Example 3: test whether a point is on the graph
Is on the graph of ?
Answer: Yes — is on the graph.
Try one yourself
Common questions
Why do I only need two points?
Two points determine exactly one line. A third point is still worth plotting as a check — if it doesn't land on the same line, one of your points has an arithmetic mistake.
What's the difference between and ?
On a graph, nothing — is the -coordinate. Function notation just makes it easier to talk about specific inputs, like meaning the -value at .
Which two points should I pick?
Whichever make the arithmetic clean. is usually the easiest start. If the slope is a fraction, pick an -value that's a multiple of the denominator.
How do I graph an equation like that isn't solved for ?
Use the intercepts: plug in to get one point, then to get another. Or solve the equation for first and graph it like any other function.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.