Absolute Value Functions
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 investigate absolute value functions.
Understanding absolute value
Recall that in its basic form , 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.
Absolute value function. The absolute value function can be defined as a piecewise function
Example. Describe all values within or including a distance of 4 from the number 5.
Solution. We want the distance between and 5 to be less than or equal to 4. We can draw a number line, such as the one below, to represent the condition to be satisfied: four units in each direction from 5.
The distance from to 5 can be represented using the absolute value as . We want the values of that satisfy the condition .
Note that
So is equivalent to . However, mathematicians generally prefer absolute value notation.
Describe all values within a distance of 3 from the number 2.
The distance between and 2 is ; "within 3" bounds that distance.Example. 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 , , or .
Suppose we have a resistor rated at 680 ohms, . Use the absolute value function to express the range of possible values of the actual resistance.
Solution. 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 in ohms,
Students who score within 20 points of 80 will pass a test. Write this as a distance from 80 using absolute value notation, with for the passing score.
Subtract the reference value inside the bars, and bound the result by the allowed spread.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 below.
The next graph shows drawn solid, with the toolkit function dashed for comparison. The graph of 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 for this transformed function.
Example. Write an equation for the function graphed below.
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, putting its corner at .
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 below, where the unstretched shape through the same corner is dashed.
From this information we can write the equation
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 -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 and .
Now substituting in the point ,
Write the equation for the absolute value function that is horizontally shifted left 2 units, is vertically reflected, and vertically shifted up 3 units.
Left 2 is an inside ; the reflection is a minus sign outside; up 3 is a outside.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, as the three graphs below show.
(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
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 , we notice that the absolute value will be equal to 8 if the quantity inside the absolute value is 8 or . This leads to two different equations we can solve independently.
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,
How to: given the formula for an absolute value function, find the horizontal intercepts of its graph.
- Isolate the absolute value term.
- Use to write or , assuming .
- Solve for .
Example. For the function , find the values of such that .
Solution.
| Step | Reason |
|---|---|
| Substitute 0 for . | |
| Isolate the absolute value on one side of the equation. | |
| or | Break into two separate equations and solve. |
| or | |
| or |
The function outputs 0 when or , as the graph below confirms.
For the function , find the values of such that . Enter both solutions, separated by a comma.
or Isolate the absolute value, then set the inside equal to and to .Q&A. Should we always expect two answers when solving ?
No. We may find one, two, or even no answers. For example, there is no solution to .
How to: given an absolute value equation, solve it.
- Isolate the absolute value term.
- Use to write or .
- Solve for .
Example. Solve .
Solution. Isolating the absolute value on one side of the equation gives the following.
The absolute value always returns a nonnegative value, so it is impossible for the absolute value to equal a negative value. At this point, we notice that this equation has no solutions.
Q&A. If and were graphed on the same set of axes, would the graphs intersect?
No. The graphs of and would not intersect, as shown below. This confirms, graphically, that the equation has no solution.
The graph of crosses the vertical axis at . Find .
Evaluate the function at .Where does the graph of cross the horizontal axis? Enter both -values, separated by a comma.
and Set the function equal to zero and isolate the absolute value first.Solving an absolute value inequality
Absolute value equations may not always involve equalities. Instead, we may need to solve an equation within a range of values. We would use an absolute value inequality to solve such an equation. An absolute value inequality is an equation of the form
where an expression (and possibly but not usually ) depends on a variable . Solving the inequality means finding the set of all that satisfy the inequality. Usually this set will be an interval or the union of two intervals.
There are two basic approaches to solving absolute value inequalities: graphical and algebraic. The advantage of the graphical approach is we can read the solution by interpreting the graphs of two functions. The advantage of the algebraic approach is it yields solutions that may be difficult to read from the graph.
For example, we know that all numbers within 200 units of 0 may be expressed as
Suppose we want to know all possible returns on an investment if we could earn some amount of money within $200 of $600. We can solve algebraically for the set of values such that the distance between and 600 is less than 200. We represent the distance between and 600 as .
This means our returns would be between $400 and $800.
Sometimes an absolute value inequality problem will be presented to us in terms of a shifted and/or stretched or compressed absolute value function, where we must determine for which values of the input the function’s output will be negative or positive.
How to: given an absolute value inequality of the form for real numbers and where is positive, solve the absolute value inequality algebraically.
- Find boundary points by solving .
- Test intervals created by the boundary points to determine where .
- Write the interval or union of intervals satisfying the inequality in interval, inequality, or set-builder notation.
Example. Solve .
Solution. With both approaches, we will need to know first where the corresponding equality is true. In this case we first will find where . We do this because the absolute value is a function with no breaks, so the only way the function values can switch from being less than 4 to being greater than 4 is by passing through where the values equal 4. Solve .
After determining that the absolute value is equal to 4 at and , we know the graph can change only from being less than 4 to greater than 4 at these values. This divides the number line up into three intervals:
To determine when the function is less than 4, we could choose a value in each interval and see if the output is less than or greater than 4.
| Interval | Test | Less than or greater than 4? | |
|---|---|---|---|
| 0 | Greater than | ||
| 6 | Less than | ||
| 11 | Greater than |
Because is the only interval in which the output at the test value is less than 4, we can conclude that the solution to is , or .
To use a graph, we can sketch the function . To help us see where the outputs are 4, the line could also be sketched.
We can see the following:
- The output values of the absolute value are equal to 4 at and .
- The graph of is below the graph of on . This means the output values of are less than the output values of .
- The absolute value is less than or equal to 4 between these two points, when . In interval notation, this would be the interval .
For absolute value inequalities,
The or symbol may be replaced by or .
So, for this example, we could use this alternative approach.
Solve .
Rewrite without the bars as , then isolate .How to: given an absolute value function, solve for the set of inputs where the output is positive (or negative).
- Set the function equal to zero, and solve for the boundary points of the solution set.
- Use test points or a graph to determine where the function’s output is positive or negative.
Example. Given the function , determine the -values for which the function values are negative.
Solution. We are trying to determine where , which is when . We begin by isolating the absolute value.
Next we solve for the equality .
Now, we can examine the graph of to observe where the output is negative. We will observe where the branches are below the -axis. Notice that it is not even important exactly what the graph looks like, as long as we know that it crosses the horizontal axis at and and that the graph has been reflected vertically.
We observe that the graph of the function is below the -axis left of and right of . This means the function values are negative to the left of the first horizontal intercept at , and negative to the right of the second intercept at . This gives us the solution to the inequality.
In interval notation, this would be .
Solve .
Divide by and reverse the inequality, then read as two separate conditions.Key concepts
- The absolute value function is commonly used to measure distances between points.
- Applied problems, such as ranges of possible values, can also be solved using the absolute value function.
- The graph of the absolute value function resembles a letter V. It has a corner point at which the graph changes direction.
- In an absolute value equation, an unknown variable is the input of an absolute value function.
- If the absolute value of an expression is set equal to a positive number, expect two solutions for the unknown variable.
- An absolute value equation may have one solution, two solutions, or no solutions.
- An absolute value inequality is similar to an absolute value equation but takes the form , , , or . It can be solved by determining the boundaries of the solution set and then testing which segments are in the set.
- Absolute value inequalities can also be solved graphically.
Key terms
absolute value equation — an equation of the form , with ; it will have solutions when or . absolute value inequality — a relationship in the form , , , or .
This section is adapted from Precalculus 2e, Section 1.6: Absolute Value Functions by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated every graph and number line as an accessible inline SVG generated from an explicit formula or point list, drawing the comparison curve dashed where the source distinguishes it by colour; condensed the source’s multi-colour construction diagrams for — one showing the shift and one the width ratio — into a single annotated figure, because monochrome renderings of four overlapping annotated V shapes are unreadable, and likewise showed the four-stage transformation of as the toolkit V against the finished V, with the intermediate stages described in the prose; presented the solution steps and the interval test as Markdown tables; omitted the opening Andromeda Galaxy photograph, the media links, and the end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback, using multiple choice where the answer is an inequality or an interval, which cannot be graded as free-response math.