topic badge

1.04 Absolute value functions

Lesson

Concept summary

The parent absolute value function f\left(x\right) = \left|x\right| takes an input and gives an output of the absolute value of that number. The equation of absolute value function contains a variable expression inside absolute value bars; a function of the form f\left(x\right) = a\left|x - h\right| + k.

The absolute value function f\left(x\right)=\left|x\right| has two cases to consider:

  • If x \geq 0, then f\left(x\right)=x
  • If x < 0, then f\left(x\right)=-x

As a result, the graph of an absolute value function looks like two rays that meet at a common point, called its vertex.

-4
-3
-2
-1
1
2
3
4
x
-4
-3
-2
-1
1
2
3
4
y

The parent function has a minimum vertex, but with a reflection the vertex can be a maximum.

Worked examples

Example 1

Consider the function f\left(x\right) = \left|x - 1\right| + 2

x-2-1012
f\left(x\right)
a

Complete the table of values.

Solution

Evaluating the expression \left|x - 1\right| + 2 at each value of x we get:

x-2-1012
f\left(x\right)54323
b

Draw a graph of the function

Solution

Plotting the points from the table of values, we can clearly see the vertex and the two parts of the function:

-4
-3
-2
-1
1
2
3
4
x
-1
1
2
3
4
5
6
7
y
c

State the coordinates of the vertex

Solution

The vertex of an absolute value function is its maximum or minimum point. We can see that this function has a minimum at \left(1, 2\right) by looking at the table of values and the graph.

d

State the domain and range of the function, using interval notation.

Approach

Remember that the domain is the set of all x-values that can be put into the function, while the range is the set of all function values (i.e. y-values) that can be obtained by the function.

Solution

Looking at the graph, we can see that the domain will be "all real values", as any value of x can be used as an input.

The vertex of this function is at \left(1, 2\right) and is a minimum point, so the range will be "all values greater than or equal to 2."

Using interval notation, we have:

  • Domain: \left(-\infty, \infty\right)
  • Range: \left[2, \infty\right)

Example 2

Consider the absolute value graph shown below:

-6
-5
-4
-3
-2
-1
1
2
x
-5
-4
-3
-2
-1
1
2
3
y
a

Describe the transformations used to get from the graph of y = \left|x\right| to the graph of this function.

Approach

We should check for each type of transformation: Translations (vertical and/or horizontal), dilation (either compression or stretch), and reflection.

It may help to add the graph of y = \left|x\right| to the same coordinate plane:

-6
-5
-4
-3
-2
-1
1
2
x
-5
-4
-3
-2
-1
1
2
3
y

Solution

We can see that the graph has a maximum point rather than a minimum point, so there has been a reflection across the x-axis.

The vertex of the graph is at \left(-3, 0\right). This is 3 units to the left of the vertex of y = \left|x\right| and at the same y-value. So there has been a horizontal translation of 3 units to the left, and no vertical translation.

We can also see that the rate of change of the two graphs are different. The slopes of the sides of this function are 2 and -2, while the slopes of y = \left|x\right| are 1 and -1. So there has been a vertical stretch by a factor of 2.

Reflection

For linear and absolute value functions, a changed slope indicates a dilation. In this case, we stated that it was a vertical stretch with a factor of 2, but it could equivalently be thought of as a horizontal compression with a factor of \dfrac{1}{2} (as long as the compression happens before the horizontal translation).

b

Determine an equation for the function shown in the graph

Approach

We can use the transformations that we described in part (a) and apply them to the function y = \left|x\right| to get an equation for the function shown.

Solution

Starting with y = \left|x\right|, we can apply the transformations one at a time:

\displaystyle y\displaystyle =\displaystyle \left|x\right|Parent function
\displaystyle y\displaystyle =\displaystyle -\left|x\right|Reflection across x-axis
\displaystyle y\displaystyle =\displaystyle -2\left|x\right|Vertical stretch by a factor of 2
\displaystyle y\displaystyle =\displaystyle -2\left|x + 3\right|Horizontal translation of 3 units to the left

So the equation of the function is y = -2\left|x + 3\right|.

Reflection

It is important to note that the order of transformations matters in some cases. For example, applying a vertical translation and then a reflection across the x-axis will be different to reflecting first and then applying the same vertical translation.

In this case, the transformations of a vertical stretch, a reflection across the x-axis, and a horizontal translation are all independant and can be applied in any order.

Outcomes

MA.912.AR.4.4

Solve and graph mathematical and real-world problems that are modeled with absolute value functions. Interpret key features and determine constraints in terms of the context.

What is Mathspace

About Mathspace