<meta http-equiv="refresh" content="1; url=/nojavascript/">
You are viewing an older version of this Concept. Go to the latest version.

# Graphs of Linear Functions

%
Progress
Practice Graphs of Linear Functions
Progress
%
Graphs of Linear Functions

What if you were given an equation like $y = \frac{1}{2}x + 3$ ? How could you write it in function notation, evaluate it for a specific function value, and graph it? After completing this Concept, you'll be able to perform tasks like these.

### Guidance

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?

Functions

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 $x-$ value to exactly one $y-$ value.

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:

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$ ”.

#### Example A

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

a) $y = 2x + 5$

b) $y = -0.2x + 7$

c) $x = 4y - 5$

d) $9x + 3y = 6$

Solution

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

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

c) First we need to solve for $y$ . Starting with $x = 4y - 5$ , we add 5 to both sides to get $x + 5 = 4y$ , divide by 4 to get $\frac{x+5}{4}=y$ , and then replace $y$ with $f(x): f(x) = \frac{x+5}{4}$ .

d) Solve for $y:$ take $9x + 3y = 6$ , subtract $9x$ from both sides to get $3y = 6 - 9x$ , divide by 3 to get $y=\frac{6-9x}{3}=2-3x$ , and express as a function: $f(x) = 2 - 3x$ .

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$ .

#### Example B

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

a) $f(2)$

b) $f(0)$

c) $f(z)$

d) $f(x + 3)$

e) $f(2r - 1)$

Solution

a) Substitute $x = 2$ into the function $f(x): \ f(2) = 6 \cdot 2 - 36 = 12 - 36 = - 24$

b) Substitute $x = 0$ into the function $f(x): \ f(0) = 6 \cdot 0 - 36 = 0 - 36 = - 36$

c) Substitute $x = z$ into the function $f(x): \ f(z) = 6z + 36$

d) Substitute $x = (x + 3)$ into the function $f(x): \ f(x + 3) = 6(x + 3) + 36 = 6x + 18 + 36 = 6x + 54$

e) Substitute $x = (2r + 1)$ into the function $f(x): \ f(2r + 1) = 6(2r + 1) + 36 = 12r + 6 + 36 = 12r + 42$

Graph a Linear Function

Since the notations “ $f(x) =$ ” and “ $y =$ ” are interchangeable, we can use all the concepts we have learned so far to graph functions.

#### Example C

Graph the function $f(x) =\frac {3x+5}{4}$ .

Solution

We can write this function in slope-intercept form:

$f(x) = \frac{3}{4}x + \frac {5}{4} = 0.75x+1.25$

So our graph will have a $y-$ intercept of (0, 1.25) and a slope of 0.75.

Arithmetic Progressions

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

$x$ $f(x)$
0 3
1 5
2 7
3 9
4 11

Notice that the values for $f(x)$ 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.

#### Example D

Find the common difference for the following arithmetic progressions:

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

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

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

Solution

a) $11 - 7 = 4; \ 15 - 11 = 4; \ 19 - 15 = 4$ . The common difference is 4 .

b) $1 - 12 = -11$ . The common difference is -11 .

c) 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 $12 - 7 = 5$ , 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 $x-$ value of a linear function increases by one, the $y-$ 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 $y = 2x - 4$ . The only major difference between the two graphs is that an arithmetic sequence is discrete while a linear function is continuous.

We can write a formula for an arithmetic progression: if we define the first term as $a_1$ and $d$ as the common difference, then the other terms are as follows:

$& 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$

The online calculator at http://planetcalc.com/177/ will tell you the $n$ th term in an arithmetic progression if you tell it the first term, the common difference, and what value to use for $n$ (in other words, which term in the sequence you want to know). It will also tell you the sum of all the terms up to that point. Finding sums of sequences is something you will learn to do in future math classes.

Watch this video for help with the Examples above.

### Vocabulary

• In order for an equation to be a function , the relationship between the two variables, $x$ and $y$ , must map each $x-$ value to exactly one $y-$ value.
• The graph of a function of $y$ versus $x$ must pass the vertical line test: any vertical line will only cross the graph of the function in one place.
• Functions can be expressed in function notation using $f(x) =$ in place of $y =$ .
• The sequence of $f(x)$ values for a linear function form an arithmetic progression. Each number is greater than (or less than) the preceding number by a fixed amount, or common difference.

### Guided Practice

Graph the function $f(x) = \frac{7(5-x)}{5}$ .

Solution

This time we’ll solve for the $x-$ and $y-$ intercepts.

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

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

We can graph the function from those two points:

### Review Questions

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 $f(-3)$ , $f(0)$ , $f(z)$ , $f(x + 3)$ , $f(2n)$ , $f(3y + 8)$ , and $f\left ( \frac{q}{2} \right )$ .

1. $f(x) = -2x+3$
2. $f(x) = 0.7x+3.2$
3. $f(x) = \frac {5(2-x)} {11}$

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

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 $(x)$ .
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}