3.2 Graphing by Plotting Points

Learning Objectives

After completing this section, you should be able to:
  1. Graph a linear equation by plotting points.
  2. Recognize and graph vertical and horizontal lines.
  3. Identify relationships between slope and direction of a line.
  4. Interpret slope and intercepts from equations in different forms.

Introduction

In the previous section, we learned how to locate and name points on the coordinate plane.
Now, we will use those points to draw graphs of linear equations—straight lines that represent all solutions to an equation in two variables.
A linear equation can be written in several forms, such as:
  • y = mx + b (slope-intercept form)
  • Ax + By = C (standard form)
Each solution (x,y) is a point that lies on the line.

Graphing by Plotting Points

To graph a linear equation, we can find several points that satisfy it and then draw the straight line through those points.

Example 3.2.1 — Graph by Plotting Points

Graph: y = 2x + 1
Solution
Step 1: Choose several x-values.
Step 2: Substitute into the equation to find y.
Step 3: Plot each point and draw a straight line through them.
Table 3.2A
x y Ordered Pair
0 1 (0,1)
1 3 (1,3)
2 5 (2,5)
The 3 Points are plotted with a line through them
Figure 3.2A

Try It

Example 3.2.2 — Graph from Standard Form

Graph: 2x + y = 6
Solution
Solve for y:
y = -2x + 6
Table 3.2B
x y Ordered Pair
0 6 (0,6)
2 2 (2,2)
3 0 (3,0)
The 3 points are plotted and a line goes through them.
Figure 3.2B

Try It

Graphing Horizontal and Vertical Lines

Some linear equations create lines that are perfectly flat (horizontal) or perfectly straight up-and-down (vertical).

Horizontal Lines

A horizontal line has the form y = a, where a is a constant.
  • All points have the same y-value.
  • The slope is 0.

Example 3.2.3 — Graph a Horizontal Line

Graph: y = 5
Solution
Every point on this line has y = 5, such as:
(-3,5),\; (0,5),\; (4,5)
Shortcut: You do not need to plot points—y = 5 is a horizontal line that crosses the y-axis at 5.
Graph of line y = 5. The three points are plotted with a line through them.
Figure 3.2C

Vertical Lines

A vertical line has the form x = a, where a is a constant.
  • All points have the same x-value.
  • The slope is undefined.

Example 3.2.4 — Graph a Vertical Line

Graph: x = -3
Solution
Every point on this line has x = -3, such as:
(-3,-2),\; (-3,0),\; (-3,4)
Shortcut: x = -3 is a vertical line that crosses the x-axis at -3.
Graph of the three points plotted and a vertical line through them
Figure 3.2D

Tip

Horizontal lines have the form y = \text{number}.
Vertical lines have the form x = \text{number}.

Try It

Mixed Practice: Recognizing Line Types

Before graphing, identify the type of line you expect.

Table 3.2C
Equation Type Example What to Expect
Slope-intercept y = 3x + 2 Diagonal line; slope 3
Standard form 2x + y = 6 Diagonal line; often easiest after solving for y
Vertical line x = -3 Vertical line; undefined slope
Horizontal line y = 5 Horizontal line; slope 0
Strategy: Before graphing any equation, first decide what type of line it represents. This helps you choose the fastest graphing method.

Example 3.2.5 — Classify and Graph

Graph each equation and briefly describe the line.
A. y = 5x
 Solution
Diagonal line passing through the origin. Example points: (0,0) and (1,5).
Graph of y = 5x
Figure 3.2E
B. y = 4
Solution
Horizontal line at y = 4.
Graph of horizontal line y = 4
Figure 3.2F
C. x = -2
Solution
Vertical line at x = -2.
Graph of vertical line x = -2
Figure 3.2G
D. 3x + 2y = 12
Solution
Diagonal line with intercepts (4,0) and (0,6).
Graph of 3x+2y=12
Figure 3.2H

Key Takeaways

  1. A linear equation graphs as a straight line.
  2. Plot at least two points (preferably three) and connect them.
  3. Lines of the form y = a are horizontal.
  4. Lines of the form x = a are vertical.
  5. Lines that pass through (0,0) have no constant term.

License

Icon for the Creative Commons Attribution-NonCommercial 4.0 International License

Essentials of Mathematics Copyright © 2026 by Scott McDaniel is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, except where otherwise noted.