Definitions
Consider a set of ordered pairs, for example . The first elements in the ordered pairs, i.e. (we will call these the values) form the domain while the second elements i.e. (we will call these the values) form the range. See Subsec. 1.1.1 for more on the domain and range. A relation is simply a set of ordered pairs.
Now, if we impose the following rule on a relation, it becomes a function: a function is a set of ordered pairs in which each -element has only one -element associated with it. The ordered pairs above are relations and not functions because certain -elements are paired with more than one unique -element [from above, the pairs and as well as and . We clarify these definitions with an example.
Example: Determine if each of the following are functions
Solution
The first equation is a function since given an and squaring it gives only one possible value of . For the second equation, suppose ; this yields . We can use 2 and -2 as the possible values for a single rendering the second equation a relation and not a function.
Functional notation
Functions are usually referred to by the notation read as 'function of '. The first equation in Example 1.1 can therefore be written as
The notation is another way of representing the -value. Another common notation is the following:
Note that {} is the symbol for set. interpreted as 'the function maps to '.
Domain & range
Here we revisit the concepts of the domain and range of a function. The domain, of a function is the set of all values that can be plugged into a function such that the function exists and yields a real number. It follows that for the domain we need to avoid division by zero, square roots of negative numbers, logarithms of zero, and logarithms of negative numbers. The range, of a function is the set of all possible values that a function can take (the output).
Example 1.2 Determine the domain and range of the following functions
(i) ;
(ii) ;
(iii) .
Solution For the first equation, the domain is and the range is . For the second equation, the domain is all real numbers, except for , i.e. and the range is all real numbers except zero. Note that an interval denotes by is an open interval while is a closed interval with the endpoints included. Finally, for the third equation, the domain is the set of all real numbers, i.e. and the range is (the function has a minimum at corresponding to the value .
Even & odd functions
A function is even if its graph is unchanged under reflection in the -axis [see Fig. 1.1(a)]. This is equivalent to,
Examples of even functions are . A function is odd if its graph is symmetrical about the origin (i.e. unchanged when reflected about both - and -axis [see Fig. 1.1(b)]. Equivalently,
Examples of odd functions are . Note that the definitions of odd and even functions make sense if the domain is symmetric, i.e. if is in , so is . A function can be neither even nor odd. However, any function may be expressed as the sum of an even and an odd function as follows,
An example is the exponential function which we can easily show that is neither even nor odd using Eqs. (1.1) and (1.2). For the exponential function, Eq. (1.3) yields
where the hyperbolic cosine given by is the even part and the hyperbolic sine given by is the odd part.
(a)
(b)
Figure 1.1: (a) The graph of the even function satisfying Eq. (1.1); it is symmetrical about the -axis. (b) The graph of the odd function satisfying Eq. (1.2); it is symmetrical about the origin.