Welcome to Functions and Graphs!
Welcome to H3 Mathematics! You might be wondering why we are starting with H2 content. In H3, we don't just "do" math; we explore its foundations. Before we dive into complex proofs and number theory, we need to ensure our "mathematical toolkit" is sharp. Functions are the fundamental building blocks of almost everything you will see in this course. Think of them as the rules that govern how different mathematical objects interact. Don't worry if you found this tricky in H2—we're going to break it down so it makes perfect sense for your H3 journey!
1. What Exactly is a Function?
In simple terms, a function is a special kind of "machine." You put an input in, the machine follows a specific rule, and it spits out exactly one output.
The Three Key Parts
Every function \(f\) has three important components:
1. Domain (\(D_f\)): The set of all possible "input" values. Think of this as the list of ingredients the machine is allowed to take.
2. Codomain: The set of all "potential" output values.
3. Range (\(R_f\)): The set of actual values that come out of the machine. The range is always a subset of the codomain.
The Golden Rule: For a relation to be a function, every element in the domain must map to exactly one element in the codomain. If an input has two different outputs, it’s not a function—it’s just a relation!
Analogy: Imagine a vending machine. Each button (input) should give you exactly one specific snack (output). If pressing "A1" sometimes gives you chips and sometimes gives you a chocolate bar, the machine is broken! That "broken" machine is like a mathematical relation that isn't a function.
Quick Review: The Vertical Line Test
To check if a graph represents a function, imagine drawing a vertical line anywhere through it. If the line hits the graph in more than one spot, it's not a function!
Summary Takeaway: A function is a rule where every input has one and only one output. No input can be "undecided" or "double-booked."
2. One-to-One Functions and Inverses
While all functions map one input to one output, some functions are even more "orderly" than others.
One-to-One (Injective) Functions
A function is one-to-one if every output comes from exactly one unique input. In other words, no two different inputs share the same result.
Example: \(f(x) = x^3\) is one-to-one. Every number has a unique cube.
Example: \(f(x) = x^2\) (for all real \(x\)) is not one-to-one because both \(2\) and \(-2\) give the output \(4\).
The Horizontal Line Test: To see if a function is one-to-one, draw a horizontal line. If it hits the graph more than once, it's "many-to-one" (not one-to-one).
The Inverse Function \(f^{-1}\)
An inverse function basically "undoes" what the original function did. If \(f\) takes \(x\) to \(y\), then \(f^{-1}\) takes \(y\) back to \(x\).
The "Must-Have" Condition: An inverse function \(f^{-1}\) exists if and only if \(f\) is a one-to-one function. If it’s not one-to-one, the "return journey" would be confusing because the machine wouldn't know which original input to go back to!
Key Properties of Inverses:
1. Domain/Range Swap: The domain of \(f\) is the range of \(f^{-1}\), and the range of \(f\) is the domain of \(f^{-1}\).
2. Symmetry: The graph of \(y = f^{-1}(x)\) is a reflection of \(y = f(x)\) in the line \(y = x\).
Summary Takeaway: Only one-to-one functions have inverses. To find the graph of an inverse, just flip the original graph over the diagonal line \(y = x\).
3. Composite Functions: The Chain Reaction
A composite function is what happens when you string two machines together. You take the output of the first function and use it as the input for the second.
We write this as \(fg(x)\), which means "apply \(g\) first, then apply \(f\) to the result."
\(fg(x) = f(g(x))\)
The "Will it Work?" Check
You can't just connect any two machines. The first machine must produce something the second machine is "allowed" to eat. Formally:
Composite function \(fg\) exists if and only if the Range of \(g\) is a subset of the Domain of \(f\).
\(R_g \subseteq D_f\)
Did you know? Order matters! In math, \(fg\) is usually not the same as \(gf\). Putting on your socks and then your shoes results in a very different look than putting on your shoes and then your socks!
Common Mistake to Avoid:
When calculating \(fg(x)\), always work from the inside out. Start with the function closest to the \(x\).
Summary Takeaway: For \(fg\) to exist, everything coming out of \(g\) must be able to fit into \(f\). Always check \(R_g \subseteq D_f\).
4. Graphing Techniques and Transformations
H3 problems often require you to visualize how a graph changes. Instead of plotting points one by one, we use transformations.
The "Big Four" Transformations
Suppose we start with \(y = f(x)\):
1. Translation:
- \(f(x) + k\): Moves the graph up by \(k\) units.
- \(f(x - k)\): Moves the graph right by \(k\) units. (Wait, right? Yes! If you subtract from \(x\), you need a "bigger" \(x\) to get the same result, so it shifts right!)
2. Scaling (Stretching):
- \(a \cdot f(x)\): Stretches vertically by factor \(a\).
- \(f(ax)\): Compresses horizontally by factor \(1/a\).
3. Reflection:
- \(-f(x)\): Reflects across the x-axis (upside down).
- \(f(-x)\): Reflects across the y-axis (left-to-right swap).
4. The Modulus:
- \(|f(x)|\): Any part of the graph below the x-axis gets reflected up to become positive.
- \(f(|x|)\): Discard the left side of the graph (where \(x < 0\)) and replace it with a mirror image of the right side.
Memory Aid: "Inside vs. Outside"
- If the change is outside the brackets (like \(f(x) + k\)), it affects the y-values (vertical).
- If the change is inside the brackets (like \(f(x+k)\)), it affects the x-values (horizontal) and often does the opposite of what you'd expect!
Summary Takeaway: Master the basic shapes (linear, quadratic, reciprocal, exponential) and apply transformations step-by-step to sketch complex functions quickly.
Final Words of Encouragement
Functions and graphs might feel like "old news," but in H3, they are the language we use to prove deeper theorems. If you can confidently identify when a function exists, find its inverse, and visualize its transformations, you've already mastered the foundation of the course. Don't worry if the \(R_g \subseteq D_f\) notation feels a bit abstract—the more you practice with concrete examples, the more natural it will become! Keep practicing, and don't be afraid to sketch a graph whenever you're stuck on a problem. A picture is often worth a thousand equations!