A straight line graph shows every pair of values that satisfies a linear equation such as y equals 2x plus 1. To plot it, first build a table of values: choose a few x values, work out the matching y values, and plot the points. For y equals 2x plus 1, when x is 0, y is 1; when x is 1, y is 3; when x is 2, y is 5; and when x is minus 1, y is minus 1. Plot each pair as a point on a coordinate grid, with x along the horizontal axis and y along the vertical axis. Three points are enough to draw a line, but a fourth point is a useful check. If one point does not line up with the others, recheck its calculation before drawing.
Once the points are plotted, join them with a straight line using a ruler, and extend the line to the edges of the grid. The line should pass through every plotted point, or very close to each one. Label the line with its equation, such as y equals 2x plus 1, so anyone reading the graph knows which line it is. A straight line keeps going in both directions, so the part we draw is only a window onto the whole line. If the equation is y equals minus x plus 4, the points (0, 4), (1, 3), and (4, 0) all lie on it, and the line slopes downwards from left to right. Drawing axes with a clear scale, usually one square per unit, keeps the graph neat and easy to read.
Every straight line in the form y equals mx plus c has a gradient m and a y-intercept c. The gradient tells us how steep the line is: for y equals 2x plus 1, the gradient is 2, so y rises by 2 for every 1 that x rises. The intercept is where the line crosses the y-axis: here c is 1, so the line crosses at (0, 1). For y equals minus 3x plus 5, the gradient is minus 3, so the line falls steeply, and it crosses the y-axis at 5. Parallel lines have the same gradient, so y equals 2x plus 1 and y equals 2x minus 4 are parallel. To find the gradient from a graph, pick two points on the line, such as (0, 1) and (2, 5), and divide the change in y, which is 4, by the change in x, which is 2, giving 2.