Graphing Single Variable Linear Equations

Single variable linear equations are the simplest type of linear equation. They are equations that have only one variable (like x + 5 = 3), and no exponents. When they are graphed, they will always be either a straight line that is perfectly horizontal or perfectly vertical, depending on whether the variable is the independent variable (x) or the dependent variable (y).

Isolate the Variable

Before graphing a single variable linear equation, you need to isolate the variable on one side of the equation. This means getting the variable by itself on one side of the equation, with no other variables or numbers on that same side, like we worked on in the previous section.

When the only variable is x (or the independent variable)

If the only variable in the equation is x, then once you isolate x, you'll have an equation of the form x = c, where c stands for any constant (for example, x=3, x=10, x=1/2, etc). The graph of these equations will just be a vertical line crossing the x-axis where x is equal to c (for example, the line x=3 is a vertical line crossing the x-axis at x=3). The slope of these lines is undefined, because the x value never changes (since the slope is defined as the change in y over the change in x, and the change in x will always be 0, the slope will always be undefined because you can't divide by 0).

When the only variable is y (or the dependent variable)

If the only variable in the equation is y, then once you isolate y, you'll have an equation of the form y = c, where c stands for any constant (for example, y=3, y=10, y=1/2, etc). The graph of these equations will just be a horizontal line crossing the y-axis at where y is equal to c (for example, the line y=3 is a horizontal line crossing the y-axis at y=3). The slope of these lines is 0, because for any change in x, y doesn't change (since the slope is defined as the change in y over the change in x, and the change in y will always be 0, the slope will always be 0).