# Straight line graphs. How to plot a sloping line in math using a table of values.

The easiest way to plot a line graph (a sloping line) is to use a table of values, which can also be called a coordinate table. All you need to do is to pick some x coordinates (at least 3, as 2 is not a good idea!), and use your formula to work out the y coordinates. Then plot your points on your coordinate grid, and draw your line through the coordinate points.

**Example 1**

Plot the graph of y=2x

The x coordinates that I’m going to pick are 0, 1 and 2. But, you might want to choose different values.

X 0 1 2

Y ? ? ?

To work out the y coordinates in our table of values, you need to substitute these values into your formula y=2x. Do this by multiplying your x coordinates by 2.

X 0 1 2

Y 0 2 4

So our coordinates that our line passes through are (0,0), (1,2) and (2,4).

Plot these onto our coordinate grid, and draw your line through the points. Make sure the line extends all the way across the coordinate grid.

**Example 2**

Plot the graph of y = -3x +8

Again, choose 0, 1 and 2 as your x coordinates.

This time we need to times the x coordinates by -3, and add on 8 to find the y coordinates. So our table of values will look like this:

X 0 1 2

Y 8 5 2

So our straight line passes through the points (0,8), (1,5) and (2,2).

Now plot these onto your coordinate grid, and draw your straight line through these points.

Check out these hubs for more help on plotting graphs:

How to plot a horizontal or vertical line like x = 4 or y = -2

How to draw a quadratic graph (a curve or parabola). Like y=x^2 -2x -5

## More by this Author

- 1
A quadrant is a quarter of a circle. So to work out the area of a quadrant, first work out the area of the whole circle (use the formula A = π ×r²) and then divide the answer by 4. Alternatively, you could...

- 26
A compound shape is a shape that is made up from other simple shapes. In this article we will be working out the area of a L shape (made up from 2 rectangles). To find the area of a compound shape, follow these simple...

- 0
The surface area of a triangular prism can be found in the same way as any other type of prism. All you need to do is calculate the total area of all of the faces. A triangular prism has 5 faces, 3 being rectangular and...

## Comments 4 comments

i can get it it so hard

im still confused, i don't get it;/

awesome! this helped me a lot.thank you!!!

Why can't you guys let people make their own coordinate graphs.