Welcome to the Language of Functions!
Hi there! Welcome to one of the most important chapters in your A Level Mathematics journey. Functions are like the "sentences" of the mathematical world. Just as you need grammar to speak a language, you need the language of functions to describe how things change in the real world—from how a virus spreads to how a car accelerates. Don't worry if this seems a bit abstract at first; we’re going to break it down piece by piece until you’re a pro!
1. What Exactly is a Function?
Think of a function as a mathematical machine. You put a number in (the input), the machine does something to it, and exactly one number comes out (the output).
Key Terms to Master
To talk like a mathematician, you need to know these four terms:
- Domain: The set of all possible input values (usually \(x\)). It's what you are "allowed" to put into the machine.
- Range: The set of all possible output values (usually \(y\) or \(f(x)\)). It’s what comes out of the machine.
- One-to-One: Every input has its own unique output. No two different inputs give the same result.
- Many-to-One: Two or more different inputs can give the same output. For example, in \(f(x) = x^2\), both \(2\) and \(-2\) give the output \(4\).
Important Point: For a mapping to be a function, each input must lead to one and only one output. If one input could give two different results, it’s not a function—it’s just a mapping!
Notation
We usually write functions as \(f(x) = ...\) or using the arrow notation \(f : x \to y\). This literally means "the function \(f\) maps the value \(x\) to the value \(y\)".
Analogy: A vending machine is a function. You press one button (input), and you get one specific snack (output). If pressing "A1" sometimes gave you chocolate and sometimes gave you a bag of bolts, the machine would be broken (and it wouldn't be a function!).
Quick Review:
- Domain = Inputs
- Range = Outputs
- Function = Every \(x\) has exactly one \(y\).
2. Composite Functions: The Assembly Line
Sometimes, we want to put the output of one machine straight into another one. This is called a composite function.
How it works
If we have two functions, \(f(x)\) and \(g(x)\), the notation \(gf(x)\) means we apply \(f\) first, and then apply \(g\) to the result.
Wait! Notice the order. We read from right to left. In \(gf(x)\), \(f\) is closest to the \(x\), so it happens first.
Example: If \(f(x) = x + 2\) and \(g(x) = x^2\):
\(gf(3)\) means:
1. Do \(f(3)\) first: \(3 + 2 = 5\).
2. Now put that \(5\) into \(g\): \(5^2 = 25\).
So, \(gf(3) = 25\).
Common Mistake to Avoid: Many students think \(fg(x)\) is the same as \(gf(x)\). It’s usually not! Think of it like this: putting on socks then shoes is very different from putting on shoes then socks!
The Domain of Composite Functions
For \(gf(x)\) to work, the output of \(f\) must be a valid input for \(g\). You have to ensure that the range of the first function fits inside the domain of the second one.
Key Takeaway: In \(gf(x)\), work from the inside out. Apply the right-hand function first!
3. Inverse Functions: The "Undo" Button
An inverse function, written as \(f^{-1}(x)\), does the exact opposite of the original function. It takes the output and brings you back to the original input.
When does an inverse exist?
This is a favorite exam question! An inverse function only exists if the function is one-to-one.
Why? Because if a function is many-to-one (like \(x^2\)), the "undo" button wouldn't know which number to go back to! (Does \(4\) go back to \(2\) or \(-2\)?)
How to find the inverse (Step-by-Step)
Don't worry if this seems tricky; just follow these three steps:
- Write the function as \(y = ...\)
- Swap all the \(x\)'s and \(y\)'s.
- Rearrange the new equation to make \(y\) the subject. This new \(y\) is your \(f^{-1}(x)\).
Example: Find the inverse of \(f(x) = 2x + 3\).
1. \(y = 2x + 3\)
2. \(x = 2y + 3\)
3. \(x - 3 = 2y\) so \(y = \frac{x - 3}{2}\).
The inverse is \(f^{-1}(x) = \frac{x - 3}{2}\).
Graphs of Inverse Functions
There is a beautiful geometric connection here: the graph of \(y = f^{-1}(x)\) is a reflection of the graph \(y = f(x)\) in the line \(y = x\).
Did you know? The domain of the original function becomes the range of the inverse, and the range of the original becomes the domain of the inverse. They switch roles entirely!
Key Takeaway: Inverse functions "reverse" the process. Only one-to-one functions have them, and they are reflected across the line \(y = x\).
Summary Checklist
Before you move on, make sure you are comfortable with these points:
- Can you identify if a mapping is a function (one \(y\) for every \(x\))?
- Do you know that the domain is the input and the range is the output?
- Can you calculate \(gf(x)\) by working from right to left?
- Can you find an inverse by swapping \(x\) and \(y\)?
- Can you explain why only one-to-one functions have inverses?
You're doing great! Functions are the foundation for a lot of the calculus and algebra you'll do later, so getting these basics down now will save you a lot of time later on. Keep practicing!