One of the main uses of an xy-graph is to graph equations. If an equation has both an
*x*
and
*y*
variable, then it often has multiple solutions of the form
(*x*, *y*)
. In fact, there are generally *infinitely many* solutions to an equation with two variables.

The solutions to an equation in two variables can be represented by a curve on an xy-graph; every point on the curve has coordinates which satisfy the equation. In fact, for linear equations (our only concern in this chapter), the curve representing the solutions to the equation will actually be a straight line.

*Example.* Here is the graph of
2*y* - *x* = 4
:

Graph of
2*y* - *x* = 4

One way to graph an equation is by use of a data table. A data table is a list of
*x*
-values and their corresponding
*y*
-values. To make a data table, draw two columns. Label one column
*x*
and the other column
*y*
. Then list the
*x*
-values
-2, - 1, 0, 1, 2
in the
*x*
column:

Data Table -- Step 1

Next, plug each value of

Thus, the data table looks like:

Data Table -- Step 2

To make a graph using the data table, simply plot all the points and connect them with a straight line. Extend the line on both sides and add arrows. This is to show that the line continues infinitely, even after it can be seen on the graph. Here is our sample data table as a graph:

Graph of
2*x* - 4 = 3*y*

To check, pick a data point that is on the line but

Notice also that it is not necessary to make a huge data table to graph a linear equation effectively. There is only one line through any two points, so already if one plots three points from a data table the redundancy of the third point acts as a check of the calculations. Of course, for more general equations whose graph does not consist of a straight line, more points are necessary to get an idea of the appearance of the graph.