Straight line graphs show linear relationships, where the rate of change stays constant. In the common form y=mx+cy = mx + c, mm tells you the slope and cc tells you the yy-intercept, so you can quickly see how the line behaves and whether two lines are parallel.

What y=mx+cy = mx + c Tells You

In the equation

y=mx+cy = mx + c

mm is the slope, also called the gradient. It measures how much yy changes when xx increases by 11.

cc is the yy-intercept. It is the value of yy when x=0x = 0, so the line crosses the yy-axis at (0,c)(0, c).

This form describes non-vertical straight lines. Vertical lines are straight lines too, but they have equations like x=4x = 4, so they cannot be written as y=mx+cy = mx + c.

How The Slope Changes The Graph

If mm is positive, the line rises from left to right. If mm is negative, the line falls from left to right. If m=0m = 0, the line is horizontal.

For example, if

y=3x+2y = 3x + 2

then every time xx increases by 11, yy increases by 33. The line crosses the yy-axis at (0,2)(0, 2), so it starts 22 units above the origin.

Worked Example: Graph y=2x+1y = 2x + 1

Take the line

y=2x+1y = 2x + 1

Start with the intercept. When x=0x = 0, y=1y = 1, so the line passes through (0,1)(0, 1).

Now use the slope. Since m=2m = 2, moving 11 unit to the right increases yy by 22. That gives a second point, (1,3)(1, 3).

You can check one more point the same way:

x=2y=2(2)+1=5x = 2 \Rightarrow y = 2(2) + 1 = 5

So (2,5)(2, 5) is on the same line. Once you have two correct points, you can draw the straight line through them.

How To Tell If Two Lines Are Parallel

Two non-vertical lines are parallel when they have the same slope and different intercepts.

For example,

y=2x+1y = 2x + 1

and

y=2x3y = 2x - 3

are parallel because both have slope 22. They rise at the same rate, so they never meet. Their intercepts are different, so they are distinct lines rather than the same line.

There is also a vertical-line version of this idea. Lines such as x=1x = 1 and x=5x = 5 are parallel to each other.

Common Mistakes With Straight Line Graphs

Mixing Up cc And The xx-Intercept

In y=mx+cy = mx + c, the number cc is the yy-intercept, not the xx-intercept. It tells you where the line crosses the yy-axis.

Assuming Equal Slopes Always Mean Different Parallel Lines

If two equations have the same slope and the same intercept, they are the same line. To be parallel as two distinct non-vertical lines, the slopes must match and the intercepts must differ.

Forgetting About Vertical Lines

y=mx+cy = mx + c does not represent vertical lines. If a graph is a vertical straight line, its equation has the form x=ax = a.

Where Straight Line Graphs Are Used

Straight line graphs appear whenever one quantity changes at a constant rate with another. Common examples include fixed-price plus per-item cost models, distance traveled at constant speed, and unit conversions written in linear form.

They matter because they connect algebra and graphs in a direct way: the equation tells you the pattern, and the graph lets you see it.

Try A Similar Problem

Write two equations with the same slope, such as y=x+4y = -x + 4 and y=x1y = -x - 1. Plot the intercept first, then use the slope to get a second point for each line. You will see that matching slopes create parallel lines.

If you want to explore another case, try your own version from a worksheet and check whether the graph, slope, and intercept all agree.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →