9B

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.

Example 1●

For $f(x) = x^2 - 2x$, find (a) $f(3)$ (b) $f(-1)$.

(a) $f(3) = 3^2 - 2(3) = 9 - 6 = 3$
Replace every x with 3.
(b) $f(-1) = (-1)^2 - 2(-1) = 1 + 2 = 3$
Use brackets when substituting a negative: (−1)² = 1 and −2 × (−1) = +2.

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.

Example 2: solving●●

For $f(x) = 2x + 5$, find $a$ if $f(a) = 17$.

$2a + 5 = 17$
f(a) means substitute a for x.
$a = 6$

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$.
Example 3●●

Find the domain and range of $y = x^2 + 3$.

Domain: all real $x$
Any number can be squared, so nothing is excluded.
Range: $y \ge 3$
x² is never negative, so y = x² + 3 is never less than 3. It equals 3 when x = 0.

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$.

Flashcards
Function
Each input ($x$-value) has exactly one output.
Vertical line test
Every vertical line meets the graph at most once.
Domain and range
Domain: allowed $x$-values. Range: the $y$-values produced.
Practice
  1. Which of these is not a function?

  2. $f(x) = 3x - 7$. Find $f(4)$.

  3. $f(x) = x^2 - 2x$. Find $f(-3)$.

  4. A graph passes the vertical line test. This means:

  5. $f(x) = 2x + 1$. Find $a$ if $f(a) = 13$.

  6. The domain of $y = \sqrt{x - 2}$ is:

  7. The range of $y = x^2 + 3$ is:

  8. The domain of $y = \dfrac{1}{x - 5}$ is all real $x$ except one value. Enter that value.

  9. Challenge: $f(x) = x^2 - 6x$. Find all values of $a$ with $f(a) = 7$. Enter them separated by &.

  10. Challenge: $f(x) = 2x - 3$. Find $f(f(2))$.

Formula sheet