Introduction to Sets and Functions
A set is a collection of objects. We denote a set with a capital roman letter, such as S or T or U. If S is a set and s is an object in that set then we write s S and we say that s is an element of S. If S and T are sets then the collection of elements common to the two sets is called the intersection of S and T and is written S ∩ T. The set of elements that are in S or in T or in both is called the union of S and T and is written S ∪ T.
A function from a set S to a set T is a rule that assigns to each element of S a unique element of T. We write f : S → T.
Examples
Example 1
Let S be the set of all people who are alive at noon on October 10, 2004 and T the set of all real numbers. Let f be the rule that assigns to each person his or her weight in pounds at precisely noon on October 10, 2004. Discuss whether f : S → T is a function.
Solution 1
Indeed f is a function since it assigns to each element of S a unique element of T. Notice that each person has just one weight at noon on October 10, 2004: that is a part of the definition of “function.” However two different people may have the same weight —that is allowed.
Example 2
Let S be the set of all people and T be the set of all people. Let f be the rule that assigns to each person his or her brother. Is f a function?
Solution 2
In this case f is not a function. For many people have no brother (so the rule makes no sense for them) and many people have several brothers (so the rule is ambiguous for them).
Example 3
Let S be the set of all people and T be the set of all strings of letters not exceeding 1500 characters (including blank spaces). Let f be the rule that assigns to each person his or her legal name. (Some people have rather long names; according to the Guinness Book of World Records , the longest has 1063 letters.) Determine whether f : S → T is a function.
Solution 3
This f is a function because every person has one and only one legal name. Notice that several people may have the same name (such as “Jack Armstrong”), but that is allowed in the definition of function.
You Try It: Let f be the rule that assigns to each real number its cube root. Is this a function?
In calculus, the set S (called the domain of the function) and the set T (called the range of the function) will usually be sets of numbers; in fact they will often consist of one or more intervals in . The rule f will usually be given by one or several formulas. Many times the domain and range will not be given explicitly. These ideas will be illustrated in the examples below.
You Try It: Consider the rule that assigns to each real number its absolute value. Is this a function? Why or why not? If it is a function, then what are its domain and range?
Examples of Functions of a Real Variable
Example 1
Let S = , T = , and let f ( x ) = x^{2}. This is mathematical shorthand for the rule “assign to each x S its square.” Determine whether f : → is a function.
Solution 1
We see that f is a function since it assigns to each element of S a unique element of T —namely its square.
Math Note: Notice that, in the definition of function, there is some imprecision in the definition of T . For instance, in Example 1.24, we could have let T = [0, ∞) or T = (−6, ∞) with no significant change in the function. In the example of the “name” function (Example 1.23), we could have let T be all strings of letters not exceeding 5000 characters in length. Or we could have made it all strings without regard to length. Likewise, in any of the examples we could make the set S smaller and the function would still make sense.
It is frequently convenient not to describe S and T explicitly.

1
 2
Ask a Question
Have questions about this article or topic? AskRelated Questions
Q:
Q:
Q:
Q:
Popular Articles
 Kindergarten Sight Words List
 First Grade Sight Words List
 10 Fun Activities for Children with Autism
 Child Development Theories
 Definitions of Social Studies
 Grammar Lesson: Complete and Simple Predicates
 Social Cognitive Theory
 Signs Your Child Might Have Asperger's Syndrome
 Theories of Learning
 How to Practice Preschool Letter and Name Writing