learn › Algebra

Lines & slope

lesson · about 3 minutes

Slope, intercepts, and perpendicular lines.

Pen and paper is fine · no calculator needed why?

Opens at level 21. You're level 1. You can read and practice here now.

the idea

A straight line has one steady steepness, its slope: the change in y divided by the change in x, or rise over run.

more of the idea

Most lines can be written y = mx + b, where m is the slope and b is the y-intercept, the height where the line crosses the y-axis. The x-intercept is where it crosses the x-axis, so y is 0 there.

Perpendicular lines, which meet at a right angle, have slopes that are negative reciprocals of each other.

techniques

Rise over run You know two points on the line.
  1. Rise: the second y-value minus the first.
  2. Run: the second x-value minus the first, in the same order.
  3. Divide the rise by the run, keep the sign, and reduce the fraction.

example What is the slope of the line through (1, −2) and (4, 7)?

  1. Rise: 7 − (−2) = 9.
  2. Run: 4 − 1 = 3.
  3. Slope: 9 ÷ 3 = 3.

Answer: 3

Put the point in Finding b from the slope and a point, or finding where the line meets the x-axis.
  1. For b: write y = mx + b with the slope in place of m.
  2. Put in the point, x and y, and solve for b.
  3. For the x-intercept: set y to 0 and solve for x. Leave a fraction in lowest terms.

example A line has slope 2 and passes through (3, 1). What is its y-intercept?

  1. Write y = 2x + b and put in the point: 1 = 2 × 3 + b.
  2. So 1 = 6 + b, and b = 1 − 6 = −5.

Answer: −5

Flip and change the sign You want the slope of a line perpendicular to a given one.
  1. Flip the slope upside down: 2/3 becomes 3/2, and 4 becomes 1/4.
  2. Change its sign: positive becomes negative, negative becomes positive.
  3. Check: the two slopes multiply to −1.

example A line has slope −4/3. What is the slope of a line perpendicular to it?

  1. Flip −4/3 to −3/4.
  2. Change the sign: 3/4.
  3. Check: −4/3 × 3/4 = −1.

Answer: 3/4

watch out for · 4 traps

practice

Sign in to try one

New here? Start the four-problem warm-up. No sign-up.

Slope from two points

worked example

What is the slope of the line through (2, −8) and (5, 5)? Give a fraction or a whole number.

  1. Rise over run: (5 − (−8)) ÷ (5 − 2) = 13 ÷ 3 = 13/3.

Answer: 13/3

y-intercept

worked example

A line has slope 4 and passes through (−2, 8). What is its y-intercept?

  1. Write y = 4x + b and put in the point: 8 = 4 × (−2) + b.
  2. So 8 = −8 + b, and b = 8 − (−8) = 16.

Answer: 16

x-intercept

worked example

Where does y = −x − 12 cross the x-axis? Give the x-value as a fraction or a whole number.

  1. Set y = 0: −x − 12 = 0.
  2. So −x = 12 and x = 12 ÷ (−1) = −12.

Answer: -12

Perpendicular slope

worked example

A line has slope −3/5. What is the slope of a line perpendicular to it? Give a fraction or a whole number.

  1. Perpendicular slopes are negative reciprocals: flip −3/5 to −5/3 and change the sign: 5/3.

Answer: 5/3

Sign in to start