Sub topic 1
What a Function Is and How to Read f(x)
Prerequisites
You should be comfortable with basic algebra, solving simple equations, plotting points on a coordinate plane, and reading inequalities. You should also know that \(f(x)\) means the value produced by a function \(f\) when the input is \(x\).
The working model
A function is a rule that assigns exactly one output to every allowed input. The set of allowed inputs is the domain. The set of outputs produced by those inputs is the range.
For example,
\[ f(x)=2x+3 \]
defines a function. The input is \(x\), and the output is \(2x+3\). If \(x=4\), substitute 4 wherever \(x\) appears:
\[ f(4)=2(4)+3=11. \]
The notation \(f(x)\) does not mean \(f\) multiplied by \(x\). It names the output of the function at input \(x\). You can use other input names, such as \(f(t)\), as long as you substitute consistently.
def f(x):
return 2 * x + 3
print(f(4))The output is 11.
Inputs, outputs, domain, and range
A function can be represented by a formula, a table, a graph, or a mapping diagram. Each representation describes the same input-output relationship.
Consider \(f(x)=\sqrt{x-2}\). For real outputs, the expression under the square root must be non-negative:
\[ x-2\geq 0 \quad\Rightarrow\quad x\geq 2. \]
Therefore, the domain is \(x\geq2\). Since square roots are non-negative, the range is \(f(x)\geq0\).
Common restrictions include:
- A denominator cannot equal zero.
- A real square-root expression cannot have a negative radicand.
- The argument of a logarithm must be positive.
| Representation | What to identify |
|---|---|
| Formula | Substitute the input and simplify |
| Table | Read the output beside the input |
| Graph | Read the \(y\)-coordinate at the given \(x\)-coordinate |
| Piecewise rule | Select the branch whose condition contains the input |
Evaluating different forms
For a table, if the row contains \(x=3\) and \(f(x)=7\), then \(f(3)=7\).
For a piecewise function,
\[ f(x)= \begin{cases} x+1, & x<2,\\ x^2, & x\geq2, \end{cases} \]
evaluate \(f(1)\) using the first branch:
\[ f(1)=1+1=2. \]
Evaluate \(f(2)\) using the second branch because its condition includes equality:
\[ f(2)=2^2=4. \]
Always check the condition before choosing a piece. Using the correct formula with the wrong condition is a common CAT error.
Exercise
Exercise
Let f(x) = (x + 1)/(x - 3). Find f(5) and state the excluded input in the domain.
Show answer
f(5) = 6/2 = 3. The input x = 3 is excluded because it makes the denominator zero.