In this explainer, we will learn how to evaluate and graph absolute value functions and identify their domain and range.

Recall that the **absolute value** of a real number is its distance from 0
on the number line. For example, in the expression
(which can be read as the absolute value of ),
the number is shown within absolute value symbols.
Since is located 5 units from 0 on the number line, the value of the expression is 5.
The value of the expression
(which can be read as the absolute value of 5) is 5 as well,
because 5 is also located 5 units from 0 on the number line.

A distance is never negative, so the absolute value of a number will always be positive or 0. In addition to numbers, we can put algebraic expressions within absolute value symbols to define functions. These types of functions are called absolute value functions.

### Definition: Absolute Value Function

An absolute value function is a function with a definition that contains an algebraic expression within absolute value symbols. An example of an absolute value function is , where .

One way to graph an absolute value function is to begin by inputting values into the
function and then recording the resulting outputs in a **table of values.** For the function
, such a table is shown:

0 | 1 | 2 | 3 | ||||

3 | 2 | 1 | 0 | 1 | 2 | 3 |

By plotting the ordered pairs in the table on the coordinate plane and drawing lines through them, we can create the v-shaped graph of below:

We can see that the graph lies only on or above the -axis. The arrows tell us that it extends infinitely upward and to both the left and right. This means that while the function can have any input value, its output values are only the nonnegative numbers. We can also see that the graph decreases to the left of the -axis before touching the origin, and it then increases to the right of the -axis. The portions to the left and to the right of the -axis are mirror images of each other. Using our observations, we can describe various properties of the graph and of the function that it represents.

### Properties: The Absolute Value Function π(π₯) = |π₯| and Its Graph

- Vertex:
- Line of symmetry:
- Domain: , also written as
- Range: , also written as
- -intercept: 0
- -intercept: 0

All absolute value functions that have a linear expression within the absolute value symbols have graphs that are v-shaped. However, the functionsβ other properties may differ. Transforming the graph of the function by translating it, stretching or compressing it, or reflecting it across an axis can allow us to more easily sketch the graph of an absolute value function in a different form so that we can identify the domain and range of the function.

### Definition: Transformations of the Graph of the Absolute Value Function π(π₯) = |π₯|

- The graph of is a horizontal translation of the graph of . If is positive, the translation is units right. If is negative, the translation is units left. The domain and range of are the same as those of .
- The graph of is a vertical translation of the graph of . If is positive, the translation is units up. If is negative, the translation is units down. The domain of is the same as that of , but the range is .
- The graph of is a vertical stretch of the graph of by a scale factor of when and a vertical compression by a scale factor of when . If is negative, the graph of is also reflected over the -axis, which means that the graph of will open downward instead of upward.
- The graph of is a horizontal compression of the graph of by a scale factor of when and a horizontal stretch by a scale factor of when . If is negative, the graph of is also reflected over the -axis.

Some examples of absolute value functions in various forms and their graphs are in the problems that follow.

### Example 1: Finding the Range of an Absolute Value Function Using a Graph

Find the range of the function .

### Answer

We can see that the graph has a vertex at , a line of symmetry of , an -intercept of , and a -intercept of 2. By inputting values of into the function and observing the resulting outputs, we can confirm the graphβs validity.

Letβs use the graph to help determine the domain and range of . Recall that the domain of a function is the set of all possible input values, while the range is the set of all possible output values. Another way to say this is that the domain is all possible values of the independent variable, while the range is all possible values of the dependent variable.

The arrows tell us that the graph extends infinitely to both the left and the right, so we know that the domain must be the set of all real numbers, or . The arrows also tell us that the graph extends infinitely upward, but we can see that it lies only on or above the -axis. In other words, the smallest value of is 0, but there is no largest value. Thus, we know that the range is , or . Any absolute value function in the form will have this range.

Now letβs look at the graph of another absolute value function and find the functionβs domain and range. This time, we will consider the functionβs graph to be a transformation of the graph of .

### Example 2: Finding the Domain and Range of an Absolute Value Function Using a Graph

Determine the domain and the range of the function .

### Answer

We know that the domain and range of remain the same after a horizontal translation to the left or right, so the domain of is the set of all real numbers, or , and the range is , or . However, although the domain of remains the same after a vertical translation up or down, its range does not. The range of is , or .

Here, we can see that the graph is a horizontal translation 1 unit to the left and a vertical translation 1 unit up of the graph of . That is, . Thus, the domain of the function is , and the range is , or .

### Note

We will arrive at the same answers for the functionβs domain and range by using the fact that the domain is the set of all possible input values, while the range is the set of all possible output values. The arrows tell us that the graph extends infinitely to both the left and the right, so, again, we know that the domain of the function is the set of all real numbers, or . The arrows also tell us that the graph extends infinitely upward, but we can see that the graph lies only at or above a value of 1 for . That is, the smallest value of is 1, but there is no largest value. Thus, we can again see that the range of the function is , or .

Next, letβs look at how to find the domain of an absolute value function without being given a graph. We will construct the functionβs graph by considering its relationship to that of .

### Example 3: Finding the Domain of an Absolute Value Function

Given that is a constant, what is the domain of the function ?

### Answer

As we can see in the figures below, the graph of is a horizontal translation of the graph of . If is positive, the translation is units to the left, and if is negative, the translation is units to the right.

Recall that for both and , the domain is , and the range is , or . In other words, the domain and range of are the same as those of , regardless of whether the horizontal translation is left or right, and regardless of the number of units. This means the domain of the function must be the set of all real numbers, or .

### Note

We know that the domain of a function is the set of all possible input values, or all possible values of the independent variable, . To determine the domain of the function , we could ask ourselves, βWhat values of can we input into the function?β To help answer this question, letβs consider what the function would be for some different values of the constant .

First we will consider a negative value for . Letβs assume that . When this is the case, the function becomes . Now letβs input some values into the function and observe whether or not an output value is produced:

We can see that all of the input values give a corresponding output value. Now letβs look at what happens when . In this case, the function becomes :

Again, we can see that all of the input values give a corresponding output value. Finally, letβs consider a positive value of a by looking at the function when . Now, the function becomes :

Just as before, there is an output value for each of the input values. In fact, because the absolute value function is defined for all real numbers , no matter what constant represents, we will always be able to input any value into the function and get an output value. That is, the output value will never be undefined. Therefore, we again see that the domain of the function is the set of all real numbers, or .

In the example that follows, we will construct the graph of another absolute value function to help find its domain and range. This time, we will use not only translations of the graph of when graphing our function, but a stretch and a reflection of as well.

### Example 4: Finding the Domain and Range of an Absolute Value Function

Find the domain and range of the function .

### Answer

To help determine the domain and range of the function, letβs begin by constructing its graph. Given , we know that the functionβs definition is in the form , where , , and . Thus, we can obtain the graph of by vertically stretching the graph of by a scale factor of 4, reflecting it over the -axis, translating it 5 units to the right, and then translating it 1 unit down as shown:

We can verify that our graph is correct by inputting three values of into the function and observing the resulting output values. This is not necessary as long as we are careful with our transformations, but it is useful for more complicated functions such as this one. The values we choose for will make the value of the expression inside the absolute value symbols , negative, 0, and positive respectively:

We get the ordered pairs , , and . By plotting these points on the coordinate plane, and using our understanding of absolute value functions, we can again create the graph of for the function below:

The arrows on our graph tell us that the graph extends infinitely to both the left and to the right, so we know that the domain of must be the set of all real numbers, or . The arrows also tell us that the graph extends infinitely downward, but we can see that it lies only at or below a value of for . In other words, the largest value of is , but there is no smallest value. This means that the range of the function is , or .

Now letβs look at a final example involving a real-world problem.

### Example 5: Solving a Word Problem Involving an Absolute Value Function

A body was moving with a uniform velocity of magnitude 5 cm/s from the point to the point passing through the point without stopping. The distance between the body and the point is given by , where is the time in seconds, and is the distance in cm. Determine the distance between the body and the point after 5 seconds and after 11 seconds.

### Answer

In order to determine the distance between the body and the point after 5 seconds and after 11 seconds, we need to evaluate the function at and at . In other words, we must substitute both 5 and 11 into the function for and calculate the resulting value of .

Recall that the absolute value of a number is always positive, so regardless of whether the value of the expression inside the absolute value symbols is positive or negative, its absolute value will be positive. This ensures that the distance given by the function will be positive, because the product of 5 and another positive number will always be positive. First, letβs find :

Based on our calculations, we know that, after 5 seconds, the distance between the body and point was 15 centimetres.

Now letβs find :

Our calculations show us that the distance between the body and point was also 15 centimetres after 11 seconds. Notice that our two distances are the same. This tells us that after 5 seconds, the body must not have yet reached point and that after 11 seconds, it must have already passed point .

Now letβs finish by recapping some key points.

### Key Points

- An absolute value function is a function with a definition that contains an algebraic expression within absolute value symbols.
- The domain of all absolute value functions that are in the form is the set of all real numbers, or , while the range is , or .
- The graph of is a horizontal translation of the graph of . If is positive, the translation is units right. If is negative, the translation is units left. The domain and range of are the same as those of .
- The graph of is a vertical translation of the graph of . If is positive, the translation is units up. If is negative, the translation is units down. The domain of is the same as that of , but the range is .
- The graph of is a vertical stretch of the graph of by a scale factor of when and a vertical compression by a scale factor of when . If is negative, the graph of is also reflected over the -axis, which means that the graph of will open downward instead of upward.
- The graph of is a horizontal compression of the graph of by a scale factor of when and a horizontal stretch by a scale factor of when . If is negative, the graph of is also reflected over the -axis.