Use Sophia to knock out your gen-ed requirements quickly and affordably. Learn more
×

Introduction to Functions

Author: Sophia

what's covered
In this lesson, you will learn how to identify elements of functions. Specifically, this lesson will cover:

Table of Contents

1. Relations

When we discuss the term relation in mathematics we are referring to mapping how one set of values, called the input or domain, relates to another set of values, called the output or range. There are many examples of relations that you may come across in everyday encounters.

EXAMPLE

One instance may be a list of companies and the number of employees each company has working for them. The input would be companies and the output would be the number of employees.

Oftentimes though in math, we try to map one set of numbers to another set of numbers and try to determine if there is a relationship between these numbers so that we can make predictions about future events.

EXAMPLE

Suppose we wanted to determine a relationship between age and height. Below is a sample of the type of data that we might find.

x: Age (years) 5 10 15 15 20 25 25 30 35
y: Height (inches) 24 48 70 72 73 74 72 71 70

Notice here how we are relating age to height: a 5-year-old has a height of 24 inches, a 10-year-old has a height of 48 inches, and so on. We say that the age represented by x represents elements in the domain and y represents elements in the range.

Notice in the table above, we have two values in the domain that plot to the same value in the range. Both inputs 15 and 35 have an output of 70. We also have the same values of the domain, 15, that plot to different values in the range, 70 and 72. This is an important observation to make when distinguishing a relation from a function. Let's take a look at what we mean by the term "function" in mathematics in the next section.

terms to know
Domain
The set of all input values of a function or relation.
Range
The set of all output values of a function or relation.
Relation
A relationship between two sets of values, such that each element in one set corresponds to an element in the other set.


2. Functions

A function is a special type of relation where every element, x, in the domain corresponds to exactly one element in the range. Unlike the previous example where we had the age 15 map to two different heights, 70 and 72, in a function, we cannot have this happen.

EXAMPLE

Consider this function where the volume of water in a container and the container's weight are shown in the table below.

x: Volume of Water (liters) 0.25 0.50 0.75 1
y: Weight of Water (grams) 250 500 750 1000

Notice in the above example that each value in the domain, x, maps to only one value in the range, y. However, you can have an element, y, in the range that corresponds to more than one element in the domain.

hint
We can say that a function is a relation, but a relation is not necessarily always a function.

Determine if each relation in the table below is a function.

Relation Function? Explanation
x y
-12 1
-10 9
0 -3
5 -7
Yes Each x-value in the domain appears only once, which means each x-value has only one y-value in the range.
x y
4 15
3 12
5 18
4 10
No There are two x-values in the domain that are the same, but have different y-values in the range. This is NOT a function because each x-value needs to have only one y-value.
x y
0 10
1 15
2 15
3 20
Yes Even though there are two x-values that have the same y-value, each x-value has only one y-value in the range.

term to know
Function
A special type of relation, in which every element in the domain corresponds to exactly one element in the range.


3. Vertical Line Test

There are other ways to determine if a given set of data represents a function. One of the most common ways we do this is to graph the data on a coordinate plane and perform a vertical line test. To perform a vertical line test, we take a vertical line (a line that goes up and down) and move it across the entire graph. If the vertical line touches the function at only one point across the entire graph, then it passes the vertical line test.

If a function passes the vertical line test, then we can claim that the graph represents a function.

EXAMPLE

Consider the graph below. Notice that in this graph shown above, several vertical lines were drawn in and no line touches the graph more than once. Therefore, we can conclude that this represents a function.

EXAMPLE

On the other hand, suppose we have a horizontal parabola, as shown below. If we perform the vertical line test on the graph of this relation, is it also a function?



Notice that there is more than one point at which a vertical line hits the curve. Therefore, we can conclude that this graph does NOT represent a function.


4. Function Notation

Let’s now take a look at the notation we use to represent functions. Suppose we have the linear relation, y equals 2 x minus 4. Notice that, if we were to graph this line and apply the vertical line test to it, we can confirm that this is a function.

When working with functions we like to write those functions in a notation that lets us know that we are working with a function, and what inputs the outputs of the function are dependent on. In this process we rewrite y equals 2 x minus 4as f open parentheses x close parentheses equals 2 x minus 4. Note that here y and f open parentheses x close parentheses are the same thing. We read this statement as, “f of x is equal to 2x minus 4”, which means that this function, generically represented by f, is dependent on the input x.

hint
Be careful that you do not mistake f open parentheses x close parentheses for f multiplied by x. When we write f open parentheses x close parentheses comma we are noting that we are working with functions, not that we are multiplying quantities. When dealing with functions, f open parentheses x close parentheses always means that the output of the function is dependent on the input x.

When solving this above function for a given value of x, instead of saying finding the value of y when x equals a, as we have done before, we say "find f open parentheses a close parentheses". This is read as "f of a". While the notation is slightly different, the process we use is generally the same. Let’s look at an example:

EXAMPLE

Solve the equation y equals 2 x minus 4 and function f open parentheses x close parentheses equals 2 x minus 4 when x equals 3.

bold italic y bold equals bold 2 bold italic x bold minus bold 4 bold italic f open parentheses bold x close parentheses bold equals bold 2 bold italic x bold minus bold 4 Problem Statement
y equals 2 open parentheses 3 close parentheses minus 4 f open parentheses 3 close parentheses equals 2 open parentheses 3 close parentheses minus 4 Substitute in x equals 3
y equals 6 minus 4 f open parentheses 3 close parentheses equals 6 minus 4 Simplify
y equals 2 f open parentheses 3 close parentheses equals 2 Our solution

hint
When asked to solve a function f open parentheses x close parentheses for the quantity "a", simply substitute all x variables in the function with "a" and simplify.

summary
A relation is a relationship between two sets that matches elements of one set with elements of another set. The first value in the ordered pair, x, represents the elements in the domain, and the second value, y, represents elements in the range. A function is defined as a relation in which every element in the domain corresponds to exactly one element in the range. If a graph represents a function, at any value for x, the curve of the function touches or crosses any vertical line only once, which is called the vertical line test. Function notation is used to evaluate a function for a given value in the domain of the function.

Source: ADAPTED FROM "BEGINNING AND INTERMEDIATE ALGEBRA" BY TYLER WALLACE, AN OPEN SOURCE TEXTBOOK AVAILABLE AT www.wallace.ccfaculty.org/book/book.html. License: Creative Commons Attribution 3.0 Unported License

Terms to Know
Domain

The set of all input values of a function or relation.

Function

A special type of relation, in which every element in the domain corresponds to exactly one element in the range.

Range

The set of all output values of a function or relation.

Relation

A relationship between two sets of values, such that each element in one set corresponds to an element in the other set.