Worksheet 2.7: Composition of Functions — A Complete Guide
If you've ever stared at a math worksheet and thought, "Wait, what does it even mean to put one function inside another?" — you're definitely not alone. On top of that, composition of functions is one of those topics that shows up in algebra and suddenly everything looks like f(g(x)) and your brain just... Now, stops. On top of that, here's the thing: once you see what composition actually means, it clicks. And once it clicks, these problems become almost fun And that's really what it comes down to..
This guide walks you through everything in Worksheet 2.Now, 7 on composition of functions — what it is, why it matters, how to solve every type of problem you'll encounter, and where students most commonly go wrong. Let's dig in.
What Is Composition of Functions?
Composition of functions is exactly what it sounds like: you take two functions and "compose" them — you plug one function into the other. Instead of just evaluating f(x) or g(x) on its own, you're creating a new function by feeding the output of one function into the input of another Simple, but easy to overlook..
The notation looks like (f ∘ g)(x), which you read as "f of g of x." It means: take x, put it into function g, get some result, then put that result into function f.
Here's the formal definition:
(f ∘ g)(x) = f(g(x))
And conversely:
(g ∘ f)(x) = g(f(x))
Notice something important right away: f(g(x)) is not the same as g(f(x)). Function composition is not commutative — the order matters. We'll come back to this because it's where a lot of students trip up.
The Basic Idea in Plain English
Think of it like a production line. Say g(x) = x + 3 and f(x) = 2x. Even so, if you do f(g(x)), you're saying: "First, add 3 to x. Then, take that result and double it.
So if x = 1:
- g(1) = 1 + 3 = 4
- f(4) = 2(4) = 8
- Because of this, (f ∘ g)(1) = 8
You're chaining operations together. That's all composition really is The details matter here..
Why Does Composition of Functions Matter?
You might be wondering — why am I even learning this? Fair question.
Here's the thing: composition of functions shows up everywhere in real math and real-world modeling. When you have a situation where one quantity depends on another, which in turn depends on a third — that's composition Not complicated — just consistent. Turns out it matters..
For example:
- Economics: You might have a function that gives you cost based on production quantity, and another that gives you revenue based on sales price. To find profit, you're composing functions.
- Physics: Converting units often involves composition. If you need to convert Celsius to Kelvin, then Kelvin to Fahrenheit, you're composing conversion functions.
- Computer science: When you write code that passes output from one function into another, you're literally doing composition.
Beyond applications, composition is also crucial for understanding inverse functions, transformations, and much of what comes later in precalculus and calculus. If you're planning to take math further, this is a foundational skill Most people skip this — try not to..
How to Solve Composition of Functions Problems
Now let's get into the actual problems you'll see on Worksheet 2.Still, 7. I'll walk through each type And that's really what it comes down to..
Finding (f ∘ g)(x)
Given f(x) and g(x), your job is to find the composite function.
Example: f(x) = x² + 1 g(x) = 3x - 2
Find (f ∘ g)(x).
Step 1: Write out what (f ∘ g)(x) means → f(g(x))
Step 2: Wherever you see an x in f(x), replace it with g(x)
So f(x) = x² + 1 becomes: f(g(x)) = (g(x))² + 1
Step 3: Substitute the actual g(x) = (3x - 2)² + 1
Step 4: Simplify if needed = 9x² - 12x + 4 + 1 = 9x² - 12x + 5
That's your answer: (f ∘ g)(x) = 9x² - 12x + 5
Finding (g ∘ f)(x)
Same process, just reverse the order.
Using the same f(x) and g(x) above, find (g ∘ f)(x) = g(f(x)).
Step 1: Take g(x) = 3x - 2 and plug in f(x) wherever you see x: g(f(x)) = 3(f(x)) - 2
Step 2: Substitute f(x) = x² + 1: = 3(x² + 1) - 2
Step 3: Simplify: = 3x² + 3 - 2 = 3x² + 1
Notice (f ∘ g)(x) = 9x² - 12x + 5 while (g ∘ f)(x) = 3x² + 1. Different results. Order matters Small thing, real impact..
Evaluating Composite Functions at a Specific Value
Sometimes you don't need the whole formula — just the value at a specific x.
Example: Given f(x) = x - 4 and g(x) = x² + 2, find (f ∘ g)(3).
Method 1: Find the composite function first, then plug in 3.
- f(g(x)) = (x² + 2) - 4 = x² - 2
- f(g(3)) = 3² - 2 = 9 - 2 = 7
Method 2: Work inside out (often faster for single values).
- First find g(3): 3² + 2 = 9 + 2 = 11
- Then find f(11): 11 - 4 = 7
Same answer. Method 2 is usually quicker when you're evaluating at a specific point.
Finding the Domain of Composite Functions
We're talking about where Worksheet 2.7 might get trickier. You need to think about what x-values are actually allowed Practical, not theoretical..
The rule: The domain of (f ∘ g)(x) is all x in the domain of g such that g(x) is in the domain of f.
In plain English: whatever g does to x can't produce something f can't handle Less friction, more output..
Example: f(x) = √x (domain: x ≥ 0) g(x) = x - 5 (domain: all real numbers)
Find the domain of (f ∘ g)(x) = f(g(x)) = √(x - 5).
For the square root to be defined, we need x - 5 ≥ 0, which means x ≥ 5 Not complicated — just consistent..
So the domain is [5, ∞).
Example 2 (trickier): f(x) = 1/(x - 2) (domain: all real numbers except x = 2) g(x) = x + 1 (domain: all real numbers)
Find domain of (f ∘ g)(x) = 1/((x + 1) - 2) = 1/(x - 1).
We need to exclude where the denominator equals zero: x - 1 ≠ 0, so x ≠ 1.
But wait — we also need to make sure x is in the domain of g. Since g(x) = x + 1 has no restrictions, we're good. The domain is all real numbers except x = 1 Less friction, more output..
Common Mistakes Students Make
Let me save you some pain. Here are the errors I see most often on this worksheet:
1. Reversing the order Writing f(g(x)) when the problem asks for g(f(x)). The notation (f ∘ g) means f comes after g in the chain — the rightmost function happens first. It's backwards from what your brain wants to do. Double-check every time.
2. Forgetting to substitute the entire function When finding f(g(x)), you need to replace every x in f(x) with g(x). Students sometimes only replace one x and leave others. Example: if f(x) = x² + 5x, then f(g(x)) = (g(x))² + 5·g(x), not (g(x))² + 5x Not complicated — just consistent. Simple as that..
3. Not simplifying Your answer might be technically correct but unsimplified. Always expand and combine like terms if you can. (3x + 1)² - 2 is better left as 9x² + 6x - 1 Worth keeping that in mind..
4. Ignoring domain restrictions This is the most often-skipped part. When a function involves division or square roots, you need to think about what x-values would cause problems. Don't skip this step — it's usually tested Small thing, real impact..
5. Mixing up composite with multiplication (f ∘ g)(x) is not f(x) · g(x). It's not multiplication at all. The circle is composition, not a dot. Easy to do when you're moving fast, so slow down.
Practical Tips That Actually Help
-
Work inside out. When evaluating (f ∘ g)(a), find g(a) first, then plug that into f. It's less error-prone than building the whole composite formula Not complicated — just consistent..
-
Use function notation as a checklist. Write f(g(x)) and physically circle g(x) — it reminds you to substitute the entire g(x) expression, not just a part of it.
-
Check your answer with a test value. Pick x = 0 or x = 1, evaluate both the composite function you found and the original functions step by step. If they don't match, you made an error Worth knowing..
-
For domain problems, ask two questions: (1) What x-values does g allow? (2) For those x-values, does g(x) produce something f can accept?
FAQ
What's the difference between (f ∘ g)(x) and f(x) · g(x)?
(f ∘ g)(x) means composition — plugging g(x) into f. Which means f(x) · g(x) means multiplication — multiplying the two functions together. Completely different operations.
Does (f ∘ g)(x) ever equal (g ∘ f)(x)?
Sometimes, but not usually. And if f and g are "nice" functions (like linear functions with specific relationships), they might commute. Take this: if f(x) = 2x and g(x) = 3x, both composites give 6x. But in general, don't assume they're equal Simple, but easy to overlook..
How do I know which function goes on the inside?
It depends on what's being asked. If the problem says find f(g(x)), then g is the inside function. Read the notation carefully — (f ∘ g) means f is applied to g(x), so g is first Simple, but easy to overlook..
Can I compose more than two functions?
Absolutely. You can have (f ∘ g ∘ h)(x) = f(g(h(x))). Just work from the innermost function outward.
What if one of the functions has a restricted domain?
Then you need to check the composite's domain carefully. Any x that makes the inner function produce an invalid output for the outer function must be excluded.
Wrapping Up
Composition of functions is essentially about chaining operations together — taking the output of one function and feeding it into another. The notation takes some getting used to, but once you remember that (f ∘ g)(x) means "do g first, then f," you're most of the way there.
The key things to remember: watch your order, substitute the entire inner function, simplify your answer, and don't forget to check domain restrictions when they're relevant. Practically speaking, worksheet 2. 7 gives you practice on all of these — work through each problem carefully, check your answers, and don't rush the domain questions That alone is useful..
You've got this.