Source codeVideos

Command Palette

Search for a command to run...

Functions and Their Modeling

Absolute Value Function

Understanding Absolute Value Functions

An absolute value function is a function that produces positive or zero values from any input, regardless of the original sign of the input. Geometrically, absolute value can be understood as the distance of a number from the zero point on the number line.

Mathematical Definition

For any real number xx, the absolute value function is defined as:

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

Components of absolute value functions:

  • The symbol x|x| is read as "absolute value of x"
  • The function result is always non-negative (x0|x| \geq 0)
  • This function is even: x=x|-x| = |x|

Properties of Absolute Value Functions

Absolute value functions have several important properties that need to be understood:

Basic properties:

x0 for all xR|x| \geq 0 \text{ for all } x \in \mathbb{R}
x=x|-x| = |x|
x2=x2|x|^2 = x^2
xy=xy|xy| = |x| \cdot |y|
xy=xy, with y0\left|\frac{x}{y}\right| = \frac{|x|}{|y|}, \text{ with } y \neq 0

Triangle inequality properties:

x+yx+y|x + y| \leq |x| + |y|
xyxy||x| - |y|| \leq |x - y|

Graphs of Absolute Value Functions

The following is a visualization of the basic absolute value function:

Graph of Function f(x)=xf(x) = |x|
The graph shows the characteristic shape of an absolute value function that forms the letter V.

Value table for function f(x)=xf(x) = |x|:

| x | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | | ------------------------ | --- | ---- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | f(x)=xf(x) = | x | | 4 | 3 | 2 | 1 | 0 | 1 | 2 | 3 | 4 |

Transformations of Absolute Value Functions

Absolute value functions can be transformed in various ways:

Vertical Translation

The function f(x)=x+kf(x) = |x| + k shifts the graph upward (if k>0k > 0) or downward (if k<0k < 0).

Vertical Translation
Comparison of f(x)=xf(x) = |x| with g(x)=x+2g(x) = |x| + 2 and h(x)=x2h(x) = |x| - 2.

Horizontal Translation

The function f(x)=xhf(x) = |x - h| shifts the graph to the right (if h>0h > 0) or to the left (if h<0h < 0).

Horizontal Translation
Comparison of f(x)=xf(x) = |x| with g(x)=x3g(x) = |x - 3| and h(x)=x+3h(x) = |x + 3|.

Stretching and Compression

The function f(x)=axf(x) = a|x| changes the slope of the graph:

  • If a>1a > 1: the graph becomes steeper
  • If 0<a<10 < a < 1: the graph becomes gentler
  • If a<0a < 0: the graph is inverted (reflection across the x-axis)

To make it easier to understand, let's look at the following example:

Stretching and Compression
Comparison of f(x)=xf(x) = |x| with g(x)=2xg(x) = 2|x| and h(x)=0.5xh(x) = 0.5|x|.

General Form of Absolute Value Functions

The general form of an absolute value function is:

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

where:

  • aa: stretching/compression factor and reflection
  • hh: horizontal translation
  • kk: vertical translation
  • The vertex is located at (h,k)(h, k)

Transformation table:

ParameterValueEffect on Graph
a>1a > 1Positive > 1Graph becomes steeper
0<a<10 < a < 1Positive < 1Graph becomes gentler
a<0a < 0NegativeGraph is inverted
h>0h > 0PositiveShift to the right
h<0h < 0NegativeShift to the left
k>0k > 0PositiveShift upward
k<0k < 0NegativeShift downward

Absolute Value Equations and Inequalities

Solving absolute value equations:

To solve x=a|x| = a with a0a \geq 0:

x=ax=a or x=a|x| = a \Rightarrow x = a \text{ or } x = -a

Example: Solve x3=5|x - 3| = 5

x3=5|x - 3| = 5
x3=5 or x3=5x - 3 = 5 \text{ or } x - 3 = -5
x=8 or x=2x = 8 \text{ or } x = -2

Solving absolute value inequalities:

For x<a|x| < a with a>0a > 0:

x<aa<x<a|x| < a \Rightarrow -a < x < a

For x>a|x| > a with a>0a > 0:

x>ax<a or x>a|x| > a \Rightarrow x < -a \text{ or } x > a

Exercises

  1. Determine the value of f(x)=2x6f(x) = |2x - 6| for x=1,0,3,5x = -1, 0, 3, 5

  2. Solve the equation 3x+1=7|3x + 1| = 7

  3. Solve the inequality x2<4|x - 2| < 4

  4. Determine the vertex of the function f(x)=2x3+1f(x) = 2|x - 3| + 1

  5. The distance between two cities is 150 km. If city A is located at coordinate -50 km, where is city B located?

Answer Key

  1. Calculating function values for various inputs:

    Substitute each value of x into the function f(x)=2x6f(x) = |2x - 6|:

    f(1)=2(1)6=26=8=8f(-1) = |2(-1) - 6| = |-2 - 6| = |-8| = 8
    f(0)=2(0)6=06=6=6f(0) = |2(0) - 6| = |0 - 6| = |-6| = 6
    f(3)=2(3)6=66=0=0f(3) = |2(3) - 6| = |6 - 6| = |0| = 0
    f(5)=2(5)6=106=4=4f(5) = |2(5) - 6| = |10 - 6| = |4| = 4
  2. Solving absolute value equations:

    For the equation 3x+1=7|3x + 1| = 7, we use the definition of absolute value which produces two possibilities:

    3x+1=7or3x+1=73x + 1 = 7 \quad \text{or} \quad 3x + 1 = -7
    3x=6or3x=83x = 6 \quad \text{or} \quad 3x = -8
    x=2orx=83x = 2 \quad \text{or} \quad x = -\frac{8}{3}
  3. Solving absolute value inequalities:

    For x2<4|x - 2| < 4, we use the property that a<b|a| < b is equivalent to b<a<b-b < a < b:

    4<x2<4-4 < x - 2 < 4
    4+2<x<4+2-4 + 2 < x < 4 + 2
    2<x<6-2 < x < 6

    So the solution set is x(2,6)x \in (-2, 6).

  4. Determining the vertex:

    From the function f(x)=2x3+1f(x) = 2|x - 3| + 1, we can identify the parameters:

    • a=2a = 2 (stretching factor)
    • h=3h = 3 (horizontal translation)
    • k=1k = 1 (vertical translation)

    The vertex is located at (h,k)=(3,1)(h, k) = (3, 1).

  5. Calculating position based on distance:

    Given that the distance between cities A and B is 150 km, with city A at coordinate -50 km. Let city B be at coordinate xBx_B:

    50xB=150|-50 - x_B| = 150
    50xB=150or50xB=150-50 - x_B = 150 \quad \text{or} \quad -50 - x_B = -150
    xB=50150=200orxB=50+150=100x_B = -50 - 150 = -200 \quad \text{or} \quad x_B = -50 + 150 = 100

    So city B can be located at coordinate 100 km or -200 km.