3B

Functions, relations and graphs

Relations versus functions, the vertical line test, and how to find domain and range from a graph, using interval notation.

A graph shows a whole function at once: where it is positive, where it peaks, which values it never reaches. Most questions in this course are answered faster from a sketch than from a formula, so this section links the two.

The graph of a function

A stone is thrown upwards and its height after $x$ seconds is $y = 4x(5 - x)$ metres. Each input and its output make an ordered pair:

$x$$0$$1$$2$$2.5$$3$$4$$5$
$y$$0$$16$$24$$25$$24$$16$$0$

Plot all such pairs and they join into a smooth arch. Because the stone is in only one place at any time, no two points on the graph share an $x$-coordinate. That gives a more precise definition: a function is a set of ordered pairs in which no two pairs have the same first coordinate.

Domain and range

The domain is the set of all $x$-values that are used. The range is the set of all $y$-values that come out. For the stone, time runs from $0$ until it lands at $5$ seconds, and the height goes from $0$ up to $25$ m. So the domain is $[0, 5]$ and the range is $[0, 25]$.

A filled dot at an endpoint means it is included and an open dot means it is not, exactly as with intervals in 2A. An arrow means the graph keeps going.

The natural domain

If a function is given as a formula with no restriction, its domain is every $x$ that can legally be substituted. This is the natural domain. For now, only two things are illegal:

  • dividing by zero, so a denominator can't be $0$;
  • square-rooting a negative, so the inside of a root must be $\ge 0$.
Example 1●

Find the natural domain of (a) $f(x) = \sqrt{2x + 6}$ (b) $g(x) = \dfrac{1}{\sqrt{4 - x}}$.

(a) $2x + 6 \ge 0$, so $x \ge -3$
The inside of the root can be zero or positive.
(b) $4 - x \gt 0$, so $x \lt 4$
Inside the root must be ≥ 0, but the root is also a denominator, so it can't be 0 either. That makes it strictly positive.
Example 2: two conditions●●

Find the natural domain of $h(x) = \dfrac{\sqrt{x + 2}}{x - 1}$.

$x + 2 \ge 0$, so $x \ge -2$
Condition from the root.
$x - 1 \ne 0$, so $x \ne 1$
Condition from the denominator.
Domain: $x \ge -2$ and $x \ne 1$
Both must hold at once.

Relations and the vertical line test

Not every graph is a function. The circle $x^2 + y^2 = 25$ contains both $(3, 4)$ and $(3, -4)$, so the input $3$ has two outputs. Any set of ordered pairs is called a relation. A function is a special relation, just as a square is a special rectangle.

On a graph, two points with the same $x$-coordinate sit on one vertical line. So:

Vertical line test

Faint orange: the parabola y = x² − 2. Blue: the circle x² + y² = 9. Slide the dashed vertical line.

Try this
  • Can you find any position where the line meets the parabola twice? What does that tell you?
  • Find two points on the circle with the same $x$-coordinate. That pair is your proof the circle is not a function.
  • Which $x$-values give the line any point on the circle at all? That is the domain of the circle.
Example 3●●

Show that $y^2 = x$ is not a function, and state its domain and range.

$(4, 2)$ and $(4, -2)$ both satisfy $y^2 = x$, so $x = 4$ has two outputs. Not a function.
One counterexample is enough: find one x with two y-values.
Domain $[0, \infty)$, range $(-\infty, \infty)$
y² is never negative, so x can't be negative. Every real y works, since any y squared gives a valid x.

Your turn

State the domain and range of $y = -\sqrt{16 - x^2}$. Is it a function?

Show the working

We need $16 - x^2 \ge 0$, so $-4 \le x \le 4$. The root $\sqrt{16 - x^2}$ takes values from $0$ to $4$, and the minus sign flips these to $-4$ up to $0$. So the domain is $[-4, 4]$ and the range is $[-4, 0]$. It is the lower half of a circle of radius $4$, and each $x$ gives only one $y$, so it is a function.

Flashcards
Domain / range
Domain: all $x$-values used. Range: all $y$-values produced.
Natural domain: two rules
Denominator $\ne 0$. Inside a square root $\ge 0$.
Vertical line test
Any vertical line meeting the graph twice means it is not a function.
Practice
  1. Which of these is not a function?

  2. The natural domain of $f(x) = \sqrt{x + 5}$ is $x \ge k$. Find $k$.

  3. The natural domain of $y = \dfrac{1}{x - 4}$ is:

  4. The range of $y = x^2 - 3$ is $y \ge k$. Find $k$.

  5. The range of $y = 2 - \sqrt x$ is:

  6. The relation $\{(1, 4), (2, 5), (1, -3), (4, 4)\}$ is not a function. Which $x$-value shows this?

  7. The natural domain of $f(x) = \dfrac{3}{\sqrt{6 - 2x}}$ is $x \lt k$. Find $k$.

  8. The vertical line $x = 3$ meets the circle $x^2 + y^2 = 25$ at two points. Enter the positive $y$-value.

  9. Exam style: the domain and range of $y = \sqrt{9 - x^2}$ are:

  10. Exam style: a $24$ cm wire is bent into a rectangle with one side $x$ cm, so its area is $A(x) = x(12 - x)$ for $0 \lt x \lt 12$. What is the largest value in the range of $A$, in cm²?

Formula sheet