Learning

open
close

Absolute Value Functions

June 21, 2024 | by Bloom Code Studio

Learning Objectives

In this section, you will:

  • Graph an absolute value function.
  • Solve an absolute value equation.
The Milky Way.

Figure 1 Distances in deep space can be measured in all directions. As such, it is useful to consider distance in terms of absolute values. (credit: “s58y”/Flickr)

Until the 1920s, the so-called spiral nebulae were believed to be clouds of dust and gas in our own galaxy, some tens of thousands of light years away. Then, astronomer Edwin Hubble proved that these objects are galaxies in their own right, at distances of millions of light years. Today, astronomers can detect galaxies that are billions of light years away. Distances in the universe can be measured in all directions. As such, it is useful to consider distance as an absolute value function. In this section, we will continue our investigation of absolute value functions.

Understanding Absolute Value

Recall that in its basic form f(x)=|x|,𝑓(𝑥)=|𝑥|, the absolute value function is one of our toolkit functions. The absolute value function is commonly thought of as providing the distance the number is from zero on a number line. Algebraically, for whatever the input value is, the output is the value without regard to sign. Knowing this, we can use absolute value functions to solve some kinds of real-world problems.

ABSOLUTE VALUE FUNCTION

The absolute value function can be defined as a piecewise function

f(x)=|x|={x−xififx≥0x<0𝑓(𝑥)=|𝑥|={𝑥if𝑥≥0−𝑥if𝑥<0

EXAMPLE 1

Using Absolute Value to Determine Resistance

Electrical parts, such as resistors and capacitors, come with specified values of their operating parameters: resistance, capacitance, etc. However, due to imprecision in manufacturing, the actual values of these parameters vary somewhat from piece to piece, even when they are supposed to be the same. The best that manufacturers can do is to try to guarantee that the variations will stay within a specified range, often ±1%,±5%,±1%,±5%, or ±10%.±10%.

Suppose we have a resistor rated at 680 ohms, ±5%.±5%. Use the absolute value function to express the range of possible values of the actual resistance.

Solution

We can find that 5% of 680 ohms is 34 ohms. The absolute value of the difference between the actual and nominal resistance should not exceed the stated variability, so, with the resistance R𝑅 in ohms,

|R−680|≤34|𝑅−680|≤34

TRY IT #1

Students who score within 20 points of 80 will pass a test. Write this as a distance from 80 using absolute value notation.

Graphing an Absolute Value Function

The most significant feature of the absolute value graph is the corner point at which the graph changes direction. This point is shown at the origin in Figure 2.

Graph of an absolute function

Figure 2

Figure 3 shows the graph of y=2|x–3|+4.𝑦=2|𝑥–3|+4. The graph of y=|x|𝑦=|𝑥| has been shifted right 3 units, vertically stretched by a factor of 2, and shifted up 4 units. This means that the corner point is located at (3,4)(3,4) for this transformed function.

Graph of the different types of transformations for an absolute function.

Figure 3

EXAMPLE 2

Writing an Equation for an Absolute Value Function Given a Graph

Write an equation for the function graphed in Figure 4.

Graph of an absolute function.

Figure 4

Solution

The basic absolute value function changes direction at the origin, so this graph has been shifted to the right 3 units and down 2 units from the basic toolkit function. See Figure 5.

Graph of two transformations for an absolute function at (3, -2).

Figure 5

We also notice that the graph appears vertically stretched, because the width of the final graph on a horizontal line is not equal to 2 times the vertical distance from the corner to this line, as it would be for an unstretched absolute value function. Instead, the width is equal to 1 times the vertical distance as shown in Figure 6.

Graph of two transformations for an absolute function at (3, -2) and describes the ratios between the two different transformations.

Figure 6

From this information we can write the equation

f(x)f(x)==2|x−3|−2,|2(x−3)|−2,treating the stretch as avertical stretch,ortreating the stretch as ahorizontal compression.𝑓(𝑥)=2|𝑥−3|−2,treating the stretch as 𝑎vertical stretch,or𝑓(𝑥)=|2(𝑥−3)|−2,treating the stretch as 𝑎horizontal compression.

Analysis

Note that these equations are algebraically equivalent—the stretch for an absolute value function can be written interchangeably as a vertical or horizontal stretch or compression. Note also that if the vertical stretch factor is negative, there is also a reflection about the x-axis.

Q&A

If we couldn’t observe the stretch of the function from the graphs, could we algebraically determine it?

Yes. If we are unable to determine the stretch based on the width of the graph, we can solve for the stretch factor by putting in a known pair of values for x𝑥 and f(x).𝑓(𝑥).

f(x)=a|x−3|−2𝑓(𝑥)=𝑎|𝑥−3|−2

Now substituting in the point (1, 2)

24a===a|1−3|−22a22=𝑎|1−3|−24=2𝑎𝑎=2

TRY IT #2

Write the equation for the absolute value function that is horizontally shifted left 2 units, is vertically reflected, and vertically shifted up 3 units.

Q&A

Do the graphs of absolute value functions always intersect the vertical axis? The horizontal axis?

Yes, they always intersect the vertical axis. The graph of an absolute value function will intersect the vertical axis when the input is zero.

No, they do not always intersect the horizontal axis. The graph may or may not intersect the horizontal axis, depending on how the graph has been shifted and reflected. It is possible for the absolute value function to intersect the horizontal axis at zero, one, or two points (see Figure 7).

Graph of the different types of transformations for an absolute function.

Figure 7 (a) The absolute value function does not intersect the horizontal axis. (b) The absolute value function intersects the horizontal axis at one point. (c) The absolute value function intersects the horizontal axis at two points.

Solving an Absolute Value Equation

In Other Type of Equations, we touched on the concepts of absolute value equations. Now that we understand a little more about their graphs, we can take another look at these types of equations. Now that we can graph an absolute value function, we will learn how to solve an absolute value equation. To solve an equation such as 8=|2x−6|,8=|2𝑥−6|, we notice that the absolute value will be equal to 8 if the quantity inside the absolute value is 8 or -8. This leads to two different equations we can solve independently.

2x−62xx===8147or2x−62xx===−8−2−12𝑥−6=8or2𝑥−6=−82𝑥=142𝑥=−2𝑥=7𝑥=−1

Knowing how to solve problems involving absolute value functions is useful. For example, we may need to identify numbers or points on a line that are at a specified distance from a given reference point.

An absolute value equation is an equation in which the unknown variable appears in absolute value bars. For example,

|x|=4,|2x−1|=3,or|5x+2|−4=9|𝑥|=4,|2𝑥−1|=3,or|5𝑥+2|−4=9

SOLUTIONS TO ABSOLUTE VALUE EQUATIONS

For real numbers A𝐴 and B𝐵 , an equation of the form |A|=B,|𝐴|=𝐵, with B≥0,𝐵≥0, will have solutions when A=B𝐴=𝐵 or A=−B.𝐴=−𝐵. If B<0,𝐵<0, the equation |A|=B|𝐴|=𝐵 has no solution.

HOW TO

Given the formula for an absolute value function, find the horizontal intercepts of its graph.

  1. Isolate the absolute value term.
  2. Use |A|=B|𝐴|=𝐵 to write A=B𝐴=𝐵 or −A=B,−A=𝐵, assuming B>0.𝐵>0.
  3. Solve for x.𝑥.

EXAMPLE 3

Finding the Zeros of an Absolute Value Function

For the function f(x)=|4x+1|−7,𝑓(𝑥)=|4𝑥+1|−7, find the values of x𝑥 such that f(x)=0.𝑓(𝑥)=0.

Solution

0776x=====|4x+1|−7|4x+1|4x+14×64=1.5or−7−8x===4x+14x−84=−2Substitute 0 for f(x).Isolate the absolute value on one side of the equation.Break into two separate equations and solve.0=|4𝑥+1|−7Substitute 0 for 𝑓(𝑥).7=|4𝑥+1|Isolate the absolute value on one side of the equation.7=4𝑥+1or−7=4𝑥+1Break into two separate equations and solve.6=4𝑥−8=4𝑥𝑥=64=1.5𝑥=−84=−2

The function outputs 0 when x=32𝑥=32 or x=−2.𝑥=−2. See Figure 8.

Graph an absolute function with x-intercepts at -2 and 1.5.

Figure 8

TRY IT #3

For the function f(x)=|2x−1|−3,𝑓(𝑥)=|2𝑥−1|−3, find the values of x𝑥 such that f(x)=0.𝑓(𝑥)=0.

Q&A

Should we always expect two answers when solving |A|=B?|𝐴|=𝐵?

No. We may find one, two, or even no answers. For example, there is no solution to 2+|3x−5|=1.

RELATED POSTS

View all

view all