Learn on PengiOpenstax Elementary Algebra 2EChapter 4: Graphs

Lesson 4.2: Graph Linear Equations in Two Variables

In this lesson from OpenStax Elementary Algebra 2E, students learn to graph linear equations in two variables by plotting ordered pairs as points in the rectangular coordinate system and connecting them to form a line. Students explore the relationship between solutions of an equation like 3x + 2y = 6 and its graph, understanding that every point on the line is a solution and every solution corresponds to a point on the line. The lesson also covers graphing special cases, including vertical and horizontal lines.

Section 1

πŸ“˜ Graph Linear Equations in Two Variables

New Concept

The graph of a linear equation is a straight line where every point represents a solution. We'll explore this relationship by plotting points to draw lines, including special cases like vertical (x=ax=a) and horizontal (y=by=b) lines.

What’s next

Now, let's put this into practice. You'll begin with worked examples and then test your skills on a series of interactive practice cards.

Section 2

Graph of a Linear Equation

Property

The graph of a linear equation Ax+By=CAx + By = C is a line.

  • Every point on the line is a solution of the equation.
  • Every solution of this equation is a point on this line.

Examples

  • For the equation y=2x+1y = 2x + 1, the point (2,5)(2, 5) is a solution because 5=2(2)+15 = 2(2) + 1. Therefore, the point (2,5)(2, 5) is on the graph of the line.
  • For the same equation, y=2x+1y = 2x + 1, the point (3,6)(3, 6) is not a solution because 6β‰ 2(3)+16 \neq 2(3) + 1. Therefore, the point (3,6)(3, 6) is not on the line.
  • Every point on the graph of x+y=5x + y = 5, such as (1,4)(1, 4) and (5,0)(5, 0), represents a pair of numbers that are solutions to the equation.

Section 3

Graphing by Plotting Points

Property

To graph a linear equation by plotting points:
Step 1. Find three points whose coordinates are solutions to the equation. Organize them in a table.
Step 2. Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work!
Step 3. Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.

Examples

  • To graph y=x+3y = x + 3, find three solution points like (0,3)(0, 3), (1,4)(1, 4), and (βˆ’1,2)(-1, 2). Plot these points and draw a line through them.
  • To graph y=12xβˆ’1y = \frac{1}{2}x - 1, choose multiples of 2 for xx to avoid fractions. Good choices would be (0,βˆ’1)(0, -1), (2,0)(2, 0), and (4,1)(4, 1).
  • For 3x+y=43x + y = 4, first rewrite it as y=βˆ’3x+4y = -3x + 4. Then find points by choosing values for xx, such as (0,4)(0, 4), (1,1)(1, 1), and (2,βˆ’2)(2, -2).

Explanation

This method is like an algebraic connect-the-dots. Find at least three coordinate pairs that solve the equation, place them on the graph, and draw a straight line through them. Using three points helps you catch any calculation mistakes.

Section 4

Vertical Lines

Property

A vertical line is the graph of an equation of the form x=ax = a. The line passes through the xx-axis at (a,0)(a, 0). In this type of equation, the value of xx is always equal to aa, no matter the value of yy.

Examples

  • The graph of the equation x=5x = 5 is a vertical line where every point has an x-coordinate of 5, such as (5,0)(5, 0), (5,2)(5, 2), and (5,βˆ’3)(5, -3).
  • The equation x=βˆ’2x = -2 represents a vertical line that passes through the x-axis at the point (βˆ’2,0)(-2, 0).
  • A vertical line that passes through the point (7,4)(7, 4) has the equation x=7x = 7 because the x-coordinate must always be 7.

Explanation

When an equation only has an xx variable, like x=2x = 2, it means xx is always fixed at that number. No matter how high or low you go on the y-axis, the result is a perfectly straight, up-and-down vertical line.

Section 5

Horizontal Lines

Property

A horizontal line is the graph of an equation of the form y=by = b. The line passes through the yy-axis at (0,b)(0, b). In this type of equation, the value of yy is always equal to bb, no matter the value of xx.

Examples

  • The graph of the equation y=4y = 4 is a horizontal line where every point has a y-coordinate of 4, such as (0,4)(0, 4), (2,4)(2, 4), and (βˆ’1,4)(-1, 4).
  • The equation y=βˆ’1y = -1 represents a horizontal line that passes through the y-axis at the point (0,βˆ’1)(0, -1).
  • A horizontal line that passes through the point (5,βˆ’6)(5, -6) has the equation y=βˆ’6y = -6 because the y-coordinate must always be -6.

Explanation

When an equation only has a yy variable, like y=3y = 3, it means yy is always fixed at that number. No matter how far left or right you move along the x-axis, the result is a perfectly flat, horizontal line.

Section 6

Slanted vs. Horizontal Lines

Property

An equation with both xx and yy (like y=4xy = 4x) shows that the value of yy depends on the value of xx. This dependency creates a slanted line.
An equation with only one variable (like y=4y = 4) has a constant value, which creates a horizontal or vertical line.

Examples

  • The graph of y=5xy = 5x is a slanted line because the value of yy changes with xx. The graph of y=5y = 5 is a horizontal line because yy is always 5.
  • The equation y=βˆ’xy = -x produces a slanted line. For instance, the points (1,βˆ’1)(1, -1) and (2,βˆ’2)(2, -2) are both solutions on this line.
  • The equation y=βˆ’3y = -3 produces a horizontal line. For instance, the points (0,βˆ’3)(0, -3) and (5,βˆ’3)(5, -3) are both solutions on this line.

Explanation

An equation like y=2xy = 2x describes a relationship where yy changes as xx changes, creating a slope. In contrast, an equation like y=2y = 2 is a rule where yy is always 2, creating a flat, horizontal line.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 4: Graphs

  1. Lesson 1

    Lesson 4.1: Use the Rectangular Coordinate System

  2. Lesson 2Current

    Lesson 4.2: Graph Linear Equations in Two Variables

  3. Lesson 3

    Lesson 4.3: Graph with Intercepts

  4. Lesson 4

    Lesson 4.4: Understand Slope of a Line

  5. Lesson 5

    Lesson 4.5: Use the Slope-Intercept Form of an Equation of a Line

  6. Lesson 6

    Lesson 4.6: Find the Equation of a Line

  7. Lesson 7

    Lesson 4.7: Graphs of Linear Inequalities

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

πŸ“˜ Graph Linear Equations in Two Variables

New Concept

The graph of a linear equation is a straight line where every point represents a solution. We'll explore this relationship by plotting points to draw lines, including special cases like vertical (x=ax=a) and horizontal (y=by=b) lines.

What’s next

Now, let's put this into practice. You'll begin with worked examples and then test your skills on a series of interactive practice cards.

Section 2

Graph of a Linear Equation

Property

The graph of a linear equation Ax+By=CAx + By = C is a line.

  • Every point on the line is a solution of the equation.
  • Every solution of this equation is a point on this line.

Examples

  • For the equation y=2x+1y = 2x + 1, the point (2,5)(2, 5) is a solution because 5=2(2)+15 = 2(2) + 1. Therefore, the point (2,5)(2, 5) is on the graph of the line.
  • For the same equation, y=2x+1y = 2x + 1, the point (3,6)(3, 6) is not a solution because 6β‰ 2(3)+16 \neq 2(3) + 1. Therefore, the point (3,6)(3, 6) is not on the line.
  • Every point on the graph of x+y=5x + y = 5, such as (1,4)(1, 4) and (5,0)(5, 0), represents a pair of numbers that are solutions to the equation.

Section 3

Graphing by Plotting Points

Property

To graph a linear equation by plotting points:
Step 1. Find three points whose coordinates are solutions to the equation. Organize them in a table.
Step 2. Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work!
Step 3. Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.

Examples

  • To graph y=x+3y = x + 3, find three solution points like (0,3)(0, 3), (1,4)(1, 4), and (βˆ’1,2)(-1, 2). Plot these points and draw a line through them.
  • To graph y=12xβˆ’1y = \frac{1}{2}x - 1, choose multiples of 2 for xx to avoid fractions. Good choices would be (0,βˆ’1)(0, -1), (2,0)(2, 0), and (4,1)(4, 1).
  • For 3x+y=43x + y = 4, first rewrite it as y=βˆ’3x+4y = -3x + 4. Then find points by choosing values for xx, such as (0,4)(0, 4), (1,1)(1, 1), and (2,βˆ’2)(2, -2).

Explanation

This method is like an algebraic connect-the-dots. Find at least three coordinate pairs that solve the equation, place them on the graph, and draw a straight line through them. Using three points helps you catch any calculation mistakes.

Section 4

Vertical Lines

Property

A vertical line is the graph of an equation of the form x=ax = a. The line passes through the xx-axis at (a,0)(a, 0). In this type of equation, the value of xx is always equal to aa, no matter the value of yy.

Examples

  • The graph of the equation x=5x = 5 is a vertical line where every point has an x-coordinate of 5, such as (5,0)(5, 0), (5,2)(5, 2), and (5,βˆ’3)(5, -3).
  • The equation x=βˆ’2x = -2 represents a vertical line that passes through the x-axis at the point (βˆ’2,0)(-2, 0).
  • A vertical line that passes through the point (7,4)(7, 4) has the equation x=7x = 7 because the x-coordinate must always be 7.

Explanation

When an equation only has an xx variable, like x=2x = 2, it means xx is always fixed at that number. No matter how high or low you go on the y-axis, the result is a perfectly straight, up-and-down vertical line.

Section 5

Horizontal Lines

Property

A horizontal line is the graph of an equation of the form y=by = b. The line passes through the yy-axis at (0,b)(0, b). In this type of equation, the value of yy is always equal to bb, no matter the value of xx.

Examples

  • The graph of the equation y=4y = 4 is a horizontal line where every point has a y-coordinate of 4, such as (0,4)(0, 4), (2,4)(2, 4), and (βˆ’1,4)(-1, 4).
  • The equation y=βˆ’1y = -1 represents a horizontal line that passes through the y-axis at the point (0,βˆ’1)(0, -1).
  • A horizontal line that passes through the point (5,βˆ’6)(5, -6) has the equation y=βˆ’6y = -6 because the y-coordinate must always be -6.

Explanation

When an equation only has a yy variable, like y=3y = 3, it means yy is always fixed at that number. No matter how far left or right you move along the x-axis, the result is a perfectly flat, horizontal line.

Section 6

Slanted vs. Horizontal Lines

Property

An equation with both xx and yy (like y=4xy = 4x) shows that the value of yy depends on the value of xx. This dependency creates a slanted line.
An equation with only one variable (like y=4y = 4) has a constant value, which creates a horizontal or vertical line.

Examples

  • The graph of y=5xy = 5x is a slanted line because the value of yy changes with xx. The graph of y=5y = 5 is a horizontal line because yy is always 5.
  • The equation y=βˆ’xy = -x produces a slanted line. For instance, the points (1,βˆ’1)(1, -1) and (2,βˆ’2)(2, -2) are both solutions on this line.
  • The equation y=βˆ’3y = -3 produces a horizontal line. For instance, the points (0,βˆ’3)(0, -3) and (5,βˆ’3)(5, -3) are both solutions on this line.

Explanation

An equation like y=2xy = 2x describes a relationship where yy changes as xx changes, creating a slope. In contrast, an equation like y=2y = 2 is a rule where yy is always 2, creating a flat, horizontal line.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 4: Graphs

  1. Lesson 1

    Lesson 4.1: Use the Rectangular Coordinate System

  2. Lesson 2Current

    Lesson 4.2: Graph Linear Equations in Two Variables

  3. Lesson 3

    Lesson 4.3: Graph with Intercepts

  4. Lesson 4

    Lesson 4.4: Understand Slope of a Line

  5. Lesson 5

    Lesson 4.5: Use the Slope-Intercept Form of an Equation of a Line

  6. Lesson 6

    Lesson 4.6: Find the Equation of a Line

  7. Lesson 7

    Lesson 4.7: Graphs of Linear Inequalities