Functions and Relations

Functions and Relations

Definition: Relation

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

Definition: 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.png
833ca0353a924bd136290fd415612ef8.png

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

0b14e4529ab8d8035dbcbb262453e7b9.png
5932b3d23d72174a70a03fee618309d9.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 one-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.png
98bda5f855e6c6e25e4f215554496961.png

Function notation

For the function \(y=f(x)\), \(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(t)=2t+1\), then \(t\) is the independent variable and \(g\) is the function name.

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

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

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

This lesson is part of:

Functions III

View Full Tutorial

Track Your Learning Progress

Sign in to unlock unlimited practice exams, tutorial practice quizzes, personalized weak area practice, AI study assistance with Lexi, and detailed performance analytics.