Graphing a Line Using Table of Values

The most fundamental strategy to graph a line is the use of table of values. The goal is to pick any values of x and substitute these values in the given equation to get the corresponding y values. There’s no right or wrong way of picking these values of x. As you develop your skills, you will learn how to select the appropriate values of x depending on how you want to show the graph.

How to Set up a Table of Values

So how does it look? There are two ways to set up the table of values. If the table is presented horizontally, the top row will include all the values of x while the bottom row will contain the corresponding y value for each x. On the other hand, when the table is shown vertically, the left column has the x-values and the right column has the y-values.

Examples of How to Graph a Line using Table of Values

Let’s take a look at some examples to see how it works.

Example 1: Graph the equation of the line below using table of values.

It doesn’t matter which kind of the table of values to use. For this one, we will use the horizontal format. The next step is to pick values of x.

There is no wrong way of selecting the x values. Keep in mind that we need a minimum of two points to graph a line. That means it’s okay to go above the minimum requirements for better accuracy. For me, I always plot three points or more. The reason is that if the line doesn’t pass through the three points, it tells me that I have committed an error in my calculation. This gives me the opportunity to recheck my work.

To decide what x-values to choose, I suggest that you look at the size of our xy-axis. More particularly look at available numbers in the horizontal axis.

Suppose your teacher gives you this xy-axis in your worksheet.

If we want the graph to show within this xy-axis, it makes sense to pick x values that are between { - 4} and { + 4}. Always try to include the zero in one of your x values because this will simplify your calculation. So, we chose the following x-coordinates then place them in the table accordingly.

The next obvious step is to figure out the value of y for each x in the table. To do that, we will use the given equation of the line because it is the formula that gives us direct information how to arrive for the value of y when given an x value. We are going to use the formula three times since we have three values of x.

  • x = - 1
  • x = 0
  • x = 1

Let’s collect those output values and place them in the row where y values are located.

Plot the three points in the xy-axis.

Using a straight edge (ruler), connect the dots to see the graph of the line. That’s it!

Example 2: Graph the equation of the line below using table of values.

The first thing that stands out in this problem is that the coefficient of the “x-term” is fractional. We need to be a little bit careful here since we can easily end up with fractional y-values. Points with fractional coordinates can be tricky when plotting them on the axis.

For this problem, we want values of x when multiplied by the coefficient of - {1 \over 2} will give us positive or negative whole numbers. Since the denominator of the fraction is 2, the values of x must be multiples of 2. Right? Again, don’t forget to always include zero as one of your input values.

For this example, we will use the vertical format of the table values. For more practice, let’s have five input values of x.

Solve for the value of y for each x using the equation.

  • x = - 4
  • x = - 2
  • x = 0
  • x = 2
  • x = 4

Collect all y-values from our calculations and place them in the appropriate location in the table of values.

Now it’s time to plot each point in the coordinate axis and connect them to reveal the graph of the line. And we’re done!

Example 3: Graph the equation of the line below using table of values.

I see that we have a fractional coefficient of x with a denominator of 3. That means our choice of x coordinates will include zero ( as always! ) and some multiples of 3.

Here are the selected values of x for our table of values.

Let’s find the value of y for each x using the given equation y = {2 \over 3}x + 1.

  • x = - 6
  • x = - 3
  • x = 0
  • x = 3
  • x = 6

Put these y-values together with the x-values in a table.

Plot the points in the Cartesian plane and connect the dots to show the graph of the line.

You might also be interested in:

Three Ways to Graph a Line
Graphing a Line using Slope and y-intercept
Graphing a Line Using X and Y intercepts