← MATH 141 MathScape 0 MATH141

Absolute Value Functions

13 min read

Jump to a section

Quick Reference

Field Value
Textbook OpenStax Precalculus 2e
Chapter Ch 1: Functions
Section 1.6 Absolute Value Functions
Subsection 1.6 Absolute Value Functions
Pages Page numbers pending faculty verification.
Course MATH141

For lecture, the load-bearing ideas are the piecewise definition (the rule splits at the point where the inside expression is zero), the distance-from-zero meaning of the output, the V shape of the graph and where its corner sits, and the move from a graph to a solution set for an absolute value equation or inequality.


Before You Start: Prerequisite Check

Can you do these? (Click to reveal self-test)

Test yourself on these prerequisite skills:

  1. Absolute value of a number: Find $|{-7}|$ and $|4|$.

    Check

    $|{-7}| = 7$ and $|4| = 4$. Both outputs are the distance from zero, so both are nonnegative.

  2. Absolute value of an expression: If the inside is $x - 3$, what is $|x - 3|$ when $x = 1$?

    Check

    $|1 - 3| = |{-2}| = 2$. The point $x = 1$ sits a distance of $2$ from the point $3$ on the number line.

  3. A shift of a graph: Starting from the graph of $y = |x|$, which direction does the graph of $y = |x| + 2$ move?

    Check

    Up by $2$ units. Adding a constant outside the absolute value raises every output.

If you struggled:


Try This First

A number line runs left and right with zero in the middle. Pick the point at $x = -4$ and the point at $x = 6$. Ignore which side of zero each one is on, and ask only one question: how far is each point from zero?

Before any symbols, answer with the number line in mind.

Check your distances

The point $-4$ is $4$ units from zero. The point $6$ is $6$ units from zero. For the rest: $-1$ gives $1$, the point $0$ gives $0$, $3$ gives $3$, and $-3$ also gives $3$. Notice that $3$ and $-3$ both return $3$. The machine that reports distance from zero throws away the sign, so two inputs on opposite sides of zero produce the same output.

A Function That Reports Distance

A function is a process that takes an input and gives back an output. The absolute value function takes any number and gives back its distance from zero on the number line. That output is never negative, because a distance is never negative.

Watch how the output changes as the input moves. Start at a large negative input and slide it toward zero: the distance shrinks. The output decreases all the way down to $0$ at the input $0$. Keep sliding the input past zero into the positives, and the distance grows again. The output decreases, touches zero, then increases. That single change of direction at the input $0$ is the whole personality of this function, and it is why the graph has a corner instead of a smooth turn.

Prerequisite Hub

Builds on:

Skill Why it is needed
Absolute Value (absolute-value) The function is built on $|x|$, the distance of a number from zero, so reading $|x|$ as a distance must be automatic.
Transformation of Functions (m141-transformation-of-functions) The graph of $y = a\lvert x - h \rvert + k$ is the basic V shifted, stretched, or reflected, so transformation rules are read off the constants.

Unlocks:

Nothing later depends on this yet.

This skillAbsolute Value Functions
Leads tono further branch yet

The Official Definition

Absolute value function:

The absolute value function is defined piecewise as $f(x) = |x|$, equal to $x$ if $x$ is greater than or equal to $0$, and equal to $-x$ if $x$ is less than $0$. It gives the distance of the input from zero on the number line, output without regard to sign.

Source: OpenStax Precalculus 2e, Section 1.6 Absolute Value Functions

Written as a piecewise rule, this is

$$f(x) = |x| = \begin{cases} x & \text{if } x \geq 0, \\ -x & \text{if } x < 0. \end{cases}$$

Read the second piece carefully. When $x$ is negative, the rule outputs $-x$, and $-x$ is positive because the negative of a negative number is positive. So $f(-4) = -(-4) = 4$. The $-x$ piece is not making the answer negative; it is flipping a negative input back up to its positive distance.

Two Representations of the Same Idea

Representation $f(x) = |x|$
Worded process Take any number and report how far it sits from zero, dropping the sign.
Piecewise rule Output $x$ when $x \geq 0$; output $-x$ when $x < 0$.
Table $f(-3) = 3$, $f(-1) = 1$, $f(0) = 0$, $f(2) = 2$, $f(5) = 5$.
Graph A V with its corner at the origin, going up to the left and up to the right.

Translate between these on purpose. Reading down the table, the outputs fall to $0$ and then rise again, which is exactly the V you see on the graph. The corner in the graph is the input where the piecewise rule switches from the $-x$ piece to the $x$ piece.

The V-Shaped Graph

The graph of $f(x) = |x|$ is two straight rays joined at a corner.

        y
        |
   \    |    /
    \   |   /
     \  |  /
      \ | /
       \|/
--------+--------  x
        0

The general absolute value function $f(x) = a\lvert x - h \rvert + k$ is this same V moved and reshaped:

Constant Effect on the V
$h$ Moves the corner left or right to the input $x = h$, where the inside $x - h$ equals zero.
$k$ Moves the corner up or down to the height $y = k$.
$a$ Stretches the V when $\lvert a \rvert > 1$, flattens it when $0 < \lvert a \rvert < 1$.
sign of $a$ A positive $a$ opens the V upward; a negative $a$ reflects it to open downward.

The corner always sits where the inside expression equals zero, that is, at $x = h$. Finding that input is the first move in graphing or solving anything with an absolute value.

Worked Examples

Example 1: Evaluate the Function (Mind the Negative Piece)

Let $f(x) = |x|$. Find $f(6)$, $f(0)$, and $f(-9)$.

Predict first. Each output is a distance from zero, so expect $6$, $0$, and $9$, all nonnegative.

Apply the piecewise rule.

$$f(6) = 6 \quad (\text{since } 6 \geq 0, \text{ use the } x \text{ piece})$$ $$f(0) = 0 \quad (\text{since } 0 \geq 0, \text{ use the } x \text{ piece})$$ $$f(-9) = -(-9) = 9 \quad (\text{since } -9 < 0, \text{ use the } -x \text{ piece})$$

The results $6$, $0$, and $9$ match the prediction. The third output came from the $-x$ piece, which turned the negative input back into its positive distance.

Example 2: Graph a Shifted Absolute Value Function

Graph $g(x) = \lvert x - 2 \rvert + 1$ by locating its corner and one point on each ray.

Find the corner. The inside $x - 2$ equals zero when $x = 2$. At that input, $g(2) = \lvert 0 \rvert + 1 = 1$. The corner is $(2, 1)$.

Build a short table around the corner.

$x$ $x - 2$ $\lvert x - 2 \rvert$ $g(x) = \lvert x - 2 \rvert + 1$
$0$ $-2$ $2$ $3$
$1$ $-1$ $1$ $2$
$2$ $0$ $0$ $1$
$3$ $1$ $1$ $2$
$4$ $2$ $2$ $3$

The table is symmetric about $x = 2$: the values $2$ and $3$ appear on both sides. Plotting these points gives a V opening upward with its corner at $(2, 1)$, the basic V shifted right $2$ and up $1$. The slope is $+1$ to the right of the corner and $-1$ to the left.

Example 3: Solve an Absolute Value Equation

Solve $\lvert x - 5 \rvert = 3$.

Predict first. The equation asks which inputs sit a distance of $3$ from the point $5$ on the number line. Two such points exist, one on each side of $5$, so expect two solutions placed symmetrically around $5$.

Split into the two distance cases. A distance of $3$ from $5$ means the inside expression is either $3$ or $-3$:

$$x - 5 = 3 \quad \text{or} \quad x - 5 = -3.$$

Solve each:

$$x = 8 \quad \text{or} \quad x = 2.$$

Check against the prediction. The points $8$ and $2$ are each exactly $3$ units from $5$ ($8 - 5 = 3$ and $5 - 2 = 3$), matching the two symmetric solutions predicted. Verify in the original equation: $\lvert 8 - 5 \rvert = 3$ and $\lvert 2 - 5 \rvert = \lvert {-3} \rvert = 3$. Both hold.

Example 4: Solve an Absolute Value Inequality

Solve $\lvert x + 1 \rvert \leq 4$.

Read it as distance. The expression $\lvert x + 1 \rvert$ is the distance from $x$ to $-1$ (because $x + 1 = x - (-1)$). The inequality asks for every input within a distance of $4$ from $-1$.

One way to see this: a compound inequality. A distance of at most $4$ means the inside is between $-4$ and $4$:

$$-4 \leq x + 1 \leq 4.$$

Subtract $1$ from all three parts:

$$-5 \leq x \leq 3.$$

Another way to see this: read it off the number line. Start at $-1$ and step $4$ units in each direction. Stepping left reaches $-5$; stepping right reaches $3$. Every point in between is within distance $4$, so the solution is the closed interval from $-5$ to $3$.

Solution: $[-5, 3]$. Both routes agree. Which one do you prefer, and why? The compound inequality is reliable when the algebra is messy; the number-line reading is faster when the distance meaning is clear.

Common Misconceptions

Common misconception

the graph of every absolute value function is the single fixed V through the origin. The basic graph $y = |x|$ does have its corner at the origin, but the constants in $y = a\lvert x - h \rvert + k$ move and reshape it. Treating the graph as one fixed icon hides the corner at $(h, k)$ and the steepness set by $a$. Test it on $g(x) = \lvert x - 2 \rvert + 1$: its corner is at $(2, 1)$, not at the origin, and a student who draws the origin V gets every point wrong. Predict-then-check: before sketching, find where the inside equals zero to locate the corner, then check that the graphed corner sits at that input.

Common misconception

the corner of the V is where the function changes height fastest. The corner is actually the lowest point of an upward V, where the output stops decreasing and starts increasing; the height there is the smallest, not the steepest. Away from the corner the graph climbs at a constant slope (here $+1$ or $-1$), and that slope does not get larger as the graph rises. A point where the V is high is not a point where it is changing fastest; the rate of change has the same size everywhere except at the corner, where the direction of change flips. Predict-then-check: on $f(x) = |x|$, compare the slope from $x = 1$ to $x = 2$ with the slope from $x = 4$ to $x = 5$; both equal $1$, so height and steepness are not the same thing.

Practice Problems

Level 1 Evaluate the Function

Let $f(x) = |x|$. Find $f(11)$, $f(-2)$, and $f(0)$.

Thought Process

Each output is the distance from zero. For a negative input, the $-x$ piece reports the positive distance.

Show Answer

$$f(11) = 11, \qquad f(-2) = -(-2) = 2, \qquad f(0) = 0.$$

Answer: $11$, $2$, and $0$.

Level 2 Locate the Corner

Find the corner (vertex) of the graph of $g(x) = \lvert x + 3 \rvert - 5$.

Thought Process

The corner sits where the inside expression equals zero. Solve $x + 3 = 0$, then evaluate $g$ at that input.

Show Answer

The inside $x + 3$ equals zero when $x = -3$. At that input, $g(-3) = \lvert 0 \rvert - 5 = -5$.

Answer: The corner is $(-3, -5)$.

Level 3 Diagnostic: The Negative Piece

A student evaluates $f(x) = |x|$ at $x = -6$ and writes $f(-6) = -6$, reasoning that the rule says to output $-x$ when $x$ is negative.

Where is the error?

(A) No error. The work is correct.

(B) The student forgot that $-x$ with $x = -6$ equals $-(-6) = 6$, a positive number.

(C) The student should have used the $x$ piece instead, giving $-6$.

(D) The absolute value of a negative number is undefined.

Thought Process

The $-x$ piece does apply when $x < 0$. The question is what $-x$ evaluates to when the input itself is negative.

Show Answer

Answer: (B). The student chose the correct piece but evaluated it wrong. With $x = -6$, the rule gives $-x = -(-6) = 6$.

  • (A) Incorrect: the output should be the positive distance $6$, not $-6$.
  • (B) Correct: $-x$ flips a negative input back to positive, so the output is $6$.
  • (C) Incorrect: the $x$ piece is for $x \geq 0$, which does not apply to $-6$, and it would give the wrong sign anyway.
  • (D) Incorrect: $|{-6}| = 6$ is perfectly defined.

A distance is never negative, so any output of $|x|$ that comes out negative signals an arithmetic slip.

Level 3 Solve an Absolute Value Equation

Solve $\lvert 2x - 1 \rvert = 7$.

Thought Process

A distance of $7$ means the inside expression is either $7$ or $-7$. Set up both cases and solve each linear equation.

Show Answer

Split into two cases:

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

Solve each:

$$2x = 8 \Rightarrow x = 4, \qquad 2x = -6 \Rightarrow x = -3.$$

Check: $\lvert 2(4) - 1 \rvert = \lvert 7 \rvert = 7$ and $\lvert 2(-3) - 1 \rvert = \lvert {-7} \rvert = 7$. Both hold.

Answer: $x = 4$ or $x = -3$.

Level 4 Solve an Absolute Value Inequality

Solve $\lvert x - 4 \rvert > 2$ and write the solution in interval notation.

Thought Process

A “greater than” absolute value inequality asks for inputs farther than $2$ from the point $4$. Those points lie outside the interval near $4$, splitting into two pieces.

Show Answer

The distance from $x$ to $4$ must exceed $2$, so the inside is either greater than $2$ or less than $-2$:

$$x - 4 > 2 \quad \text{or} \quad x - 4 < -2.$$

Solve each:

$$x > 6 \quad \text{or} \quad x < 2.$$

The solutions are the inputs more than $2$ units from $4$: everything below $2$ and everything above $6$.

Answer: $(-\infty, 2) \cup (6, \infty)$.

Level 5 Read a Function From Its Graph

A V-shaped graph opens upward with its corner at $(1, -2)$, and it passes through the point $(3, 2)$. Write a function $f(x) = a\lvert x - h \rvert + k$ whose graph matches, then explain why more than one form of the answer is possible.

Thought Process

The corner gives $h$ and $k$ directly. Then use the extra point $(3, 2)$ to solve for $a$. Check the result against both the corner and the point.

Show Answer

Read the corner. The corner $(1, -2)$ gives $h = 1$ and $k = -2$, so far $f(x) = a\lvert x - 1 \rvert - 2$.

Use the extra point. Substitute $(3, 2)$:

$$2 = a\lvert 3 - 1 \rvert - 2 = a(2) - 2.$$

Solve: $2a - 2 = 2$, so $2a = 4$ and $a = 2$.

Answer: $f(x) = 2\lvert x - 1 \rvert - 2$.

Check: the corner is at $(1, -2)$, and $f(3) = 2\lvert 2 \rvert - 2 = 4 - 2 = 2$, matching the given point.

Why another form is possible. The same graph can be written using a piecewise rule instead of the absolute value form:

$$f(x) = \begin{cases} 2(x - 1) - 2 & \text{if } x \geq 1, \\ -2(x - 1) - 2 & \text{if } x < 1. \end{cases}$$

Both descriptions trace the identical V. The absolute value form is compact; the piecewise form makes the two slopes ($+2$ to the right, $-2$ to the left) explicit. Which form a person prefers depends on whether the next step needs a single tidy expression or the separate slopes. Which do you prefer, and why?

Mastery Checklist

Novice (Level 1-2):

Competent (Level 3-4):

Proficient (Level 5):

Mental Model

The distance reporter with a turning point.

Picture a single sensor sitting at zero on the number line. Hand it any input, and it reports only the distance from itself to that input, never which side the input was on. That is why two opposite inputs share an output and why no output is ever negative.

The turning point is the second half of the picture. As the input slides in from far left, the reported distance shrinks to zero, then grows again as the input moves right. That single change of direction is the corner of the V. Shifting the sensor to the point $h$ and raising the floor to height $k$ moves the corner to $(h, k)$ without changing the V shape, which is exactly what the constants in $a\lvert x - h \rvert + k$ do.


Connections

Looking back:

Looking ahead:

Real-world connections:


Resources

Resource Reference
OpenStax Precalculus 2e, Section 1.6 Absolute Value Functions (primary text) https://openstax.org/books/precalculus-2e/pages/1-6-absolute-value-functions
OpenStax Precalculus 2e, Chapter 1 Key Concepts (review summary) https://openstax.org/books/precalculus-2e/pages/1-key-concepts


Last updated: 2026-06-16