79 1.1 Review of Functions – Calculus Volume 1 | OpenStax (MathJax chapter import test)
In this section, we provide a formal definition of a function and examine several ways in which functions are represented—namely, through tables, formulas, and graphs. We study formal notation and terms related to functions. We also define composition of functions and symmetry properties. Most of this material will be a review for you, but it serves as a handy reference to remind you of some of the algebraic techniques useful for working with functions.
Functions
Given two sets
and
a set with elements that are ordered pairs
where
is an element of
and
is an element of
is a relation from
to
A relation from
to
defines a relationship between those two sets. A function is a special type of relation in which each element of the first set is related to exactly one element of the second set. The element of the first set is called the input; the element of the second set is called the output. Functions are used all the time in mathematics to describe relationships between two sets. For any function, when we know the input, the output is determined, so we say that the output is a function of the input. For example, the area of a square is determined by its side length, so we say that the area (the output) is a function of its side length (the input). The velocity of a ball thrown in the air can be described as a function of the amount of time the ball is in the air. The cost of mailing a package is a function of the weight of the package. Since functions have so many uses, it is important to have precise definitions and terminology to study them.
Definition
A function
consists of a set of inputs, a set of outputs, and a rule for assigning each input to exactly one output. The set of inputs is called the domain of the function. The set of outputs is called the range of the function.
For example, consider the function
where the domain is the set of all real numbers and the rule is to square the input. Then, the input
is assigned to the output
Since every nonnegative real number has a real-value square root, every nonnegative number is an element of the range of this function. Since there is no real number with a square that is negative, the negative real numbers are not elements of the range. We conclude that the range is the set of nonnegative real numbers.
For a general function
with domain
we often use
to denote the input and
to denote the output associated with
When doing so, we refer to
as the independent variable and
as the dependent variable, because it depends on
Using function notation, we write
and we read this equation as
equals
of
For the squaring function described earlier, we write
The concept of a function can be visualized using Figure 1.2, Figure 1.3, and Figure 1.4.
Media
Visit this applet link to see more about graphs of functions.
We can also visualize a function by plotting points
in the coordinate plane where
The graph of a function is the set of all these points. For example, consider the function
where the domain is the set
and the rule is
In Figure 1.5, we plot a graph of this function.
Every function has a domain. However, sometimes a function is described by an equation, as in
with no specific domain given. In this case, the domain is taken to be the set of all real numbers
for which
is a real number. For example, since any real number can be squared, if no other domain is specified, we consider the domain of
to be the set of all real numbers. On the other hand, the square root function
only gives a real output if
is nonnegative. Therefore, the domain of the function
is the set of nonnegative real numbers, sometimes called the natural domain.
For the functions
and
the domains are sets with an infinite number of elements. Clearly we cannot list all these elements. When describing a set with an infinite number of elements, it is often helpful to use set-builder or interval notation. When using set-builder notation to describe a subset of all real numbers, denoted
we write
We read this as the set of real numbers
such that
has some property. For example, if we were interested in the set of real numbers that are greater than one but less than five, we could denote this set using set-builder notation by writing
A set such as this, which contains all numbers greater than
and less than
can also be denoted using the interval notation
Therefore,
The numbers
and
are called the endpoints of this set. If we want to consider the set that includes the endpoints, we would denote this set by writing
We can use similar notation if we want to include one of the endpoints, but not the other. To denote the set of nonnegative real numbers, we would use the set-builder notation
The smallest number in this set is zero, but this set does not have a largest number. Using interval notation, we would use the symbol
which refers to positive infinity, and we would write the set as
It is important to note that
is not a real number. It is used symbolically here to indicate that this set includes all real numbers greater than or equal to zero. Similarly, if we wanted to describe the set of all nonpositive numbers, we could write
Here, the notation
refers to negative infinity, and it indicates that we are including all numbers less than or equal to zero, no matter how small. The set
refers to the set of all real numbers.
Some functions are defined using different equations for different parts of their domain. These types of functions are known as piecewise-defined functions. For example, suppose we want to define a function
with a domain that is the set of all real numbers such that
for
and
for
We denote this function by writing
When evaluating this function for an input
the equation to use depends on whether
or
For example, since
we use the fact that
for
and see that
On the other hand, for
we use the fact that
for
and see that
Example
1.1
Evaluating Functions
For the function
evaluate
Solution
Substitute the given value for x in the formula for
Checkpoint
1.1
For
evaluate
and
Example
1.2
Finding Domain and Range
For each of the following functions, determine the i. domain and ii. range.
Solution
- Consider
- Since
is a real number for any real numberthe domain of
is the interval
- Since
we knowTherefore, the range must be a subset of
To show that every element in this set is in the range, we need to show that for a given
in that set, there is a real number
such that
Solving this equation for
we see that we need
such that
This equation is satisfied as long as there exists a real numbersuch that
Sincethe square root is well-defined. We conclude that for
and therefore the range is
- Since
- Consider
- To find the domain of
we need the expressionSolving this inequality, we conclude that the domain is
- To find the range of
we note that sinceTherefore, the range of
must be a subset of the set
To show that every element in this set is in the range of
we need to show that for all
in this set, there exists a real number
in the domain such that
Let
Then,
if and only if
Solving this equation forwe see that
must solve the equation
Sincesuch an
could exist. Squaring both sides of this equation, we have
Therefore, we need
which implies
We just need to verify thatis in the domain of
Since the domain of
consists of all real numbers greater than or equal to
and
there does exist anin the domain of
We conclude that the range of
is
- To find the domain of
- Consider
- Since
is defined when the denominator is nonzero, the domain is - To find the range of
we need to find the values ofsuch that there exists a real number
in the domain with the property that
Solving this equation forwe find that
Therefore, as long asthere exists a real number
in the domain such that
Thus, the range is
- Since
Checkpoint
1.2
Find the domain and range for