Functions

# Domain and Range

### Learning Objectives

In this section, you will:

• Find the domain of a function defined by an equation.
• Graph piecewise-defined functions.

If you’re in the mood for a scary movie, you may want to check out one of the five most popular horror movies of all time—I am Legend, Hannibal, The Ring, The Grudge, and The Conjuring. (Figure) shows the amount, in dollars, each of those movies grossed when they were released as well as the ticket sales for horror movies in general by year. Notice that we can use the data to create a function of the amount each movie earned or the total ticket sales for all horror movies by year. In creating various functions using the data, we can identify different independent and dependent variables, and we can analyze the data and the functions to determine the domain and range. In this section, we will investigate methods for determining the domain and range of functions such as these.

[1]

### Finding the Domain of a Function Defined by an Equation

In Functions and Function Notation, we were introduced to the concepts of domain and range. In this section, we will practice determining domains and ranges for specific functions. Keep in mind that, in determining domains and ranges, we need to consider what is physically possible or meaningful in real-world examples, such as tickets sales and year in the horror movie example above. We also need to consider what is mathematically permitted. For example, we cannot include any input value that leads us to take an even root of a negative number if the domain and range consist of real numbers. Or in a function expressed as a formula, we cannot include any input value in the domain that would lead us to divide by 0.

We can visualize the domain as a “holding area” that contains “raw materials” for a “function machine” and the range as another “holding area” for the machine’s products. See (Figure).

### Piecewise Function

A piecewise function is a function in which more than one formula is used to define the output. Each formula has its own domain, and the domain of the function is the union of all these smaller domains. We notate this idea like this:

In piecewise notation, the absolute value function is

### How To

Given a piecewise function, write the formula and identify the domain for each interval.

1. Identify the intervals for which different rules apply.
2. Determine formulas that describe how to calculate an output from an input in each interval.
3. Use braces and if-statements to write the function.

### Writing a Piecewise Function

A museum charges $5 per person for a guided tour with a group of 1 to 9 people or a fixed$50 fee for a group of 10 or more people. Write a function relating the number of people,to the cost,

Two different formulas will be needed. For n-values under 10,For values ofthat are 10 or greater,

#### Analysis

The function is represented in (Figure). The graph is a diagonal line fromtoand a constant after that. In this example, the two formulas agree at the meeting point wherebut not all piecewise functions have this property.

### Working with a Piecewise Function

A cell phone company uses the function below to determine the cost,in dollars forgigabytes of data transfer.

Find the cost of using 1.5 gigabytes of data and the cost of using 4 gigabytes of data.

To find the cost of using 1.5 gigabytes of data,we first look to see which part of the domain our input falls in. Because 1.5 is less than 2, we use the first formula.

To find the cost of using 4 gigabytes of data,we see that our input of 4 is greater than 2, so we use the second formula.

#### Analysis

The function is represented in (Figure). We can see where the function changes from a constant to a shifted and stretched identity atWe plot the graphs for the different formulas on a common set of axes, making sure each formula is applied on its proper domain.

### How To

Given a piecewise function, sketch a graph.

1. Indicate on the x-axis the boundaries defined by the intervals on each piece of the domain.
2. For each piece of the domain, graph on that interval using the corresponding equation pertaining to that piece. Do not graph two functions over one interval because it would violate the criteria of a function.

### Graphing a Piecewise Function

Sketch a graph of the function.

Each of the component functions is from our library of toolkit functions, so we know their shapes. We can imagine graphing each function and then limiting the graph to the indicated domain. At the endpoints of the domain, we draw open circles to indicate where the endpoint is not included because of a less-than or greater-than inequality; we draw a closed circle where the endpoint is included because of a less-than-or-equal-to or greater-than-or-equal-to inequality.

(Figure) shows the three components of the piecewise function graphed on separate coordinate systems.

Now that we have sketched each piece individually, we combine them in the same coordinate plane. See (Figure).

#### Analysis

Note that the graph does pass the vertical line test even atandbecause the points and are not part of the graph of the function, though
and are.

### Try It

Graph the following piecewise function.

Can more than one formula from a piecewise function be applied to a value in the domain?

No. Each value corresponds to one equation in a piecewise formula.

Access these online resources for additional instruction and practice with domain and range.

### Key Concepts

• The domain of a function includes all real input values that would not cause us to attempt an undefined mathematical operation, such as dividing by zero or taking the square root of a negative number.
• The domain of a function can be determined by listing the input values of a set of ordered pairs. See (Figure).
• The domain of a function can also be determined by identifying the input values of a function written as an equation. See (Figure), (Figure), and (Figure).
• Interval values represented on a number line can be described using inequality notation, set-builder notation, and interval notation. See (Figure).
• For many functions, the domain and range can be determined from a graph. See (Figure) and (Figure).
• An understanding of toolkit functions can be used to find the domain and range of related functions. See (Figure), (Figure), and (Figure).
• A piecewise function is described by more than one formula. See (Figure) and (Figure).
• A piecewise function can be graphed using each algebraic formula on its assigned subdomain. See (Figure).

### Section Exercises

#### Verbal

Why does the domain differ for different functions?

The domain of a function depends upon what values of the independent variable make the function undefined or imaginary.

How do we determine the domain of a function defined by an equation?

Explain why the domain ofis different from the domain of

There is no restriction onforbecause you can take the cube root of any real number. So the domain is all real numbers,When dealing with the set of real numbers, you cannot take the square root of negative numbers. So-values are restricted forto nonnegative numbers and the domain is

When describing sets of numbers using interval notation, when do you use a parenthesis and when do you use a bracket?

How do you graph a piecewise function?

Graph each formula of the piecewise function over its corresponding domain. Use the same scale for the-axis and-axis for each graph. Indicate inclusive endpoints with a solid circle and exclusive endpoints with an open circle. Use an arrow to indicateorCombine the graphs to find the graph of the piecewise function.

#### Algebraic

For the following exercises, find the domain of each function using interval notation.

Find the domain of the functionby:

1. using algebra.
2. graphing the function in the radicand and determining intervals on the x-axis for which the radicand is nonnegative.

#### Graphical

For the following exercises, write the domain and range of each function using interval notation.

domain:range

domain:range:

domain:range:

domain:range:

domain:range:

domain:range:

For the following exercises, sketch a graph of the piecewise function. Write the domain in interval notation.

domain:

domain:

domain:

domain:

#### Numeric

For the following exercises, given each function evaluate and

For the following exercises, given each functionevaluateand

For the following exercises, write the domain for the piecewise function in interval notation.

domain:

#### Technology

Graphon the viewing windowandDetermine the corresponding range for the viewing window. Show the graphs.

window:[0.5,0.1];  [−0.5,−0.1];  [−0.5,−0.1];  range:[4, 100]  [4, 100] [4, 100]

window:[0.1, 0.5];  [0.1, 0.5];  [0.1, 0.5];  range:[4, 100]  [4, 100] [4, 100]

Graphon the viewing windowandDetermine the corresponding range for the viewing window. Show the graphs.

#### Extension

Suppose the range of a functionisWhat is the range of

Create a function in which the range is all nonnegative real numbers.

Create a function in which the domain is

#### Real-World Applications

The heightof a projectile is a function of the timeit is in the air. The height in feet forseconds is given by the function
What is the domain of the function? What does the domain mean in the context of the problem?

The domain isit takes 6 seconds for the projectile to leave the ground and return to the ground

The cost in dollars of makingitems is given by the function

1. The fixed cost is determined when zero items are produced. Find the fixed cost for this item.
2. What is the cost of making 25 items?
3. Suppose the maximum cost allowed is \$1500. What are the domain and range of the cost function,

### Glossary

interval notation
a method of describing a set that includes all numbers between a lower limit and an upper limit; the lower and upper values are listed between brackets or parentheses, a square bracket indicating inclusion in the set, and a parenthesis indicating exclusion
piecewise function
a function in which more than one formula is used to define the output
set-builder notation
a method of describing a set by a rule that all of its members obey; it takes the form

1. The Numbers: Where Data and the Movie Business Meet. “Box Office History for Horror Movies.” http://www.the-numbers.com/market/genre/Horror. Accessed 3/24/2014
2. http://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=MCRFPAK2&f=A.