Algebra — Relations and Functions

Concept sheet | Mathematics

Relations

Definition

In mathematics, a relation is a statement that defines a link between several elements. Each relation has a rule that establishes the correspondence between the elements of a starting set and the elements of a target set.

Mapping diagram of a relation.

Functions

Definition

A function is a relationship between 2 variables where each value of the independent variable (starting set) is associated with only one value of the dependent variable (target set).

Mapping diagram of a function.

This relation is a function, since each element of the independent variable is associated with only one element of the dependent variable.

Mapping diagram of a relation.

This relation is not a function, since one element of the independent variable is associated with several elements of the dependent variable.

Tip

You can determine if a relation is a function by looking at its graph. To do so, simply apply the vertical line test.

The vertical line test on the graph of a function.

This relation is a function, since the vertical line intersects the curve at only one point, no matter where it is placed.

The vertical line test on the graph of a relation.

This relation is not a function, since the vertical line can be placed so that it intersects the curve at 2 different points.

A multitude of situations can be represented graphically by several function families. Functions of the same family have graphs and rules with common characteristics.

Click on the images to know more.

Constant Function

Graphique d’une fonction de degré 0.

Linear Function

Graphique d’une fonction de degré 1.

Quadratic Function

Graph a 2nd-degree (quadratic) function.

Rational Function

Graph of a rational function.

Absolute Value Function

Graph of an absolute value function.

Step Function

Graph of a step function.

Square Root Function

Graph of a square root function.

Exponential Function

Graph of an exponential function.

Logarithmic Function

Graph of a logarithmic function.

Piecewise Function

Graph of a piecewise function.

Periodic Function

Graph of a periodic function.

Trigonometric Function

Graph of a trigonometric function.

We often write the rule of a function as |y=\text{rule}.| However, we also use the notation |f(x)=\text{rule,}| which reads "|f| of |x|" and means "the value of |f| based on the value of |x|."

In other words, |y| and |f(x)| are 2 equivalent notations used to designate the dependent variable.

Example

Consider the function |y=2x+3,| which can also be written as |f(x)=2x+3.|

To calculate the value of the function when |x=5,| the calculations can be written in the 2 following ways:

||\begin{align}y&=2x+3\\y&=2(5)+3\\y&=13\end{align}||

||\begin{align}f(x)&=2x+3\\f(5)&=2(5)+3\\f(5)&=13\end{align}||

Therefore, the pair |(5,13)| belongs to this function.

Functions can also be written using functional notation. This notation is used to define a function by specifying its starting set, its target set and its rule of correspondence.

Formula

||\begin{align}f:\ \ \begin{gathered}\text{Starting}\\\text{set}\end{gathered}\ \ \,&\rightarrow\quad\ \ \ \begin{gathered}\text{Target}\\\text{set}\end{gathered}\\[3pt]\begin{gathered}\text{Independent}\\\text{variable}\end{gathered}&\mapsto\begin{gathered}\text{Rule of  }\\\text{correspondence}\end{gathered}\end{align}||

Example

Consider the function |f(x)=3x+4.| Using functional notation, this function can be written as follows:||\begin{align}f:\mathbb{R}&\rightarrow\mathbb{R}\\[3pt]x&\mapsto3x+4\end{align}||The starting set is |\mathbb{R},| the target set is also |\mathbb{R}| and the rule of correspondence is |3x+4.| In addition, the independent variable is |x| and the dependent variable is |f(x).|

This functional notation is read as follows:

"Function |f| goes from |\mathbb{R}| to |\mathbb{R}| and associates an element |x| from the starting set with an element |3x+4| of the target set."