# 2. Graphs of Linear Functions

It is very important for many math topics to know how to quickly sketch straight lines. When we use math to **model** real-world problems, it is worthwhile to have a sense of how straight lines "work" and what they look like.

We met this topic before in The Straight Line. The following section serves as a reminder for you.

## a. Slope-Intercept Form of a Straight Line: `y = mx + c`

If the slope (also known as gradient) of a line is *m*, and the *y*-intercept is *c*, then the equation of the line is written:

`y = mx + c`

### Example 1

The line `y = 2x + 6` has slope `m = 6/3 = 2` and `y`-intercept `c = 6`.

## b. Intercept Form of a Straight Line: `ax + by = c`

Often a straight line is written in the form *ax *+* by *=* c*. One way we can sketch this is by finding the *x*- and *y*-intercepts and then joining those intercepts.

### Example 2

Sketch the line 3*x* + 2*y* = 6.

## Slope of a Line

The slope (or gradient) of a straight line is given by:

`m=text(vertical rise)/text(horizontal run)`

We can also write the slope of the straight line passing through the points (*x*_{1},* y*_{1}) and (*x*_{2},* y*_{2}) as:

`m=(y_2-y_1)/(x_2-x_1)`

Using this expression for slope, we can derive the following.

## c. Point-slope Form of a Straight Line: `y − y_1= m(x − x_1)`

If a line passes through the point (*x*_{1},* y*_{1}) and has slope *m*, then the equation of the line is given by:

`y − y_1= m(x − x_1)`

### Example 3

Find the equation of the line with slope `−3`, and which passes through `(2, −4)`.

### Search IntMath, blog and Forum

### Online Algebra Solver

This algebra solver can solve a wide range of math problems.

Go to: Online algebra solver

### Algebra Lessons on DVD

Easy to understand algebra lessons on DVD. See samples before you commit.

More info: Algebra videos

### The IntMath Newsletter

Sign up for the free **IntMath Newsletter**. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!