From the free course College Algebra on Lykke

3.6 Absolute Value Functions

Key concepts: Graphing absolute value functions · Transformations of the parent function y = |x| · Vertex (corner point) of a V-shaped graph · Vertical stretches and horizontal/vertical shifts · Solving absolute value equations · Finding horizontal intercepts · Using the ± cases when removing an absolute value · Applying absolute value functions to distance and ranges

Absolute value measures distance from zero, so the numbers $5$ and $-5$ have the same absolute value: both are $5$ units from $0$. This “distance without direction” creates a graph with two matching sides, meeting at a sharp corner rather than forming a smooth curve.

3.6 Absolute Value Functions

Absolute value measures distance from zero, so the numbers $5$ and $-5$ have the same absolute value: both are $5$ units from $0$. This “distance without direction” creates a graph with two matching sides, meeting at a sharp corner rather than forming a smooth curve.

Understanding the Absolute Value Function

The absolute value of a real number $x$, written $|x|$, is its distance from $0$ on the number line. Because distance cannot be negative,

$$ |x| \geq 0. $$

Algebraically,

$$ |x|= \begin{cases} x, & x\geq 0,\ -x, & x<0. \end{cases} $$

For example,

$$ |7|=7 $$

because $7$ is $7$ units from $0$, and

$$ |-7|=-(-7)=7 $$

because $-7$ is also $7$ units from $0$.

The parent absolute value function is

$$ f(x)=|x|. $$

Its domain is all real numbers, and its range is

$$ [0,\infty). $$

The graph resembles the letter $V$. The two line segments meet at the vertex, or corner point, $(0,0)$. The graph decreases as $x$ moves toward $0$ from the left and increases as $x$ moves away from $0$ to the right.

A short table shows the symmetry:

$$ \begin{array}{c|ccccc} x & -2 & -1 & 0 & 1 & 2\ \hline f(x)=|x| & 2 & 1 & 0 & 1 & 2 \end{array} $$

The outputs for opposite inputs are equal:

$$ |-x|=|x|. $$

This is why the graph is symmetric about the $y$-axis.

Transformations and the Vertex

A transformed absolute value function is commonly written in the form

$$ f(x)=a|x-h|+k. $$

Each parameter has a visible geometric meaning:

  • $h$ moves the graph horizontally, so the vertex has $x$-coordinate $h$.
  • $k$ moves the graph vertically, so the vertex has $y$-coordinate $k$.
  • $|a|$ determines the vertical stretch or compression.
  • If $a<0$, the graph is reflected across the $x$-axis.

Therefore, the vertex is

$$ (h,k). $$

The expression inside the absolute value is zero at $x=h$, and that is exactly where the two arms meet.

Key form: For $f(x)=a|x-h|+k$, the vertex is $(h,k)$.

Graphing from the equation

To graph

$$ f(x)=a|x-h|+k, $$

first plot the vertex $(h,k)$. Then use the parent graph’s pattern, adjusted by $a$. From the vertex, moving $1$ unit horizontally changes the output by $|a|$ units; moving $2$ units horizontally changes the output by $2|a|$ units.

If $a>0$, the graph opens upward. If $a<0$, it opens downward.

Worked example: Graphing a transformed absolute value function

Graph

$$ f(x)=2|x-3|+4. $$

The expression $x-3$ indicates a shift right by $3$ units, and the $+4$ indicates a shift up by $4$ units. Thus,

$$ h=3, \qquad k=4. $$

The vertex is

$$ (3,4). $$

The coefficient is $a=2$, so the graph is vertically stretched by a factor of $2$. Starting from the vertex:

$$ \begin{aligned} x&=3+1=4, & f(4)&=2|4-3|+4\ &&&=2|1|+4\ &&&=2(1)+4\ &&&=6, \end{aligned} $$

so $(4,6)$ is on the graph.

Moving one unit left gives

$$ \begin{aligned} x&=3-1=2, & f(2)&=2|2-3|+4\ &&&=2|-1|+4\ &&&=2(1)+4\ &&&=6, \end{aligned} $$

so $(2,6)$ is also on the graph.

Moving two units from the vertex gives

$$ \begin{aligned} f(5)&=2|5-3|+4\ &=2|2|+4\ &=4+4\ &=8, \end{aligned} $$

and similarly,

$$ f(1)=2|1-3|+4=2|-2|+4=4+4=8. $$

Plot $(3,4)$, $(2,6)$, $(4,6)$, $(1,8)$, and $(5,8)$, then connect the points with straight line segments. The graph is a $V$ opening upward, with vertex $(3,4)$.

The phrase “vertically stretched by a factor of $2$” means that the outputs of the basic graph are multiplied by $2$. It does not mean that the graph is stretched horizontally. In fact,

$$ 2|x-3|=|2(x-3)|. $$

Because $2|x-3|=|2(x-3)|$, the same graph can also be viewed as a horizontal compression by a factor of $1/2$ about $x=3$. The vertical description is usually clearest because the coefficient outside the absolute value directly multiplies the output.

More generally, multiplying the output by $|a|$ creates a vertical stretch when $|a|>1$ and a vertical compression when $0<|a|<1$. Multiplying the input by $b$ produces a horizontal compression by $1/|b|$ when $|b|>1$, or a horizontal stretch by $|b|$ when $0<|b|<1$. These are different descriptions of how input and output scaling work, so the position of the coefficient matters.

Writing an equation from a graph

If a graph has a $V$-shape, begin with

$$ f(x)=a|x-h|+k. $$

Read the vertex $(h,k)$ from the graph to determine $h$ and $k$. Then use another point on the graph to find $a$.

Worked example: Finding an equation from a graph

Suppose a graph has vertex $(3,1)$ and passes through $(1,5)$. Since the vertex is $(h,k)=(3,1)$, begin with

$$ f(x)=a|x-3|+1. $$

Substitute the point $(1,5)$:

$$ 5=a|1-3|+1. $$

Simplify inside the absolute value:

$$ 5=a|-2|+1. $$

Since $|-2|=2$,

$$ 5=2a+1. $$

Subtract $1$ from both sides:

$$ 4=2a. $$

Divide by $2$:

$$ a=2. $$

Therefore, the equation is

$$ \boxed{f(x)=2|x-3|+1}. $$

The positive value of $a$ confirms that the graph opens upward.

Solving Absolute Value Equations

An absolute value equation asks when a distance has a specified value. For example,

$$ |x|=4 $$

has two solutions because both $4$ and $-4$ are $4$ units from $0$:

$$ x=4 \qquad\text{or}\qquad x=-4. $$

The central rule is

$$ |A|=B \quad\Longrightarrow\quad A=B \quad\text{or}\quad A=-B, $$

provided that $B\geq 0$.

Absolute value equation rule: First isolate the absolute value term. Then set the expression inside the absolute value equal to the positive and negative of the other side.

The standard procedure is:

  1. Isolate the absolute value expression.
  2. Check the sign of the isolated right-hand side.
  3. If it is positive, create two equations by using both signs.
  4. Solve both equations.
  5. Check the solutions in the original equation.

If the isolated absolute value equals $0$, there is one solution. If it equals a negative number, there are no real solutions because an absolute value cannot be negative.

Worked example: An equation with two solutions

Solve

$$ 3|2x-1|+5=20. $$

First subtract $5$ from both sides:

$$ 3|2x-1|=15. $$

Divide both sides by $3$:

$$ |2x-1|=5. $$

Now use the positive and negative cases:

$$ 2x-1=5 \qquad\text{or}\qquad 2x-1=-5. $$

Solve the first equation:

$$ \begin{aligned} 2x-1&=5\ 2x&=6\ x&=3. \end{aligned} $$

Solve the second equation:

$$ \begin{aligned} 2x-1&=-5\ 2x&=-4\ x&=-2. \end{aligned} $$

Thus,

$$ \boxed{x=3\text{ or }x=-2}. $$

Check:

$$ 3|2(3)-1|+5=3|5|+5=15+5=20, $$

and

$$ 3|2(-2)-1|+5=3|-5|+5=15+5=20. $$

Both solutions work.

Worked example: An equation with one solution

Solve

$$ |4x+8|=0. $$

An absolute value equals zero only when its inside expression equals zero:

$$ 4x+8=0. $$

Subtract $8$:

$$ 4x=-8. $$

Divide by $4$:

$$ x=-2. $$

Therefore,

$$ \boxed{x=-2}. $$

There is only one solution because $0$ has only one distance from $0$.

Worked example: An equation with no solution

Solve

$$ 2|x-4|+1=-3. $$

$$ 2|x-4|=-4. $$

Divide by $2$:

$$ |x-4|=-2. $$

This is impossible because

$$ |x-4|\geq 0 $$

for every real number $x$. Therefore,

$$ \boxed{\text{no real solution}}. $$

A common mistake is to continue by setting $x-4=2$ and $x-4=-2$. That rule applies only after the absolute value has been isolated to a nonnegative number.

Finding Horizontal Intercepts

A horizontal intercept, also called an $x$-intercept or zero, occurs where the graph crosses or touches the $x$-axis. Since every point on the $x$-axis has $y=0$, find horizontal intercepts by setting the function equal to zero and solving the resulting absolute value equation.

For

$$ f(x)=a|x-h|+k, $$

the horizontal intercepts satisfy

$$ a|x-h|+k=0. $$

Worked example: Finding the horizontal intercepts

Find the horizontal intercepts of

$$ f(x)=2|x-3|-4. $$

Set the function equal to zero:

$$ 2|x-3|-4=0. $$

Add $4$ to both sides:

$$ 2|x-3|=4. $$

Divide by $2$:

$$ |x-3|=2. $$

Use the two cases:

$$ x-3=2 \qquad\text{or}\qquad x-3=-2. $$

Solve:

$$ \begin{aligned} x-3&=2\ x&=5, \end{aligned} \qquad \begin{aligned} x-3&=-2\ x&=1. \end{aligned} $$

The horizontal intercepts are

$$ \boxed{(5,0)\text{ and }(1,0)}. $$

The vertex is $(3,-4)$, which lies below the $x$-axis, so an upward-opening graph can cross the axis twice. This agrees with the two solutions.

The graph also lets you predict the number of horizontal intercepts. An upward-opening graph with vertex above the $x$-axis has no horizontal intercepts; one with vertex on the axis has one; and one with vertex below the axis may have two. Algebraically, the same conclusion appears when the isolated absolute value is negative, zero, or positive.

Practice Problems

  1. Graph

$$ f(x)=-|x+2|+3. $$

Identify the vertex and the direction in which the graph opens.

  1. Solve

$$ 5|x-1|-10=0. $$

  1. Find the horizontal intercepts of

$$ f(x)=3|x+2|+6. $$

Answers

  1. The vertex is

$$ (-2,3). $$

Since $a=-1$, the graph opens downward.

$$ \begin{aligned} 5|x-1|-10&=0\ 5|x-1|&=10\ |x-1|&=2. \end{aligned} $$

Thus,

$$ x-1=2 \quad\text{or}\quad x-1=-2, $$

so

$$ \boxed{x=3\text{ or }x=-1}. $$

  1. Set the function equal to zero:

$$ 3|x+2|+6=0. $$

Then

$$ 3|x+2|=-6, $$

so

$$ |x+2|=-2. $$

Because an absolute value cannot equal a negative number, there are no horizontal intercepts:

$$ \boxed{\text{no horizontal intercepts}}. $$

Content adapted from OpenStax College Algebra 2e by Jay Abramson et al., licensed CC BY 4.0.

3.6 Absolute Value Functions - College Algebra - image 1
3.6 Absolute Value Functions - College Algebra - image 1

Source Materials

Study College Algebra on Lykke

This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.

Add the free extensionSign in to open every section

All sections of College Algebra · Browse more course pages

3.6 Absolute Value Functions — College Algebra | Lykke