Functions and Their Graphs
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Identify functions and connect their verbal, numerical, graphical, and algebraic representations
- Determine domains and ranges while respecting formula restrictions and model boundaries
- Evaluate piecewise functions and interpret included or excluded graph endpoints
- Read intercepts, symmetry, and increasing or decreasing intervals from complete graphs
- Calculate average rates with units and distinguish signed position change from total distance
One input determines one output
A function makes the output unambiguous once you choose an allowed input. Suppose a sensor records a temperature of degrees at noon and degrees at 1 p.m. Different times give different temperatures. It could also record degrees again at 2 p.m. Repeated outputs cause no problem: each time still has one recorded temperature.
A function assigns exactly one output to every input in its domain, the set of allowed inputs. Its range is the set of outputs it actually attains. The input is also called the independent variable; the output is the dependent variable.
Let be the recorded temperature at hours after midnight. Then says the temperature at 1 p.m. is degrees. Read as “T of thirteen.” The parentheses identify an input; they do not mean multiplication by .
The pairs and can belong to one function. The pairs and cannot: they would assign two different outputs to the same input. An equation need not define one variable as a function of another. For example, allows both and when . Without an additional choice of branch, it does not define as a function of .
Check your understanding
Which collection of input-output pairs defines a function?
A function gives each input exactly one output. In the collection , the three inputs are distinct. The repeated output is allowed. Each other collection repeats an input with different outputs.
Four ways to represent a function
The same relationship can appear in words, a table, a formula, and a graph. Consider a rental service that charges dollars to start and dollars per hour. Assume fractional hours are charged proportionally and a rental lasts from to hours.
| Representation | What it says about this rental |
|---|---|
| Words | Start at dollars, then add dollars for each hour |
| Table | , , and |
| Formula | for |
| Graph | The line segment through and , including both endpoints |
The formula gives every value under the stated charging rule. The table lists only three of those values. If those three numbers were measurements with no rule supplied, connecting them with straight segments would be an extra modeling assumption.
The graph of consists of all points for inputs in its domain. This explains the vertical line test: a graph represents as a function of exactly when each vertical line meets it at most once. Two intersections would give two outputs for one input. No intersection means that input is outside the domain.
Worked example 1 Read a formula as a statement about a situation
Problem. A machine’s model for the length of ribbon remaining is , where is the number of completed decorations and is measured in centimeters. The machine is used for at most decorations. Find and interpret it. State the domain and decide whether its graph contains a connected segment or separate points.
Solution. For decorations, substitute the input into the rule:
The machine has centimeters of ribbon remaining after completing decorations. The domain is the whole-number set , because completed decorations are counted. The graph contains separate points rather than a connected segment. A formula alone does not decide whether fractional inputs make sense.
Allowed inputs and attained outputs
A formula’s operations and a situation’s meaning can both restrict its inputs. For , the input fails because it would require a real square root of . The input fails because the denominator would be zero. The input works: its numerator is zero and its denominator is .
Throughout this chapter, inputs and outputs are real unless stated otherwise. When no domain is supplied for a formula, use all real inputs for which its operations are defined. An even root needs a nonnegative radicand, the expression under the root. A denominator must be nonzero. Apply all restrictions together. A stated domain or a model’s context can narrow that set further.
For , these restrictions give and , so its domain is
A square bracket includes an endpoint and a parenthesis excludes it. The union symbol joins allowed pieces. Infinity describes an unbounded direction, not an included number, so it always takes a parenthesis.
To find a range, ask which outputs occur as the input varies over the stated domain. For with , the smallest output is , attained at . The largest is , attained at . Every output between them occurs because each from to is produced by the allowed input . The range is , not the interval made from the two endpoint outputs and .
Worked example 2 Keep a restriction after simplifying
Problem. Find the domain and range of
with no additional domain stated.
Solution. The original denominator excludes . For every other real input, factoring gives
The domain is . The simplified expression does not restore the missing input. The output would require , hence , which is excluded. Every other real output is attained at . The range is .
Check your understanding
A square has side length centimeters, restricted to . What are the domain and range of its area function ?
The side length is the input, so its stated restriction gives domain . Squaring these positive inputs gives every area from through square centimeters. Area would require side length , which is excluded.
Read the whole graph and its endpoints
A graph shows both input restrictions and output behavior, provided you know whether it shows the complete graph or only a viewing window. The following is the complete graph of ; its two pieces are straight segments.
A filled dot includes its point; an open circle excludes its point. The leftmost input is and is included. The rightmost displayed endpoint has input and is excluded. Thus the domain is . The range is . Although the right endpoint at height is open, the filled left endpoint attains that same height.
The vertical intercept is the graph’s point with input zero, here . A zero of a function is an input giving output zero; it produces a horizontal-axis intercept. This graph has no zeros because all its outputs are positive.
The graph rises from left to right on and falls on . In general, is increasing on an interval when any two inputs in it satisfy whenever . It is decreasing when the output inequality reverses. These terms compare outputs, not whether they are above or below the horizontal axis. A function can be positive while decreasing, as this graph is on its right segment. Here increasing and decreasing mean strictly increasing and strictly decreasing. A constant function is neither on an interval containing two distinct inputs.
Check your understanding
For the complete graph of above, which statement is correct?
An output belongs to the range if at least one included point attains it. The filled point attains . The open point does not define , and the vertical intercept is not a zero.
Symmetry compares opposite inputs
A graph can match itself after a reflection or a half turn. For on , the inputs and both give . Reflecting the complete V across the vertical axis preserves it. For on , those inputs give and . A half turn about the origin exchanges the points and and preserves that graph.
For either symmetry, the domain must contain whenever it contains . An even function satisfies for every allowed ; its graph is symmetric about the vertical axis. An odd function satisfies for every allowed ; its graph has half-turn symmetry about the origin. The identities and verify these properties for the two complete graphs above.
One matching pair, or a finite table of matching pairs, does not establish symmetry at unlisted inputs. A function may have neither symmetry: the earlier graph of has domain , which is not symmetric about zero. The zero function on a symmetric domain has both symmetries.
Check your understanding
A function has domain and satisfies for every allowed input. If , which statement follows?
The stated identity defines odd symmetry. At input , it gives . A half turn sends to , so the graph is symmetric about the origin.
Piecewise rules choose a formula by input
One function can use different rules on different parts of its domain. A study room costs dollars for any booking up to one hour, then dollars per additional hour, with fractional additional hours charged proportionally. A booking lasts more than zero and at most four hours. Its cost is
For , use the first rule, giving .
For , use the second rule, giving .
At , the first condition includes equality, so . The conditions tell you which rule to use before you calculate.
Overlapping rules can still give one output. At input , the rules and both give . Suppose the first rule applies when and the second when . Their conditions overlap on , and the rules agree throughout it because .
Now replace the second rule by , keeping those conditions. At input , both rules still give .
At input , however, the first gives and the replacement gives . This assigns two different outputs to one input. Agreement at just one shared input is not enough.
A piecewise function specifies rules for different input sets. Together the conditions must assign exactly one output to each input in the stated domain. Overlapping conditions are valid only if their rules agree on every shared input. Gaps are allowed only when those inputs are outside the domain. The pieces need not meet to define a function.
Worked example 3 Use the boundary condition rather than the nearest formula
Problem. The complete rule is
Find and the range. Describe the open and filled points at input .
Solution. The input belongs to the second piece, so .
On the first piece, outputs fall from , included at , toward , excluded because that piece does not include . Its output set is .
The second piece attains every output from to , including both. Combining the output sets gives
The graph has an open point at and a filled point at . Only the filled point determines the output at that input.
Change across an interval
Average change compares a net output change with the input span over which it happened. Suppose a reservoir contains cubic meters at time hour and cubic meters at time hours. Its volume changes by cubic meters over hours. Dividing gives an average rate of cubic meters per hour. The negative sign describes a net loss. It does not say the reservoir lost water at that rate throughout the interval.
For any distinct inputs and at which is defined, the average rate of change from to is
Subtract outputs in the same order as inputs. The denominator must be nonzero, and the units are output units per input unit. Endpoint data suffice for the computation even if no values between the endpoints are known.
On a graph, the line through and is a secant line. Its slope is rise divided by run, the same quotient. For from to , the rise is and the run is .
The average rate is . The secant measures the change between its two endpoints; the curve between those points need not follow the secant.
Worked example 4 Use unequal input intervals correctly
Problem. A probe reports depth in meters: , , and , with time in seconds. Find its average rate of change over the whole interval from to . Decide whether the simple mean of the two shorter-interval rates gives this whole-interval rate.
Solution. Use the endpoints of the requested interval:
The probe’s depth increases by an average of meters per second over these seven seconds. On , the rate is meters per second.
On , the rate is meter per second.
Their simple mean, , is not the whole-interval rate because they cover different amounts of time. The whole calculation counts all meters of net depth change and all seconds.
An average rate of zero says that the endpoint outputs agree. For example, has , so its average rate on is zero. It still attains . Endpoint agreement does not make the function constant between them.
Check your understanding
A freezer's temperature falls from degrees Celsius at time hours to degrees Celsius at time hours. What is the average rate of change?
Use the temperature change divided by the elapsed time.
The temperature falls by an average of degrees Celsius per hour over this interval; this does not specify its rate throughout the interval.
Signed position and total distance
Position records where an object is relative to a chosen origin; it can be positive, zero, or negative. Its change records the net movement in the chosen positive direction. Total distance traveled instead adds the lengths of all parts of the trip. Retracing a segment adds distance even when it cancels some position change.
Worked example 5 Separate a trip's net change from its total length
Problem. An object moves along a straight track. Its signed position , in meters, is a function of time , in seconds. The complete position graph joins consecutive points in this table by straight segments.
| (seconds) | |||
|---|---|---|---|
| (meters) |
Find the signed position change, total distance traveled, and average rate of change of position on . Explain what the secant measures.
Solution. The signed change uses only the final and initial positions:
From to seconds, the object travels from to , a distance of meters in the positive direction.
From to seconds, it returns from to , adding meters of distance in the negative direction. Thus the total distance traveled is meters.
The average rate of change of position is
This is the secant’s slope, a net position rate. Dividing the total distance by the elapsed time would give meters per second, the average speed. These differ because the object reverses direction. A cumulative total-distance graph starts at zero and cannot decrease. A signed position graph may start at a negative value and may decrease.
A mathematical model also has a boundary of use. If a draining model is for , its stated domain stops when the tank empties. Substituting into the expression gives , but the model supplies no volume there. Calculation outside a model’s domain does not extend the situation it describes.