Welcome to the Assembly Line: Understanding Composition of Functions

Imagine you are working at a factory. One machine takes a raw piece of wood and carves it into a chair. Then, a second machine takes that chair and paints it blue. This "two-step" process is exactly how composition of functions works! You aren't just using one "machine" (function); you are using the output of the first as the input for the second.

In AP Precalculus, mastering composition is vital because it is a core part of Free Response Question 1 on the AP Exam. Whether you are looking at tables, graphs, or equations, the logic remains the same: Work from the inside out.

1. The Basics: What is Composition?

When we "compose" two functions, \( f \) and \( g \), we are creating a new function where one function lives inside the other.

The Notation:
We write this as \( (f \circ g)(x) \) or, more helpfully, \( f(g(x)) \).
This is read as "\( f \) of \( g \) of \( x \)."

The Anatomy:
- \( g(x) \) is the inner function (the first step).
- \( f \) is the outer function (the second step).

Memory Aid: Think of a set of Russian Nesting Dolls. To get to the center, you have to deal with the outer layers first, but when building them (like evaluating), you start with the tiny doll in the very center and place it inside the next one.

Important Note: Order matters! Usually, \( f(g(x)) \) is not the same as \( g(f(x)) \). Doing your socks then your shoes is very different from doing your shoes then your socks!

2. Evaluating Compositions from Tables

On the AP Exam, you will often be given a table of values for two different functions. To find a value like \( f(g(2)) \), follow these steps:

Step-by-Step:
1. Find the inner value: Look at the table for \( g \) and find the output when the input is \( 2 \). Let’s say \( g(2) = 5 \).
2. Use that output as the new input: Now, look at the table for \( f \). You aren't looking for \( 2 \) anymore; you are looking for the input \( 5 \).
3. Find the final result: If the table shows \( f(5) = 10 \), then \( f(g(2)) = 10 \).

Common Mistake: Don't accidentally look up both \( f(2) \) and \( g(2) \) and multiply them. Composition is not multiplication!

3. Evaluating Compositions from Graphs

This is a favorite on the AP Exam (Skill 2.A). You might see two separate graphs or two curves on one grid.

How to trace it:
1. Locate the value \( x \) on the horizontal axis of the inner function's graph.
2. Move vertically to find the corresponding \( y \)-value on that graph.
3. Take that height (\( y \)-value) and move it to the horizontal axis (\( x \)-axis) of the outer function's graph.
4. Move vertically again to find the final \( y \)-value on the outer graph.

Quick Tip: If you are finding \( f(g(1)) \), you are basically asking: "What is the height of \( f \) at the x-position that equals the height of \( g \) at \( 1 \)?"

4. Analytical Composition (Using Equations)

Sometimes you’ll be given formulas and asked to "construct" a new function (Skill 1.C). This is where Unit 2's focus on exponential and logarithmic functions comes into play.

Example:
If \( f(x) = e^x \) and \( g(x) = 2x + 3 \), find \( f(g(x)) \).
1. Start with the outer shell: \( f( \text{something} ) = e^{(\text{something})} \).
2. Plug the entire expression for \( g(x) \) into that "something" slot.
3. Result: \( f(g(x)) = e^{2x + 3} \).

Did you know? This process is how we build complex models. For example, if the population of bacteria grows exponentially based on temperature, and temperature changes over time, the total population over time is a composition of those two functions.

5. Domain of Composed Functions

The domain of \( f(g(x)) \) is a bit picky. For an input \( x \) to be "allowed" into the composition, it must pass two tests:
1. \( x \) must be in the domain of the inner function \( g \). (The first machine must be able to process it).
2. The output of the inner function, \( g(x) \), must be in the domain of the outer function \( f \). (The second machine must be able to process what the first machine made).

Analogy: If a machine only accepts wood (inner) and the second machine only paints smooth surfaces (outer), you can't put a rock in the first machine, and you can't put a splintery piece of wood in the second!

Key Takeaways for the AP Exam

- Inside Out: Always calculate the inner parentheses first.
- Tables & Graphs: Be precise. Use a straight edge or your finger to track values so you don't skip a row or column.
- Practice 1.C: You will be asked to "construct" these functions. Make sure you are comfortable substituting a whole expression (like \( \ln(x) \) or \( 2^x \)) into another function.
- Context: In Unit 2, compositions often link a linear change to an exponential result. We will see this again in Topic 2.8 (Inverse Functions), where composing a function with its inverse "undoes" the operation!

Don't worry if this seems like a lot of steps at first. With a little practice, jumping between tables and graphs will become second nature!