## Finding the equation of a line given the y intercept

The equation of a straight line is usually given in the form where m is the gradient (slope) and c is the y-intercept (where the line cuts the vertical axis).

The gradient = or

Example

The gradient between (2, 5) and (4,10) =

It is important that if we do 10 – 5 for the rise that we do not do 2 – 4 for the run. If we are not consistent then we will end up with the wrong sign for the gradient.

### Finding the equation given the gradient and the y-intercept

Example

A line has a gradient of 3 and cuts the y axis at (0,4), what is the equation of the line?

From the question we can see that m = 3 and c = 4, so substituting this in to gives

### Finding the equation given the y-intercept and a parallel line

Example

A line is parallel to the line and intercepts the y axis at (0, -5), what is the equation of the line?

Since the given line has a gradient of 2 (the x coefficient), m = 2. We can also see that c = -5 from the point.

So substituting this in to gives

### Finding the equation given the y-intercept and another point

Example

A line passes through the points (0, 4 ) and (3, 11), what is the equation of the line?

We can calculate the gradient using the method shown above so

From the point (0, 4) we can see that c = 4

So substituting this in to gives