Composite Functions
Welcome, students! In this lesson, you will learn how composite functions combine two functions into one new function. Composite functions are a key idea in IB Mathematics Analysis and Approaches SL because they connect many topics in the course, including function notation, transformations, inverse functions, and real-world modeling π. By the end of this lesson, you should be able to explain what composite functions are, calculate them, interpret them in context, and understand how they fit into the wider study of functions.
Learning objectives:
- Explain the main ideas and terminology behind composite functions.
- Apply IB Mathematics Analysis and Approaches SL reasoning and procedures related to composite functions.
- Connect composite functions to the broader topic of functions.
- Summarize how composite functions fit within functions.
- Use examples related to composite functions in IB Mathematics Analysis and Approaches SL.
What is a composite function?
A composite function is made when one function is applied after another. If you have two functions $f$ and $g$, then the composite function $f(g(x))$ means you first apply $g$ to $x$, and then apply $f$ to the result. In words, it is β$g$ first, then $f$.β
This is often written as:
$$
$(f \circ g)(x) = f(g(x))$
$$
The symbol $\circ$ is called the composition symbol. It does not mean multiplication. It means βdo one function inside another.β π
For example, if $g(x) = x + 2$ and $f(x) = 3x$, then
$$
(f $\circ$ g)(x) = f(x+2) = 3(x+2) = 3x + 6
$$
This means the input $x$ is first increased by $2$, and then the result is multiplied by $3$.
Composite functions are useful because many real processes happen in steps. A value may be transformed, then measured, then used again. Mathematics often models these step-by-step processes using composition.
Function notation and how composition works
To understand composite functions well, students, you need to be comfortable with function notation. If $f(x)$ is the output of a function when the input is $x$, then $f(g(x))$ means the input to $f$ is not just a number, but the whole expression $g(x)$.
Here is the order carefully:
- Start with the input $x$.
- Apply the inside function $g$.
- Take that result and apply the outside function $f$.
So for $f(g(x))$, the outside function is $f$ and the inside function is $g$.
The order matters. In general,
$$
(f $\circ$ g)(x) \ne (g $\circ$ f)(x)
$$
Example:
Let $f(x) = x^2$ and $g(x) = x+1$.
Then:
$$
(f $\circ$ g)(x) = f(x+1) = (x+1)^2 = x^2 + 2x + 1
$$
But:
$$
(g $\circ$ f)(x) = g(x^2) = x^2 + 1
$$
These are different functions. This shows that composition is not commutative, which means changing the order usually changes the result.
A helpful way to remember composition is to think about a machine process π. If one machine changes the input and another machine uses that result, the order of the machines matters.
Calculating composite functions step by step
When you calculate a composite function, the main skill is substitution. You replace the variable in the outside function with the entire inside function.
Letβs use an example with algebra.
Suppose:
$$
$ f(x) = 2x^2 - 1$
$$
and
$$
$ g(x) = x - 3$
$$
Find $f(g(x))$.
First, substitute $g(x)$ into $f$:
$$
$ f(g(x)) = 2(x-3)^2 - 1$
$$
Now simplify:
$$
2(x^2 - 6x + 9) - 1 = 2x^2 - 12x + 18 - 1 = 2x^2 - 12x + 17
$$
So:
$$
f(g(x)) = 2x^2 - 12x + 17
$$
Now find $g(f(x))$.
Substitute $f(x)$ into $g$:
$$
g(f(x)) = (2x^2 - 1) - 3 = 2x^2 - 4
$$
Again, the result is different. This is a very common IB exam idea: you may be asked to compare two composites and explain why they are not the same.
Example with a linear and quadratic function
Let
$$
$ f(x) = x^2$
$$
and
$$
$ g(x) = 4x - 5$
$$
Then:
$$
(f $\circ$ g)(x) = (4x - 5)^2
$$
Expanding gives:
$$
(f $\circ$ g)(x) = 16x^2 - 40x + 25
$$
Meanwhile,
$$
(g $\circ$ f)(x) = 4x^2 - 5
$$
This example is useful because it shows how composition can create a new quadratic function from a linear and a quadratic one.
Domain restrictions in composite functions
A very important part of composite functions is the domain. Not every input works for every composite function.
To find the domain of $f(g(x))$, two things must be true:
- $x$ must be allowed in the domain of $g$.
- The value $g(x)$ must be allowed in the domain of $f$.
This can be especially important for rational and logarithmic functions.
Example with a rational function
Let
$$
$ f(x) = \frac{1}{x}$
$$
and
$$
$ g(x) = x - 2$
$$
Then:
$$
$ f(g(x)) = \frac{1}{x-2}$
$$
This composite is undefined when $x-2=0$, so the domain excludes $x=2$.
Example with a logarithmic function
Let
$$
$ f(x) = \ln(x)$
$$
and
$$
$ g(x) = x^2 - 4$
$$
Then:
$$
$ f(g(x)) = \ln(x^2 - 4)$
$$
For the logarithm to be defined, the input must be positive:
$$
$ x^2 - 4 > 0$
$$
So:
$$
$ x^2 > 4$
$$
which means:
$$
x < -2 \quad \text{or} \quad x > 2
$$
This is an important IB skill because domain restrictions often appear in exam questions on composite and inverse functions.
Composite functions in real-world modeling
Composite functions are not just algebra practice. They represent processes that happen in steps.
Example: temperature conversion and scaling
Suppose a temperature is measured in Celsius and then converted to Fahrenheit. After that, a scientist uses the Fahrenheit value in another formula. This is a composition because one rule is applied after another.
Example: price and tax
Imagine a store has a function $g(x)$ that calculates a discounted price from a base price $x$, and another function $f(x)$ that adds sales tax. Then $f(g(x))$ gives the final price after discount and tax. This is very realistic because many financial calculations happen in stages π°.
Example: biology
In a biology model, one function might represent the number of organisms after growth, and another function might represent the amount of a chemical produced based on that population. Composition helps connect the output of one process to the input of the next.
These examples show why composite functions are part of the broader topic of functions: they help build more advanced models from simpler ones.
Composite functions and inverse functions
Composite functions are closely linked to inverse functions. If $f^{-1}$ is the inverse of $f$, then applying $f$ and then $f^{-1}$ returns the original input, provided the domain is appropriate.
This is written as:
$$
$ f^{-1}(f(x)) = x$
$$
and also:
$$
$ f(f^{-1}(x)) = x$
$$
This means the composition gives the identity function, which leaves values unchanged.
For example, let
$$
$ f(x) = 3x + 2$
$$
Then the inverse is
$$
$ f^{-1}(x) = \frac{x-2}{3}$
$$
Now check the composition:
$$
f$\left($f^{-1}(x)$\right)$ = $3\left($$\frac{x-2}{3}$$\right)$ + 2 = x - 2 + 2 = x
$$
This connection is central in IB Mathematics Analysis and Approaches SL because inverse functions are often studied alongside composition. A function and its inverse βundoβ each other.
Why composite functions matter in IB Mathematics Analysis and Approaches SL
Composite functions are part of the core language of functions. They help you:
- combine different rules into one process,
- describe transformations in an exact way,
- connect to inverses,
- and interpret functions in context.
In IB questions, you may be asked to:
- calculate $f(g(x))$ or $g(f(x))$,
- simplify the result,
- state the domain,
- explain why the order matters,
- or use composition in a real-world setting.
Strong understanding of composition also helps with later topics such as graph transformations and solving equations involving functions. It is a building block for more advanced reasoning in the course.
Conclusion
Composite functions are a powerful way to combine two functions into a single rule. students, the key idea is that one function is applied inside another, and the order matters. You must be careful with substitution, simplification, and domain restrictions. Composite functions also connect directly to inverse functions and real-life processes that happen in stages. In IB Mathematics Analysis and Approaches SL, mastering composition strengthens your understanding of function notation, algebraic manipulation, and mathematical modeling β¨.
Study Notes
- A composite function combines two functions by applying one after the other.
- The notation $f(g(x))$ means βapply $g$ first, then $f$.β
- The composition symbol is $\circ$, so $(f \circ g)(x)=f(g(x))$.
- In general, $f(g(x)) \ne g(f(x))$ because order matters.
- To find a composite function, substitute the entire inside function into the outside function.
- The domain of a composite must satisfy the domain rules of both functions.
- Rational functions may create restrictions where denominators are $0$.
- Logarithmic functions require their inputs to be positive.
- Composite functions model real processes that happen in steps.
- Inverse functions are special because $f(f^{-1}(x))=x$ and $f^{-1}(f(x))=x$.
- Composite functions are an important part of the broader IB topic of functions and are often tested with algebra, domain, and interpretation questions.
