Introduction to Functions

Welcome to the world of Functions! In Mathematics, a function is essentially a "mathematical machine." You feed it an input (usually a number), it follows a specific rule, and it spits out an output. Whether you are calculating the cost of a taxi ride or predicting the path of a ball through the air, functions are the tools we use to describe these relationships.

In this chapter, we will learn how to use function notation, how to combine functions, and even how to "reverse" them. Don't worry if it seems a bit abstract at first—once you see the patterns, it becomes a very logical part of algebra!

1. Function Notation

Instead of writing \(y = 2x + 3\), we often use function notation. We write it as \(f(x) = 2x + 3\).
This is read as "f of x equals two x plus three."

What do the parts mean?
- \(f\): This is just the name of the function. We could also use \(g(x)\) or \(h(x)\).
- \((x)\): This tells us that \(x\) is the input variable.
- \(2x + 3\): This is the rule the machine follows.

Example: Substitution
If \(f(x) = 5x - 2\), find \(f(3)\).
Simply replace every \(x\) in the rule with \(3\):
\(f(3) = 5(3) - 2\)
\(f(3) = 15 - 2\)
\(f(3) = 13\)

Common Mistake to Avoid:
\(f(x)\) does NOT mean \(f\) multiplied by \(x\). It is just a label to show that the output depends on \(x\).

2. Domain and Range (Extended Content)

Every function has two important sets of values:
1. Domain: The set of all possible input values (usually \(x\)). Think of this as what the machine is "allowed" to eat.
2. Range: The set of all possible output values (usually \(f(x)\) or \(y\)). This is what the machine produces.

Analogy: If our function is a "Juicer," the Domain would be the fruits you put in (oranges, apples), and the Range would be the types of juice you get out.

Key Takeaway:

Domain = Inputs (\(x\)-values)
Range = Outputs (\(y\)-values or \(f(x)\))

3. Composite Functions (Extended Content)

A composite function is when you apply one function and then apply another one to the result. It’s like an assembly line where a product goes through two different machines.

Notation: \(gf(x)\) or \(g(f(x))\).
Important Rule: Always work from the inside out. In \(gf(x)\), you calculate \(f(x)\) first, and then put that answer into \(g\).

Step-by-Step Example:
Let \(f(x) = x + 5\) and \(g(x) = 2x\).
Find \(gf(3)\).
Step 1: Find the inside function value: \(f(3) = 3 + 5 = 8\).
Step 2: Put that result into \(g\): \(g(8) = 2(8) = 16\).
So, \(gf(3) = 16\).

Finding the Algebraic Expression for \(gf(x)\):
If \(f(x) = x + 5\) and \(g(x) = x^2\):
\(gf(x) = g(f(x)) = g(x + 5)\)
Substitute \((x+5)\) into the \(x\) position of \(g(x)\):
\(gf(x) = (x + 5)^2\)

4. Inverse Functions (Extended Content)

An inverse function, written as \(f^{-1}(x)\), is a function that "undoes" the original function. If \(f(x)\) adds 5, the inverse \(f^{-1}(x)\) will subtract 5.

How to find the inverse \(f^{-1}(x)\):
1. Write the function as \(y = ...\)
2. Swap the \(x\) and the \(y\).
3. Rearrange the equation to make \(y\) the subject again.
4. Replace \(y\) with \(f^{-1}(x)\).

Example: Find the inverse of \(f(x) = \frac{x - 3}{2}\).
Step 1: \(y = \frac{x - 3}{2}\)
Step 2: \(x = \frac{y - 3}{2}\) (Swap \(x\) and \(y\))
Step 3: Solve for \(y\):
\(2x = y - 3\)
\(2x + 3 = y\)
Step 4: \(f^{-1}(x) = 2x + 3\)

Did you know?
If you apply a function and then immediately apply its inverse, you end up back where you started! For example, \(f^{-1}f(x) = x\).

5. Summary and Tips for Success

Quick Review:
- \(f(x)\) is just notation; substitute the value in the brackets into the expression.
- For composite functions \(gf(x)\), start with the function closest to the \(x\) (the right-hand one) and work outwards.
- For inverse functions \(f^{-1}(x)\), think of the "Swap and Solve" method.

Common Mistakes to Watch Out For:
- Order matters! \(gf(x)\) is usually not the same as \(fg(x)\).
- Notation confusion: \(f^{-1}(x)\) is not the same as \(\frac{1}{f(x)}\). In functions, the \(-1\) means "inverse," not a negative power.
- Algebraic slips: When finding the inverse, be careful with signs (+/-) when moving terms across the equals sign.

Final Tip: When you are stuck on a composite function question, try drawing it as two separate boxes. See what goes into the first box, see what comes out, and then put that output into the second box!