MATH BOSS

All lessons

How do I find the slope of a line?

m is the slope, and n is where the line meets the y axis.

Grades 7 to 9 · Free. No sign-up. No ads. Nothing is collected.

Watch it live in 3D

A live lesson where things move and you can try. Lesson page with the outline

Example

y=2x−3

Answer: m=2,b=−3,x0=32

Try it yourself: Find the equation of the line through (1,2) and (3,8).

Why do I need this?

A taxi costs 12 shekels plus 5 for each kilometer. How much does a 10-kilometer ride cost?

y=5x+12

The idea

In a linear function every step of 1 to the right changes y by the same amount.

y=2x+1

Step by step

  1. The starting value

    x is the day, y the money: on day 0 there is 1 shekel, the y-intercept.

    x=0⇒y=1
    −1123452468(0, 1)
  2. Add 2 every day

    Every step right, the money grows by the same amount: 2 shekels.

    1+2→3+2→5+2→7
    −1123452468+2+2+2(0, 1)A1A2A3C1C2C3
  3. The straight line

    All the points sit on one straight line.

    y=2x+1
    −1123452468A0A1A2A3A4
  4. What is the slope?

    The slope is how much y rises for one step to the right.

    m=21=2
    −112345246812A1A2C(0, 1)

More cases and examples

  1. A negative slope

    With a negative slope the line goes down as you go right.

    y=−x+4
    −1123452468(0, 4)
  2. When n is 0

    When n is 0 the line passes through the origin, the point where the axes meet.

    y=2x
    −1123452468(0, 0)

The rule

The equation of a line

When to use it: Any straight line that is not vertical.

y=mx+n
  • x,ythe coordinates of a point on the line
  • mthe slope: how much y rises per step
  • nthe y-intercept: where the line crosses the y axis

Watch out: A curve or a vertical line cannot be written this way.

Common mistakes

  • Wrong
    y=2x+1⇒m=1,n=2
    Right
    m=2,n=1

    The coefficient of x is the slope; the constant term is the y-intercept.

  • Wrong
    x=5⇒y=2+5+1=8
    Right
    x=5⇒y=2×5+1=11

    2x means 2 times x, not 2 plus x.

  • Wrong
    x=0⇒y=0
    Right
    x=0⇒y=1

    The y-intercept is 1, so the line does not pass through the origin.

How to study this topic

  1. Read the idea first
  2. Then go through the steps, covering each result before you read it
  3. Then learn the rule
  4. Finally, check the common slips
Watch it live in 3D

A live lesson where things move and you can try. Lesson page with the outline

Related lessons