Absolute Value Function: Definition, Method and Examples

MathPublished

Absolute Value Function: Definition, Rules, and Examples

An absolute value function is an algebraic rule where the input variable is placed inside absolute value bars. The fundamental equation is f(x)=∣x∣f(x) = |x|. This produces a non-negative output for every real number input.


The absolute value function produces a non-negative output for every real number input.


Unlike a quadratic function where the graph is a parabola, an absolute function plots as a straight-edged V graph. It consists of two distinct linear segments meeting at a point called the vertex. As one of the foundational types of functions, it provides a model for positive magnitude, distance, and rates of change that abruptly reverse direction.

What is an absolute value function?

An absolute value function is a mathematical relationship that applies the absolute value operation to an independent variable. It is commonly referred to as an absolute function.


Because the operation outputs the positive magnitude of any input, the function transforms negative values into positive values. This means the overall expression will never evaluate to a negative number unless an external negative multiplier is applied.

Read the parent graph

The simplest form, f(x)=∣x∣f(x) = |x|, is known as the parent graph. The vertex is the minimum point on the graph and is located at the origin (0,0)(0,0).


A coordinate plane showing the parent absolute value function y equals the absolute value of x. The graph forms a V shape with its vertex at the origin and symmetrical arms extending upward into the first and second quadrants.


Because the absolute value changes negative inputs into positive outputs while leaving positive inputs unchanged, the function never drops below the xx-axis. This establishes its domain and range: the domain includes all real numbers, and the range includes all non-negative real numbers, y≥0y \geq 0.

Transform a V graph

To analyze more complex variations, apply function transformations using the standard vertex form.

f(x)=a∣x−h∣+kf(x) = a|x - h| + k

  • aa (Vertical Stretch and Reflection): Determines the width and direction. If aa is positive, the graph opens upward. If aa is negative, it reflects across the xx-axis and opens downward. A value of aa further from zero makes the graph steeper.
  • hh (Horizontal Shift): Moves the graph left or right. The shift is opposite to the sign inside the bars. For example, ∣x−3∣|x - 3| shifts right by 33, while ∣x+3∣|x + 3| shifts left by 33.
  • kk (Vertical Shift): Moves the graph up or down.

The coordinates (h,k)(h, k) represent the exact position of the vertex.

A coordinate plane showing a transformed absolute value graph opening downward. The vertex is marked at the coordinates three, four, demonstrating a horizontal shift right and a vertical shift up.

Write a piecewise interpretation

Every absolute value function can be expressed as a piecewise function consisting of two linear equations. The vertex acts as the boundary where the rule changes.


For the parent function f(x)=∣x∣f(x) = |x|:

  • f(x)=xf(x) = x when x≥0x \geq 0
  • f(x)=−xf(x) = -x when x<0x < 0

When graphing f(x)=a∣x−h∣+kf(x) = a|x - h| + k, the split occurs at x=hx = h. The right arm models the behavior when the expression inside the bars is positive or zero, and the left arm models the behavior when the expression is negative.

Connect distance and absolute value

In mathematics, absolute value measures the physical distance between a number and zero on a number line.

A number line demonstrating absolute value as distance. A blue bracket spans from zero to positive four, and a red bracket spans from zero to negative four, both showing a distance of four units.

Because distance cannot be negative, the function always outputs a non-negative result. When evaluating an expression like ∣x−5∣|x - 5|, you are measuring the distance between xx and 55. Both x=2x = 2 and x=8x = 8 return a value of 33, because both inputs are exactly 33 units away from 55.

Worked examples

These examples demonstrate how to extract properties and evaluate absolute value functions.


Example 1: Finding the vertex and direction


Question: Identify the vertex and the opening direction for the function g(x)=−3∣x+4∣−2g(x) = -3|x + 4| - 2.


Method:

  1. Match the given function to the standard form y=a∣x−h∣+ky = a|x - h| + k.
  2. Identify a=−3a = -3. Because aa is negative, the graph opens downward.
  3. Identify h=−4h = -4. The positive sign inside the bars means the shift is to the left.
  4. Identify k=−2k = -2. The shift is downward.

Answer: The vertex is (−4,−2)(-4, -2) and the graph opens downward.


Check: Substitute x=−4x = -4 into the function: −3∣0∣−2=−2-3|0| - 2 = -2. The result matches the yy-coordinate of the vertex.


Example 2: Writing a piecewise function


Question: Write h(x)=∣x−6∣+1h(x) = |x - 6| + 1 as a piecewise function.


Method:

  1. Find the boundary by setting the expression inside the bars to zero: x−6=0x - 6 = 0, so x=6x = 6.
  2. For x≥6x \geq 6, the inside is non-negative. Drop the bars: h(x)=(x−6)+1=x−5h(x) = (x - 6) + 1 = x - 5.
  3. For x<6x < 6, the inside is negative. Multiply it by −1-1: h(x)=−(x−6)+1=−x+6+1=−x+7h(x) = -(x - 6) + 1 = -x + 6 + 1 = -x + 7.

Answer:

h(x)=x−5h(x) = x - 5 for x≥6x \geq 6

h(x)=−x+7h(x) = -x + 7 for x<6x < 6


Check: Test x=4x = 4. Using the original function: ∣4−6∣+1=∣−2∣+1=3|4 - 6| + 1 = |-2| + 1 = 3. Using the piecewise rule for x<6x < 6: −(4)+7=3-(4) + 7 = 3. The results match.


Example 3: Evaluating an absolute value model


Question: A submarine's distance from sea level in meters over time tt in minutes is modeled by d(t)=15∣t−4∣d(t) = 15|t - 4|. What is the submarine's distance at t=1t = 1 minute and t=7t = 7 minutes?


Method:

  1. Substitute t=1t = 1 into the function: d(1)=15∣1−4∣d(1) = 15|1 - 4|.
  2. Simplify the inside: 15∣−3∣15|-3|.
  3. Apply the absolute value: 15(3)=4515(3) = 45.
  4. Substitute t=7t = 7 into the function: d(7)=15∣7−4∣d(7) = 15|7 - 4|.
  5. Simplify the inside: 15∣3∣15|3|.
  6. Apply the absolute value: 15(3)=4515(3) = 45.

Answer: The submarine is 4545 meters from sea level at both times.


Check: The vertex is at t=4t = 4. Because 11 and 77 are both exactly 33 units away from 44, the distances must be identical due to the symmetry of the V graph.

Common mistakes

Recognizing common conceptual errors prevents mistakes when working with equations and graphs.

  • Assuming absolute value preserves the sign of every input: It is incorrect to assume that ∣−x∣=−x|-x| = -x. The function only preserves the sign of non-negative inputs, while forcing negative inputs to become positive.
  • Thinking the graph is a parabola: While both have a vertex and a line of symmetry, the graph is a parabola only for quadratic functions like y=x2y = x^2. An absolute function relies on constant linear rates, creating a straight-edged V shape.
  • Misinterpreting the horizontal shift: In y=∣x+5∣y = |x + 5|, the hh value is −5-5, not 55. This shifts the graph 55 units left, not right.

Frequently asked questions

Here are quick answers to the most common questions about this mathematical concept.


Is an absolute value function even or odd?

The parent graph y=∣x∣y = |x| is an even function because it is symmetrical across the yy-axis, meaning f(−x)=f(x)f(-x) = f(x). Shifted versions are generally not even or odd unless they maintain specific symmetry across the yy-axis or the origin.


Is the function differentiable everywhere?

No. Because the vertex forms a sharp corner, the slope changes instantly. The function is not differentiable at its vertex, though it is fully differentiable everywhere else.


What happens if the multiplier is zero?

If the leading multiplier aa is zero, the equation becomes y=0∣x−h∣+ky = 0|x - h| + k, which simplifies to y=ky = k. This produces a horizontal line, losing the characteristic V shape entirely.

Practice questions

Question

A coordinate plane showing a V-shaped graph opening upward. The vertex is at the coordinates two, one, with a slope of one on the right and negative one on the left.

Which equation represents the graphed absolute value function?

  • y=∣x−2∣+1y = |x - 2| + 1

  • y=∣x+2∣+1y = |x + 2| + 1

  • y=∣x−1∣+2y = |x - 1| + 2

  • y=−∣x−2∣+1y = -|x - 2| + 1

Answer:

y=∣x−2∣+1y = |x - 2| + 1

Question

Which statement about the absolute value function f(x)=∣x∣f(x) = |x| is correct?

  • The graph is a parabola opening upward from the origin.

  • The domain includes all real numbers and the range includes only non-negative numbers.

  • The absolute value preserves the sign of every input placed inside the function.

  • The function represents the signed distance from zero on a coordinate plane.

Answer:

The domain includes all real numbers and the range includes only non-negative numbers.

Question

Evaluate the absolute value expression f(−3)f(-3) for the function f(x)=−2∣x−5∣+4f(x) = -2|x - 5| + 4.

  • −12-12

  • 2020

  • 1212

  • 44

Answer:

−12-12

Question

Identify the vertex of the function y=12∣x+7∣−9y = \dfrac{1}{2}|x + 7| - 9.

  • (−7,−9)(-7, -9)

  • (7,−9)(7, -9)

  • (−7,9)(-7, 9)

  • (7,9)(7, 9)

Answer:

(−7,−9)(-7, -9)

Question

A coordinate plane showing a V-shaped graph opening downward. The vertex is at negative one, three.

What is the piecewise definition of the graphed function y=−∣x+1∣+3y = -|x + 1| + 3?

  • y=−x+2y = -x + 2 for x≥−1x \geq -1, and y=x+4y = x + 4 for x<−1x < -1

  • y=x+2y = x + 2 for x≥−1x \geq -1, and y=−x+4y = -x + 4 for x<−1x < -1

  • y=−x+2y = -x + 2 for x≥1x \geq 1, and y=x+4y = x + 4 for x<1x < 1

  • y=x−2y = x - 2 for x≥−1x \geq -1, and y=−x−4y = -x - 4 for x<−1x < -1

Answer:

y=−x+2y = -x + 2 for x≥−1x \geq -1, and y=x+4y = x + 4 for x<−1x < -1