# Introduction to Absolute Value Functions

### LEARNING OBJECTIVES

By the end of this lesson, you will be able to:- Graph an absolute value function.
- Solve an absolute value equation.
- Solve an absolute value inequality.

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 [latex]\displaystyle{f}\left({x}\right)={|x|}\\[/latex], 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.

### A General Note: Absolute Value Function

The absolute value function can be defined as a piecewise function

$latex f(x) = \begin{cases} x ,\ x \geq 0 \\ -x , x < 0\\ \end{cases} $

### Example 1: Determine a Number within a Prescribed Distance

Describe all values [latex]x\\[/latex] within or including a distance of 4 from the number 5.

### Solution

**Figure 2**

We want the distance between [latex]x\\[/latex] and 5 to be less than or equal to 4. We can draw a number line to represent the condition to be satisfied.

The distance from [latex]x\\[/latex] to 5 can be represented using the absolute value as [latex]|x - 5|\\[/latex]. We want the values of [latex]x\\[/latex] that satisfy the condition [latex]|x - 5|\le 4\\[/latex].

### Try It 1

Describe all values [latex]x\\[/latex] within a distance of 3 from the number 2.

Solution### Example 2: Resistance of a Resistor

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 [latex]\displaystyle\text{\pm 1%,}\pm\text{5%,}\\[/latex] or [latex]\displaystyle\pm\text{10%}\\[/latex].

Suppose we have a resistor rated at 680 ohms, [latex]\pm 5%\\[/latex]. 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 [latex]R\\[/latex] in ohms,

### Try It 2

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

Solution## Licenses & Attributions

### CC licensed content, Shared previously

- Precalculus.
**Provided by:**OpenStax**Authored by:**Jay Abramson, et al..**Located at:**https://openstax.org/books/precalculus/pages/1-introduction-to-functions.**License:**CC BY: Attribution.**License terms:**Download For Free at : http://cnx.org/contents/[email protected]..

## Analysis of the Solution

Note that

So [latex]|x - 5|\le 4\\[/latex] is equivalent to [latex]1\le x\le 9\\[/latex].

However, mathematicians generally prefer absolute value notation.