Welcome to the World of Functions!
Welcome to one of the most important chapters in H2 Mathematics! Functions are the building blocks of almost everything you will study in this course, from Calculus to Statistics. Think of a function as a mathematical machine: you put something in (an input), the machine follows a specific rule, and it spits something out (an output).
In this chapter, we will learn how to define these machines, how to "chain" them together, and how to "reverse" them. Don't worry if it seems a bit abstract at first—we'll break it down step-by-step!
1. The Basics: Function, Domain, and Range
To understand a function, you need to know three key terms:
1. Function (\(f\)): A rule that assigns exactly one output to every input. If an input could result in two different outputs, it's not a function—it's just a relation!
2. Domain (\(D_f\)): The set of all possible "input" values (usually \(x\)) that you are allowed to plug into the function.
3. Range (\(R_f\)): The set of all actual "output" values (usually \(y\) or \(f(x)\)) that come out of the machine.
The Vending Machine Analogy
Imagine a vending machine. Each button you press (the Domain) must give you exactly one specific drink (the Range). If you press the "Coke" button and sometimes get a Coke but other times get a Sprite, the machine is broken—it's not "functioning" correctly!
How to find the Range?
Struggling to find the range? The easiest way is usually to sketch the graph. Look at the \(y\)-axis: what are the lowest and highest points the graph reaches? That's your range!
Quick Review:
- A function must have only one output for every input.
- Domain = Inputs (\(x\)-values).
- Range = Outputs (\(y\)-values).
2. Composite Functions: Chaining Machines
A composite function is what happens when you put the output of one function into another. We write this as \(gf(x)\), which means "apply \(f\) first, then apply \(g\) to the result."
Condition for Existence
Not all functions can be chained together. For \(gf\) to exist, the outputs of the first function (\(f\)) must "fit" into the allowable inputs of the second function (\(g\)).
The Golden Rule: \(gf\) exists if and only if \(R_f \subseteq D_g\).
Example: If function \(f\) outputs the numbers \(\{1, 2, 3\}\), but function \(g\) only accepts inputs between \(5\) and \(10\), then \(gf\) cannot happen because the outputs of \(f\) don't fit into \(g\).
Step-by-Step: How to find the Range of \(gf\)?
1. Find the Range of \(f\) (\(R_f\)).
2. Use this \(R_f\) as the new input (Domain) for the function \(g\).
3. The resulting set of values is your Range of \(gf\).
Key Takeaway: Always work from right to left! In \(gf(x)\), \(f\) is the "inner" function and happens first.
3. Inverse Functions: Reversing the Machine
An inverse function, written as \(f^{-1}\), is a machine that undoes what \(f\) did. If \(f\) turns \(x\) into \(y\), then \(f^{-1}\) turns \(y\) back into \(x\).
Condition for Existence: One-to-One
A function has an inverse if and only if it is a one-to-one function. This means every unique input has a unique output, and every output comes from exactly one input.
The Horizontal Line Test (HLT)
To check if a function is one-to-one, imagine drawing a horizontal line across its graph. If the line hits the graph more than once, the function is NOT one-to-one, and therefore has no inverse.
Analogy: Consider the function \(f(x) = x^2\). If the output is \(4\), we don't know if the input was \(2\) or \(-2\). Because we can't be sure how to "go back," the inverse doesn't exist unless we restrict the domain.
Did you know?
The domain of the inverse is the range of the original: \(D_{f^{-1}} = R_f\).
The range of the inverse is the domain of the original: \(R_{f^{-1}} = D_f\).
4. Domain Restriction
What if your function isn't one-to-one (like a parabola)? You can restrict the domain—basically cutting off part of the graph—to make it one-to-one so that an inverse can exist.
Example: For \(f(x) = x^2\), if we restrict the domain to \(x \geq 0\), we only keep the right side of the "U" shape. Now, any horizontal line only hits the graph once. Success! We can now find an inverse: \(f^{-1}(x) = \sqrt{x}\).
Common Mistake: When finding an inverse, students often forget to state the domain of \(f^{-1}\). Always remember: \(D_{f^{-1}} = R_f\)!
5. Graphs of Inverses
There is a beautiful symmetry between the graph of a function and its inverse. The graph of \(y = f^{-1}(x)\) is the reflection of the graph of \(y = f(x)\) in the line \(y = x\).
Key Points to Remember:
1. If the point \((a, b)\) is on the graph of \(f\), then the point \((b, a)\) is on the graph of \(f^{-1}\).
2. The two graphs will intersect on the line \(y = x\) (if they intersect at all).
3. To find the expression for \(f^{-1}(x)\) algebraically, let \(y = f(x)\), rearrange the equation to make \(x\) the subject, and then swap the \(x\) and \(y\) variables.
Key Takeaway Summary:
- Composite \(gf\): Exists if \(R_f \subseteq D_g\).
- Inverse \(f^{-1}\): Exists if \(f\) is one-to-one (Horizontal Line Test).
- Graphing: Reflect in the line \(y = x\).
- Restriction: Change the domain to make a function one-to-one.
Don't worry if this seems tricky at first! Functions are all about practice. Once you start sketching the graphs, the connections between domain, range, and inverses will become much clearer. Keep going!