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 y-coordinate of the vertex. There simply are no values of **f(x)** below that.

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.

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

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

The domain and range of any linear function are x = (-∞, ∞) and y = (-∞, ∞).

Quadratic functions always have a vertex. That point is either the minimum or maximum of the function. The function

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

The domain of any polynomial function (including quadratic functions) is x = (-∞, ∞)

The cubic function plotted to the right is

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

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:

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

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 upside-down U-shaped 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

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,

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

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

This site is a one-person operation. If you can manage it, I'd appreciate anything you could give to help defray the cost of keeping up the domain name, server, search service and my time.

**xaktly.com** by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 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.