The Laminars Book a demo
  1. Home
  2. Graph examples
  3. Straight lines
Class 10 · Graph examples

Straight lines

Every equation of the form y = mx + c is a straight line. m is the slope (how steep the line is) and c is where it cuts the y-axis.

Tap a curve to read a point. Use Open in Graph plotter to change an example, print it on graph paper or share it.

1Same intercept, different slopes

All four lines pass through (0, 1). A bigger m makes the line steeper; a negative m makes it fall from left to right.

Type: y = x + 1 y = 2x + 1 y = 0.5x + 1 y = -x + 1

2Parallel lines

Same slope, different intercepts: the lines never meet.

Type: y = 2x y = 2x + 3 y = 2x - 4

3Perpendicular lines

The slopes 2 and −1/2 multiply to −1, so the lines meet at a right angle (equal scale on both axes shows it).

Type: y = 2x + 1 y = -x/2 + 3.5 (1, 3)

4Intercept form x/a + y/b = 1

This line cuts the x-axis at (4, 0) and the y-axis at (0, 3).

Type: x/4 + y/3 = 1 (4, 0) (0, 3)

5Horizontal and vertical lines

y = 3 is horizontal (slope 0). x = −2 is vertical (slope not defined).

Type: y = 3 x = -2

6Line through two points

Through (1, 2) and (4, 8): slope = (8 − 2)/(4 − 1) = 2, so y − 2 = 2(x − 1).

Type: y - 2 = 2(x - 1) (1, 2) (4, 8)