Home Practice
For learners and parents For teachers and schools
Textbooks
Full catalogue
Leaderboards
Learners Leaderboard Classes/Grades Leaderboard Schools Leaderboard
Pricing Support
Help centre Contact us
Log in

We think you are located in United States. Is this correct?

2.2 Functions and relations

2.2 Functions and relations (EMCF7)

Relation

A rule which associates each element of set \((A)\) with at least one element in set \((B)\).

Function

A rule which uniquely associates elements of one set \((A)\) with the elements of another set \((B)\); each element in set \((A)\) maps to only one element in set \((B)\).

Functions can be one-to-one relations or many-to-one relations. A many-to-one relation associates two or more values of the independent (input) variable with a single value of the dependent (output) variable. The domain is the set of values to which the rule is applied \((A)\) and the range is the set of values (also called the images or function values) determined by the rule.

Example of a one-to-one function: \(y = x + 1\)

2d24c225f075437fb6e3233625d04fd1.png833ca0353a924bd136290fd415612ef8.png

Example of a many-to-one function: \(y = x^{2}\)

0b14e4529ab8d8035dbcbb262453e7b9.png5932b3d23d72174a70a03fee618309d9.png

However, some very common mathematical constructions are not functions. For example, consider the relation \({x}^{2}+{y}^{2}=4\). This relation describes a circle of radius \(\text{2}\) centred at the origin. If we let \(x=0\), we see that \({y}^{2}=4\) and thus either \(y=2\) or \(y=-2\). This is a many-to-many relation because a single \(x\)-value relates to two different \(y\)-values. Therefore \({x}^{2}+{y}^{2}=4\) is not a function.

4a395bd7a412da8e73f1a9aea3bba834.png

Vertical line test

Given the graph of a relation, there is a simple test for whether or not the relation is a function. This test is called the vertical line test. If it is possible to draw any vertical line (a line of constant \(x\)) which crosses the graph of the relation more than once, then the relation is not a function. If more than one intersection point exists, then the intersections correspond to multiple values of \(y\) for a single value of \(x\) (one-to-many).

If any vertical line cuts the graph only once, then the relation is a function (one-to-one or many-to-one).

The red vertical line cuts the circle twice and therefore the circle is not a function.

The red vertical line only cuts the parabola once and therefore the parabola is a function.

5086bee7b93b0938387381dc409f6825.png98bda5f855e6c6e25e4f215554496961.png

Identifying functions

Textbook Exercise 2.2

Consider the graphs given below and determine whether or not they are functions:

9d1d04d751a36f0598a516e4b0707527.png
Yes
0ba6f15fcaf846eea235e05d39b0fb74.png
Yes
8b9cba8ee7da95321ebf9a1ffda38e7c.png
Yes
a5d046d2b1e4a6b7c0115f36ec88a839.png
No
c28dba00e44e6b9412968f17bd172cbd.png
Yes
ac1a7ee8aecce61a5bf5560113369b61.png
No
26d322066124fde7677de10e1451578f.png
Yes
0af719e6a45d67b426d1bb032ef0d09e.png
No

Sketch the following and determine whether or not they are functions:

\(x + y = 4\)
f72e6b54314ea4fecbdc72a870fa3152.png
\(y = \frac{x}{4}\)
f140579b6062285cad1751a509bd1d6c.png
\(y = 2^{x}\)
e0a3a5901d4cb7bd90c5600cdeeba9bd.png
\(x^{2} + y^{2} = 9\)
8dbe688806456cfc8715fe0f7792130c.png
\(y = \tan{x}\)
16dc4d37de60f4542893a03f6a5b72ba.png

The table below gives the average per capita income, \(d\), in a region of the country as a function of \(u\), the percentage of unemployed people. Write down an equation to show that the average income is a function of the percentage of unemployed people.

\(u\)

1

2

3

4

\(d\)

\(\text{22 500}\)

\(\text{22 000}\)

\(\text{21 500}\)

\(\text{21 000}\)

Per capita income is a measure of the average amount of money earned per person in a certain area.

We see that there is a constant difference of \(-\text{500}\) between the consecutive values of \(d\), therefore the relation is a linear function of the form \(y = mx + c\):

\(u\) is the independent variable and \(d\) is the dependent variable.

\begin{align*} d & = mu + c \\ m & = -\text{500} \\ d & = -\text{500}u + c \end{align*}

Substitute any of the given set of values to solve for \(c\):

\begin{align*} \text{22 500} & = -\text{500}(\text{1}) + c \\ \therefore c & = \text{23 000} \end{align*}

The function is: \(d = -\text{500}u + \text{23 000}\)

Function notation

For the function \(y=f\left(x\right)\), \(y\) is the dependent variable, because the value of \(y\) (output) depends on the value of \(x\) (input). We say \(x\) is the independent variable, since we can choose \(x\) to be any number. Similarly, if \(g\left(t\right)=2t+1\), then \(t\) is the independent variable and \(g\) is the function name.

  • If \(h\left(x\right)=3x-5\) and we need to determine when \(h\left(x\right)=3\), then we solve for the value of \(x\) such that:

    \begin{align*} h\left(x\right)& = 3x-5 \\ 3 & = 3x - 5 \\ 8 & = 3x \\ \therefore x & = \frac{8}{3} \end{align*}
  • If \(h\left(x\right)=3x-5\) and we need to determine \(h\left(3\right)\), then we calculate the value for \(h\left(x\right)\) when \(x=3\):

    \begin{align*} h\left(x\right)& = 3x-5 \\ h\left(3\right)& = 3\left(3\right)-5 \\ & = 4 \end{align*}