Fiveable

🔟Elementary Algebra Unit 4 Review

QR code for Elementary Algebra practice questions

4.2 Graph Linear Equations in Two Variables

4.2 Graph Linear Equations in Two Variables

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🔟Elementary Algebra
Unit & Topic Study Guides

Graphing Linear Equations

Solutions and graph representations

A linear equation in two variables (like xx and yy) represents a straight line when you graph it on a coordinate plane. Every point on that line is a solution to the equation, meaning its xx and yy values make the equation true when you plug them in.

The graph gives you a visual picture of the entire solution set. Instead of listing solutions one by one, you can see at a glance:

  • The direction of the relationship (is yy increasing or decreasing as xx increases?)
  • The steepness of the relationship (how quickly yy changes relative to xx)
  • Specific solutions by reading coordinates off the line

For example, the equation y=2x+1y = 2x + 1 has infinitely many solutions. The point (3,7)(3, 7) is one of them because 2(3)+1=72(3) + 1 = 7. The graph shows all of these solutions at once as a straight line.

Solutions and graph representations, Systems of Linear Equations: Two Variables – Algebra and Trigonometry OpenStax

Graphing linear equations

To graph a linear equation, you plot points that satisfy the equation and then connect them with a straight line. Here's the process:

  1. Pick values for xx. Choose at least two, but three is better for accuracy. Simple values like 0,1,20, 1, 2 or 1,0,1-1, 0, 1 tend to keep the arithmetic easy.
  2. Substitute each xx-value into the equation and solve for yy. This gives you ordered pairs (x,y)(x, y).
  3. Plot the ordered pairs on the coordinate plane. The xx-coordinate tells you how far left or right to go; the yy-coordinate tells you how far up or down.
  4. Connect the points with a straight line using a straightedge, and extend the line in both directions with arrows to show it continues.

Only two points are technically needed to determine a line, but plotting a third point acts as a check. If all three points don't line up, you know there's an arithmetic mistake somewhere.

Example: Graph y=x+4y = -x + 4

  • If x=0x = 0: y=(0)+4=4y = -(0) + 4 = 4 → point (0,4)(0, 4)
  • If x=2x = 2: y=(2)+4=2y = -(2) + 4 = 2 → point (2,2)(2, 2)
  • If x=4x = 4: y=(4)+4=0y = -(4) + 4 = 0 → point (4,0)(4, 0)

Plot these three points and draw a straight line through them.

Solutions and graph representations, Graph linear functions | College Algebra

Vertical vs horizontal lines

These two special types of lines trip students up because they look different from typical linear equations.

Vertical lines have equations of the form x=ax = a, where aa is a constant. The xx-coordinate is the same for every point on the line, no matter what yy is.

  • x=3x = 3 passes through (3,0)(3, 0), (3,1)(3, 1), (3,2)(3, -2), and every other point where xx is 3.
  • Vertical lines run straight up and down, perpendicular to the xx-axis.
  • To graph one, find aa on the xx-axis and draw a vertical line through it.

Horizontal lines have equations of the form y=by = b, where bb is a constant. The yy-coordinate is the same for every point on the line, no matter what xx is.

  • y=1y = -1 passes through (0,1)(0, -1), (2,1)(2, -1), (3,1)(-3, -1), and every other point where yy is 1-1.
  • Horizontal lines run left and right, perpendicular to the yy-axis.
  • To graph one, find bb on the yy-axis and draw a horizontal line through it.

A quick way to remember: the equation tells you which coordinate is "locked." If xx is locked (x=ax = a), the line is vertical. If yy is locked (y=by = b), the line is horizontal.

Coordinate Plane Components

The coordinate plane is formed by two number lines crossing at a right angle:

  • The x-axis is the horizontal number line.
  • The y-axis is the vertical number line.
  • The origin is where they intersect, at (0,0)(0, 0).

These axes divide the plane into four quadrants, numbered I through IV counterclockwise starting from the upper right.

An intercept is where a line crosses an axis:

  • The x-intercept is the point where the line crosses the xx-axis. At this point, y=0y = 0.
  • The y-intercept is the point where the line crosses the yy-axis. At this point, x=0x = 0.

Intercepts are useful for graphing because they're easy to calculate and give you two points right away.

Additional Concepts

A function is a relation where each input (xx-value) produces exactly one output (yy-value). Most linear equations in two variables are functions: for any xx you choose, there's only one corresponding yy.

The one exception among lines is vertical lines. A vertical line like x=3x = 3 gives infinitely many yy-values for a single xx-value, so vertical lines are not functions. You can check this with the vertical line test: if any vertical line you draw would cross the graph more than once, the graph is not a function.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly → and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot

2,589 studying →