This section will refine our view of functions just a bit. In working with functions, it's important to know just what values can be put into a function and just what values the function can give back. These sets of numbers are known as domain and range, respectively.
The domain of a function is the set of all values that the independent variable (usually x, in these notes) can take on.
In the examples below, you'll see examples of functions that can take any value of x as input, and some that have restrictions.
Likewise, some functions will only give back numbers in a certain range. For example, a quadratic function with a positive leading coefficient can give back (y) values greater than or equal to the ycoordinate of the vertex. There simply are no values of f(x) below that.
Note: This is important material for you to know, but the last few functions discussed on this page might not be familiar to you. Just skip those and you can come back to this section once in a while to refresh your memory with new functions.
There is a compact notation for writing out the sets that will be the domain and range of a function, and you should learn it. Once you do, it's actually handy for writing all kinds of sets that you'll encounter in higher math, and in a lot of math and science literature. Take the time now to learn it.
We use square or round brackets to mark the boundaries of sets. Square brackets are used to indicate that the endpoint is part of the set, and round brackets mean that the set extends to the endpoint, but doesn't include it. Examples are probably the best way to learn, so take a close look at the table below.
This notation  Means this: 

The set of all numbers between a and b, including a & b  
The set of all numbers between a and b, but not including a & b  
The set of all numbers between a and b, including b, but not including a  
The set of all numbers between a and b, including a, but not including b  
The set of all numbers from a (including a) to infinity, an infinitelylarge set. 

The set of all numbers from negative infinity, up to b, and not including b  
The union of the sets of all numbers between and including a & b, and between and including c & d. The union symbol ( ∩ ) is like the plus sign for sets.  
The set of all numbers except for a  
The set of all real numbers 
The domain of any linear functions is all real numbers, or (∞, ∞). There is simply no value of x we can't put into a linear function. Another way to look at it is that the graph of a linear function, no matter now steeply sloped, extends infinitely to the right and left. The graph of
$$f(x) = x  4$$
is shown on the right. The same is true of the range of a linear function. Provided we put in the right x, we should be able to obtain any y in the set y = (∞, ∞). We can write the domain and range of any linear function as
$$D: \, (\infty, \, \infty), \: \: R: \, (\infty, \, \infty)$$
Quadratic functions always have a vertex. That point is either the minimum or maximum of the function. The function
$$f(x) = \frac{1}{2} (x  2)^2  4$$
is plotted on the left. It's vertex is (2, 4), which means that the lowest value this function can have is y = 4, so the range is [4, ∞).
The domain of a quadratic function is always x = (∞, ∞). The domain and range of this function are
$$D: \, (\infty, \, \infty), \: \: R: \, (4, \, \infty)$$
The cubic function plotted to the right is
$$f(x) = x^3  3x^2 + 3x  2$$
Because of the odd exponent, one end of a cubic function tends toward +∞ and the other toward ∞. That's actually true of any polynomial function of odd degree. The domain and range of such functions are
$$D: \, (\infty, \, \infty), \: \: R: \, (\infty, \, \infty)$$
Polynomial functions of even degree always have a global maximum or (in this case) minimum, depending on the sign of the leading term.
Therefore the ranges of polynomials of even degree (where both ends either go to positive or negative infinity) are determined by the location of that local min. or max.
We won't always know the exact location of that max. or min. That's a problem that calculus will help you with later. In such cases, it's OK just to give that max. or min. a label like we did in the graph, (a, b). The minimum value of the function is just b (a negative number in this example), and we write the domain and range like this:
$$D: \; (\infty, \; \infty) \; \; R: \; (b, \; \infty)$$
The range of any polynomial function of odd degree is y = (∞, ∞).
The range of a polynomial function of even degree is bounded either from below or above because the function will always have a maximum or minimum value.
Because rational functions have discontinuities like asymptotes and holes, their domains and ranges can be pretty broken up.
The function
$$f(x) = \frac{x^2  1}{x^2 + x  3} = \frac{(x + 1)(x  1)}{(x  2)(x + 3)}$$
plotted below has both vertical and horizontal asymptotes.
A function has no actual value at a vertical asymptote. It's easy to see why. When x = 3 in our function above, the denominator goes to zero, so the function is infinite. That's represented by the dashed vertical line at x = 3. It's the same when x = 2. So the domain is interrupted twice by values that the function just can't take.
Furthermore, for large values of x, in either direction, f(x) approaches (but never quite reaches) y = 1. The range is also disrupted. As in the example above, we don't actually know how high that upsidedown Ushaped bit in the middle gets, so we'll call that value a. Calculus (or trial and error with your calculator) would help us to find that, but for now it's enough to recognize that there's a hard number above which the function can't have a value (until the plus side of y = 1).
The domain and range of this function are
The function
$$f(x) = \sqrt(x)$$
is plotted on the right. The obvious problem with the domains of root functions is that the expression under the radical can't be negative.
That means that root functions just begin somewhere (in this case at x = 0) and move off to the right. The domain and range of this function are
Here's a second example of a root function,
$$f(x) = \sqrt{x  3}$$
You will recognize that this function is just the root function on the left translated three units to the right.
This function has a different domain because the expression under the radical is less than zero for values of x < 3. Its domain and range are
If the domain of a function is restricted, it's usually because of one of two things: (1) some value(s) of x make the denominator go to zero (mathematicians often say that the function "blows up" in that case), or (2) some value(s) of x cause an even root (like a square root) of a negative number.
Logarithmic functions tend toward infinity as the independent variable grows, and tend (rapidly) toward negative infinity as it approaches zero.
Log functions have no value for x < 0 because a log expression asks "to what power must we raise a positive base (in this case the base, e) to get x?" For a positive base, there is no number that will do that. We can't raise a positive number to any power and get a negative number. The domain and range of this function are
This exponential function can take any value of x we wish to put into it, but it can only return positive values.
Remember that negative exponents don't mean negative function values. The minus in the exponent just means "take the reciprocal. The reciprocal of a large number is a small number, thus the appearance of the graph.
The domain and range of this exponential function are
Determine the domain and range of the following functions, and express them in proper bracket notation.
1. 
$$f(x) = \frac{1}{x^2 + 1}$$ 
2. 
$$f(x) = \frac{x^2  1}{x^2 + 3x + 2}$$ 
3. 
$$f(x) = \frac{x^2  x  2}{x^2  x  6}$$ 
4. 
$$f(x) = \sqrt{x  3}$$ 
5. 
$$f(x) = \sqrt{x  1}$$ 
6. 
$$f(x) = 2 \, ln(x  3)$$ 
xaktly.com by Dr. Jeff Cruzan is licensed under a Creative Commons AttributionNonCommercialShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.