Introduction to Composite and Inverse Functions

Welcome! In the previous chapter, we looked at functions as "mathematical machines" that take an input, process it, and give an output. In this chapter, we are going to level up. We will learn how to link two machines together (Composite Functions) and how to build a machine that reverses the process (Inverse Functions).

These concepts are vital for the Pearson Edexcel International GCSE (Specification B) exam, appearing in both Paper 1 and Paper 2. Don't worry if it looks like a new language at first—once you see the patterns, it becomes a very logical process!

1. Composite Functions: The "Assembly Line"

A composite function is created when you apply one function to the result of another. Think of it like an assembly line: the first machine (\(g\)) processes a part, and then the second machine (\(f\)) takes that finished part and does something else to it.

Understanding the Notation

In your exam, you will see notation like \(fg(x)\) or \(f(g(x))\).
Crucial Rule: According to the Edexcel Specification B, \(fg\) means do \(g\) first, then do \(f\).

We always work from the inside out (or from right to left). In the expression \(fg(x)\):
1. Start with \(x\).
2. Apply function \(g\) to it.
3. Take the answer, and put it into function \(f\).

Step-by-Step Example

Let \(f(x) = x + 5\) and \(g(x) = x^2\).
Find the composite function \(fg(x)\).
Step 1: Write down the "outer" function but leave a gap for the input: \(f(\dots) = (\dots) + 5\).
Step 2: Put the entire "inner" function \(g(x)\) into that gap: \(fg(x) = (x^2) + 5\).
Final Answer: \(fg(x) = x^2 + 5\).

Now, let's see what happens if we swap the order and find \(gf(x)\):
Step 1: Write the "outer" function \(g\): \(g(\dots) = (\dots)^2\).
Step 2: Put the "inner" function \(f(x)\) into the gap: \(gf(x) = (x + 5)^2\).
Final Answer: \(gf(x) = (x + 5)^2\) or \(x^2 + 10x + 25\).

Common Mistake: Notice that \(fg(x)\) is not the same as \(gf(x)\). The order is extremely important! Just like in real life: putting on socks then shoes is different from putting on shoes then socks!

Quick Review: Composite Functions

- \(fg(x)\) means apply \(g\) then \(f\).
- Work from right to left.
- Substitute the entire inner expression into the outer one.

2. Inverse Functions: The "Undo" Button

An inverse function, written as \(f^{-1}(x)\), does the exact opposite of the original function. If function \(f\) takes \(3\) and turns it into \(10\), the inverse function \(f^{-1}\) will take \(10\) and turn it back into \(3\).

How to find the Inverse Function \(f^{-1}(x)\)

To find the expression for an inverse, follow these four simple steps. Let's use the example \(f(x) = \frac{x - 3}{2}\).

Step 1: Write the function as \(y = \dots\)
\(y = \frac{x - 3}{2}\)

Step 2: Swap the \(x\) and the \(y\).
\(x = \frac{y - 3}{2}\)

Step 3: Rearrange the equation to make \(y\) the subject (get \(y\) on its own).
Multiply both sides by \(2\): \(2x = y - 3\)
Add \(3\) to both sides: \(2x + 3 = y\)

Step 4: Replace \(y\) with the notation \(f^{-1}(x)\).
\(f^{-1}(x) = 2x + 3\)

A "Did You Know?" Tip

If you apply a function and then immediately apply its inverse, you end up right back where you started!
Mathematically: \(ff^{-1}(x) = x\) and \(f^{-1}f(x) = x\).

Quick Review: Inverse Functions

- The inverse "reverses" the operation.
- Swap \(x\) and \(y\), then solve for \(y\).
- Use the specific notation \(f^{-1}(x)\).

3. Domain and Range: Knowing the Limits

The Domain is the set of all possible input values (usually \(x\)).
The Range is the set of all possible output values (usually \(f(x)\)).

Excluded Values

The Specification B syllabus requires you to recognize when certain values must be excluded from the domain. In this course, there are two main "danger zones" to look out for:

1. Dividing by Zero: You cannot divide by zero. It makes the "machine" break down.
Example: If \(f(x) = \frac{1}{x}\), then \(x = 0\) must be excluded from the domain because \(\frac{1}{0}\) is undefined.
Example: If \(g(x) = \frac{5}{x - 2}\), then \(x = 2\) must be excluded because \(2 - 2 = 0\).

2. Square Roots of Negative Numbers: In this syllabus, we only deal with real numbers. We cannot square root a negative number.
Example: If \(h(x) = \sqrt{x}\), the domain must be \(x \ge 0\).

Helpful Analogy: Think of the domain as the "fuel" for a car. Most cars take petrol, but if you try to put orange juice (an "excluded value") in the tank, the car won't work!

Summary Checklist for the Exam

Before you sit your Paper 1 or Paper 2, make sure you can:

- Identify the order of composition: Remember \(fg(x)\) means \(g\) first, then \(f\).
- Calculate \(f^{-1}(x)\): Practice the "Swap and Solve" method for linear and simple rational functions.
- Find excluded values: Look at denominators and ensure they never equal zero. For example, in \(f(x) = \frac{3}{2x - 4}\), solve \(2x - 4 = 0\) to find that \(x = 2\) is the excluded value.
- Use function notation: Be comfortable switching between \(f(x) = \dots\) and \(f: x \to \dots\). They mean the same thing!

Don't worry if this seems tricky at first. Practice finding the inverse of simple functions like \(f(x) = 2x + 1\) first, and once you are confident, move on to algebraic fractions!