Functions and function notation
What a function is, independent and dependent variables, natural domains, and how to use f(x) notation, with interactive examples and practice.
What is a function?
Think of a function as a machine. You put a number in, the machine follows its rule, and exactly one number comes out. The rule "square the number, then add 1" is a function: put in $3$ and you always get $10$.
We write this rule as $y = x^2 + 1$. The input $x$ is the , and the output $y$ is the , because its value depends on what you put in.
A table of values shows a function at work. For $y = x^2 + 1$:
| $x$ | $-2$ | $-1$ | $0$ | $1$ | $2$ | $3$ |
|---|---|---|---|---|---|---|
| $y$ | $5$ | $2$ | $1$ | $2$ | $5$ | $10$ |
Different inputs can give the same output ($-2$ and $2$ both give $5$). That is fine. What a function never does is give two different outputs for one input.
Function notation
Instead of $y = x^2 + 1$ we often write $f(x) = x^2 + 1$. Read $f(x)$ as "f of x". The letter $f$ is the name of the function, and the bracket holds the input.
So $f(3)$ means "the output when the input is $3$": $f(3) = 3^2 + 1 = 10$.
Drag the orange point along the curve. The readout shows the input and the one output the function gives.
- Find the two inputs that give an output of $5$.
- Is there any input that gives an output of $0$? Why not?
If $f(x) = x^2 - 3x$, find $f(4)$, $f(-2)$ and $f(0)$.
Substituting expressions
The input can be an expression, not just a number. Whatever is in the bracket replaces every $x$.
If $f(x) = x^2 - 3x$, find and simplify $f(a + 1)$.
Natural domain: what inputs are allowed?
The is the set of inputs a function can take. When no domain is given, we use the natural domain: every real number that gives a real output. Only two things usually cause trouble in Year 11:
- Dividing by zero. In $f(x) = \dfrac{1}{x - 2}$, $x$ cannot be $2$.
- Square roots of negatives. In $g(x) = \sqrt{x + 3}$, we need $x + 3 \ge 0$, so $x \ge -3$.
State the natural domain of $h(x) = \dfrac{5}{\sqrt{4 - x}}$.
If $f(x) = 2x^2 - 1$, what is $f(-3)$?
$f(-3) = 2(-3)^2 - 1 = 2(9) - 1 = 17$. A common slip is squaring $-3$ as $-9$, which gives $-19$.
Which statement about a function is true?
One input, one output. Two inputs can share an output (like $2$ and $-2$ in $y = x^2$), and $y = \ldots$ is also fine notation.
What is the natural domain of $g(x) = \sqrt{x - 5}$?
Inside the root must be at least zero: $x - 5 \ge 0$, so $x \ge 5$. Here $x = 5$ is allowed because $\sqrt{0} = 0$.
If $f(x) = 3x - 2$ and $f(a) = 19$, find $a$.
$3a - 2 = 19$, so $3a = 21$ and $a = 7$.
If $f(x) = x^2$, which expression equals $f(x + h)$?
$f(x+h) = (x+h)^2 = x^2 + 2xh + h^2$. You will use exactly this in calculus (Chapter 10).
If $g(x) = 5 - 2x$, find $g(-3)$.
$5 - 2(-3) = 5 + 6 = 11$.
If $f(x) = x^2$, then $f(2a) =$
$(2a)^2 = 4a^2$.
The natural domain of $f(x) = \dfrac{1}{x + 4}$ is:
The denominator is zero when $x = -4$.
New numbers every time. Keep going until you get five in a row.
Coaching Centre