- a.
- Suppose the quadratic function is given by . Are there any values that can’t be plugged into ?
- b.
- Suppose a square has side length denotes by the variable , and area denoted by . The area of the square is a function of the side length, . Are there any values of that don’t make sense?
- c.
- Suppose that is the rational function given by and that is the constant function given by . Are these the same function? Why or why not?
We return to the notion of a function and examine the allowable inputs.
- Are there numbers that cannot be plugged into a given function?
- How do we denote the numbers that can be plugged in?
- What are the allowable inputs for our famous functions?
Introduction
We often think about functions as a process which transforms an input into some output. Sometimes that process is known to us (such as when we have a formula for the function) and sometimes that process is unknown to us (such as when we only have a small table of values).
The Domain of a Function
When we are given a function, sometimes the domain is given to us explicitly. Consider the function for . The phrase “for ” tells us the domain for this function. We may be able to plug any number into the expression , but it’s only when that this gives our function. For instance, , but is undefined.
Sometimes, when we are given a function as a formula, we are not told the domain. In these circumstances we use the implied domain.
Interval Notation
As in the previous example, solutions of inequalities play an important role in expressing the domains of many types of functions. As a standard way of writing these solutions, we rely on interval notation. Interval notation is a short-hand way of representing the intervals as they appear when sketched on a number line. The previous example involved which, when sketched on a number line, is given by
There are five different types of infinite intervals: the first two are closed infinite intervals (which contain their respective endpoint) and the other three are open infinite intervals (which do not contain the endpoint). For a fixed real number , these are:
- (a)
- represents ,
- (b)
- represents ,
- (c)
- represents ,
- (d)
- represents , and
- (e)
- represents all real numbers.
The notation uses the square bracket to indicate that the endpoint is included and the round parenthesis to indicate that the endpoint is not included.
Not every interval is infinite, however. Consider the interval in the following sketch
For a bounded intervals (ones that are not infinite), there are also four possibilities. For and both fixed real numbers, these are:
- (a)
- represents ,
- (b)
- represents ,
- (c)
- represents and
- (d)
- represents .
Practically, this amounts to writing the left-hand endpoint, the right-hand endpoint, then indicating which endpoints are included in the interval.
The wire forms the perimeter of the rectangle. Since the wire has length 10 meters, that means the sum of the lengths of all the edges is 10. Thus, , or . Solving this formula for gives:
The function is given by .Any number can be plugged into the formula , but we have to take into account where these quantities came from in the story. The value was a length of a side of a rectangle. That means cannot be negative. For a similar reason, cannot be negative.
If has a value larger than , it would force to be negative, which is impossible. The domain of is .The Domains of Famous Functions
Earlier you were introduced to the graphs of several “Famous Functions”. We will revisit these functions over and over again throughout our studies. For now, we will formalize what we have seen with their graphs.
- (a)
- The Absolute Value function - We can take the absolute value of any number. The Absolute Value function has domain .
- (b)
- Polynomial functions - We can plug any number into a polynomial. All polynomials have domain .
- (c)
- Rational functions - Remember that a rational function is one that can be written as fraction of two polynomials, with the denominator not the zero polynomial. The domain of a rational function consists of all real numbers for which the denominator is nonzero.
- (d)
- The Square Root function - We can take the square root of any non-negative number. The square root function has domain .
- (e)
- Exponential functions - Exponential functions , for with , have domain .
- (f)
- Logarithms - Logarithms have domain . This is similar to the domain of , except the endpoint is not included.
- (g)
- The Sine function - The sine function has domain .
Spotting Values not in the Domain
Of our list of famous functions, notice that only rational functions, radicals, and logarithms have domain that is not the full set of all real numbers, . When trying to find the domain of a function constructed out of famous functions, this gives us some guidelines to follow. The following list is not exhaustive, but gives a good place to begin.
- (a)
- The input of an even-index radical must be non-negative.
- (b)
- The input of a logarithm must be positive.
- (c)
- The denominator of a fraction cannot be zero.
- (d)
- The real-world context. If a function has a real-world description, this may add additional restrictions on the input values. (You can see this in Example examp:wirePerimeterDomain above.)
The denominator of the fraction cannot be zero, so
The input to the logarithm must be positive, so
In order for a number to be in the domain of the function, it must be in the domain of every term of the function. That means it must satisfy both and . Altogether, this means the domain is .
The input to the logarithm must be positive, so
That inequality has graph given byThe radicand must be non-negative, so
That inequality has graph given byIn order for a number to be in the domain of this function, satisfy both and . The points satisfying both inequalities are given in the graph found by overlaying both graphs above
and taking the graph of all points on both graphs.
Altogether, this means the domain is
Piecewise Defined Functions and Restricted Domains
Consider the function for , and the function (given without this restriction). The implied domain of is , but what can we say about ? The formula makes sense when , but the function definition for has the added statement “for ”. This is telling us the domain of is . In this case is undefined.
We can think of the function as coming from the function by deciding that some inputs are not valid. We have restricted the domain.
Suppose we have a function given by for (which has domain ) and a different function given by for (which has domain ). If we are given an -value in the interval , that input can only be plugged into one of these two functions. Let’s create a new function by setting if and by setting if . As a compact way of writing this, we would say:
The function above is a piecewise defined function. On the interval it is given by the formula , and on the interval it is given by the formula . It has two pieces, one piece is quadratic and the other piece is linear. The graph of the function is given below.
- (a)
- (b)
- (c)
- (d)
- (e)
The function is given as a piecewise defined function with three pieces. The first piece is used , the second piece is used when , and the third piece is used when . This function is defined for all numbers except those between 3 and 4.
The domain of this function is .
- (a)
- Since , this uses the first piece of the function, so .
- (b)
- Since , .
- (c)
- is between and (it’s approximately 1.57), so .
- (d)
- is not in the domain of , so is undefined.
- (e)
- Since , .
Let’s examine the graph of .
That means agrees with if , and agrees with if . Putting these together gives us:
This formula tells us that the absolute value of a positive number is itself, while the absolute value of a negative number changes the sign.