Algebra 1 · Grades 8, 9
How to Graph Linear Equations
Quick answer
A graph of a linear equation is the picture of every solution it has. To draw one, either plot the y-intercept and step by the slope, find the x- and y-intercepts and join them, or build a small table of values. All three give the same line, because a line is determined once you have two points on it.
What you'll learn
- Graph a line from slope-intercept form, from intercepts, or from a table
- Explain why every point on the line is a solution of the equation
- Graph horizontal and vertical lines correctly
What a graph actually is
A graph is not a decoration attached to an equation. It is a picture of every solution.
Take . The pair is a solution, because . So is , and , and infinitely many others. Plot them all and they fall into a straight line.
That gives the two facts everything else rests on:
Every point on the line is a solution of the equation. Every solution of the equation is a point on the line.
So “graph the equation” means “show me all the solutions at once”, and “is on the line?” is answered by substituting rather than by squinting at a picture.
Why two points are enough
Through any two distinct points there is exactly one straight line. That is why every method below stops after finding two or three points: once you have them, the line is already decided.
Plot a third point anyway. It costs one substitution and catches arithmetic errors, because three correct points always lie in a straight row.
Method 1 — From slope-intercept form
Best when the equation already looks like .
- Plot on the -axis.
- Step by the slope as to a second point.
- Repeat once more, then draw the line.
Method 2 — From the intercepts
Best when the equation looks like , because rearranging is more work than substituting twice.
The -intercept is where the line crosses the horizontal axis, so there. The -intercept is where it crosses the vertical axis, so there.
Set one variable to zero, solve for the other, and repeat.
Method 3 — From a table
Always works, including for equations that are neither form. Choose a few convenient values, compute each , and plot the pairs.
Horizontal and vertical lines
These trip people up because one variable is missing.
| Equation | Graph | Why |
|---|---|---|
| horizontal line through | is always , whatever is | |
| vertical line through | is always , whatever is |
A memory aid that survives pressure: the equation names the axis it crosses. crosses the -axis at and runs vertically; crosses the -axis at and runs horizontally.
Common mistakes
Practice problems
-
Is on the line ?
Hint
Substitute the -coordinate and compare with the -coordinate.
Answer
Yes.
Full solution
, which matches, so the point is on the line.
-
Graph by finding three points.
Answer
, ,
Full solution
The intercept is . The slope is , so step up across to , then again to and .
All lie in a straight row, confirming the arithmetic.
-
Find both intercepts of .
Hint
Set one variable to zero at a time.
Answer
-intercept , -intercept
Full solution
Set : , so , giving .
Set : , so , giving .
-
Find both intercepts of .
Answer
-intercept , -intercept
Full solution
Set : , so .
Set : , so .
-
What does the graph of look like?
Answer
A horizontal line one unit below the -axis.
Full solution
is for every value of , so the solutions are , , and so on — a horizontal line through .
-
What does the graph of look like?
Answer
A vertical line two units left of the -axis.
Full solution
Only is constrained, so can be anything: , , . These stack into a vertical line through .
-
Make a table of three points for , choosing values that avoid fractions.
Hint
Halving is clean when is even.
Answer
, ,
Full solution
Choosing even values keeps whole:
gives ; gives ; gives .
Each step of across raises by , matching a slope of .
-
A taxi charges $3 to start plus $2 per mile. Graph the cost against miles , and explain why only part of the line makes sense.
Hint
Write the equation first. Then ask which values are possible in reality.
Answer
, but only the part with is meaningful.
Full solution
The flat fee is the intercept and the per-mile rate is the slope: .
Points: , , .
The equation has solutions for negative , such as , but a journey cannot be miles long. The mathematical line continues in both directions; only the portion with describes the real situation. Restricting a graph to the values that make sense is called limiting it to a sensible domain.
Frequently asked questions
How many points do I need?
Two are enough to determine a line, but plot three. The third is a free error check: if it does not land on the straight line through the other two, one of your points is wrong.
Which method should I use?
If the equation is already y = mx + b, stepping from the intercept is fastest. If it is in the form Ax + By = C, finding both intercepts is usually less work than rearranging. A table always works and is worth falling back on.
Why is x = 4 a vertical line rather than a point?
The equation puts no condition on y, so every point whose x-coordinate is 4 satisfies it — (4, 0), (4, 1), (4, -7) and so on. Those points stack into a vertical line.
Key terms in this lesson
- Linear equation
- A linear equation is one whose graph is a straight line. Every variable appears to the first power only, so there are no squares, roots, or variables in a denominator.
- Slope
- Slope measures how steep a line is: the change in y divided by the change in x. A slope of 2 means the line climbs 2 units for every 1 unit across.
- y-intercept
- The y-intercept is where a graph crosses the vertical axis — the value of y when x is 0. In y = 2x + 3 the y-intercept is 3, so the line passes through (0, 3).
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.REI.D.10Reasoning with Equations and InequalitiesUnderstand that the graph of an equation in two variables is the set of all its solutions plotted in the coordinate plane, often forming a curve (which could be a line).
- CCSS.MATH.CONTENT.HSF.IF.C.7aInterpreting FunctionsGraph linear and quadratic functions and show intercepts, maxima, and minima.
- CCSS.MATH.CONTENT.8.F.A.3FunctionsInterpret the equation y = mx + b as defining a linear function, whose graph is a straight line; give examples of functions that are not linear.