Definition of a Function

Hi, and welcome to this overview of functions! In this video, we will be examining the nature of mathematical relationships between variables. As we work through some examples, our goal is to determine whether or not the criteria are met to define a special relationship known as a “function.”

Let’s take some time to review the basics of math rules, or “relations.” When we are working with an equation, the value of the variable \(x\) helps determine the value of the variable \(y\).


The \(x\)-value can be thought of as the input into the math rule that is determined by the equation, and the \(y\)-values that result are the output. The technical terms for all \(x\)-values and \(y\)-values are domain and range, respectively. So in this equation, the range, \(y\), is going to be the same as \(2x+3\).

We can use a table to lay out some of the different outcomes of the equation.

DomainRange \(\hspace{20px}y=2x+3\)
\(-2\)\(2(-2)+3=  -1\)

So we have our equation here, and the different values that \(x\) could be listed here. For instance, if we find that \(x\) is -2, our problem would look like \(2(-2)\) (which is -4), plus 3, which equals -1.

A set of ordered pairs can also be used to show a mathematical relationship. The five elements of the domain and range from the table are shown here:

\((-2,-1), (-1,1), (0,3), (1,5), ( 2,7)\)

In words, each \(x\)-value is shown as an ordered pair with its corresponding \(y\)-value. These ordered pairs can be graphed on a coordinate plane to show the relationship visually.

The relation, \(y=2x+3\), is graphed here:

y = 2x + 3 as a graph

The domain values are found on the \(x\)-axis, and the graph takes shape according to the range values on the \(y\)-axis.

Another convenient visual representation of a relationship is called a mapping, which shows a direct correspondence between the domain and range elements. Here are two examples:

mapping, input and output

In Map A, each input value maps to one output value, but in Map B, the domain value “2” maps to two output values, 20 and 40. This simple image plainly shows the criteria to determine whether the relation given is a function.

By definition, a relation is defined as a function if each element of the domain maps to one, and only one, element of the range. Not all relations are functions, but functions are a subset of relations. We have covered several representations of relations in this video. The following image shows four representations that show a relation that does not qualify as a function:

Ordered pairs, table, graph, mapping diagram

At this point, we will focus on the graph of this relation to introduce the vertical line test, which allows you to quickly determine the function status of any graph that you are given.

In short, if you draw a vertical line through a graph and hit only ONE point, then that graph represents a function. In the example we just showed, if you draw a vertical line through the domain value of -2, the line will pass through range values of 2 and -2.

vertical line test

Therefore, the relation fails the vertical line test. Here are more examples of this convenient tool to determine a function from a graph.

function graphs

Think you’ve got the hang of it? Let’s go through a few problems together and see.

Is this a function?

\(\{(−2 , 2), (−3 , 3), (−4 , 4)\}\)

In this set of ordered pairs, the domain values are \({-2, -3, -4}\) and the range values are \({2, 3, 4}\). Because each domain value is paired with only one range value, this relation is a function. What about this set?

\(\{(3, 2), (3, 3), (2, 4)\}\)

In this set, the domain values are \({3, 2}\), and the range values are \({2, 3, 4}\). Because the domain value of 3 is paired with 2 and 3 in the range, this relation is NOT a function.

Here’s one more set to figure out:

\(\{(1, 2), (2, 2), (3, 2), (4, 2), (5, 2)\}\)

What do you think? Is this a function or just a relation?

The domain of this relation is \({1, 2, 3, 4, 5}\) and the range is \({2}\). Because each element of the domain is paired with “2”, it satisfies the definition of a function. It is allowable for each element of the domain to pair with the SAME element of the range.

Remember the vertical line test? Which one of these graphs passes that test if we were to draw a vertical line through it?

vertical line test two graphs

The first graph here passes the test, because the vertical line only passes through one point. In the second graph, the vertical line passes through two points, so it is not a function.

Now that we’ve gone through several different representations of functions, you should be well on your way to knocking out more complex equations down the road.

Thanks for watching, and happy studying!

Frequently Asked Questions


What is a function in math?


A function is a relation where one quantity depends on the other.


How do you find the domain of a function?


Find the domain of a function by considering what numbers could be inputs for the function.
Ex. What is the domain of \(f(x)=\frac{x+7}{x-3}\)?
A denominator can never be 0, so x can be any number except 3, or \(x=\frac{R}{3}\).


How do you find the inverse of a function?


To find the inverse of a function, change f(x) or y to \(f^{-1}\) (x) and swap the positions of that and x. Then, solve for \(f^{-1}\) (x).
Ex. What is the inverse of \(f(x)=4x+1\)?
First, change f(x) to \(f^{-1}\) (x) and swap positions of that and x.
\(x=4f^{-1} (x)-1\)
Then, solve for \(f^{-1} (x)\).
\(x+1=4f^{-1} (x)\)
\(\frac{x+1}{4}=f^{-1} (x)\)


How do you find the range of a function?


Find the range of a function by determining what the outputs of a function are.
Ex. What is the range of the function \(f(x)=x^2+x+4\)?
The range is [4,∞) because the lowest value of f(x) for any given x-value is 4, but f(x) can be any value greater than 4.


What is a linear function?


A linear function is any function that graphs as a line.



by Mometrix Test Preparation | Last Updated: September 15, 2021