Lesson 4.5 · Radicals and Inverse Functions
Function composition
Many real processes happen in stages: a price is discounted and then taxed, a balloon's radius grows with time and its volume grows with the radius. Composition chains functions together so the output of one becomes the input of the next. It's also the tool you'll use in the next lesson to test whether two functions undo each other.
Combining functions with arithmetic
Before chaining, recall that you can add, subtract, multiply and divide functions output by output. If and , then
Composition is different. Instead of combining two outputs, you feed one function into the other.
What composition means
Definition
Composition of functions
The composition of with is the function
Read as " of ." You apply first, then apply to the result.
Think of two machines in a row. The input goes into machine , which outputs . That output goes straight into machine , which outputs . The function written on the right acts first, which is the reverse of reading order, so take care.
Worked example: Evaluating a composition
Let and . Find and .
Work from the inside out.
- : first , then .
- : first , then .
The results are different: order matters in composition. In general, and are different functions.
Finding a formula for a composition
To find as a formula, substitute the entire expression for every in . Parentheses help avoid mistakes.
Worked example: Composition formulas
Let and . Find , and .
Check with the previous example: ✓ and ✓.
Common mistake
is not the product . With and , the product is , which is not . The small circle in means "plug in," never "multiply."
The domain of a composition
For to be allowed in , two things must be true:
- is in the domain of (so exists), and
- is in the domain of (so can accept it).
Domain of f ∘ g
The domain of is every in the domain of for which is in the domain of . Find it from both functions, not just from the simplified formula.
Worked example: Finding the domain
- Let and . Find and its domain.
- Let and . Find and its domain.
Solutions.
- . The square root needs , so the domain is .
- . The formula alone looks like it accepts every real number, but is only defined for . So the domain of is .
The graph of part 1 is the graph of shifted units right. Composing with on the inside is exactly a horizontal shift, which connects composition to the transformations you studied earlier.
Decomposing a function
Sometimes you go backward: you're given a complicated function and want to write it as a composition of simpler ones. Look for an "inside" expression that is being plugged into an "outside" operation.
For , the inside is and the outside is "raise to the 4th power." So with and . For , you could use and . Decompositions aren't unique, but the natural one is usually clear.
Composition in context
Worked example: Discount, then coupon
A jacket costs dollars. A store takes 20% off, , and you also have a coupon for $10 off, . For a $60 jacket, does the order matter?
- Coupon first, then 20% off: dollars.
- 20% off first, then coupon: dollars.
Taking the percent off first is $2 cheaper. In formulas, while : when the percent comes last, it also shrinks the coupon.
Tip
When evaluating from a table or graph, work from the inside out one step at a time: find first, write it down, then look up of that number.
Practice
Let and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let and . Find .
Enter an expression, e.g. 3x^2 - 2x + 1
Let and . Find .
Enter an expression, e.g. 3x^2 - 2x + 1
Use the table to find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let and . What is the domain of ?
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5
Let . Which pair of functions gives ?
Let . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.