Graphing Linear Equations

To graph a linear equation, you can create a table of values (\(x\) and \(y\)) and then simply connect the points with a line. It is good practice to choose both positive and negative \(x\) values. Choose an \(x\)-value and then substiute the value in the equation to solve for \(y\). This will give you the \((x,y)\) point for the graph.

One strategy is to start at the \(y\)-intercept and then use the slope to determine the next point.


Example

Populate the table of values for \(y = 3x - 1\).

First, we can identify \(y\)-intercept is (\(0,-1\)); this gives us our first point:

x Values -2 -1 0 1 2
y Values -1


Next, we can identify that the slope is \(+3\); this means when \(x\) increases by \(1\), \(y\) increases by \(3\). Let's populate the table for \(x=1,2\):

x Values -2 -1 0 1 2
y Values -1 2 5


Then, to populate the other values in the table, we can decrease \(x\) by \(1\) and decrease \(y\) by \(3\):

x Values -2 -1 0 1 2
y Values -7 -4 -1 2 5


Finally, we can plot the points on a graph and connect them with a line. The line extends in both directions.


Line with a positive slope drawn over series of plotted points.
Graph the equation: \(y = 5x + 2\)

Graph the equation: \(y = -2x - 2\)