You’ve certainly seen many functions before. For example, you’ve worked with linear functions, such as quadratic functions, such as and more complicated functions such as You’ve seen functions of more than one variable in the form of linear transformations, such as

Not surprisingly, in multivariable calculus, we’ll be studying functions of more than one variable. Before starting to work with these functions, we now cover some of the fundamental definitions and properties related to functions in general, beginning with the definition of a function.

Definition of a function

Although we’ll often think of a function as some rule, such as . However, a function really consists of three pieces: a domain, a codomain, and some sort of assignment. This assignment could be given by a simple rule, like , or could be much more difficult to describe.

You might have seen some sort of “blob” diagram like the one below, showing that each element of gets mapped to some element of .

We can think of as the set of inputs to a function, and as the set containing the outputs. Each input coming from the set has to have some corresponding output, but some elements of might not actually occur as outputs of the function.

Which of the following are functions? Select All that apply.
defined by defined by defined by defined by

If we would like to refer to the elements in the codomain which actually do occur as outputs, we call this the range of .

We can visualize the range as a smaller set contained within the codomain.

What is the range of the function defined by ?

Sometimes we work with functions that aren’t defined on all of . When the domain of is a subset of , we write When we’re working with functions on subsets of , we’ll frequently want to work with the largest possible set that the function is defined on. We call this the natural domain of the function.

Often, we’ll define a function just by giving a “rule” determining its assignment, and in this case, you should assume that the domain is the natural domain.

What is the natural domain of the function ?

Types of functions

In some special situations, every element of really does appear as an output of the function . In this case, we say that is onto, or surjective.

We can visualize this as every element of getting mapped to by some element of , and possibly more than one element.

Which of the following functions are onto? Select all that apply.
defined by defined by defined by defined by

Another important type of function is a one-to-one, or injective, function. For a one-to-one function, different inputs always go to different outputs.

We can visualize this as no two elements of getting mapped to the same element of .

Which of the following functions are injective? Select all that apply.
defined by defined by defined by defined by

Component functions

When we’re trying to understand the behavior of a function , it can sometimes be helpful to split into its components. From this, we get the component functions of .