How do I find the slope of a line?
m is the slope, and n is where the line meets the y axis.
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?
The idea
In a linear function every step of 1 to the right changes y by the same amount.
Step by step
The starting value
x is the day, y the money: on day 0 there is 1 shekel, the y-intercept.
x=0⇒y=1Add 2 every day
Every step right, the money grows by the same amount: 2 shekels.
1+2→3+2→5+2→7The straight line
All the points sit on one straight line.
y=2x+1What is the slope?
The slope is how much y rises for one step to the right.
m=21=2
More cases and examples
A negative slope
With a negative slope the line goes down as you go right.
y=−x+4When n is 0
When n is 0 the line passes through the origin, the point where the axes meet.
y=2x
The rule
The equation of a line
When to use it: Any straight line that is not vertical.
- 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
- Wrongy=2x+1⇒m=1,n=2Rightm=2,n=1
The coefficient of x is the slope; the constant term is the y-intercept.
- Wrongx=5⇒y=2+5+1=8Rightx=5⇒y=2×5+1=11
2x means 2 times x, not 2 plus x.
- Wrongx=0⇒y=0Rightx=0⇒y=1
The y-intercept is 1, so the line does not pass through the origin.
How to study this topic
A live lesson where things move and you can try. Lesson page with the outline