<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation
Our Terms of Use (click here to view) have changed. By continuing to use this site, you are agreeing to our new Terms of Use.

Graphs of Linear Functions

Graph f(x) = ax +b

Atoms Practice
Estimated10 minsto complete
Practice Graphs of Linear Functions
This indicates how strong in your memory this concept is
Estimated10 minsto complete
Practice Now
Turn In
Graphs of Linear Functions

Graphs of Linear Functions 

The highly exclusive Fellowship of the Green Mantle allows in only a limited number of new members a year. In its third year of membership it has 28 members, in its fourth year it has 33, and in its fifth year it has 38. How many members are admitted a year, and how many founding members were there?


So far we’ve used the term function to describe many of the equations we’ve been graphing, but in mathematics it’s important to remember that not all equations are functions. In order to be a function, a relationship between two variables, x and y, must map each xvalue to exactly one yvalue.

Visually this means the graph of y versus x must pass the vertical line test, meaning that a vertical line drawn through the graph of the function must never intersect the graph in more than one place:

License: CC BY-NC 3.0

Use Function Notation

When we write functions we often use the notation “f(x)=” in place of “y=”. f(x) is pronounced “f of x”.


Writing Equations as Functions of x

Rewrite the following equations so that y is a function of x and is written f(x):

a) y=2x+5

Simply replace y with f(x):f(x)=2x+5

b) y=0.2x+7

Again, replace y with f(x):f(x)=0.2x+7

c) x=4y5

First we need to solve for y. Starting with x=4y5, we add 5 to both sides to get x+5=4y, divide by 4 to get x+54=y, and then replace y with f(x):f(x)=x+54.

d) 9x+3y=6

Solve for y: take 9x+3y=6, subtract 9x from both sides to get 3y=69x, divide by 3 to get y=69x3=23x, and express as a function: f(x)=23x.

Using the functional notation in an equation gives us more information. For instance, the expression f(x)=mx+b shows clearly that x is the independent variable because you plug in values of x into the function and perform a series of operations on the value of x in order to calculate the values of the dependent variable, y.

We can also plug in expressions rather than just numbers. For example, if our function is f(x)=x+2, we can plug in the expression (x+5). We would express this as f(x+5)=(x+5)+2=x+7.

Evaluating Functions 

A function is defined as f(x)=6x36. Evaluate the following:


a) f(2)

Substitute x=2 into the function f(x): f(2)=6236=1236=24

b) f(0)

Substitute x=0 into the function f(x): f(0)=6036=036=36

c) \begin{align*}f(z)\end{align*}

Substitute \begin{align*}x = z\end{align*} into the function \begin{align*}f(x): \ f(z) = 6z + 36\end{align*}

d) \begin{align*}f(x + 3)\end{align*}

Substitute \begin{align*}x = (x + 3)\end{align*} into the function \begin{align*}f(x): \ f(x + 3) = 6(x + 3) + 36 = 6x + 18 + 36 = 6x + 54\end{align*}

e) \begin{align*}f(2r - 1)\end{align*}

Substitute \begin{align*}x = (2r + 1)\end{align*} into the function \begin{align*}f(x): \ f(2r + 1) = 6(2r + 1) + 36 = 12r + 6 + 36 = 12r + 42\end{align*}

Graphing a Linear Function

Since the notations “\begin{align*}f(x) =\end{align*}” and “\begin{align*}y =\end{align*}” are interchangeable, we can use all the concepts we have learned so far to graph functions.

Graph the function \begin{align*}f(x) =\frac {3x+5}{4}\end{align*}.

We can write this function in slope-intercept form:

\begin{align*}f(x) = \frac{3}{4}x + \frac {5}{4} = 0.75x+1.25\end{align*}

So our graph will have a \begin{align*}y-\end{align*}intercept of (0, 1.25) and a slope of 0.75.

License: CC BY-NC 3.0

Arithmetic Progressions

You may have noticed that with linear functions, when you increase the \begin{align*}x-\end{align*}value by 1 unit, the \begin{align*}y-\end{align*}value increases by a fixed amount, equal to the slope. For example, if we were to make a table of values for the function \begin{align*}f(x) = 2x + 3\end{align*}, we might start at \begin{align*}x = 0\end{align*} and then add 1 to \begin{align*}x\end{align*} for each row:

\begin{align*}x\end{align*} \begin{align*}f(x)\end{align*}
0 3
1 5
2 7
3 9
4 11

Notice that the values for \begin{align*}f(x)\end{align*} go up by 2 (the slope) each time. When we repeatedly add a fixed value to a starting number, we get a sequence like {3, 5, 7, 9, 11....}. We call this an arithmetic progression, and it is characterized by the fact that each number is bigger (or smaller) than the preceding number by a fixed amount. This amount is called the common difference. We can find the common difference for a given sequence by taking 2 consecutive terms in the sequence and subtracting the first from the second.

Finding Common Differences 

Find the common difference for the following arithmetic progressions:


a) {7, 11, 15, 19, ...}

\begin{align*}11 - 7 = 4; \ 15 - 11 = 4; \ 19 - 15 = 4\end{align*}. The common difference is 4.

b) {12. 1, -10, -21}

\begin{align*}1 - 12 = -11\end{align*}. The common difference is -11.

c) {7, __, 12, __. 17, ...}

There are not 2 consecutive terms here, but we know that to get the term after 7 we would add the common difference, and then to get to 12 we would add the common difference again. So twice the common difference is \begin{align*}12 - 7 = 5\end{align*}, and so the common difference is 2.5.

Arithmetic sequences and linear functions are very closely related. To get to the next term in a arithmetic sequence, you add the common difference to the last term; similarly, when the \begin{align*}x-\end{align*}value of a linear function increases by one, the \begin{align*}y-\end{align*}value increases by the amount of the slope. So arithmetic sequences are very much like linear functions, with the common difference playing the same role as the slope.

The graph below shows the arithmetic progression {-2, 0, 2, 4, 6...} along with the function \begin{align*}y = 2x - 4\end{align*}. The only major difference between the two graphs is that an arithmetic sequence is discrete while a linear function is continuous.

License: CC BY-NC 3.0

We can write a formula for an arithmetic progression: if we define the first term as \begin{align*}a_1\end{align*} and \begin{align*}d\end{align*} as the common difference, then the other terms are as follows:

\begin{align*}& a_1 \qquad \quad a_2 \qquad \qquad a_3 \qquad \qquad a_4 \qquad \qquad \ a_5 \qquad \qquad \qquad \qquad a_n\\ & a_1 \qquad a_1+d \qquad a_1+2d \qquad a_1+3d \qquad a_1+4d \quad \ldots \quad a_1+(n-1) \cdot d\end{align*}



Example 1

Graph the function \begin{align*}f(x) = \frac{7(5-x)}{5}\end{align*}.

This time we’ll solve for the \begin{align*}x-\end{align*} and \begin{align*}y-\end{align*}intercepts.

To solve for the \begin{align*}y-\end{align*}intercept, plug in \begin{align*}x = 0: f(0) = \frac{7(5-0)}{5} = \frac{35}{5} = 7\end{align*}, so the \begin{align*}x-\end{align*}intercept is (0, 7).

To solve for the \begin{align*}x-\end{align*}intercept, set \begin{align*}f(x) = 0: 0 = \frac {7(5-x)}{5}\end{align*}, so \begin{align*}0 = 35 -7x\end{align*}, therefore \begin{align*}7x =35\end{align*} and \begin{align*}x=5\end{align*}. The \begin{align*}y-\end{align*}intercept is (5, 0).

We can graph the function from those two points:

License: CC BY-NC 3.0


  1. When an object falls under gravity, it gains speed at a constant rate of 9.8 m/s every second. An item dropped from the top of the Eiffel Tower, which is 300 meters tall, takes 7.8 seconds to hit the ground. How fast is it moving on impact?
  2. A prepaid phone card comes with $20 worth of calls on it. Calls cost a flat rate of $0.16 per minute.
    1. Write the value left on the card as a function of minutes used so far.
    2. Use the function to determine how many minutes of calls you can make with the card.

For questions 3-5, evaluate the function for \begin{align*} f(-3)\end{align*}, \begin{align*} f(0)\end{align*}, \begin{align*} f(z)\end{align*}, \begin{align*}f(x + 3)\end{align*}, \begin{align*}f(2n)\end{align*}, \begin{align*}f(3y + 8)\end{align*}, and \begin{align*}f\left ( \frac{q}{2} \right )\end{align*}.

  1. \begin{align*}f(x) = -2x+3\end{align*}
  2. \begin{align*}f(x) = 0.7x+3.2\end{align*}
  3. \begin{align*}f(x) = \frac {5(2-x)} {11}\end{align*}

For questions 6-9, determine whether the graph could be a function.

  1. License: CC BY-NC 3.0
  2. License: CC BY-NC 3.0
  3. License: CC BY-NC 3.0
  4. License: CC BY-NC 3.0
  1. The roasting guide for a turkey suggests cooking for 100 minutes plus an additional 8 minutes per pound.
    1. Write a function for the roasting time the given the turkey weight in pounds \begin{align*}(x)\end{align*}.
    2. Determine the time needed to roast a 10 lb turkey.
    3. Determine the time needed to roast a 27 lb turkey.
    4. Determine the maximum size turkey you could roast in 4.5 hours.

For questions 11-13, determine the missing terms in the following arithmetic progressions.

  1. {-11, 17, __, 73}
  2. {2, __, -4}
  3. {13, __, __, __, 0}

Review (Answers)

To view the Review answers, open this PDF file and look for section 4.10. 

Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes
Please to create your own Highlights / Notes
Show More

Image Attributions

  1. [1]^ License: CC BY-NC 3.0
  2. [2]^ License: CC BY-NC 3.0
  3. [3]^ License: CC BY-NC 3.0
  4. [4]^ License: CC BY-NC 3.0
  5. [5]^ License: CC BY-NC 3.0
  6. [6]^ License: CC BY-NC 3.0
  7. [7]^ License: CC BY-NC 3.0
  8. [8]^ License: CC BY-NC 3.0

Explore More

Sign in to explore more, including practice questions and solutions for Graphs of Linear Functions.
Please wait...
Please wait...