A linear function is defined as a function that has one or more variables without exponents. Linear functions produce straight lines when graphed. Here, we are going to do a brief review of linear functions. We will look at how to graph linear functions and how to find their equations.

In addition, we will see several examples with answers to put what we have learned into practice.

## Summary of linear functions

A linear function is a function that forms a straight line when graphed. These types of functions are generally polynomial functions, which have a maximum degree of 1. A linear function has a dependent variable and an independent variable. The independent variable is *x* and the dependent variable is *y*.

Linear functions have the following general form:

where:

*b*is the constant term or the*y*-intercept. This is the value of the dependent variable when we have .*m*is the coefficient of the independent variable. It is also known as the slope and determines the steepness of the line.

### Graphing a linear function

To graph a linear function, we follow the following steps:

**Step 1:** Find two points that satisfy the function.

** Step 2:** Plot those points on the Cartesian plane.

** Step 3:** Connect those points with a straight line.

### Finding the equation of a line

The easiest way to find the equation of a line is to write it in the form .

If we have two points in a function, and , the slope can be found using the formula:

The *y*-intercept is found by substituting in the slope and using any point to solve for *b*.

## Examples with answers of linear function problems

The following examples use various aspects of linear functions. Each example has its respective solution, so you can look at the reasoning used to find the answer. Try to solve the exercises yourself before looking at the answer.

**EXAMPLE 1**

Does the following graph represent a linear function?

##### Solution

We can easily determine that the graph does represent a linear function since it is a straight line.

The graph represents the function .

**EXAMPLE 2**

Is the following graph a linear function?

##### Solution

This graph is not a straight line, therefore it does not represent a linear function.

The graph represents the function .

Start now: Explore our additional Mathematics resources

**EXAMPLE 3**

Does the following graph represent a linear function?

##### Solution

This function appears to be linear, however, this function is made up of segments that are straight lines. This is a piecewise-defined function.

The graph represents the following function:

**EXAMPLE 4**

Graph the linear function .

##### Solution

One way to graph this function is to use two points that lie on the line and then draw a line that passes through the points. We can use and .

For , we have . Thus, we have the point (0, 1).

For , we have . Thus, we have the point (1, 3).

Plotting those points and drawing a line, we have:

**EXAMPLE 5**

Graph the linear function .

##### Solution

Again, we can find two points that lie on the line. Therefore, we can use the values and .

When we use , we have . Thus, we have the point (-1, 5).

When we use , we have . Thus, we have the point (1, -1).

By graphing these points and drawing a line, we have:

**EXAMPLE 6**

Find the linear function that passes through the points (-2, -3) and (3, 2).

##### Solution

To find the equation of a linear function, we can use the form , where *m* is the slope and *b* is the *y*-intercept.

The slope can be found using the formula . Therefore, replacing the values with the given two points, we have:

To find *b*, we plug in and use any of the points. We are going to use the point (3, 2):

Thus, the linear function is .

**EXAMPLE 7**

Find the linear function that passes through the points (-1, 4) and (2, -2).

##### Solution

Again, we can use the form , where *m* is the slope and *b* is the *y*-intercept.

Therefore, we use to find the slope with the given points:

We plug in to find the *y*-intercept, *b*. We are going to use the point (2, -2):

Thus, the linear function is .

## Linear function problems – Practice

Test your knowledge of linear functions with the following problems. Choose an answer and check it to see if you selected the correct one. Use the solved examples above if you need help.

## See also

Interested in learning more about linear functions? Take a look at these pages:

### Learn mathematics with our additional resources in different topics

**LEARN MORE**