Math is Fun

Math is Fun Home PageHOME

A-Z Listing

Solves YOUR
algebra homework
problems with
step-by-step help!





Top-rated teacher Web sites rated by teacher usage
Edunet site of the week January 2001
Maths Is Fun is ICRA Registered

Copyright © 2007
MathsIsFun.com

Equation of a Straight Line


The GENERAL equation of a straight line is given in the form:

y = mx + b

(or "y = mx + c" in the UK see below)

What does it stand for?

 
Equation of a Straight Line
Gradient Y Intercept

 

y = how far up

x = how far along

m = Gradient or Slope (how steep the line is)

b = the Y Intercept (where the line crosses the Y axis)



Knowing this we can work out the equation of a straight line:

Example 1



m  = 
2
1
 =  2

b = 1

Therefore y = 2x + 1


Example 2

m  = 
3
-1
 =  –3

b = 0

This gives us y = –3x + 0
We do not need the zero!

Therefore y = –3x

 

Play With It

You can see the effect of different values of m (the slope) and b (the y intercept) at Explore the Straight Line Graph

 

Country Note

Different Countries teach different "notation":

In the US the notation is: y = mx + b
In the UK and Malaysia the notation is: y = mx + c
In Denmark: y = ax + b
In your country: let us know!

... but it all means the same thing, just different letters.

go back to top