Functions and Function Notation
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Decide whether a relation gives exactly one output for each allowed input
- Evaluate and interpret functions described by words, tables, graphs, and formulas
- Select the correct branch when evaluating a piecewise function
- Calculate average rates of change and explain their signs and units
- Distinguish an interval's average rate from what happens inside that interval
What makes a relationship a function?
Suppose one taxi charges dollars plus dollars per kilometer, with no other charges. For a trip of kilometers, the fare is dollars. That distance cannot give a second fare under the same rule.
A function assigns exactly one output to each allowed input. The domain is the set of allowed inputs; the range is the set of outputs actually produced. For the taxi model, the input is a nonnegative distance and the output is its fare. A relation is a collection of input-output pairings; some relations satisfy the function requirement and some do not.
If a record instead pairs distance with both dollars and dollars, fare is not a function of distance alone in that record. There may be a missing detail, such as the company. A disagreement with the function requirement does not make the observations impossible; it tells us the chosen input is insufficient.
Different inputs may share an output. The left diagram below still defines a function because each input has one outgoing arrow. The right one fails because input has two different outputs.
Check your understanding
Which collection, read with the first coordinate as input, defines a function?
The inputs , , and each have one output. It is allowed for inputs and to share output . Each other collection assigns two different outputs to a single input.
One relationship, several representations
Function notation names a function and the input being used. Write the taxi rule as
Read as “C of d”: the fare when the distance is . It does not mean multiplied by . Here is the independent quantity, the input selected for the model. The fare is the dependent quantity, whose value the rule determines. This language describes the model’s roles, not a claim that one quantity always causes another in the real world.
The words, formula, table, and graph below describe the same pricing rule. The table records a few values; the formula also determines values between them.
| Distance (kilometers) | Fare (dollars) |
|---|---|
On the graph, input lies on the horizontal axis. Move vertically to the graph, then horizontally to the fare axis to read output . The point says .
A formula justifies the segment between the table entries here. A few table entries alone do not establish what happens between them. If the table is all you know, use only the information it gives.
Worked example 1 An output question and an input question
Problem. A taxi uses dollars for a trip of kilometers, where .
Part A: Find .
Part B: Find the distance of a trip whose fare is dollars.
Part C: Explain the difference between the two questions.
Solution. Part A: To find , the input is already known. Substitute for :
The fare for six kilometers is dollars.
Part B: For the second question, the output is known and the input is unknown. Solve
Subtract , then divide by :
The trip is nine kilometers, an allowed input.
Part C: Evaluating and solving run through the relationship in different directions.
The same substitution works when the input is an expression. For , input gives . Replace the entire input; adding to would change the output instead.
Check your understanding
A table lists , , and . What can you conclude from these entries?
Read each entry in its stated direction. Repeated outputs are allowed. The entries supply neither nor , and they do not give a rule for filling the gaps.
Reading a graph as a function
A graph uses horizontal position for the input and vertical position for the output. In the next relation, input reaches heights and . That one conflict is enough to show the relation is not a function of .
This gives the vertical-line test: a graph represents as a function of exactly when every vertical line meets it at most once. A vertical line keeps the input fixed, so two intersection points would assign two outputs to one input. A line that misses the graph simply passes through an input outside the domain.
A horizontal graph passes this test. Many inputs can have the same output, and a vertical line still meets that graph only once. A vertical graph fails because one input has many outputs.
Choosing a piecewise rule
A single function can use different formulas for different inputs. The condition beside a formula tells you when to use it.
Consider the piecewise function
For input , use the first branch because , giving . For input , use the second branch because , giving . Choose the branch using the input, before calculating its output.
Worked example 2 Include the boundary exactly once
Problem. The function is defined by
Case A: Find .
Case B: Find .
Case C: Find every input for which .
Solution. Case A: Since , use :
Case B: Since , use :
Case C: In the first branch, gives . But is false, so this candidate is not valid for that branch.
In the second branch, gives . This satisfies , so the only input is .
For every declared input, a piecewise rule must assign one output. A gap between the conditions leaves an input undefined. Overlapping conditions that give different outputs create a conflict. We usually write disjoint conditions, as above, to make the choice clear.
Check your understanding
A function uses for and for . What is ?
The input satisfies , so only the second branch applies: . The first condition excludes the boundary.
Measuring change over an interval
Function values answer “how much?” A rate compares the change in output with the change in input.
For the taxi, the fare rises from to dollars as distance rises from to kilometers. The change is dollars over kilometers, or dollars per kilometer. Subtract before dividing; the ratio includes the booking fee and answers a different question.
The average rate of change from input to a different input is
The numerator is output change and the denominator is input change. Use the same order in both. Its units are output units per input unit. On a graph, this ratio is the slope of the secant line, the straight line through the two endpoint points. It summarizes the change between those endpoints, even if the graph between them is curved.
Worked example 3 Read the rate and its units
Problem. A marked point has height centimeters at time seconds, for .
Part A: Find its average rate of height change from one second to four seconds.
Part B: Interpret the result.
Part C: Find the rate from one second to two seconds and compare the two rates.
Solution. Part A: First calculate the endpoint heights:
The height increases by centimeters over seconds:
The average rate is centimeters per second.
Part B: This is the rate a constant increase would need to produce the same total height change over those three seconds.
Part C: For the shorter interval, , so
That average rate is centimeters per second. The two rates differ, so the height is not changing at a constant rate throughout the full interval.
When the later output is lower, the rate is negative. A container whose water volume drops from to liters between minutes and has average rate liters per minute. The sign describes a net decrease; it is not a negative amount of water.
Check your understanding
A measured quantity falls from grams at minutes to grams at minutes. What is its average rate of change?
The output change is grams and the elapsed time is minutes. Divide to get grams per minute. The negative sign records a decrease.
What an average does not tell you
Two endpoints can match even when the function changes in between.
Worked example 4 Zero net change does not mean no change
Problem. A function has values , , and .
Part A: Find the average rate from input to input .
Part B: Decide whether these data show a constant function on that interval.
Solution. Part A: The beginning and ending outputs are equal:
The average rate is zero.
Part B: The middle value is , which differs from , so the function is not constant. The overall average describes the net change, not every change inside the interval.
Likewise, a table can show equal average rates on several intervals without establishing a constant rate between all its entries. A stated linear rule justifies that stronger conclusion; a finite list of measurements does not by itself.
Check your understanding
A function has and . Which statement must be true?
The endpoint difference is zero, so the average rate is . The given values say nothing about the intervening outputs.