"

18 Linear Relationships: Intro to Graphing

Topics Covered[1]

In case you missed something in class, or just want to review a specific topic covered in this Module, here is a list of topics covered:

  1. Representations of Mathematical Data
  2. Rectangular Coordinate System
  3. Graphing an Equation by Plotting Points
  4. Graphing an Equation with Intercepts
  5. Key Concepts

Representations of Mathematical Data [2]

Often times when mathematical relationships or data need to be shared or presented, one of the most important decisions you will make will be on how you present your data. In mathematics, and in your Quantitative Reasoning course, there are four ways that data and information can and will be presented for interpretation.

Verbal Representation

A verbal representation is one where words are used to describe a mathematical problem, situation, or data set.

Mary has 5 red marbles, 3 blue marbles, and 7 green marbles. If Mary chooses two marble randomly from her collection out of a bag, what is the probability she will choose a red and a green one?

Numerical Representation

A numerical representation (sometimes called tabular) is one in which numbers describe or represent a mathematical problem, situation, or data set. It is most common to see a table for this type of representation.

Numerical Representation of a linear function
x y
-3 -1
-2 1
-1 3
0 5
1 7
2 9
3 11

Graphical Representation

A graphical representation is one in which mathematical information is plotted and generates a graph representing some relationship.

a grpah of the data table values for graphical representation.
Graphical representation of data table values that matches the numerical representation example.

Symbolic/Algebraic Representation

A symbolic/algebraic representation is one in which mathematical information or relationships are presented using numbers and variables such as in an algebraic equation.

an equation of the data table values for symbolic representation.
Symbolic representation of data table values that matches the graphical representation example.

The next section will introduce how these are represented through Graphing and Linear equations.

The Rectangular Coordinate System[3]

The rectangular coordinate system is also called the x-y plane, the coordinate plane, or the Cartesian coordinate system (since it was developed by a mathematician named René Descartes.)

The graph shows the x y-coordinate plane. The x and y-axis each run from -7 to 7. An arrow points to the horizontal axis with the label “x-axis”. An arrow points to the vertical axis with label “y-axis”. An arrow points to the intersection of the axes with label “origin”.
The x-axis and the y-axis form the rectangular coordinate system. These axes divide a plane into four areas, called quadrants. The quadrants are identified by Roman numerals, beginning on the upper right and proceeding counterclockwise. See the picture below.
<The graph shows the x y-coordinate plane. The x and y-axis each run from -7 to 7. The top-right portion of the plane is labeled “I”, the top-left portion of the plane is labeled “II”, the bottom-left portion of the plane is labelled “III” and the bottom-right portion of the plane is labeled “IV”
In the rectangular coordinate system, every point is represented by an ordered pair. The first number in the ordered pair is the x-coordinate of the point, and the second number is the y-coordinate of the point.

The point (0, 0) is called the origin. It is the point where the x-axis and y-axis intersect.

An ordered pair, (x, y) gives the coordinates of a point in a rectangular coordinate system.

The first number is the x-coordinate.
The second number is they-coordinate.
The ordered pair x y is labeled with the first coordinate x labeled as “x-coordinate” and the second coordinate y labeled as “y-coordinate”

 

We can summarize the sign patterns of the quadrants as follows.

Quadrant I Quadrant II Quadrant III Quadrant IV
(x, y) (x, y) (x, y) (x, y)
(+, +) (−, +) (−, −) (+, −)

The graph shows the x y-coordinate plane. The x and y-axis each run from -7 to 7. The top-right portion of the plane is labeled “I” and “ordered pair +, +”, the top-left portion of the plane is labeled “II” and “ordered pair -, +”, the bottom-left portion of the plane is labelled “III” “ordered pair -, -” and the bottom-right portion of the plane is labeled “IV” and “ordered pair +, -”.

Try it! – Plotting Points in the Rectangular Coordinate System

Plot (1,3) and (3,1) in the same rectangular coordinate system.


Solution

Steps Graph
The coordinate values are the same for both points, but the x and y values are reversed. Let’s begin with point (1, 3). The x-coordinate is 1 so find 1 on the x-axis and sketch a vertical line through x = 1. The y-coordinate is 3 so we find 3 on the y-axis and sketch a horizontal line through y = 3. Where the two lines meet, we plot the point (1, 3). The graph shows the x y-coordinate plane. The x and y-axis each run from -6 to 6. A horizontal dotted line passes through 3 on the y axis. A vertical dotted line passes through 1 on the x axis. The dotted lines intersect at a point labeled “ordered pair 1, 3”.
To plot the point (3, 1), we start by locating 3 on the x-axis and sketch a vertical line through x = 3. Then we find 1 on the y-axis and sketch a horizontal line through y = 1. Where the two lines meet, we plot the point (3, 1).

 

Notice that the order of the coordinates does matter, so, (1, 3) is not the same point as (3, 1).

The graph shows the x y-coordinate plane. The x and y-axis each run from -6 to 6. A horizontal dotted line passes through 1 on the y-axis. A vertical dotted line passes through 3 on the x axis. The dotted line intersects at a point labeled “ordered pair 3, 1”.

2.Plot each point in the rectangular coordinate system and identify the quadrant in which the point is located

a. (−5, 4)     b.(−3, −4)     c.(2, −3)     d.(0,− 1)     e. \displaystyle\left (3,\frac{5}{2}\right).


Solution

The first number of the coordinate pair is the x-coordinate, and the second number is the y-coordinate. To plot each point, sketch a vertical line through the x-coordinate and a horizontal line through the y-coordinate. Their intersection is the point.

Problem Number Algebraic
a Since x = −5, the point is to the left of the y-axis. Also, since y = 4, the point is above the x-axis. The point (−5, 4) is in Quadrant II.
b Since x = −3, the point is to the left of the y-axis. Also, since y = −4, the point is below the x-axis. The point (−3, −4) is in Quadrant III.
c Since x = 2, the point is to the right of the y-axis. Since y = −3, the point is below the x-axis. The point (2, −3) is in Quadrant IV.
d Since x = 0, the point whose coordinates are (0, −1) is on the y-axis.
e Since x = 3, the point is to the right of the y-axis. Since \displaystyle y = \frac{5}{2}, the point is above the x-axis. (It may be helpful to write \displaystyle\frac{5}{2} as a mixed number or decimal.) The point \displaystyle\left (3, \frac{5}{2}\right) )is in Quadrant I

This figure shows points plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The following points are labeled: (3, 5 divided by 2), (negative 2, 3), negative 5, 4), (negative 3, negative 4), and (2, negative 3).

 

Equations with two variables may be of the form Ax + By = C. An equation of this form is called a linear equation in two variables.

Linear Equation

An equation of the form Ax + By = C, where A and B are not both zero, is called a linear equation in two variables.

Here is an example of a linear equation in two variables, x and y.

 

This figure shows the equation A x plus B y plus C. Below this is the equation x plus 4 y plus 8. Below this are the equations A plus 1, B plus 4, C plus 8. B and 4 are the same color in all the equations. C and 8 are the same color in all the equations.

The equation y = −3x + 5  is also a linear equation. But it does not appear to be in the form Ax + By = C.  We can use the Addition Property of Equality and rewrite it in Ax + By = C form.

Steps
Algebraic
y = −3x + 5
Add to both sides. y + 3x = −3x + 5 + 3x
Simplify. y + 3x = 5
Use the Commutative Property to put it in Ax + By = C form.  3x + y = 5

By rewriting y = −3x + 5 as 3x + y = 5, we can easily see that it is a linear equation in two variables because it is of the form Ax + By = C.  When an equation is in the form Ax + By = C, we say it is in standard form of a linear equation.

Standard Form of Linear Equation

A linear equation is in standard form when it is written Ax + By = C.

Most people prefer to have A, B, and C be integers and A ≥ 0 when writing a linear equation in standard form, although it is not strictly necessary.

Linear equations have infinitely many solutions. For every number that is substituted for x there is a corresponding y value. This pair of values is a solution to the linear equation and is represented by the ordered pair (x, y). When we substitute these values of x and y into the equation, the result is a true statement, because the value on the left side is equal to the value on the right side.

An ordered pair (x, y) is a solution of the linear equation Ax + By = C, if the equation is a true statement when the x– and y-values of the ordered pair are substituted into the equation.

Linear equations have infinitely many solutions. We can plot these solutions in the rectangular coordinate system. The points will line up perfectly in a straight line. We connect the points with a straight line to get the graph of the equation. We put arrows on the ends of each side of the line to indicate that the line continues in both directions.

A graph is a visual representation of all the solutions of the equation. It is an example of the saying, “A picture is worth a thousand words.” The line shows you all the solutions to that equation. Every point on the line is a solution of the equation. And, every solution of this equation is on this line. This line is called the graph of the equation. Points not on the line are not solutions!

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

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

Try it!

The graph of y = 2x − 3 is shown.


This figure shows a straight line graphed on the x y-coordinate plane. The x and y-axes run from negative 10 to 10. The line has arrows on both ends and goes through the points (negative 3, negative 9), (negative 2, negative 7), (negative 1, negative 5), (0, negative 3), (1, negative 1), (2, 1), (3, 3), (4, 5), (5, 7), and (6, 9). The line is labeled y plus 2 x minus 3.For each ordered pair, decide:

a. Is the ordered pair a solution to the equation?

b. Are the following points on the line?

A: (0, −3)     B: (3, 3)     C: (2, −3)     D: (−1, −5)


Solution

Problem Number Steps Graph
a Substitute the x– and y-values into the equation to check if the ordered pair is a solution to the equation. Example A shows the ordered pair (0, negative 3). Under this is the equation y plus 2 x minus 3. Under this is the equation negative 3 equals 2 times 0 minus 3. The negative 3 and 0 are colored the same as the negative 3 and 0 in the ordered pair at the top. There is a question mark above the plus sign. Below this is the equation negative 3 plus negative 3. Below this is the statement (0, negative 3) is a solution. Example B shows the ordered pair (3, 3). Under this is the equation y plus 2 x minus 3. Under this is the equation 3 equals 2 times 3 minus 3. The 3 and 3 are colored the same as the 3 and 3 in the ordered pair at the top. There is a question mark above the plus sign. Below this is the equation 3 plus 3. Below this is the statement (3, 3) is a solution. Example C shows the ordered pair (2, negative 3). Under this is the equation y plus 2 x minus 3. Under this is the equation negative 3 equals 2 times 2 minus 3. The negative 3 and 2 are colored the same as the negative 3 and 2 in the ordered pair at the top. There is a question mark above the plus sign. Below this is the inequality negative 3 is not equal to 1. Below this is the statement (2, negative 3) is not a solution. Example D shows the ordered pair (negative 1, negative 5). Under this is the equation y plus 2 x minus 3. Under this is the equation negative 5 equals 2 times negative 1 minus 3. The negative 1 and negative 5 are colored the same as the negative 1 and negative 5 in the ordered pair at the top. There is a question mark above the plus sign. Below this is the equation negative 5 plus negative 5. Below this is the statement (negative 1, negative 5) is a solution.
b Plot the points (0, −3), (3, 3), (2, −3), and (−1, −5).

 

The points (0, 3), (3, −3), and (−1, −5) are on the line y = 2x − 3,  and the point (2, −3) is not on the line.

The points that are solutions to y = 2x − 3 are on the line, but the point that is not a solution is not on the line.

This figure shows the graph of the linear equation y plus 2 x minus 3 and some points graphed on the x y-coordinate plane. The x and y-axes run from negative 10 to 10. The line has arrows on both ends and goes through the points (negative 1, negative 5), (0, negative 3), and (3, 3). The point (2, negative 3) is also plotted but not on the line.

Graph a Linear Equation by Plotting Points[4]

Let’s graph the equation y = 2x + 1 by plotting points.

We start by finding three points that are solutions to the equation. We can choose any value for x or y, and then solve for the other variable.

Since y is isolated on the left side of the equation, it is easier to choose values for x. We will use 0, 1, and -2 for x for this example. We substitute each value of x into the equation and solve for y.
The figure shows three algebraic substitutions into an equation. The first substitution is for x = -2, with -2 shown in blue. The next line is y = 2 x + 1. The next line is y = 2 open parentheses -2, shown in blue, closed parentheses, + 1. The next line is y = - 4 + 1. The next line is y = -3. The last line is “ordered pair -2, -3”. The second substitution is for x = 0, with 0 shown in blue. The next line is y = 2 x + 1. The next line is y = 2 open parentheses 0, shown in blue, closed parentheses, + 1. The next line is y = 0 + 1. The next line is y = 1. The last line is “ordered pair 0, 2”. The third substitution is for x = 1, with 1 shown in blue. The next line is y = 2 x + 1. The next line is y = 2 open parentheses 1, shown in blue, closed parentheses, + 1. The next line is y = 2 + 1. The next line is y = 3. The last line is “ordered pair -1, 3”.

We can organize the solutions in a table.

y = 2x + 1
x y (x, y)
0 1 (0, 1)
1 3 (1, 3)
−2 −3 (−2, −3)

Now we plot the points on a rectangular coordinate system. Check that the points line up. If they did not line up, it would mean we made a mistake and should double-check all our work.
The graph shows the x y-coordinate plane. The x and y-axis each run from -7 to 7. Three labeled points are shown, “ordered pair -2, -3”, “ordered pair 0, 1”, and ordered pair 1, 3”.

Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line. The line is the graph of y=2x+1.

The graph shows the x y-coordinate plane. The x and y-axis each run from -7 to 7. A line passes through three labeled points, “ordered pair -2, -3”, “ordered pair 0, 1”, and ordered pair 1, 3”.

How to graph a linear equation by plotting points:

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

OR

How to graph by plotting points given an equation:

  1. Make a table with one column labeled x, a second column labeled with the equation, and a third column listing the resulting ordered pairs.
  2. Enter x-values down the first column using positive and negative values. Selecting the x-values in numerical order will make the graphing simpler.
  3. Select x-values that will yield y-values with little effort, preferably ones that can be calculated mentally.
  4. Plot the ordered pairs.
  5. Connect the points if they form a line.

Try it!

Graph the equation y = 2x + 1 by plotting points.


Solution
Step 1 is to Find three points whose coordinates are solutions to the equation. You can choose any values for x or y. In this case since y is isolated on the left side of the equations, it is easier to choose values for x. Choosing x plus 0. We substitute this into the equation y plus 2 x plus 1 to get y plus 2 times 0 plus 1. This simplifies to y plus 0 plus 1. So y plus 1. Choosing x plus 1. We substitute this into the equation y plus 2 x plus 1 to get y plus 2 times 1 plus 1. This simplifies to y plus 2 plus 1. So y plus 3. Choosing x plus negative 2. We substitute this into the equation y plus 2 x plus 1 to get y plus 2 times negative 2 plus 1. This simplifies to y plus negative 4 plus 1. The y plus negative 3. Next we want to organize the solutions in a table. For this problem we will put the three solutions we just found in a table. The table has 5 rows and 3 columns. The first row is a title row with the equation y plus 2 x plus 1. The second row is a header row with the headers x, y, and (x, y). The third row has the numbers 0, 1, and (0, 1). The fourth row has the numbers 1, 3, and (1, 3). The fifth row has the numbers negative 2, negative 3, and (negative 2, negative 3).Step 2 is to plot the points in a rectangular coordinate system. Plot: (0, 1), (1, 3), (negative 2, negative 3). The figure then shows a graph of some points plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (0, 1), (1, 3), and (negative 2, negative 3) are plotted. Check that the points line up. If they do not, carefully check your work! Do the point line up? Yes, the points in this example line up.Step 3 is to draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line. This line is the graph of y plus 2 x plus 1. The figure shows the graph of a straight line on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (negative 2, negative 3), (0, 1), and (1, 3) are plotted. The straight line goes through the three points and has arrows on both ends.
Step 3 is to draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line. This line is the graph of y plus 2 x plus 1. The figure shows the graph of a straight line on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (negative 2, negative 3), (0, 1), and (1, 3) are plotted. The straight line goes through the three points and has arrows on both ends.

Try it! – Using Version 2 of the steps above

  1. Graph the equation y = −x + 2 by plotting points.

Solution

First, we construct a table. Then we choose x values and calculate y.

x y = −x + 2 (x, y)
−5 y = −(−5) + 2 = 7 (−5, 7)
−3 y = −(−3) + 2 = 5 (−3, 5)
−1 y = −(−1) + 2 = 3 (−1, 3)
0 y = −(0) + 2 = 2 (0, 2)
1 y = −(1) + 2 = 1 (1, 1)
3 y = −(3) + 2 = −1 (3, −1)
5 y = −(5) + 2 = −3 (5, −3)

Now, plot the points. Connect them if they form a line.This image is a graph of a line on an x, y coordinate plane. The x-axis includes numbers that range from negative 7 to 7. The y-axis includes numbers that range from negative 5 to 8. A line passes through the points: (-5, 7); (-3, 5); (-1, 3); (0, 2); (1, 1); (3, -1); and (5, -3).

Graphing a Linear Equation with Intercepts[5]

Every linear equation has a unique line that represents all the solutions of the equation. When graphing a line by plotting points, each person who graphs the line can choose any three points, so two people graphing the line might use different sets of points.

At first glance, their two lines might appear different since they would have different points labeled. But if all the work was done correctly, the lines will be exactly the same line. One way to recognize that they are indeed the same line is to focus on where the line crosses the axes. Each of these points is called an intercept of the line.

Each of the points at which a line crosses the x-axis and the y-axis is called an intercept of the line.

<The graph shows the x y-coordinate plane. The x and y-axis each run from -7 to 7. A line passes through two labeled points, “ordered pair 0, 6” and ordered pair 3, 0”.

First, notice where each of these lines crosses the x-axis:

Figure: The line crosses the x-axis at: Ordered pair of this point
Figure (a) 3 (3, 0)
Figure (b) 4 (4, 0)
Figure (c) 5 (5, 0)
Figure (d) 0 (0, 0)
General Figure a (a, 0)

For each row, the y- coordinate of the point where the line crosses the x-axis is zero. The point where the line crosses the x-axis has the form (a,0); and is called the x-intercept of the line. The x-intercept occurs when y is zero.

Now, let’s look at the points where these lines cross the y-axis.

Figure: The line crosses the y-axis at: Ordered pair for this point
Figure (a) 6 (0, 6)
Figure (b) -3 (0, -3)
Figure (c) -5 (0, -5)
Figure (d) 0 (0, 0)
General Figure b (0, b)

For each row, the x- coordinate of the point where the line crosses the y-axis is zero. The point where the line crosses the y-axis has the form (0,b); and is called the y-intercept of the line. The y-intercept occurs when x is zero.

The x-intercept is the point, (a, 0), where the graph crosses the x-axis. The x-intercept occurs when y is zero.

The y-intercept is the point, (0, b), where the graph crosses the y-axis. The y-intercept occurs when x is zero.

To graph a linear equation by plotting points, you can use the intercepts as two of your three points. Find the two intercepts, and then a third point to ensure accuracy, and draw the line. This method is often the quickest way to graph a line.

How to Graph with Intercepts:

  1. Find the x- and y-intercepts of the line.
    • Let y = 0 and solve for x
    • Let x = 0 and solve for y.
  2. Find a third solution to the equation.
  3. Plot the three points and then check that they line up.
  4. Draw the line.

Try it! – Graphing with Intercepts 

Graph −x + 2y = 6 using intercepts.


Solution

First, find the x-intercept. Let y = 0,

    \begin{align*} -x + 2y &= 6 \\ -x + 2(0) &= 6 \\ -x &= 6 \\ x &= -6 \end{align*}

The x-intercept is (–6, 0).

Now find the y-intercept. Let x = 0.

    \begin{align*} -x + 2y &= 6 \\ -0 + 2(y) &= 6 \\ 2y &= 6 \\ y &= 3 \end{align*}

The y-intercept is (0, 3).

Find a third point. We’ll use x = 2,

    \begin{align*} -x + 2y &= 6 \\ -2 + 2(y) &= 6 \\ 2y &= 8 \\ y &= 4 \end{align*}

A third solution to the equation is (2, 4).

Summarize the three points in a table and then plot them on a graph.

−x + 2y = 6
x y (x, y)
−6 0 (−6,0)
0 3 (0,3)
2 4 (2,4)


The graph shows the x y-coordinate plane. The x and y-axis each run from -10 to 10. Three labeled points are shown at “ordered pair -6, 0”, “ordered pair 0, 3” and “ordered pair 2, 4”.

Do the points line up? Yes, so draw a line through the points.


The graph shows the x y-coordinate plane. The x and y-axis each run from -10 to 10. Three labeled points are shown at “ordered pair -6, 0”, “ordered pair 0, 3” and “ordered pair 2, 4”. A line passes through the three labeled points.

Key Concepts

  • Sign Patterns of the Quadrants
    Quadrant I Quadrant II Quadrant III Quadrant IV
    (x, y) (x, y) (x, y) (x, y)
    (+, +) (−, +) (−, −) (+, −)
  • Coordinates of Zero
    • Points with a y-coordinate equal to 0 are on the x-axis, and have coordinates (a, 0).
    • Points with a x-coordinate equal to 0 are on the y-axis, and have coordinates (0, b).
    • The point (0, 0) is called the origin. It is the point where the x-axis and y-axis intersect.
  • Intercepts
    • The x-intercept is the point, (a, 0), where the graph crosses the x-axis. The x-intercept occurs when y is zero.
    • The y-intercept is the point, (0, b), where the graph crosses the y-axis. The y-intercept occurs when y is zero.
    • The x-intercept occurs when y is zero.
    • The y-intercept occurs when x is zero.
  • Find the x and y intercepts from the equation of a line
    • To find the x-intercept of the line, let y=0 and solve for x.
    • To find the y-intercept of the line, let x=0 and solve for y.
      x y
      0
      0
  • Graph a line using the intercepts
    1. Find the x- and y- intercepts of the line.
      • Let y = 0 and solve for x.
      • Let x = 0 and solve for y.
    2. Find a third solution to the equation.
    3. Plot the three points and then check that they line up.
    4. Draw the line.

  1. Access for free at https://openstax.org/books/prealgebra-2e/pages/1-introduction
  2. This material was created by Amanda Towry using the Microsoft Word processing program.
  3. Section material derived from Openstax Prealgebra: The Properties of Real Numbers-Use the Rectangular Coordinate System
  4. Section material derived from Openstax Prealgebra: Graphs-Understand Slope of a Line
  5. Section material derived from Openstax Prealgebra: Graphs-Understand Slope of a Line
definition

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

NCB 0542 Corequisite Copyright © by Elizabeth Pople is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.