Functions and their notation
What makes a relation a function, the vertical line test, function notation f(x), evaluating functions, and domain and range.
A vending machine is a good picture of a function: press one button and you get exactly one item. If one button sometimes gave a chip packet and sometimes a drink, it wouldn't be a function. In maths, a function is a rule that gives exactly one output for each input. Year 11 is built on this idea.
Relations and functions
A relation is any set of ordered pairs $(x, y)$. A function is a relation where each $x$-value has exactly one $y$-value. Different $x$-values may share the same $y$-value; that's fine.
- $\{(1, 4), (2, 5), (3, 4)\}$ is a function: each $x$ appears once.
- $\{(1, 4), (1, 6), (2, 5)\}$ is not: $x = 1$ has two $y$-values.
A vertical line is a single $x$-value. If it hits the graph twice, that $x$ has two $y$-values. So every straight line except a vertical one, and every parabola $y = ax^2 + bx + c$, is a function. A circle is not: the line $x = 0$ cuts $x^2 + y^2 = 9$ at $(0, 3)$ and $(0, -3)$.
Function notation
Instead of $y = 3x - 7$, we can write $f(x) = 3x - 7$. Read it as "$f$ of $x$". The advantage is that $f(4)$ means "the output when the input is $4$", in one short symbol.
For $f(x) = x^2 - 2x$, find (a) $f(3)$ (b) $f(-1)$.
Both inputs give the same output, $3$. That is allowed. A function needs one output for each input, not a different output for each input.
For $f(x) = 2x + 5$, find $a$ if $f(a) = 17$.
Domain and range
The domain is the set of $x$-values you are allowed to put in. The range is the set of $y$-values that come out. Unless a question restricts it, the domain is every real number that works. Two things stop a number working at this level:
- You can't take the square root of a negative: $y = \sqrt{x - 2}$ needs $x - 2 \ge 0$, so the domain is $x \ge 2$.
- You can't divide by zero: $y = \dfrac{1}{x - 5}$ needs $x \ne 5$.
Find the domain and range of $y = x^2 + 3$.
Your turn
For $f(x) = x^2 - 4x$, find all values of $a$ with $f(a) = 12$.
Show the working
$a^2 - 4a = 12$, so $a^2 - 4a - 12 = 0$, which factorises as $(a - 6)(a + 2) = 0$. So $a = 6$ or $a = -2$. Check: $f(6) = 36 - 24 = 12$ and $f(-2) = 4 + 8 = 12$.
Which of these is not a function?
The circle fails the vertical line test: $x = 0$ gives $y = 3$ and $y = -3$.
$f(x) = 3x - 7$. Find $f(4)$.
$f(4) = 3(4) - 7 = 12 - 7 = 5$.
$f(x) = x^2 - 2x$. Find $f(-3)$.
$f(-3) = (-3)^2 - 2(-3) = 9 + 6 = 15$.
A graph passes the vertical line test. This means:
A vertical line is one $x$-value. Meeting the graph at most once means at most one $y$ for that $x$.
$f(x) = 2x + 1$. Find $a$ if $f(a) = 13$.
$2a + 1 = 13$, so $2a = 12$ and $a = 6$.
The domain of $y = \sqrt{x - 2}$ is:
The expression under the root can't be negative: $x - 2 \ge 0$, so $x \ge 2$. At $x = 2$ it gives $\sqrt0 = 0$, which is fine.
The range of $y = x^2 + 3$ is:
$x^2 \ge 0$, so $x^2 + 3 \ge 3$. The value $3$ is reached at $x = 0$.
The domain of $y = \dfrac{1}{x - 5}$ is all real $x$ except one value. Enter that value.
The denominator can't be zero: $x - 5 \ne 0$, so $x \ne 5$.
Challenge: $f(x) = x^2 - 6x$. Find all values of $a$ with $f(a) = 7$. Enter them separated by &.
$a^2 - 6a - 7 = 0$, which is $(a - 7)(a + 1) = 0$. So $a = 7$ or $a = -1$.
Challenge: $f(x) = 2x - 3$. Find $f(f(2))$.
Work from the inside: $f(2) = 4 - 3 = 1$. Then $f(1) = 2 - 3 = -1$.
Coaching Centre