Absolute Value Function — Graph, Properties, Examples

#Algebra
TL;DR
The absolute value function $f(x) = |x|$ outputs the distance of $x$ from zero — always non-negative. Its graph is a V centred at the origin. This article covers the piecewise definition, the V-shape, transformations $f(x) = a|x - h| + k$, three worked examples, and the most common slip in solving absolute-value equations.
BT
Bhanzu TeamLast updated on June 1, 20267 min read

A Function That Forgets the Sign

The absolute value of a number is its distance from zero — and distances are never negative. The absolute value function applies this to every $x$ in the domain, producing a graph that looks like the letter V.

The V-shape is what makes the absolute value function distinctive — it has a kink (a sharp corner) at the vertex. The kink is what makes the function continuous everywhere but non-differentiable at the vertex. Calculus students meet this fact early and revisit it often.

What the Absolute Value Function Is

The absolute value function is defined piecewise:

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

In plain language: when $x$ is non-negative, the function returns $x$ unchanged. When $x$ is negative, the function returns $-x$ (which is positive). The output is never negative.

The domain is all real numbers $\mathbb{R}$; the range is $[0, \infty)$.

Quick facts.

  • Definition: $|x| = x$ if $x \geq 0$; $|x| = -x$ if $x < 0$.

  • Domain: $\mathbb{R}$. Range: $[0, \infty)$.

  • Shape: V, with vertex at $(0, 0)$ for the parent function.

  • Vertex form: $f(x) = a|x - h| + k$ has vertex $(h, k)$.

  • Symmetry: about the $y$-axis (the function is even).

  • Continuity / differentiability: continuous everywhere; not differentiable at the vertex.

  • Grade introduced: CBSE Class 11 (functions); CCSS-M HSF-IF.C.7.b (graph piecewise-defined functions, including step functions and absolute value functions); NCERT Class 11 Chapter 2 — Relations and Functions.

Properties of the Absolute Value Function

1. Always non-negative. $|x| \geq 0$ for every real $x$. The only zero is at $x = 0$.

2. Even function. $|-x| = |x|$. The graph is symmetric about the $y$-axis.

3. Triangle inequality. $|a + b| \leq |a| + |b|$. Adding two numbers can only shorten the resulting distance compared to the sum of individual distances.

4. Multiplicative. $|ab| = |a| \cdot |b|$. The absolute value distributes over multiplication.

5. Reciprocal of non-zero. $|1/a| = 1/|a|$ for $a \neq 0$.

6. Equation with absolute value. $|x| = c$ has solutions $x = c$ or $x = -c$ when $c \geq 0$; no solution when $c < 0$.

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

The general absolute-value function carries four transformation parameters.

  • $a$ — vertical stretch (or compression). $|a| > 1$ makes the V steeper; $|a| < 1$ makes it shallower. $a < 0$ flips the V upside down.

  • $h$ — horizontal shift. The vertex moves to $x = h$.

  • $k$ — vertical shift. The vertex moves to $y = k$.

The vertex is always at $(h, k)$. The V opens upward when $a > 0$, downward when $a < 0$.

Example. $f(x) = -2|x - 1| + 4$: vertex at $(1, 4)$, opens downward, twice as steep as the parent V.

Examples of Absolute Value Function

Quick. Evaluate $|-7|$ and $|5 - 9|$.

$|-7| = 7$. $|5 - 9| = |-4| = 4$.

Final answer: $|-7| = 7$ and $|5 - 9| = 4$.

Standard (Wrong Path First — The Mistake Worth Making Once). Solve $|2x - 3| = 7$.

The wrong path. The rusher writes $2x - 3 = 7$ and solves to get $x = 5$. They submit "$x = 5$" as the answer.

The flaw: the inside of the absolute value, $2x - 3$, could equal $7$ or $-7$ — both give the same absolute value.

The rescue. Split into two cases.

Case 1: $2x - 3 = 7 \implies 2x = 10 \implies x = 5$.

Case 2: $2x - 3 = -7 \implies 2x = -4 \implies x = -2$.

Check both: $|2(5) - 3| = |7| = 7$ ✓ and $|2(-2) - 3| = |-7| = 7$ ✓.

Final answer: $x = 5$ or $x = -2$.

Stretch. Find the vertex and graph $f(x) = -3|x + 2| + 5$.

Rewrite $|x + 2| = |x - (-2)|$. The function is in vertex form $a|x - h| + k$ with $a = -3$, $h = -2$, $k = 5$.

Vertex: $(-2, 5)$.

Opens downward (since $a = -3 < 0$).

Slope of the arms: $\pm 3$ (steeper than parent V).

Two test points: at $x = -1$, $f(-1) = -3|1| + 5 = 2$. At $x = -3$, $f(-3) = -3|{-1}| + 5 = 2$. Symmetric about $x = -2$ ✓.

Final answer: vertex $(-2, 5)$, opening downward, arms with slopes $\pm 3$.

Where the Absolute Value Function Shows Up

The absolute value function captures the idea of distance — and distance is one of the most useful concepts in applied mathematics.

  • Error and tolerance. In engineering, $|x - x_{\text{target}}| < \varepsilon$ defines a tolerance zone.

  • Signal processing. The magnitude of a signal at each moment is its absolute value.

  • Statistics. Mean absolute deviation (MAD) is the average of $|x_i - \bar{x}|$.

  • Programming. The abs() function exists in every programming language because distance computations come up everywhere.

  • Calculus. The absolute value function is the textbook example of a continuous function that is not everywhere differentiable. It is the first counterexample most students meet.

The destination, in every direction: any time you need magnitude without sign, the absolute value function is the move.

Absolute Value Function: Mistakes Students Make Most Often

1. Forgetting the negative case in equations.

Where it slips in: Solving $|x - 3| = 5$ — student writes only $x - 3 = 5$.

Don't do this: Drop the negative-inside case.

The correct way: $|x - 3| = 5 \implies x - 3 = 5$ or $x - 3 = -5$. Always two equations.

2. Distributing absolute value over a sum.

Where it slips in: Writing $|a + b| = |a| + |b|$ in general.

Don't do this: Apply the absolute value to each term separately.

The correct way: $|a + b| \leq |a| + |b|$ — the triangle inequality. Equality only holds when $a$ and $b$ have the same sign.

3. Forgetting that $|x| = -5$ has no solution.

Where it slips in: Student tries to solve $|x - 2| = -3$.

Don't do this: Apply the two-case method to a negative right side.

The correct way: Absolute value is never negative. $|x| = c$ has no solution when $c < 0$. Recognise and stop.

4. Misplacing the vertex of a transformed graph.

Where it slips in: $f(x) = |x + 3|$ — student places the vertex at $(3, 0)$.

Don't do this: Read the sign inside the absolute value directly.

The correct way: Rewrite as $|x - (-3)|$. Vertex at $h = -3$. The sign inside is the opposite of the $x$-coordinate of the vertex.

The real-world version. In 1991 during the Gulf War, the Patriot missile defence system at Dhahran failed to intercept an incoming Scud missile. The Patriot's timing algorithm used a fractional-precision number to track elapsed system time and computed distance (an absolute-value-based quantity) from the radar return.

A small floating-point error in $|x - x_{\text{target}}|$ accumulated over 100 hours of continuous operation, shifting the predicted intercept window by about 0.34 seconds — enough that the missile missed. 28 American soldiers were killed. Absolute-value distance calculations have to be done in well-conditioned arithmetic; the Patriot's failure is the textbook example of what happens when they are not.

The Mathematicians Who Shaped Distance and Magnitude

Augustin-Louis Cauchy (1789–1857, France) introduced rigorous definitions of continuity and the absolute value in his analysis lectures (1821), making explicit the connection between distance and the absolute value function.

Karl Weierstrass (1815–1897, Germany) used $|x|$ in his epsilon-delta proofs of continuity — the absolute value made the notion of "small distance" rigorous.

Hermann Minkowski (1864–1909, Germany) generalised the absolute value to higher dimensions, producing the Minkowski distance and the basis for modern metric spaces.

Conclusion

  • The absolute value function $f(x) = |x|$ returns the distance from zero — always non-negative.

  • Its graph is a V with vertex at the origin (for the parent function).

  • The transformed form $a|x - h| + k$ has vertex at $(h, k)$.

  • The single most common mistake is forgetting the negative-inside case when solving absolute-value equations.

  • The triangle inequality $|a + b| \leq |a| + |b|$ blocks naive distribution.

Quick Self-Check — Try These

  1. Evaluate $|3 - 8|$ and $|-12|$.

  2. Solve $|x + 4| = 9$ (find all values of $x$).

  3. Find the vertex of $f(x) = -|x - 6| + 3$ and describe the graph.

Want a live Bhanzu trainer to walk through more absolute-value problems? Book a free demo class — online globally.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the absolute value function?
The function $f(x) = |x|$ that returns the distance of $x$ from zero. Always non-negative; piecewise defined as $x$ for $x \geq 0$ and $-x$ for $x < 0$.
Is the absolute value function differentiable at $x = 0$?
No. The graph has a sharp corner at the vertex, so the derivative does not exist there. The function is continuous everywhere but differentiable everywhere except at the vertex.
Why is the graph V-shaped?
For $x \geq 0$, the function is the line $y = x$ (slope 1). For $x < 0$, it is the line $y = -x$ (slope $-1$). The two half-lines meet at the origin, producing the V.
How do I solve an absolute-value equation?
Split into two cases: the inside positive and the inside negative. Solve each case separately. Combine the solutions.
Can $|x| = c$ have no solution?
Yes, when $c < 0$. Absolute value is never negative, so no real $x$ satisfies $|x| = -3$.
What is the vertex of $f(x) = a|x - h| + k$?
The vertex is at $(h, k)$. The $a$ controls the steepness and direction (up or down); $h$ shifts the vertex horizontally; $k$ shifts it vertically.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →