7 Functions and Lines

Chapter 7 Topics

7.1 Functions and Function Notation

7.2 Domain and Range

7.3 Rates of Change and Behaviour of Graphs

7.4 Linear Functions

7.5 Graphs of Linear Functions

7.6 Modeling with Linear Functions

7.7 Fitting Linear Models to Data

 

7.1: Functions and Function Notation

What is a Function?

The natural world is full of relationships between quantities that change.  When we see these relationships, it is natural for us to ask “If I know one quantity, can I then determine the other?”  This establishes the idea of an input quantity, or independent variable, and a corresponding output quantity, or dependent variable.  From this we get the notion of a functional relationship in which the output can be determined from the input.

For some quantities, like height and age, there are certainly relationships between these quantities.  Given a specific person and any age, it is easy enough to determine their height, but if we tried to reverse that relationship and determine age from a given height, that would be problematic, since most people maintain the same height for many years.

Function

A function is a rule for a relationship between an input, or independent, quantity and an output, or dependent, quantity in which each input value uniquely determines one output value.  We say “the output is a function of the input.”

Example 7.1 A: Functions

In the height and age example above, is height a function of age? Is age a function of height?

Solution:

In the height and age example above, it would be correct to say that height is a function of age, since each age uniquely determines a height.  For example, on my 18th birthday, I had exactly one height of 69 inches.

However, age is not a function of height, since one height input might correspond with more than one output age. For example, for an input height of 70 inches, there is more than one output of age since I was 70 inches at the age of 20 and 21.

 

Example 7.1 B: Functions in Everyday Life

At a coffee shop, the menu consists of items and their prices.  Is price a function of the item? Is the item a function of the price?

Solution:

We could say that price is a function of the item, since each input of an item has one output of a price corresponding to it.  We could not say that item is a function of price, since two items might have the same price.

 

Example 7.1 C: Percentages, Decimals, and Functions

In many classes the overall percentage you earn in the course corresponds to a decimal grade point. Is decimal grade a function of percentage? Is percentage a function of decimal grade?

Solution:

For any percentage earned, there would be a decimal grade associated, so we could say that the decimal grade is a function of percentage. That is, if you input the percentage, your output would be a decimal grade. Percentage may or may not be a function of decimal grade, depending upon the teacher’s grading scheme. With some grading systems, there are a range of percentages that correspond to the same decimal grade.

 

You try…

Let’s consider bank account information.

1. Is your balance a function of your bank account number?
(If you input a bank account number does it make sense that the output is your balance?)

2. Is your bank account number a function of your balance?
(If you input a balance does it make sense that the output is your bank account number?)

 

Function Notation

To simplify writing out expressions and equations involving functions, a simplified notation is often used.  We also use descriptive variables to help us remember the meaning of the quantities in the problem.

Rather than write “height is a function of age”, we could use the descriptive variable h to represent height and we could use the descriptive variable a to represent age.

“height is a function of age”

if we name the function f we write

h is f of a

or more simply

h=f(a)

we could instead name the function h and write

h(a)

which is read “h of a.”

Remember we can use any variable to name the function; the notation h(a) shows us that h depends on a. The value “a” must be put into the function “h” to get a result. Be careful – the parentheses indicate that age is input into the function (Note: do not confuse these parentheses with multiplication!).

Function Notation

The notation output =f(input) defines a function named f.  This would be read “output is f of input.”

Example 7.1 D: Function Notation

Introduce function notation to represent a function that takes as input the name of a month, and gives as output the number of days in that month.

Solution:

The number of days in a month is a function of the name of the month, so if we name the function f, we could write “days=f(month)” or d=f(m). If we simply name the function d, we could write d(m).

For example, d(March)=31, since March has 31 days. The notation d(m) reminds us that the number of days, d (the output) is dependent on the name of the month, m (the input)

 

Example 7.1 E: Functions in Everyday Life

A function N=f(y) gives the number of police officers, N, in a town in year y.  What does f(2005)=300 tell us?

Solution:

When we read f(2005)=300, we see the input quantity is 2005, which is a value for the input quantity of the function, the year (y). The output value is 300, the number of police officers (N), a value for the output quantity. Remember N=f(y).  So this tells us that in the year 2005 there were 300 police officers in the town.

Tables as Functions

Functions can be represented in many ways:  Words (as we did in the last few examples), tables of values, graphs, or formulas.  Represented as a table, we are presented with a list of input and output values.

In some cases, these values represent everything we know about the relationship, while in other cases the table is simply providing us a few select values from a more complete relationship.

Table 1: This table represents the input, number of the month (January = 1, February = 2, and so on) while the output is the number of days in that month. This represents everything we know about the months & days for a given year (that is not a leap year)

(input) Month number, m 1 2 3 4 5 6 7 8 9 10 11 12
(output) Days in month D 31 28 31 30 31 30 31 31 30 31 30 31

Table 2: The table below defines a function Q=g(n). Remember this notation tells us g is the name of the function that takes the input n and gives the output Q.

n 1 2 3 4 5
Q 8 6 7 6 8

Table 3: This table represents the age of children in years and their corresponding heights. This represents just some of the data available for height and ages of children.

(input) a, age in years 5 5 6 7 8 9 10
(output) h, height inches 40 42 44 47 50 52 54

Example 7.1 F: Tables as Functions

Which of these tables define a function (if any)?

Input Output
2 1
5 3
8 6
Input Output
-3 5
0 1
4 5
Input Output
1 0
5 2
5 4

Solution:

The first and second tables define functions.  In both, each input corresponds to exactly one output.  The third table does not define a function since the input value of 5 corresponds with two different output values.

 

You try…

3. If each percentage earned translated to one letter grade, would this be a function?

 

Solving and Evaluating Functions

When we work with functions, there are two typical things we do: evaluate and solve.  Evaluating a function is what we do when we know an input, and use the function to determine the corresponding output.  Evaluating will always produce one result, since each input of a function corresponds to exactly one output.

Solving equations involving a function is what we do when we know an output, and use the function to determine the inputs that would produce that output.  Solving a function could produce more than one solution, since different inputs can produce the same output.

Example 7.1 G: Calculating Input and Output

Using the table shown, where Q=g(n)

n 1 2 3 4 5
Q 8 6 7 6 8

a) Evaluate g(3)

Solution:

Evaluating g(3) (read: “g of 3”) means that we need to determine the output value, Q, of the function g given the input value of n=3.  Looking at the table, we see the output corresponding to n=3 is Q=7, allowing us to conclude g(3)=7.

b) Solve g(n)=6

Solution:

Solving g(n)=6 means we need to determine what input values, n, produce an output value of 6.  Looking at the table we see there are two solutions: n=2 and n=4. Specifically:

  • When we input 2 into the function g, our output is Q=6. In other words, g(2)=6.
  • When we input 4 into the function g, our output is also Q=6. In other words, g(4)=6.

You try…

4. Using the function in Example 7.1G, evaluate g(4).

 

Graphs as Functions

Oftentimes a graph of a relationship can be used to define a function.  By convention, graphs are typically created with the input quantity along the horizontal axis and the output quantity along the vertical.

The most common graph has y on the vertical axis and x on the horizontal axis, and we say y is a function of x, or y=f(x) when the function is named f.

 

Example 7.1 H: Graphs of Functions

Which of these graphs defines a function y=f(x)?

Solution:

Looking at the three graphs above, the first two define a function y=f(x), since for each input value along the horizontal axis there is exactly one output value corresponding, determined by the y-value of the graph.  The 3rd graph does not define a function y=f(x) since some input values, such as x=2, correspond with more than one output value.

Vertical Line Test

The vertical line test is a handy way to think about whether a graph defines the vertical output as a function of the horizontal input.  Imagine drawing vertical lines through the graph.  If any vertical line would cross the graph more than once, then the graph does not define only one vertical output for each horizontal input.

Evaluating a function using a graph requires taking the given input and using the graph to look up the corresponding output.  Solving a function equation using a graph requires taking the given output and looking on the graph to determine the corresponding input.

Example 7.1 I: Solving Functions from Graphs

Given the graph shown below,
a) Evaluate f(2)
b) Solve f(x)=4

Solution:

a) To evaluate f(2), we find the input of x=2 on the horizontal axis.  Moving up to the graph gives the point (2, 1), giving an output of y=1.  So f(2)=1

b) To solve f(x)=4, we find the value 4 on the vertical axis because if f(x)=4 then 4 is the output.  Moving horizontally across the graph gives two points with the output of 4: (-1, 4) and (3, 4).  These give the two solutions to f(x)=4x=-1 or x=3.

This means f(-1)=4 and f(3)=4, or when the input is -1 or 3, the output is 4.

 

You try…

5. Using the graph from Example 7.1I, solve f(x)=1.

 

Formulas as Functions

When possible, it is very convenient to define relationships using formulas.  If it is possible to express the output as a formula involving the input quantity, then we can define a function.

Example 7.1 J: Relationships as Functions

Express the relationship 2n+6p=12 as a function p=f(n) if possible.

Solution:

To express the relationship in this form, we need to be able to write the relationship where p is a function of n, which means writing it as p = [something involving n].

2n+6p=12

subtract 2n from both sides

6p=12-2n

divide both sides by 6 and simplify

p=\frac{12-2n}{6}=\frac{12}{6}-\frac{2n}{6}=2-\frac{1}{3}n

Having rewritten the formula as p=, we can now express p as a function:

p=f(n)=2-\frac{1}{3}n

It is important to note that not every relationship can be expressed as a function with a formula.

Note the important feature of an equation written as a function is that the output value can be determined directly from the input by doing evaluations – no further solving is required.  This allows the relationship to act as a magic box that takes an input, processes it, and returns an output.  Modern technology and computers rely on these functional relationships, since the evaluation of the function can be programmed into machines, whereas solving things is much more challenging.

As with tables and graphs, it is common to evaluate and solve functions involving formulas.  Evaluating will require replacing the input variable in the formula with the value provided and calculating.  Solving will require replacing the output variable in the formula with the value provided, and solving for the input(s) that would produce that output.

Example 7.1 K: Evaluating Functions

Given the function k(t)=t^3+2

a) Evaluate k(2)
b) Solve k(t)=1

Solution:

a) To evaluate k(2), we plug in the input value 2 into the formula wherever we see the input variable t, then simplify

k(2)=2^3+2
k(2)=8+2

So k(2)=10

b) To solve k(t)=1, we set the formula for k(t) equal to 1, and solve for the input value that will produce that output

k(t)=1

substitute the original formula k(t)=t^3+2

t^3+2=1

subtract 2 from each side

t^3=-1

take the cube root of each side

t=-1

When solving an equation using formulas, you can check your answer by using your solution in the original equation to see if your calculated answer is correct.

We want to know if k(t)=1 is true when t=-1.

k(-1)=(-1)^3+2
=-1+2
=1

which was the desired result.

 

Example 7.1 L: Evaluating Functions

Given the function h(p)=p^2+2p
a) Evaluate h(4)
b) Solve h(p)=3

Solution:

a) To evaluate h(4) we substitute the value 4 for the input variable p in the given function.

h(4)=(4)2+2(4)
=16+8
=24

b)

h(p)=3

Substitute the original function h(p)=p^2+2p:

p^2+2p=3

This is quadratic, so we can rearrange the equation to get it = 0:

p^2+2p-3=0

subtract 3 from each side:

p^2+2p-3=0

this is factorable, so we factor it:

(p+3)(p-1)=0

By the zero factor theorem since (p+3)(p-1)=0, either (p+3)=0 or (p-1)=0 (or both of them equal 0) and so we solve both equations for p, finding p=-3 from the first equation and p=1 from the second equation.

This gives us the solution: h(p)=3 when p=1 or p=-3

 

You try…

6. Given the function g(m)=\sqrt{m-4}
a. Evaluate g(5)
b. Solve g(m)=2

 


You try… Answers

  1. Yes
  2. No
  3. Yes, it’s a function
  4. Q=g(4)=6
  5. x = 0 or x = 2
  6. a. g(5)=1
    b. m = 8

Section 7.1 Exercises

  1. Given a specific person, is their height a function of their age? Is the person’s age a function of their height? Justify your answers.
  2. At a coffee shop, the menu consists of items and their prices. Is price a function of the item? Is the item a function of the price? Justify your answers.
  3. At Ontario Tech University, the final grade a student earns in the course corresponds to a letter grade (see Ontario Tech – Grading). Is the letter grade a function of the percentage a student can obtain in the course? Is the percentage a student can obtain in the course a function of the letter grade? Justify.
  4. Consider bank account information.
    1. Is the account balance a function of the bank account number? Justify.
    2. Is the bank account number a function of the account balance? Justify.
  5. Introduce function notation of your choice using variable names to represent a function that takes as input the name of a month, and gives as output the number of days in that month. State clearly what each variable represents.
  6. A function N(y) gives the number of police officers, N, in a town in year y. What does N(2005) = 300 tell us?
  7. Which of these tables define a function (if any)? Justify.
    1. Input Output
      2 1
      5 3
      8 6
    2. Input Output
      -3 5
      0 1
      4 5
    3. Input Output
      1 0
      5 2
      5 4
  8. Using the table shown for Q(n):
    n 1 2 3 4 5
    Q 8 6 7 6 8
    1. Evaluate Q(3) and interpret your result (describe in words what the answer means).
    2. Solve Q(n)=6 and interpret your result.
    3. Evaluate Q(7). Interpret your result.
    4. Solve Q(n)=1. Interpret your result.
  9. Which of these graphs defines a function? Justify your answers.

Graph of circle centered at origin and with radius 3

  1. Given the graph shown,
    Graph of concave up parabola with vertex at (1, 0)
    1. Evaluate f(2).
    2. Solve f(x) = 4.
    3. Evaluate f(-1).
    4. Solve f(x)=1.
  2. If possible, express the relationship 2n + 6p = 12 as a function p(n).
  3. Consider the relationship 3m^2-15n=7. Use this relationship to express the following functions, if possible. If this is not possible, justify why not.
    1. Express n as a function of m.
    2. Express m as a function of n.
  4. Given the function k(t)=t^3+2.
    1. Evaluate k(2).
    2. Solve k(t)= 1.
  5. Given the function h(p)=p^2+2p,
    1. Evaluate h(4).
    2. Solve h(p)=3.
  6. Given the function g(m)=\sqrt{m-4}
    1. Evaluate g(5)
    2. Solve g(m)=2

7.2: Domain and Range

One of our main goals in mathematics is to model the real world with mathematical functions. In doing so, it is important to keep in mind the limitations of those models we create.

This table shows a relationship between circumference and height of a tree as it grows.

Circumference, c 1.7 2.5 5.5 8.2 13.7
Height, h 24.5 31 45.2 54.6 92.1

While there is a strong relationship between the two, it would certainly be ridiculous to talk about a tree with a circumference of -3 feet, or a height of 3000 feet. When we identify limitations on the inputs and outputs of a function, we are determining the domain and range of the function.

Domain and Range

The domain refers to the set of possible input values to a function.

The range refers to the set of possible output values of a function

Example 7.2 A: Domain and Range

Using the tree table above, determine a reasonable domain and range.

Solution:

We could combine the data provided with our own experiences and reason to approximate the domain and range of the function h=f(c). For the domain, possible values for the input circumference c, it doesn’t make sense to have negative values, so c>0. We could make an educated guess at a maximum reasonable value, or look up that the maximum circumference measured is about 119 feet[1]. With this information we would say a reasonable domain is 0<c\leq119 feet.

Similarly for the range, it doesn’t make sense to have negative heights, and the maximum height of a tree could be looked up to be 379 feet, so a reasonable range is 0<h\leq379 feet.

 

Example 7.2 B: Calculating Postage

When sending a letter through the United States Postal Service, the price depends upon the weight of the letter[2], as shown in the table below. Determine the domain and range.

Letters

Weight not Over Price
1 ounce $0.44
2 ounces $0.61
3 ounces $0.78
4 ounces $0.95

Solution:

Suppose we denote weight of a letter by w and price by p, we can think of price p is a function of weight, w. We then have that p(w) represents the price of mailing the letter of weight w.

Since acceptable weights are 3.5 ounces or less, and negative weights and weight of zero don’t make sense, the domain would be 0<w\leq3.5 or, in interval form, (0,3.55].

Since possible prices are from a limited set of values, we can only define the range of this function by listing the possible values. We use the {…} brackets to denote the type of set made a from a list of values. Thus the range is p = {$0.44, $0.61, $0.78, $0.95}.

 

You try…

1. The population of a small town in the year 1960 was 100 people. Since then, the population has grown to 1400 people reported during the 2010 census. Choose descriptive variables for your input and output and use interval notation to write the domain and range.

 

Notation

In the previous examples, we used inequalities to describe the domain and range of the functions. This is one way to describe intervals of input and output values, but is not the only way. Let us take a moment to discuss notation for domain and range.

Using inequalities, such as 0<c\leq163, 0<w\leq3.5, and 0<h\leq379 imply that we are interested in all values between the low and high values, including the high values in these examples.

However, occasionally we are interested in a specific list of numbers like the range for the price to send letters, p = $0.44, $0.61, $0.78, or $0.95. These numbers represent a set of specific values: {0.44, 0.61, 0.78, 0.95}

Representing values as a set, or giving instructions on how a set is built, leads us to another type of notation to describe the domain and range.

Suppose we want to describe the values for a variable x that are 10 or greater, but less than 30. In inequalities, we would write 10\leq x<30.

When describing domains and ranges, we sometimes extend this into set notation, which would look like this: \{x|10\leq x<30\}. The curly brackets {} are read as “the set of”, and the vertical bar | is read as “such that”, so altogether we would read \{x|10\leq x<30\} as “the set of x-values such that 10 is less than or equal to x and x is less than 30.”

When describing ranges in set notation, we could similarly write something like \{f(x)|0<f(x)<100\}, or if the output had its own variable, we could use it. So for our tree height example above, we could write for the range \{h|0<h\leq379\}. In set notation, if a domain or range is not limited, we could write {t|t is a real number}, or \{t|t\in\Re\}, read as “the set of t-values such that t is an element of the set of real numbers.”

A more compact alternative to set notation is interval notation, in which intervals of values are referred to by the starting and ending values. Curved parentheses are used for “strictly less than,” and square brackets are used for “less than or equal to.” Since infinity is not a number, we can’t include it in the interval, so we always use curved parentheses with \infty and -\infty. The table below will help you see how inequalities correspond to set notation and interval notation:

Inequality Set Notation Interval Notation
5<h\leq10 \{h|5<h\leq10} (5, 10]
5\leq h<10 \{h|5\leq h<10\} [5, 10)
5<h<10 \{h|5<h<10\} (5, 10)
h<10 \{h|<10\} (-\infty, 10)
h\geq10 \{h|h\geq10\} [10, \infty)
all real numbers \{h|h\in\Re\} (-\infty, \infty)

To combine two intervals together, using inequalities or set notation we can use the word “or”. In interval notation, we use the union symbol, \cup, to combine two unconnected intervals together.

Example 7.2 C: Intervals

Describe the intervals of values shown on the line graph below using set builder and interval notations.

Solution:

To describe the values, x, that lie in the intervals shown above we would say, “x is a real number greater than or equal to 1 and less than or equal to 3, or a real number greater than 5.”

As an inequality it is:

1\leq x\leq3 or x>5

In set notation:

\{x|1\leq x\leq3 or x>5\}

In interval notation:

[1, 3]\cup(5, \infty)

Remember when writing or reading interval notation:

  • Using a square bracket [ means the start value is included in the set.
  • Using a parenthesis ( means the start value is not included in the set.
You try…

2. Given the following interval, write its meaning in words, set builder notation, and interval notation.

 

Domain and Range from Graphs

We can also talk about domain and range based on graphs. Since domain refers to the set of possible input values, the domain of a graph consists of all the input values shown on the graph. Remember that input values are almost always shown along the horizontal axis of the graph. Likewise, since range is the set of possible output values, the range of a graph we can see from the possible values along the vertical axis of the graph.

Be careful – if the graph continues beyond the window on which we can see the graph, the domain and range might be larger than the values we can see.

Example 7.2 D: Domain and Range of a Graph

Determine the domain and range of the graph below.

Solution:

In the graph above[3], the input quantity along the horizontal axis appears to be “year”, which we could denote by the variable y. The output is “thousands of barrels of oil per day”, which we might denote by the variable b, for barrels. The graph would likely continue to the left and right beyond what is shown, but based on the portion of the graph that is shown to us, we can determine the domain is 1975\leq y<2008, and the range is approximately 180\leq b\leq2010.

In interval notation, the domain would be [1975, 2008] and the range would be about [180, 2010]. For the range, we have to approximate the smallest and largest outputs since they don’t fall exactly on the grid lines.

Remember that, as in the previous example, x and y are not always the input and output variables. Using descriptive variables is an important tool to remembering the context of the problem.

You try…

3. Given the graph below, write the domain and range in interval notation.

Domain and Range from Formulas

Most basic formulas can be evaluated at an input. Two common restrictions are:

  • The square root of negative values is non-real.
  • We cannot divide by zero.

Example 7.2 E: Finding Domain and Range

Find the domain of each function:
a) f(x)=2\sqrt{x+4}
b) g(x)=\frac{3}{6-3x}

Solution:

a) Since we cannot take the square root of a negative number, we need the inside of the square root to be non-negative.

x+4\geq0 when x\geq-4.

The domain of f(x) is [-4, \infty).

b) We cannot divide by zero, so we need the denominator to be non-zero.

6-3x=0 when x=2,

so we must exclude 2 from the domain.

The domain of g(x) is (-\infty, 2)\cup(2, \infty).

Piecewise Functions

Some functions cannot be described by a single formula.

Piecewise Function

A piecewise function is a function in which the formula used depends upon the domain the input lies in. We notate this idea like:

f(x) = \left\{ {\begin{array}{*{20}{c}} {{\textrm{formula 1}}}&{{\textrm{if}}}&{{\textrm{domain to use formula 1}}}\\ {{\textrm{formula 2}}}&{{\textrm{if}}}&{{\textrm{domain to use formula 2}}}\\ {{\textrm{formula 3}}}&{{\textrm{if}}}&{{\textrm{domain to use formula 3}}} \end{array}} \right.

Example 7.2 F: Piecewise Functions

A museum charges $5 per person for a guided tour with a group of 1 to 9 people, or a fixed $50 fee for 10 or more people in the group. Set up a function relating the number of people, n, to the cost, C.

Solution:

To set up this function, two different formulas would be needed. C=5n would work for n values under 10, and C=50 would work for values of n ten or greater. We denote this as follows:

C(n) = \left\{ {\begin{array}{*{20}{c}} {5n}&{if}&{0 < n < 10}\\ {50}&{if}&{n \ge 10} \end{array}} \right.

 

Example 7.2 G: Applications of Piecewise Functions

A cell phone company uses the function below to determine the cost, C, in dollars for g gigabytes of data transfer.

C(g) = \left\{ {\begin{array}{*{20}{c}} {25}&{if}&{0 < g < 2}\\ {25 + 10(g - 2)}&{if}&{g \ge 2} \end{array}} \right.

Find the cost of using 1.5 gigabytes of data, and the cost of using 4 gigabytes of data.

Solution:

To find the cost of using 1.5 gigabytes of data, C(1.5), we first look to see which piece of domain our input falls in. Since 1.5 is less than 2, we use the first formula, giving C(1.5)=25.

To find the cost of using 4 gigabytes of data, C(4), we see that our input of 4 is greater than 2, so we’ll use the second formula. C(4)=25+10(4-2)=45.

Therefore, the cost of using 1.5 gigabytes of data is $25, and the cost of using 4 gigabytes of data is $45.

 

Example 7.2 H: Graphing a Piecewise Function

Sketch a graph of the function

f(x) = \left\{ {\begin{array}{*{20}{c}} 0&{if}&{x \le 1}\\ {x - 1}&{if}&{1 < x \le 4}\\ 2&{if}&{x > 4} \end{array}} \right.

Solution:

We can imagine graphing each function, then limiting the graph to the indicated domain. At the endpoints of the domain, we put open circles to indicate where the endpoint is not included, due to a strictly-less-than inequality, and a closed circle where the endpoint is included, due to a less-than-or-equal-to inequality. The first and last parts are constant functions, where the output is the same for all inputs. The middle part we might recognize as a line, and could graph by evaluating the function at a couple inputs and connecting the points with a line.

Now that we have each piece individually, we combine them onto the same graph. When the first and second parts meet at x=1, we can imagine the closed dot filling in the open dot. Since there is no break in the graph, there is no need to show the dot.

 

You try…

4. At Pierce College during the 2009-2010 school year tuition rates for in-state residents were $89.50 per credit for the first 10 credits, $33 per credit for credits 11-18, and for over 18 credits the rate is $73 per credit[4].

Write a piecewise defined function for the total tuition, T, at Pierce College during 2009-2010 as a function of the number of credits taken, c. Be sure to consider a reasonable domain and range.

 


You try… Answers

1. Domain: y = years [1960, 2010]
Range: p = population,  [100, 1400]

2. a. Values that are less than or equal to -2, or values that are greater than or equal to -1 and less than 3
b. \left\{ {x|x \le  - 2\;or\; - 1 \le x < 3} \right\}
c. ( - \infty , - 2] \cup [ - 1,3)

3. Domain: y=years [1952, 2002]
Range: p=population in millions, [40, 88]

4. Tuition, T, as a function of credits, c.

T(c) = \left\{ {\begin{array}{*{20}{c}} {89.5c}&{if}&{c \le 10}\\ {895 + 33(c - 10)}&{if}&{10 < c \le 18}\\ {1159 + 73(c - 18)}&{if}&{c > 18} \end{array}} \right.

Reasonable domain should be whole numbers 0 to (answers may vary), e.g. [0, 23]
Reasonable range should be $0 – (answers may vary), e.g. [0, 1524]

Section 7.2 Exercises

  1. A data storage company rents server space for a flat annual fee of $150 and storage charge of $0.39 per GB for less than 1.8 petabytes per annual contract (one petabyte is 1000 terabytes and one terabyte is 1000 GB).
    1. Write the formula for the total cost C to rent server space as a function of the s gigabytes of data storage requirement.
    2. What is the domain of this function?
    3. What is the range of this function?
    4. Find the total cost to rent server space for 3.5 terabytes of storage space.
    5. Determine how much server space was rented under the annual contract if the bill was $1203.
  2. A rental car company rents cars for a flat fee of $20 and an hourly charge of $10.25. Reservations made but cancelled are charged the flat fee. The company policy states that the rentals must be less than 5 days in duration.
    1. Write the formula for the total cost C to rent a car as a function of the hours h the car is rented.
    2. What is the domain of this function?
    3. What is the range of this function?
    4. Find the total cost to rent a car for 2 days and 7 hours.
  3. In making strategic decisions in manufacturing we study the relationship between market supply of an item and the price of the item. Suppose the number of units available x at the price of the unit p of a particular product satisfy the following relationship:
    2x-35p=7000
    1. If possible, express the supply as a function of the price, explain what that means and why it is useful. If it is not possible, explain why.
    2. If possible, express the price as a function of the supply, explain what that means and why it is useful. If it is not possible, explain why.
    3. What is the domain of the supply function in terms of price?
  4. In making strategic decisions about product pricing, we study the relationship between market demand for an item and the price of the item. Suppose the market demand for x number of units and the price of the unit p of a particular product satisfy the following relationship:
    9x+150p=6500
    1. If possible, express the demand as a function of price, explain what that means and why it is useful. If it is not possible, explain why.
    2. If possible, express the price as a function of demand, explain what that means and why it is useful. If it is not possible, explain why.
    3. What is the domain of the demand function in terms of price?
    4. What is the domain of the price function in terms of demand?
  5. If the revenues from sales of  units of a certain product and the cost C of manufacturing x units of the same product can be expressed as R(x)=18x and C(x)=9.37x+25000,
    1. Determine the profit function in terms of the number of units .
    2. Calculate  and interpret what that means.
    3. Calculate  and interpret what that means.
    4. How many units would they have to produce and sell to break even?
  6. The population of Oshawa in the year 1960 was 77,000 people. Since then the population has grown to 379,848 people reported during the 2016 census. Choose descriptive variables for your input and output and use interval notation to write the domain and range.
  7. Describe the domains of
    1. f(x)=\frac{3x+5}{x^2+4x-5}
    2. f(x)=\frac{\sqrt{2x-3}}{\sqrt{(5-x}}
    3. f(x)=\frac{x}{\sqrt[3]{x+3}}
  8. A phone data plan has a basic charge of $30 a month. The plan includes first 2GB free and charges $10 for each additional GB, up to 8 GB total usage, after which it charges $15 for each additional GB. If d is the amount of data used (in GB) and is the total monthly cost:
    1. Express C(d) as a (piece-wise) formula.
    2. Identify the independent and the dependent variables of C.
    3. Identify the domain and the range of C.
    4. Graph C as a function of d for 0\le d\le 10.
    5. Calculate the cost if 9GB were used.
  9. Describe the relationship shown in the graph below as a function and describe its domain and range in interval form.Graph showing Estimated monthly light crude oli production in Alberta from January 2016 to November 2017
  10. Population Growth: The table below lists the Canada population by census years (source: Statistics Canada).
    Census Year Canadian Population (millions)
    1991 27.3
    1996 28.8
    2001 30.0
    2006 31.5
    2011 33.5
    2016 35.2
    1. Using Microsoft Excel, find a linear regression model that represents the size of Canadian population in millions in terms of number of years  since 1991 and graph the model.
    2. Draw a scatter plot of the data and graph the model.
    3. Interpret the slope of the model.
    4. Estimate the size of Canadian population in 2003.
    5. Predict the population of Canada in 2030.

7.3: Rates of Change and Behaviour of Graphs

Since functions represent how an output quantity varies with an input quantity, it is natural to ask about the rate at which the values of the function are changing.

For example, the function C(t) below gives the average cost, in dollars, of a gallon of gasoline t years after 2000.

t 2 3 4 5 6 7 8 9
C(t) 1.47 1.69 1.94 2.30 2.51 2.64 3.01 2.14

If we were interested in how the gas prices had changed between 2002 and 2009, we could compute that the cost per gallon had increased from $1.47 to $2.14, an increase of $0.67. While this is interesting, it might be more useful to look at how much the price changed per year. You are probably noticing that the price didn’t change the same amount each year, so we would be finding the average rate of change over a specified amount of time.

The gas price increased by $0.67 from 2002 to 2009, over 7 years, for an average of \frac{{$ 0.67}}{{7years}} \approx 0.096 dollars per year.

On average, the price of gas increased by about 9.6 cents each year.

Rate of Change

A rate of change describes how the output quantity changes in relation to the input quantity. The units on a rate of change are “output units per input units

Some other examples of rates of change would be quantities like:

  • A population of rats increases by 40 rats per week
  • A barista earns $9 per hour (dollars per hour)
  • A farmer plants 60,000 onions per acre
  • A car can drive 27 miles per gallon
  • A population of grey whales decreases by 8 whales per year
  • The amount of money in your college account decreases by $4,000 per quarter

Average Rate of Change

The average rate of change between two input values is the total change of the function values (output values) divided by the change in the input values.

Average rate of change = \frac{\textrm{Change of Output}}}{{\textrm{Change of Input}}} = \frac{{\Delta y}}{{\Delta x}} = \frac{{{y_2} - {y_1}}}{{{x_2} - {x_1}}}

Example 7.3 A: Cost Functions

Using the cost-of-gas function from earlier, find the average rate of change between 2007 and 2009.

From the table, in 2007 the cost of gas was $2.64. In 2009 the cost was $2.14.

The input (years) has changed by 2. The output has changed by $2.14 – $2.64 = -0.50.

The average rate of change is then \frac{-0.50}{2 years}=-0.25 dollars per year

 

Give It Some Thought

1. Using the same cost-of-gas function, find the average rate of change between 2003 and 2008

Notice that in the last example the change of output was negative since the output value of the function had decreased. Correspondingly, the average rate of change is negative.

Example 7.3 B: Average Rate of Change

Given the function g(t) shown here, find the average rate of change on the interval [0, 3].

At t=0, the graph shows g(0)=1

At t=3, the graph shows g(3)=4

The output has changed by 3 while the input has changed by 3, giving an average rate of change of:

\frac{{4 - 1}}{{3 - 0}} = \frac{3}{3} = 1

 

Example 7.3 C: Average Speed

On a road trip, after picking up your friend who lives 10 miles away, you decide to record your distance from home over time. Find your average speed over the first 6 hours.

t(hours) 0 1 2 3 4 5 6 7
D(t) (miles) 10 55 90 153 214 240 292 300

Here, your average speed is the average rate of change.

You traveled 282 miles in 6 hours, for an average speed of   \frac{{292 - 10}}{{6 - 0}} = \frac{{282}}{6} = 47 miles per hour

We can more formally state the average rate of change calculation using function notation.

Average Rate of Change using Function Notation

Given a function f(x), the average rate of change on the interval [a, b] is

Average rate of change = \frac{{{\textrm{Change of Output}}}}{{{\textrm{Change of Input}}}} = \frac{{f(b) - f(a)}}{{b - a}}

Example 7.3 D: Average Rate of Change

Compute the average rate of change of f(x)=x^2-\frac{1}{x} on the interval [2, 4].

We can start by computing the function values at each endpoint of the interval

f(2) = {2^2} - \frac{1}{2} = 4 - \frac{1}{2} = \frac{7}{2}

f(4) = {4^2} - \frac{1}{4} = 16 - \frac{1}{4} = \frac{{63}}{4}

Now computing the average rate of change

Average rate of change = \frac{{f(4) - f(2)}}{{4 - 2}} = \frac{{\frac{{63}}{4} - \frac{7}{2}}}{{4 - 2}} = \frac{{\frac{{49}}{4}}}{2} = \frac{{49}}{8}

 

Give It Some Thought

2. Find the average rate of change of f(x) = x - 2\sqrt x on the interval [1, 9].

 

Example 7.3 E: Magnetic Force

The magnetic force F, measured in Newtons, between two magnets is related to the distance between the magnets d, in centimeters, by the formula F(d)=\frac{2}{d^2}. Find the average rate of change of force if the distance between the magnets is increased from 2 cm to 6 cm.

We are computing the average rate of change of F(d)=\frac{2}{d^2} on the interval [2, 6].

Average rate of change = \frac{{F(6) - F(2)}}{{6 - 2}}

Evaluating the function

\frac{{F(6) - F(2)}}{{6 - 2}}

\frac{{\frac{2}{{{6^2}}} - \frac{2}{{{2^2}}}}}{{6 - 2}}

Simplifying

\frac{{\frac{2}{{36}} - \frac{2}{4}}}{4}

Combining the numerator terms

\frac{{\frac{{ - 16}}{{36}}}}{4}

Simplifying further

\frac{-1}{9} Newtons per centimeter

This tells us the magnetic force decreases, on average, by \frac{1}{9} Newtons per centimeter over this interval.

 

Example 7.3 F: Average Rate of Change

Find the average rate of change of g(t)=t^2+3t+1 on the interval [0, a]. Your answer will be an expression involving a.

Using the average rate of change formula

\frac{{g(a) - g(0)}}{{a - 0}}

Evaluating the function

\frac{{({a^2} + 3a + 1) - ({0^2} + 3(0) + 1)}}{{a - 0}}

Simplifying

\frac{{{a^2} + 3a + 1 - 1}}{a}

Simplifying further, and factoring

\frac{{a(a + 3)}}{a}

Cancelling the common factor a

a+3

This result tells us the average rate of change between t=0 and any other point t=a. For example, on the interval [0, 5], the average rate of change would be 5+3 = 8.

 

Give It Some Thought

3. Find the average rate of change of f(x)=x^3+2 on the interval [a, a + h].

 

Application to Business

In business, average rate of change is related to the idea of marginal cost, marginal revenue, and marginal profit.

Marginal Cost/Revenue/Profit

Marginal Cost is typically defined as the change in total cost if the quantity of items produced increases by one. Likewise, marginal revenue and marginal profit are the change in revenue and profit if the quantity of items increases by one.

In practice, marginal cost is usually calculated another way, using calculus techniques you will learn in future courses. In this course, though, we will stick with calculating marginal cost by looking at the actual change of total cost when production increases by one.

Example 7.3 G: Marginal Cost

A company has determined the total cost of producing q items is TC(q) = 2000 + 50\sqrt{q}. Find the marginal cost, when production is currently 5000 items.

We want to find the increase in total cost when increasing production from 5000 items to 5001 items. This is equivalent to finding the average rate of change on the interval [5000, 5001].

The total cost at 5000 items is:

TC(5000) = 2000 + 50\sqrt {5000}  \approx 5535.53

The total cost at 5001 items is:

TC(5001) = 2000 + 50\sqrt {5001}  \approx 5535.89

The marginal cost is

5535.89 – 5535.53 = $0.36.

In other words, after producing 5000 items, the additional cost of producing the 5001st item is $0.36

Graphical Behaviour of Functions

As part of exploring how functions change, it is interesting to explore the graphical behaviour of functions.

Increasing/Decreasing

A function is increasing on an interval if the function values increase as the inputs increase. More formally, a function is increasing if f(b)>f(a) for any two input values a and b in the interval with b>a. The average rate of change of an increasing function is positive.

A function is decreasing on an interval if the function values decrease as the inputs increase. More formally, a function is decreasing if f(b)<f(a) for any two input values a and b in the interval with b>a. The average rate of change of a decreasing function is negative.

Example 7.3 H: Graphs of Functions

Given the function p(t) graphed here, on what intervals does the function appear to be increasing?

The function appears to be increasing from t = 1 to t = 3, and from t = 4 on.

In interval notation, we would say the function appears to be increasing on the interval (1, 3) and the interval (4, \infty).

Notice in the last example that we used open intervals (intervals that don’t include the endpoints) since the function is neither increasing nor decreasing at t = 1, 3, or 4.

Local Extrema

A point where a function changes from increasing to decreasing is called a local maximum.

A point where a function changes from decreasing to increasing is called a local minimum.

Together, local maxima and minima are called the local extrema, or local extreme values, of the function.

Example 7.3 I: Invervals

Using the cost of gasoline function from the beginning of the section, find an interval on which the function appears to be decreasing. Estimate any local extrema using the table.

t 2 3 4 5 6 7 8 9
C(t) 1.47 1.69 1.94 2.30 2.51 2.64 3.01 2.14

It appears that the cost of gas increased from t = 2 to t = 8. It appears the cost of gas decreased from t = 8 to t = 9, so the function appears to be decreasing on the interval (8, 9).

Since the function appears to change from increasing to decreasing at t = 8, there is local maximum at t = 8.

 

Example 7.3 J: Estimating Extrema

Use a graph to estimate the local extrema of the function f(x)=\frac{2}{x}+\frac{x}{3}. Use these to determine the intervals on which the function is increasing.

Using technology to graph the function, it appears there is a local minimum somewhere between x = 2 and x = 3, and a symmetric local maximum somewhere between x = -3 and x = -2.

Most graphing calculators and graphing utilities can estimate the location of maxima and minima. Below are screen images from two different technologies, showing the estimate for the local maximum and minimum.

Based on these estimates, the function is increasing on the intervals (-\infty, -2.449) and (2.449, \infty). Notice that while we expect the extrema to be symmetric, the two different technologies agree only up to 4 decimals due to the differing approximation algorithms used by each.

 

 

Give It Some Thought

4. Use a graph of the function f(x)=x^3-6x^2-15x+20 to estimate the local extrema of the function. Use these to determine the intervals on which the function is increasing and decreasing.

 


Give It Some Thought Answers

1. \frac{{$ 3.01 - $ 1.69}}{{5years}} = \frac{{$ 1.32}}{{5years}}= 0.264 dollars per year.

2. Average rate of change = \frac{{f(9) - f(1)}}{{9 - 1}} = \frac{{\left( {9 - 2\sqrt 9 } \right) - \left( {1 - 2\sqrt 1 } \right)}}{{9 - 1}} = \frac{{\left( 3 \right) - \left( { - 1} \right)}}{{9 - 1}} = \frac{4}{8} = \frac{1}{2}

3. \frac{{f(a + h) - f(a)}}{{(a + h) - a}} = \frac{{\left( {{{(a + h)}^3} + 2} \right) - \left( {{a^3} + 2} \right)}}{h} = \frac{{{a^3} + 3{a^2}h + 3a{h^2} + {h^3} + 2 - {a^3} - 2}}{h} =

\frac{{3{a^2}h + 3a{h^2} + {h^3}}}{h} = \frac{{h\left( {3{a^2} + 3ah + {h^2}} \right)}}{h} = 3{a^2} + 3ah + {h^2}

4. Based on the graph, the local maximum appears to occur at (-1, 28), and the local minimum occurs at (5,-80). The function is increasing on ( - \infty , - 1) \cup (5,\infty ) and decreasing on ( - 1,5).

Section 7.3 Exercises

Insert review exercises here


7.4: Linear Functions

As you hop into a taxicab in Las Vegas, the meter will immediately read $3.30; this is the “drop” charge made when the taximeter is activated. After that initial fee, the taximeter will add $2.60 for each mile the taxi drives[5]. In this scenario, the total taxi fare depends upon the number of miles ridden in the taxi, and we can ask whether it is possible to model this type of scenario with a function. Using descriptive variables, we choose m for miles and C for Cost in dollars as a function of miles: C(m).

We know for certain that C(0) = 3.30, since the $3.30 drop charge is assessed regardless of how many miles are driven. Since $2.60 is added for each mile driven, then:

C(1) = 3.30 + 2.60 = 5.90

If we then drove a second mile, another $2.60 would be added to the cost:

C(2) = 3.30 + 2.60 + 2.60 = 3.30 + 2.60(2) = 8.50

If we drove a third mile, another $2.40 would be added to the cost:

C(3) = 3.30 + 2.60 + 2.60 + 2.60 = 3.30 + 2.60(3) = 11.10

From this we might observe the pattern, and conclude that if m miles are driven, C(m) = 3.30 + 2.60m because we start with a $3.30 drop fee and then for each mile increase we add $2.60.

It is good to verify that the units make sense in this equation. The $3.30 drop charge is measured in dollars; the $2.60 charge is measured in dollars per mile. So

C(m) = 3.30dollars + \left( {2.60\frac{{dollars}}{{mile}}} \right)\left( {m\;miles} \right)

When dollars per mile are multiplied by a number of miles, the result is a number of dollars, matching the units on the 3.30, and matching the desired units for the C function.

Notice this equation C(m) = 3.30 + 2.60m consisted of two quantities. The first is the fixed $3.30 charge which does not change based on the value of the input. The second is the $2.60 dollars per mile value, which is a rate of change. In the equation this rate of change is multiplied by the input value.

Looking at this same problem in table format we can also see the cost changes by $2.60 for every 1 mile increase.

m 0 1 2 3
C(m) 3.30 5.90 8.50 11.10

It is important here to note that in this equation, the rate of change is constant; over any interval, the rate of change is the same.

Graphing this equation, C(m) = 3.30 + 2.60m we see the shape is a line, which is how these functions get their name: linear functions.

When the number of miles is zero the cost is $3.30, giving the point (0, 3.30) on the graph. This is the vertical or C(m) intercept. The graph is increasing in a straight line from left to right because for each mile the cost goes up by $2.40; this rate remains consistent.

In this example you have seen the taxicab cost modeled in words, an equation, a table and in graphical form. Whenever possible, ensure that you can link these four representations together to continually build your skills. It is important to note that you will not always be able to find all 4 representations for a problem and so being able to work with all 4 forms is very important.

Linear Function

A linear function is a function whose graph produces a line. Linear functions can always be written in the form

f(x) = b + mx

or

f(x)=mx+b

They’re equivalent where:

b is the initial or starting value of the function (when input, x = 0), and
m is the constant rate of change of the function

Many people like to write linear functions in the form f(x)=b+mx because it corresponds to the way we tend to speak: “The output starts at b and increases at a rate of m.”

For this reason alone we will use the f(x)=b+mx form for many of the examples, but remember they are equivalent and can be written correctly both ways.

Slope and Increasing/Decreasing

m is the constant rate of change of the function (also called slope). The slope determines if the function is an increasing function or a decreasing function.

f(x)=b+mx is an increasing function if m>0

f(x)=b+mx is a decreasing function if m<0

If m=0, the rate of change zero, and the function f(x)=b+0x=b is just a horizontal line passing through the point (0, b), neither increasing nor decreasing.

Example 7.4A

To start producing a new model of custom wheels, a company will have to purchase $30,000 in new equipment. Each wheel made costs them $40 in supplies and labor. Write a formula for the total cost, TC, of producing q wheels. What will be their total costs in the first year if they expect to sell 240 wheels?

The initial value for this function is 30,000, since that is the startup costs, so
TC(0)=30,000. The cost increases by $40 for each wheel made, so the rate of change is $40 per wheel. With this information, we can write the formula:

.TC(q)=30,000+40q

TC(q) is an increasing linear function.

With this formula we can predict the total cost of 240 wheels:

TC(240) = 30,000 + 40(240) = 30,000 + 9,600 = 39,600.

The total cost will be $39,600.

 

Give It Some Thought

1. If you earn $30,000 per year and you spend $29,000 per year write an equation for the amount of money you save after y years, if you start with nothing.
“The most important thing, spend less than you earn!”[6]

Calculating Rate of Change

Given two values for the input, x_1 and x_2, and two corresponding values for the output, y_1 and y_2, or a set of points, (x_1, y_1) and (x_2, y_2), if we wish to find a linear function that contains both points we can calculate the rate of change, m:

m = \frac{{{\textrm{change in output}}}}{{{\textrm{change in input}}}} = \frac{{\Delta y}}{{\Delta x}} = \frac{{{y_2} - {y_1}}}{{{x_2} - {x_1}}}

Rate of change of a linear function is also called the slope of the line.

Note in function notation, y_1=f(x_1) and y_2=f(x_2), so we could equivalently write

m = \frac{{f\left( {{x_2}} \right) - f\left( {{x_1}} \right)}}{{{x_2} - {x_1}}}

Example 7.4B

The population of a city increased from 23,400 to 27,800 between 2002 and 2006. Find the rate of change of the population during this time span.

The rate of change will relate the change in population to the change in time. The population increased by 27800 - 23400 = 4400 people over the 4 year time interval. To find the rate of change, the number of people per year the population changed by:

\frac{{4400people}}{{4years}} = 1100\frac{{people}}{{year}} = 1100 people per year

Notice that we knew the population was increasing, so we would expect our value for m to be positive. This is a quick way to check to see if your value is reasonable.

 

Example 7.4C

The pressure, P, in pounds per square inch (PSI) on a diver depends upon their depth below the water surface, d, in feet, following the equation P(d) = 14.696 + 0.434d. Interpret the components of this function.

The rate of change, or slope, 0.434 would have units

\frac{{{\rm{output}}}}{{{\rm{input}}}} = \frac{{{\rm{pressure}}}}{{{\rm{depth}}}} = \frac{{{\rm{PSI}}}}{{{\rm{ft}}}}.

This tells us the pressure on the diver increases by 0.434 PSI for each foot their depth increases.

The initial value, 14.696, will have the same units as the output, so this tells us that at a depth of 0 feet, the pressure on the diver will be 14.696 PSI.

 

Example 7.4D

If f(x) is a linear function, f(3)=-2, and f(8)=1, find the rate of change.

f(3)=-2 tells us that the input 3 corresponds with the output -2, and f(8)=1 tells us that the input 8 corresponds with the output 1. To find the rate of change, we divide the change in output by the change in input:

m = \frac{{{\textrm{change in output}}}}{{{\textrm{change in input}}}} = \frac{{1 - ( - 2)}}{{8 - 3}} = \frac{3}{5}.

If desired we could also write this as m = 0.6.

Note that it is not important which pair of values comes first in the subtractions so long as the first output value used corresponds with the first input value used.

 

Give It Some Thought

2. Given the two points (2, 3) and (0, 4), find the rate of change. Is this function increasing or decreasing?

We can now find the rate of change given two input-output pairs, and can write an equation for a linear function once we have the rate of change and initial value. If we have two input-output pairs and they do not include the initial value of the function, then we will have to solve for it.

Example 7.4E

Write an equation for the linear function graphed below.

Looking at the graph, we might notice that it passes through the points (0, 7) and (4, 4). From the first value, we know the initial value of the function is b = 7, so in this case we will only need to calculate the rate of change:

m = \frac{{4 - 7}}{{4 - 0}} = \frac{{ - 3}}{4}

This allows us to write the equation:

f(x) = 7 - \frac{3}{4}x

 

Example 7.4F

If f(x) is a linear function, f(3)=-2, and f(8)=1, find an equation for the function.

In Example 7.4C, we computed the rate of change to be m=\frac{3}{5}. In this case, we do not know the initial value f(0), so we will have to solve for it. Using the rate of change, we know the equation will have the form f(x) = b + \frac{3}{5}x. Since we know the value of the function when x = 3, we can evaluate the function at 3.

f(3) = b + \frac{3}{5}(3)

Since we know that f(3)=-2, we can substitute on the left side

- 2 = b + \frac{3}{5}(3)

This leaves us with an equation we can solve for the initial value

b =  - 2 - \frac{9}{5} = \frac{{ - 19}}{5}

Combining this with the value for the rate of change, we can now write a formula for this function:

f(x) = \frac{{ - 19}}{5} + \frac{3}{5}x

 

Example 7.4G

Working as an insurance salesperson, Ilya earns a base salary and a commission on each new policy, so Ilya’s weekly income, I, depends on the number of new policies, n, he sells during the week. Last week he sold 3 new policies, and earned $760 for the week. The week before, he sold 5 new policies, and earned $920. Find an equation for I(n), and interpret the meaning of the components of the equation.

The given information gives us two input-output pairs: (3, 760) and (5, 920). We start by finding the rate of change.

m = \frac{{920 - 760}}{{5 - 3}} = \frac{{160}}{2} = 80

Keeping track of units can help us interpret this quantity. Income increased by $160 when the number of policies increased by 2, so the rate of change is $80 per policy; Ilya earns a commission of $80 for each policy sold during the week.

We can then solve for the initial value

I(n)=b+80n

then when n = 3, I(3)=760, giving

760=b+80(3)

this allows us to solve for b

b=760-80(3)=520

This value is the starting value for the function. This is Ilya’s income when n = 0, which means no new policies are sold. We can interpret this as Ilya’s base salary for the week, which does not depend upon the number of policies sold.

Writing the final equation:

I(n)=520+80n

Our final interpretation is: Ilya’s base salary is $520 per week and he earns an additional $80 commission for each policy sold each week.

 

Give It Some Thought

3. Looking at Example 7.4G:
Determine the independent and dependent variables.
What is a reasonable domain and range?

4.The balance in your college payment account, C, is a function of the number of quarters, q, you attend. Interpret the function C(a) = 20000 - 4000q in words. How many quarters of college can you pay for until this account is empty?

 

Example 7.4H

Given the table below write a linear equation that represents the table values

w, number of weeks 0 2 3 6
P(w), number of rats 1000 1080 1160 1240

We can see from the table that the initial value of rats is 1000 so in the linear format P(w)=b+mw, b = 1000.

Rather than solving for m, we can notice from the table that the population goes up by 80 for every 2 weeks that pass. This rate is consistent from week 0, to week 2, 4, and 6. The rate of change is 80 rats per 2 weeks. This can be simplified to 40 rats per week and we can write

P(w)=b+mw

as

P(w)=1000+40w

If you didn’t notice this from the table you could still solve for the slope using any two points from the table. For example, using (2, 1080) and (6, 1240),

m = \frac{{1240 - 1080}}{{6 - 2}} = \frac{{160}}{4} = 40 rats per week

 


Give It Some Thought Answers

1.  S(y) = 30,000y - 29,000y = 1000y $1000 is saved each year.

2.   m = \frac{{4 - 3}}{{0 - 2}} = \frac{1}{{ - 2}} =  - \frac{1}{2}; Decreasing because m < 0

3. n (number of policies sold) is the independent variable
I(n) (weekly income as a function of policies sold) is the dependent variable.
A reasonable domain is (0, 15)*
A reasonable range is (\char36 540, \char36 1740)*
*answers may vary given reasoning is stated; 15 is an arbitrary upper limit based on selling 3 policies per day in a 5 day work week and $1740 corresponds with the domain.

4. Your College account starts with $20,000 in it and you withdraw $4,000 each quarter (or your account contains $20,000 and decreases by $4000 each quarter.)  You can pay for 5 quarters before the money in this account is gone.

Section 7.4 Exercises

  1. Sarah wants to go skating at Super Skate ice rink. She has to pay a $7 entrance fee and $1.25 for every minute she is on the rink. 
    1. Write an equation to determine the cost (C) in terms of the number of minutes (t) that she is on the rink.
    2. If she only has $43.25, find the number of minutes she can be on the rink.
  2. If you earn $30,000 per year and you spend $29,000 per year, write amount of money you save A after t years, assuming you start with no money.
  3. The balance in your post-secondary studies savings account C(t) = 30000 - 6000t, is a function of the number of terms t you attend. Interpret the function in words and explain the meaning of each number and symbol in this equation. For how many terms of post-secondary education can you pay until this account is empty?
  4. A manager for a country market will spend a total of $80 on apples at $0.25 each and pears at $0.50 each. Write the number of apples she can buy as a linear function of the number of pears. Find the slope and interpret your answer. Graph the function.
  5. At $10 per ticket, Willie Williams and the Wranglers will fill all 8,000 seats in the Assembly Center. The manager knows that for every $1 increase in the price, 500 tickets will go unsold.
    1. Write the number of tickets sold n as a function of the ticket price p.
    2. What are the limits of the independent variable, if any?
  6. At a price of $2.28 per bushel, the supply of barley is 7,500 million bushels and the demand is 7,900 million bushels. At a price of $2.37 per bushel, the supply is 7,900 million bushels and the demand is 7,800 bushels.
    1. Assuming that price and supply are linearly related, determine the price in terms of supply (the price-supply equation).
    2. Assuming that price and demand are linearly related, determine the price in terms of demand (the price-demand equation).
    3. Find the equilibrium point (price and the number of units for which supply and demand are equal).
    4. Graph the price-supply equation, price-demand equation and the equilibrium point in the same coordinate system.

7.5: Graphs of Linear Functions

When we are working with a new function, it is useful to know as much as we can about the function: its graph, where the function is zero, and any other special behaviours of the function.

When graphing a linear function, there are two basic ways to graph it:

  • By plotting points (at least 2) and drawing a line through the points
  • Using the initial value (output when x = 0) and rate of change (slope)

Example 7.5A

Graph f(x) = 5 - \frac{2}{3}x by plotting points

In general, we evaluate the function at two or more inputs to find at least two points on the graph. Usually it is best to pick input values that will “work nicely” in the equation. In this equation, multiples of 3 will work nicely due to the \frac{2}{3} in the equation, and of course using x = 0 to get the vertical intercept. Evaluating f(x) at x = 0, 3 and 6:

\begin{array}{l} f(0) = 5 - \frac{2}{3}(0) = 5\\ f(3) = 5 - \frac{2}{3}(3) = 3\\ f(6) = 5 - \frac{2}{3}(6) = 1 \end{array}

These evaluations tell us that the points (0, 5), (3, 3), and (6, 1) lie on the graph of the line. Plotting these points and drawing a line through them gives us the graph.

When using the initial value and rate of change to graph, we need to consider the graphical interpretation of these values. Remember the initial value of the function is the output when the input is zero, so in the equation f(x)=b+mx, the graph includes the point (0, b). On the graph, this is the vertical intercept – the point where the graph crosses the vertical axis.

For the rate of change, it is helpful to recall that we calculated this value as

m = \frac{{{\textrm{change of output}}}}{{{\textrm{change of input}}}}

From a graph of a line, this tells us that if we divide the vertical difference, or rise, of the function outputs by the horizontal difference, or run, of the inputs, we will obtain the rate of change, also called slope of the line.

m = \frac{{{\textrm{change of output}}}}{{{\textrm{change of input}}}} = \frac{{rise}}{{run}}

Notice that this ratio is the same regardless of which two points we use

Graphical Interpretation of a Linear Equation

Graphically, in the equation f(x)=b+mx
b is the vertical intercept of the graph and tells us we can start our graph at (0, b)
m is the slope of the line and tells us how far to rise & run to get to the next point

Once we have at least 2 points, we can extend the graph of the line to the left and right.

Example 7.5B

Graph f(x) = 5 - \frac{2}{3}x using the vertical intercept and slope.

The vertical intercept of the function is (0, 5), giving us a point on the graph of the line.

The slope is -\frac{2}{3}. This tells us that for every 3 units the graph “runs” in the horizontal, the vertical “rise” decreases by 2 units. In graphing, we can use this by first plotting our vertical intercept on the graph, then using the slope to find a second point. From the initial value (0, 5) the slope tells us that if we move to the right 3, we will move down 2, moving us to the point (3, 3). We can continue this again to find a third point at (6, 1). Finally, extend the line to the left and right, containing these points.

 

Give It Some Thought

1. Consider that the slope -2/3 could also be written as \frac{2}{-3}. Using \frac{2}{-3}, find another point on the graph that has a negative x value.

In f(x)=mx+b, the value of m determines the steepness of the line. When m is positive the graph will be increasing, and when m is negative the graph will be decreasing. Looking at some examples:

In f(x)=mx+b, the b acts as a vertical shift, moving the graph up and down without affecting the slope of the line. Some examples:

Example 7.5C

Match each equation with one of the lines in the graph below

\begin{array}{l} f(x) = 2x + 3\\ g(x) = 2x - 3\\ h(x) =  - 2x + 3\\ j(x) = \frac{1}{2}x + 3 \end{array}

Only one graph has a vertical intercept of -3, so we can immediately match that graph with g(x). For the three graphs with a vertical intercept at 3, only one has a negative slope, so we can match that line with h(x). Of the other two, the steeper line would have a larger slope, so we can match that graph with equation f(x), and the flatter line with the equation j(x).

In addition to understanding the basic behaviour of a linear function (increasing or decreasing, recognizing the slope and vertical intercept), it is often helpful to know the horizontal intercept of the function – where it crosses the horizontal axis.

Finding Horizontal Intercept

The horizontal intercept of the function is where the graph crosses the horizontal axis. If a function has a horizontal intercept, you can always find it by solving f(x) = 0.

Example 7.5D

Find the horizontal intercept of f(x) =  - 3 + \frac{1}{2}x.

Setting the function equal to zero to find what input will put us on the horizontal axis:

\begin{array}{l} 0 =  - 3 + \frac{1}{2}x\\ 3 = \frac{1}{2}x\\ x = 6 \end{array}

The graph crosses the horizontal axis at (6,0)

There are two special cases of lines: a horizontal line and a vertical line. In a horizontal line like the one graphed below, notice that between any two points, the change in the outputs is 0. In the slope equation, the numerator will be 0, resulting in a slope of 0. Using a slope of 0 in the f(x)=b+mx, the equation simplifies to f(x)=b

Notice a horizontal line has a vertical intercept, but no horizontal intercept (unless it’s the line f(x) = 0).

In the case of a vertical line, notice that between any two points, the change in the inputs is 0. In the slope equation, the denominator will be 0, and you may recall that we cannot divide by the 0; the slope of a vertical line is undefined. You might also notice that a vertical line is not a function. To write the equation of vertical line, we simply write input=value, like x=b.

Notice a vertical line has a horizontal intercept, but no vertical intercept (unless it’s the line x = 0).

Horizontal and Vertical Lines

Horizontal lines have equations of the form f(x)=b

Vertical lines have equations of the form x = a

Example 7.5E

Write an equation for the horizontal line graphed above.

This line would have equation f(x)=2

 

Example 7.5F

Write an equation for the vertical line graphed above.

This line would have equation x=2

 

Parallel and Perpendicular Lines

When two lines are graphed together, the lines will be parallel if they are increasing at the same rate – if the rates of change are the same. In this case, the graphs will never cross (unless they’re the same line).

Parallel Lines

Two lines are parallel if the slopes are equal (or, if both lines are vertical). In other words, given two linear equations f(x)=b+m_1x and g(x)=b+m_2x

The lines will be parallel if m_1 = m_2

Example 7.5G

Find a line parallel to f(x)=6+3x that passes through the point (3, 0)

We know the line we’re looking for will have the same slope as the given line, m = 3. Using this and the given point, we can solve for the new line’s vertical intercept:

g(x)=b+3x

then at (3, 0),

\begin{array}{l} 0 = b + 3(3)\\ b =  - 9 \end{array}

The line we’re looking for is g(x)=-9+3x

If two lines are not parallel, one other interesting possibility is that the lines are perpendicular, which means the lines form a right angle (90 degree angle – a square corner) where they meet. In this case, the slopes when multiplied together will equal -1. Solving for one slope leads us to the definition:

Perpendicular Lines

Given two linear equations f(x)=b+m_1x and g(x)=b+m_2x

The lines will be perpendicular if m_1m_2=-1, and so m_2=\frac{-1}{m_1}

We often say the slope of a perpendicular line is the “negative reciprocal” of the other line’s slope.

Example 7.5H

Find the slope of a line perpendicular to a line with:
a) a slope of 2.
b) a slope of -4.
c) a slope of \frac{2}{3}.

If the original line had slope 2, the perpendicular line’s slope would be

m_2=\frac{-1}{2}

If the original line had slope -4, the perpendicular line’s slope would be

{m_2} = \frac{{ - 1}}{{ - 4}} = \frac{1}{4}

If the original line had slope \frac{2}{3}, the perpendicular line’s slope would be

m_2=\frac{{\frac{{-1}}{{2}}}}{3}=\frac{-3}{2}

 

Example 7.5I

Find the equation of a line perpendicular to f(x)=6+3x and passing through the point (3, 0)

The original line has slope m = 3. The perpendicular line will have slope m=\frac{-1}{3}. Using this and the given point, we can find the equation for the line.

g(x) = b - \frac{1}{3}x

then at (3, 0),

\begin{array}{l} 0 = b - \frac{1}{3}(3)\\ b = 1 \end{array}

The line we’re looking for is g(x) = 1 - \frac{1}{3}x

 

Give It Some Thought

2. Given the line h(t)=-4+2t, find an equation for the line passing through (0, 0) that is:
a) parallel to h(t).
b) perpendicular to h(t).

 

Example 7.5J

A line passes through the points (-2, 6) and (4, 5). Find the equation of a perpendicular line that passes through the point (4, 5).

From the two given points on the reference line, we can calculate the slope of that line:

{m_1} = \frac{{5 - 6}}{{4 - ( - 2)}} = \frac{{ - 1}}{6}

The perpendicular line will have slope

m_2=\frac{{\frac{{-1}}{{-1}}}}{6}=6

We can then solve for the vertical intercept that makes the line pass through the desired point:

g(x) = b + 6x

then at (4, 5),

\begin{array}{l} 5 = b + 6(4)\\ b =  - 19 \end{array}

Giving the line g(x) =  - 19 + 6x

 

Intersections of Lines

The graphs of two lines will intersect if they are not parallel. They will intersect at the point that satisfies both equations. To find this point when the equations are given as functions, we can solve for an input value so that f(x) = g(x). In other words, we can set the formulas for the lines equal, and solve for the input that satisfies the equation.

Example 7.5K

Find the intersection of the lines h(t)=3t-4 and j(t)=5-t

Setting h(t)=j(t),

\begin{array}{l} 3t - 4 = 5 - t\\ 4t = 9\\ t = \frac{9}{4} \end{array}

This tells us the lines intersect when the input is \frac{9}{4}.

We can then find the output value of the intersection point by evaluating either function at this input

j\left( {\frac{9}{4}} \right) = 5 - \frac{9}{4} = \frac{{11}}{4}

These lines intersect at the point \left( {\frac{9}{4},\frac{{11}}{4}} \right). Looking at the graph, this result seems reasonable.

Two parallel lines can also intersect if they happen to be the same line. In that case, they intersect at every point on the lines.

Give It Some Thought

3. Look at the graph in Example 7.5K above and answer the following for the function j(t):
a. Vertical intercept coordinates
b. Horizontal intercepts coordinates
c. Slope
d. Is j(t) parallel or perpendicular to h(t) (or neither)
e. Is j(t) an Increasing or Decreasing function (or neither)
f. Write a transformation description from the identity toolkit function f(x) = x

Finding the intersection allows us to answer other questions as well, such as discovering when one function is larger than another.

Example 7.5L

Using the functions from the previous example, for what values of t is h(t)>j(t)

To answer this question, it is helpful first to know where the functions are equal, since that is the point where h(t) could switch from being greater to smaller than j(t) or vice-versa. From the previous example, we know the functions are equal at t=\frac{9}{4}.

By examining the graph, we can see that h(t), the function with positive slope, is going to be larger than the other function to the right of the intersection. So h(t)>j(t) when t>\frac{9}{4}

 

 


Give It Some Thought Answers

1. (-3, 7) found by starting at the vertical intercept, going up 2 units and 3 in the negative horizontal direction. You could have also answered: (-6, 9) or (-9, 11) etc…

2. Parallel: f(t)=2t
Perpendicular: g(t)=-\frac{1}{2}t

3. Given j(t) = 5-t
a. (0,5)
b. (5,0)
c. Slope -1
d. Neither parallel nor perpendicular
e. Decreasing function
f. Given the identity function, perform a vertical flip (over the t axis) and shift up 5 units.

Section 7.5 Exercises

  1. Sketch the graph of the following function.
    f(x)=\frac{2}{3}x+1
  2. Find the x– and y-intercepts of the following lines and graph the lines:
    1. \frac{x}{2}-\frac{y}{3}=600
    2. 0.09x-0.06y=54
  3. Find the slope of the following lines and graph the lines:
    1. 3x-5y=1.5
    2. y+11=0
  4. Find the equations of the lines passing through the following points, identify – and -intercepts and slope for each, and sketch their graphs.
    1. (-2, 0)  and (0, 3)
    2. (\frac{3}{4}, -3)  and (-5,\frac{1}{8})
  5. Consider the points (3, 2) and (5, -2) and the linear function whose graph passes through them.
    1. Find the slope of the line.
    2. Find the slope-intercept form of the equation of the line.
    3. Write the equation of the line in the standard form.
  6. Graph f(x)=5-\frac{2}{3}x using the vertical intercept and slope. Using the fact that the slope -\frac{2}{3} could also be written as \frac{2}{-3}, find a point on the graph that has a negative x value.
  7. Consider the graph of j(t)=5-t and determine the following for the function :
    1. Vertical intercept coordinates
    2. Horizontal intercepts coordinates
    3. Slope
    4. Is j(t) an increasing or decreasing function (or neither)?

7.6: Modeling with Linear Functions

When modeling scenarios with a linear function and solving problems involving quantities changing linearly, we typically follow the same problem solving strategies that we would use for any type of function:

Problem solving strategy

  1. Identify changing quantities, and then carefully and clearly define descriptive variables to represent those quantities. When appropriate, sketch a picture or define a coordinate system.
  2. Carefully read the problem to identify important information. Look for information giving values for the variables, or values for parts of the functional model, like slope and initial value.
  3. Carefully read the problem to identify what we are trying to find, identify, solve, or interpret.
  4. Identify a solution pathway from the provided information to what we are trying to find. Often this will involve checking and tracking units, building a table or even finding a formula for the function being used to model the problem.
  5. When needed, find a formula for the function.
  6. Solve or evaluate using the formula you found for the desired quantities.
  7. Reflect on whether your answer is reasonable for the given situation and whether it makes sense mathematically.
  8. Clearly convey your result using appropriate units, and answer in full sentences when appropriate.

Example 7.6A

A company purchased $120,000 in new office equipment. Then expect the value to depreciate (decrease) by $16,000 per year. Find a linear model for the value, then find and interpret the horizontal intercept and determine a reasonable domain and range for this function.

In the problem, there are two changing quantities: time and value. The remaining value of the equipment depends on how long the company has had it. We can define our variables, including units.

Output: V, value remaining, in dollars
Input: t, time, in years

Reading the problem, we identify two important values. The first, $120,000, is the initial value for V. The other value appears to be a rate of change – the units of dollars per year match the units of our output variable divided by our input variable. The value is depreciating, so you should recognize that the value remaining is decreasing each year and the slope is negative.

Using the intercept and slope provided in the problem, we can write the equation:

V(t)=120,000-16,000t

To find the horizontal intercept, we set the output to zero, and solve for the input:

\begin{array}{l} 0 = 120,000 - 16,000t\\ t = \frac{{120,000}}{{16,000}} = 7.5 \end{array}

The horizontal intercept is 7.5 years. Since this represents the input value where the output will be zero, interpreting this, we could say: The equipment will have no remaining value after 7.5 years.

When modeling any real life scenario with functions, there is typically a limited domain over which that model will be valid – almost no trend continues indefinitely. In this case, it certainly doesn’t make sense to talk about input values less than zero. This model is also not valid after the horizontal intercept.

The domain represents the set of input values and so the reasonable domain for this function is 0\leq t\leq7.5. The range represents the set of output values and the value starts at $120,000 and ends with $0 after 7.5 years so the corresponding range is 0\leq V(t)\leq120,000.

Most importantly remember that domain and range are tied together, and whatever you decide is most appropriate for the domain (the independent variable) will dictate the requirements for the range (the dependent variable).

 

Example 7.6B

Jamal is choosing between two moving companies. The first, U-Haul, charges an up-front fee of $20, then 59 cents a mile. The second, Budget, charges an up-front fee of $16, then 63 cents a mile[7]. When will U-Haul be the better choice for Jamal?

The two important quantities in this problem are the cost, and the number of miles that are driven. Since we have two companies to consider, we will define two functions:

Input: m, miles driven

Outputs:
Y(m): cost, in dollars, for renting from U-Haul
B(m): cost, in dollars, for renting from Budget

Reading the problem carefully, it appears that we were given an initial cost and a rate of change for each company. Since our outputs are measured in dollars but the costs per mile given in the problem are in cents, we will need to convert these quantities to match our desired units: $0.59 a mile for U-Haul, and $0.63 a mile for Budget.

Looking to what we’re trying to find, we want to know when U-Haul will be the better choice. Since all we have to make that decision from is the costs, we are looking for when U-Haul will cost less, or when Y(m)<B(m). The solution pathway will lead us to find the equations for the two functions, find the intersection, then look to see where the Y(m) function is smaller. Using the rates of change and initial charges, we can write the equations:

\begin{array}{l} Y(m) = 20 + 0.59m\\ B(m) = 16 + 0.63m \end{array}

These graphs are sketched to the below, with Y(m) drawn dashed.

To find the intersection, we set the equations equal and solve:

Y(m) = B(m)

\begin{array}{l} 20 + 0.59m = 16 + 0.63m\\ 4 = 0.04m\\ m = 100 \end{array}

This tells us that the cost from the two companies will be the same if 100 miles are driven. Either by looking at the graph, or noting that Y(m) is growing at a slower rate, we can conclude that U-Haul will be the cheaper price when more than 100 miles are driven.

 

Example 7.6C

A company’s revenue has been growing linearly. In 2012 their revenue was $1.45 million. By 2015 the revenue had grown to $1.81 million. If this trend continues,
a. Predict the revenue in 2020
b. When will revenue reach $3 million?

The two changing quantities are the revenue and time. While we could use the actual year value as the input quantity, doing so tends to lead to very ugly equations, since the vertical intercept would correspond to the year 0, more than 2000 years ago!

To make things a little nicer, and to make our lives easier too, we will define our input as years since 2012:
Input: t, years since 2012
Output: R(t), the company’s revenue, in millions of dollars

The problem gives us two input-output pairs. Converting them to match our defined variables, the year 2012 would correspond to t = 0, giving the point (0, 1.45). Notice that through our clever choice of variable definition, we have “given” ourselves the vertical intercept of the function. The year 2015 would correspond to t = 3, giving the point (3, 1.81).

To predict the population in 2020 (t = 8), we would need an equation for the population. Likewise, to find when the revenue would reach $3 million, we would need to solve for the input that would provide an output of 3. Either way, we need an equation. To find it, we start by calculating the rate of change:

m = \frac{{1.81 - 1.45}}{{3 - 0}} = \frac{{0.36}}{3} = 0.12 million dollars per year

Since we already know the vertical intercept of the line, we can immediately write the equation:

R(t) = 1.45 + 0.12t

To predict the revenue in 2020, we evaluate our function at t = 8

R(8) = 1.45 + 0.12(8) = 2.41

If the trend continues, our model predicts a revenue of $2.41 million in 2020.

To find when the population will reach $3 million, we can set R(t) = 3 and solve for t.

\begin{array}{l} 15000 = 6200 + 380t\\ 8800 = 380t\\ t \approx 23.158 \end{array}

\begin{array}{l} 3 = 1.45 + 0.12t\\ 1.55 = 0.12t\\ t \approx 12.917 \end{array}

Our model predicts the revenue will reach $3 million in a little under 13 years after 2012, or just before the year 2025.

In business, a very common application of functions is to model cost, revenue, and profit.

Cost, Revenue, Profit

When a company produces q items, the total cost is the cost of total cost of producing those items. The total cost includes both fixed costs, which are startup costs, like equipment and buildings, and variable costs, which are costs that depend on the number of items produced, like materials and labor.

In the most simple case, Total Cost = (Fixed Costs) + (Variable Costs) q

Revenue is the amount of money a company brings in from sales.
In the most simple case, Revenue = (Revenue per item) q

Profit is the amount of money brings in, after expenses.

Profit = Revenue – Costs

We often talk about the break-even point. This is the level of production where Revenue equals Cost, or equivalently where Profit is zero. This is typically the minimum level of sales necessary for the company to make a profit.

Example 7.6D

A tech startup is looking at developing and launching a new mobile app. Initial development of the app will cost $300,000, and they estimate marketing and support for each user will cost $0.50. While the app will be free, they estimate they will be able to bring in $2 per user on average from in-app purchases. How many users will the company need to break even?

We start by modeling the cost, revenue, and profit. Let q = number of users.

The fixed (initial) costs are $300,000, and the variable (per-item) costs as $0.50 per user. We can write the total cost equation:

TC(q)=300,000+0.50q

The revenue will be $2 per user, so the revenue equation will be:

R(q)=2q

We could find the break-even point by setting the total cost equal to the revenue, which is equivalent to finding the intersection of the lines.

Alternatively, we could go ahead and find a profit equation first:

P(q) = R(q) - TC(q) = 2q - \left( {300,000 + 0.50q} \right) = 1.5q - 300,000

The break even point can be found by setting the profit equal to zero:

\begin{array}{l} 0 = 1.5q - 300,000\\ q = 200,000 \end{array}

The company will have to acquire 200,000 users to break even.

 

Give It Some Thought

1. A donut shop estimates their fixed daily expenses are $600. If each donut costs about $0.05 to make and sells for $0.60, how many donuts do they need to sell to break even?

In economics, there is a model for how prices are determined in a free market which states that supply and demand for a product is related to the price. The demand relationship shows the quantity of a certain product that consumers are willing to buy at a certain price. Typically the quantity demanded will decrease for an item if the price increases. The supply relationship shows the quantity of a product that suppliers are willing to produce at a certain sales price. Typically the supply demanded will increase if the price increases. Economic theory says that supply and demand will interact, and the intersection will be the equilibrium price, or market price, where the quantity supplied and demanded will be equal.

Supply and Demand

If p is the price of a product, then
Qd is the quantity demanded
Qs is the quantity supplied

The demand curve is a decreasing function, while the supply curve is an increasing function.

The intersection of the curves is the equilibrium price and quantity, also called the market price and quantity. This point is often notated as p*, Q*.

In later chapters you will explore supply and demand curves that are non-linear, but in this chapter we will focus on linear supply and demand functions.

In most economic books, you will see the supply and demand curve written with price as the input and quantity as the output, like {Q_d} = 140 - 2p. However, supply and demand graphs are drawn with price on the vertical axis and quantity on the horizontal. In an effort to avoid confusion, most of the time in this text we will instead write supply and demand curves with price as the output, to match its placement on the vertical axis.

Example 7.6E

At a price of $2.50 per gallon, there is a demand in a certain town for 42.5 thousand gallons of gas and a supply of 20 thousand gallons. At a price of $3.50, there is demand for 25.5 thousand gallons and a supply of 28 thousand gallons. Assuming supply and demand are linear, find the equilibrium price and quantity.

We start by finding a linear equation for both supply and demand. We will use price, p in dollars, as the output and quantity, q in thousands of gallons, as the input.

For supply, we have the points (20, 2.50) and (28, 3.50).

Finding the slope:

m = \frac{{3.50 - 2.50}}{{28 - 20}} = \frac{1}{8}

We know the equation will look like p = \frac{1}{8}q + b, so substituting in (20, 2.50),

\begin{array}{l} 2.5 = \frac{1}{8}(20) + b\\ 2.5 = 2.5 + b\\ b = 0 \end{array}

The supply equation is:

p = \frac{1}{8}q

For demand, we have the points (42.5, 2.50) and (25.5, 3.50). Using a similar approach, we can find the demand equation is:

p =  - \frac{1}{{17}}q + 5

To find the equilibrium, we set the supply equal to the demand:

\frac{1}{8}q =  - \frac{1}{{17}}q + 5

Multiplying through by 8(17) = 136 to clear the fractions

136\left( {\frac{1}{8}q} \right) = 136\left( { - \frac{1}{{17}}q + 5} \right)

17q =  - 8q + 680

Now we solve for q

\begin{array}{l} 25q = 680\\ q = 27.2 \end{array}

To find the equilibrium price, we can substitute that value back into either equation:

p = \frac{1}{8}(27.2) = 3.4

The equilibrium quantity will be 27.2 thousand gallons of gas at a price of $3.40.

 

Give It Some Thought

2. A company estimates that at a price of $140 there will demand for 4000 items, and for each $5 increase in price the demand will drop by 200 items. The supply curve is p = \frac{1}{{20}}q. Find the equilibrium price and quantity.

 


Give It Some Thought Answers

1. Revenue: R=0.60q

Break even when R = C, at a quantity of about 1091 donuts per day.

2. Demand: p=-\frac{1}{40}q+240

Supply = Demand when q = 3200, p = \char36 160

Section 7.6 Exercises

  1. A company purchased $120,000 in new office equipment. Then expect the value to depreciate (decrease) by $16,000 per year. Find a linear model for the value V of the equipment t years after purchase, then find and interpret the horizontal intercept and determine a reasonable domain and range for this function.
  2. At a price of $2.28 per bushel, the supply of barley is 7,500 million bushels and the demand is 7,900 million bushels. At a price of $2.37 per bushel, the supply is 7,900 million bushels and the demand is 7,800 bushels.
    1. Assuming that price and supply are linearly related, determine the price p in terms of supply x (the price-supply equation).
    2. Assuming that price and demand are linearly related, determine the price p in terms of demand x (the price-demand equation).
    3. Find the equilibrium point (price and the number of units for which supply and demand are equal).
    4. Graph the price-supply equation, price-demand equation and the equilibrium point in the same coordinate system.
  3. A plant can manufacture 50 tennis racquets per day for a total daily cost of $3,855 and 60 tennis racquets per day for a total daily cost of $4,245.
    1. Assuming that daily cost and production are linearly related, find the total daily cost C of producing x tennis racquets.
    2. Interpret the slope and the vertical intercept of this cost equation.
    3. Graph the total daily cost for 0\le x \le 100.
  4. NewTech Wireless company offers a monthly calling plan where the total cost is linearly related to the number of minutes used. Given that the total monthly cost for 100 minutes used is 35.00 and that for 200 minutes the cost is45.00:
    1. Express the cost C in terms of the number of minutes used t.
    2. What are the domain and the range of this function?
    3. What is the basic cost for the plan and what is the cost per minute?
    4. Sketch the graph of this function.
    5. What will be the cost if 400 minutes are used in a month?
    6. If the total cost for a month was $40.00, how many minutes were used?
  5. A security company purchases a new security van for $53,000 and assumes that in 5 years it will have a trade-in value of $28,000.
    1. Find the linear model for the depreciated value V of the van after t years.
    2. What is the depreciated value of the van after 3 years?
    3. When will the depreciated value fall below $23,000?
  6. The manufacturer of a new type of frying pan has calculated the monthly fixed costs to be $83,000 and variable costs of $7.35 for each frying pan produced. The pans are sold to a distributor for $20  per pan. The monthly manufacturing capacity is 20,000 units.
    1. Write the monthly cost function C in terms of number of units produced x. Determine its domain and range and graph it.
    2. Write the monthly revenue function R in terms of number of units produced x. Determine its domain and range and graph it.
    3. Write the monthly profit function P in terms of number of units produced x, assuming that all units produced are sold. Determine its domain and range and graph it.
    4. What will be their profit/loss if they are running at 25% capacity? At 75% capacity?
    5. How many units must they produce and sell in a month to break even? What percent is that of production capacity? What must be the sales to break even?
    6. How many units must they produce and sell in a month to make $100,000 in profit?
  7. A manufacturing company, under contract to deliver a new line of beer bottles, estimates that it would cost $41,000 to produce 80,000 bottles while it would cost $59,000 to produce 120,000 bottles. Based on the cost analysis of previous production runs, they determined that that a linear model would best represent the costs of production.
    1. Assuming that the cost C and the number of bottles produced x are linearly related, determine the cost function C(x).
    2. What are the fixed costs in this model and what is the variable cost per bottle?

7.7: Fitting Linear Models to Data

In the real world, rarely do things follow trends perfectly. When we expect the trend to behave linearly, or when inspection suggests the trend is behaving linearly, it is often desirable to find an equation to approximate the data. Finding an equation to approximate the data helps us understand the behaviour of the data and allows us to use the linear model to make predictions about the data, inside and outside of the data range.

Example 7.7A

The table below shows the number of cricket chirps in 15 seconds, and the air temperature, in degrees Fahrenheit[8]. Plot this data, and determine whether the data appears to be linearly related.

chirps 44 35 20.4 33 31 35 18.5 37 26
Temp 80.5 70.5 57 66 68 72 52 73.5 53

Plotting this data, it appears there may be a trend, and that the trend appears roughly linear, though certainly not perfectly so.

The simplest way to find an equation to approximate this data is to try to “eyeball” a line that seems to fit the data pretty well, then find an equation for that line based on the slope and intercept.

You can see from the trend in the data that the number of chirps increases as the temperature increases. As you consider a function for this data you should know that you are looking at an increasing function or a function with a positive slope.

Give It Some Thought

1. a. What descriptive variables would you choose to represent Temperature & Chirps?
b. Which variable is the independent variable and which is the dependent variable?
c. Based on this data and the graph, what is a reasonable domain & range?
d. Based on the data alone, is this function one-to-one, explain?

 

Example 7.7B

Using the table of values from the previous example, find a linear function that fits the data by “eyeballing” a line that seems to fit.

On a graph, we could try sketching in a line. Note the scale on the axes have been adjusted to start at zero to include the vertical axis and vertical intercept in the graph.

Using the starting and ending points of our “hand drawn” line, points (0, 30) and (50, 90), this graph has a slope of m = \frac{{60}}{{50}} = 1.2 and a vertical intercept at 30, giving an equation of

T(c) = 30 + 1.2c

where c is the number of chirps in 15 seconds, and T(c) is the temperature in degrees Fahrenheit.

This linear equation can then be used to approximate the solution to various questions we might ask about the trend. While the data does not perfectly fall on the linear equation, the equation is our best guess as to how the relationship will behave outside of the values we have data for. There is a difference, though, between making predictions inside the domain and range of values we have data for, and outside that domain and range.

Interpolation and Extrapolation

Interpolation: When we predict a value inside the domain and range of the data
Extrapolation: When we predict a value outside the domain and range of the data

For the Temperature as a function of chirps in our hand drawn model above:

Interpolation would occur if we used our model to predict temperature when the values for chirps are between 18.5 and 44.

Extrapolation would occur if we used our model to predict temperature when the values for chirps are less than 18.5 or greater than 44.

Example 7.7C

a) Would predicting the temperature when crickets are chirping 30 times in 15 seconds be interpolation or extrapolation? Make the prediction, and discuss if it is reasonable.
b) Would predicting the number of chirps crickets will make at 40 degrees be interpolation or extrapolation? Make the prediction, and discuss if it is reasonable.

With our cricket data, our number of chirps in the data provided varied from 18.5 to 44. A prediction at 30 chirps per 15 seconds is inside the domain of our data, so would be interpolation. Using our model:

T(30) = 30 + 1.2(30) = 66 degrees.

Based on the data we have, this value seems reasonable.

The temperature values varied from 52 to 80.5. Predicting the number of chirps at 40 degrees is extrapolation since 40 is outside the range of our data. Using our model:

\begin{array}{l} 40 = 30 + 1.2c\\ 10 = 1.2c\\ c \approx 8.33 \end{array}

Our model predicts the crickets would chirp 8.33 times in 15 seconds. While this might be possible, we have no reason to believe our model is valid outside the domain and range. In fact, generally crickets stop chirping altogether below around 50 degrees.

When our model no longer applies after some point, it is sometimes called model breakdown.

Give It Some Thought

2. What temperature would you predict if you counted 20 chirps in 15 seconds?

 

Fitting Lines with Technology

While eyeballing a line works reasonably well, there are statistical techniques for fitting a line to data that minimize the differences between the line and data values[9]. This technique is called least-square regression, and can be computed by many graphing calculators, spreadsheet software like Excel or Google Docs, statistical software, and many web-based calculators[10].

Example 7.7D

Find the least-squares regression line using the cricket chirp data from above.

Using the cricket chirp data from earlier, with technology we obtain the equation:

T(c) = 30.281 + 1.143c

Notice that this line is quite similar to the equation we “eyeballed”, but should fit the data better. Notice also that using this equation would change our prediction for the temperature when hearing 30 chirps in 15 seconds from 66 degrees to:

T(30) = 30.281 + 1.143(30) = 64.571 \approx 64.6 degrees.

Most calculators and computer software will also provide you with the correlation coefficient, a measure of how closely the line fits the data.

Correlation Coefficient

The correlation coefficient is a value, r, between -1 and 1.
r>0 suggests a positive (increasing) relationship
r<0 suggests a negative (decreasing) relationship

The closer the value is to 0, the more scattered the data
The closer the value is to 1 or -1, the less scattered the data is

The correlation coefficient provides an easy way to get some idea of how close to a line the data falls.

We should only compute the correlation coefficient for data that follows a linear pattern; if the data exhibits a non-linear pattern, the correlation coefficient is meaningless. To get a sense for the relationship between the value of r and the graph of the data, here are some large data sets with their correlation coefficients:

Examples of Correlation Coefficient Values

[11]

 

Example 7.7E

Calculate the correlation coefficient for our cricket data.

Because the data appears to follow a linear pattern, we can use technology to calculate r = 0.9509. Since this value is very close to 1, it suggests a strong increasing linear relationship.

 

Example 7.7F

Gasoline consumption in the US has been increasing steadily. Consumption data from 1994 to 2004 is shown below[12]. Determine if the trend is linear, and if so, find a model for the data. Use the model to predict the consumption in 2008.

Year ’94 ’95 ’96 ’97 ’98 ’99 ’00 ’01 ’02 ’03 ’04
Consumption (billions of gallons) 113 116 118 119 123 125 126 128 131 133 136

To make things simpler, a new input variable is introduced, t, representing years since 1994.

Using technology, the correlation coefficient was calculated to be 0.9965, suggesting a very strong increasing linear trend.

The least-squares regression equation is:

C(t) = 113.318 + 2.209t.

Using this to predict consumption in 2008 (t = 14),

C(14) = 113.318 + 2.209(14) = 144.244 billions of gallons

The model predicts 144.244 billion gallons of gasoline will be consumed in 2008.

 

Give It Some Thought

3. Use the model created by technology in Example 7.7F to predict the gas consumption in 2011. Is this an interpolation or an extrapolation?

 


Give It Some Thought Answers

1. a. T = Temperature,  C = Chirps (answers may vary)
b. Independent (Chirps) , Dependent (Temperature)
c. Reasonable Domain (18.5, 44), Reasonable Range (52, 80.5) (answers may vary)
d. NO, it is not one-to-one, there are two different output values for 35 chirps.

2. 54 degrees Fahrenheit

3. 150.871 billion gallons, extrapolation

Section 7.7 Exercises

Insert review exercises here


Chapter 7 Summary

Key Takeaways

Section 7.1: Functions and Function Notation

  • Definition of a function
  • Input (independent variable)
  • Output (dependent variable)
  • Function notation
  • Descriptive variables
  • Functions in words, tables, graphs & formulas
  • Vertical line test
  • Evaluating a function at a specific input value
  • Solving a function given a specific output value

Section 7.2: Domain and Range

  • Definition of domain
  • Definition of range
  • Inequalities
  • Interval notation
  • Set builder notation
  • Domain and Range from graphs
  • Piecewise defined functions

Section 7.3: Rates of Change and Behaviour of Graphs

  • Rate of Change
  • Average Rate of Change
  • Calculating Average Rate of Change using Function Notation
  • Marginal cost/revenue/profit
  • Increasing/Decreasing
  • Local Maxima and Minima (Extrema)

Section 7.4: Linear Functions

  • Definition of a linear function
  • Structure of a linear function
  • Increasing & Decreasing functions
  • Finding the vertical intercept (0, b)
  • Finding the slope/rate of change, m
  • Interpreting linear functions

Section 7.5: Graphs of Linear Functions

  • Methods for graphing linear functions
  • Another name for slope = rise/run
  • Horizontal intercepts (a, 0)
  • Horizontal lines
  • Vertical lines
  • Parallel lines
  • Perpendicular lines
  • Intersecting lines

Section 7.6: Modeling with Linear Functions

  • The problem solving process
    1. Identify changing quantities, and then carefully and clearly define descriptive variables to represent those quantities.  When appropriate, sketch a picture or define a coordinate system.
    2. Carefully read the problem to identify important information.  Look for information giving values for the variables, or values for parts of the functional model, like slope and initial value.
    3. Carefully read the problem to identify what we are trying to find, identify, solve, or interpret.
    4. Identify a solution pathway from the provided information to what we are trying to find.  Often this will involve checking and tracking units, building a table or even finding a formula for the function being used to model the problem.
    5. When needed, find a formula for the function.
    6. Solve or evaluate using the formula you found for the desired quantities.
    7. Reflect on whether your answer is reasonable for the given situation and whether it makes sense mathematically.
    8. Clearly convey your result using appropriate units, and answer in full sentences when appropriate.
  • Cost, revenue, profit equations
  • Supply and demand
  • Equilibrium price and quantity

Section 7.7: Fitting Linear Models to Data

  • Fitting linear models to data by hand
  • Fitting linear models to data using technology
  • Interpolation
  • Extrapolation
  • Correlation coefficient

 


  1. http://en.wikipedia.org/wiki/Tree, retrieved July 19, 2010
  2. http://www.usps.com/prices/first-class-mail-prices.htm, retrieved July 19, 2010
  3. http://commons.wikimedia.org/wiki/File:Alaska_Crude_Oil_Production.PNG, CC-BY-SA, July 19, 2010
  4. https://www.pierce.ctc.edu/dist/tuition/ref/files/0910_tuition_rate.pdf, retrieved August 6, 2010
  5. There is also a waiting fee assessed when the taxi is waiting at red lights, but we’ll ignore that in this discussion.
  6. http://www.thesimpledollar.com/2009/06/19/rule-1-spend-less-than-you-earn/
  7. Rates retrieved Aug 2, 2010 from http://www.budgettruck.com and http://www.uhaul.com/
  8. Selected data from http://classic.globe.gov/fsl/scientistsblog/2007/10/. Retrieved Aug 3, 2010
  9. Technically, the method minimizes the sum of the squared differences in the vertical direction between the line and the data values.
  10. For example, http://www.shodor.org/unchem/math/lls/leastsq.html
  11. http://en.wikipedia.org/wiki/File:Correlation_examples.png
  12. http://www.bts.gov/publications/national_transportation_statistics/2005/html/table_04_10.html

License

Share This Book