Lesson 1 of 8 · 18 min

Absolute value and its graphs

Use ∣x∣|x| as distance from zero, solve absolute value equations, and sketch y=∣f(x)∣y = |f(x)| and y=f(∣x∣)y = f(|x|) from the graph of y=f(x)y = f(x).

What you will be able to do

  • Use the definition of ∣x∣|x| and read ∣x−a∣|x - a| as the distance between xx and aa.
  • Sketch y=∣x∣y = |x| and transformations such as y=2∣x−1∣−4y = 2|x - 1| - 4.
  • Solve equations such as ∣2x−3∣=5|2x - 3| = 5.
  • Sketch y=∣f(x)∣y = |f(x)| and y=f(∣x∣)y = f(|x|) from the graph of y=f(x)y = f(x), and tell them apart.

Ask how far −3-3 is from 00 and the answer is 33, not −3-3. Distance does not care about direction. The absolute value ∣x∣|x| is exactly that: the distance of xx from zero on the number line. So ∣5∣=5|5| = 5, ∣−5∣=5|-5| = 5 and ∣0∣=0|0| = 0.

That one idea gives you a new function, a new kind of equation, and two new ways to transform any graph.

Definition

Absolute value

∣x∣={x,x≥0−x,x<0|x| = \begin{cases} x, & x \ge 0 \\ -x, & x < 0 \end{cases}

For x<0x < 0, −x-x is positive: ∣−4∣=−(−4)=4|-4| = -(-4) = 4. Also ∣x−a∣|x - a| is the distance between xx and aa, and x2=∣x∣\sqrt{x^2} = |x|.

The graph of y=∣x∣y = |x| is two straight half-lines: y=xy = x to the right of the origin and y=−xy = -x to the left. It is a V with its vertex at the origin, gradient 11 on the right and −1-1 on the left. Transform it exactly as you would any function.

Interactive

Transform the V

The vertex of y=a∣x−h∣+ky = a|x - h| + k is (h,k)(h, k); aa sets the steepness of the two arms and flips the V when negative.

Equations. ∣x∣=5|x| = 5 says "xx is 5 units from 0", so x=5x = 5 or x=−5x = -5. In the same way ∣2x−3∣=5|2x - 3| = 5 means 2x−3=52x - 3 = 5 or 2x−3=−52x - 3 = -5. An equation such as ∣x+1∣=−2|x + 1| = -2 has no solutions, because a distance is never negative.

Solve ∣2x−3∣=5|2x - 3| = 5.

x =

Press Enter or type a comma after each value.

The graph of y=∣f(x)∣y = |f(x)|. The absolute value is applied to the output. Wherever f(x)≥0f(x) \ge 0 nothing changes. Wherever f(x)<0f(x) < 0, the value is made positive, so that part of the graph is reflected in the xx-axis. Nothing is ever below the axis, and the xx-intercepts stay put.

Interactive

Reflect what is below the axis

The faint curve is y=f(x)y = f(x). The part below the xx-axis flips up; the turning point (h,k)(h, k) becomes (h,−k)(h, -k) when k<0k < 0.

The graph of y=f(∣x∣)y = f(|x|). Now the absolute value is applied to the input. For x≥0x \ge 0, ∣x∣=x|x| = x, so the graph is the same as y=f(x)y = f(x). For x<0x < 0, f(∣x∣)=f(−x)f(|x|) = f(-x), which is the right-hand half mirrored. So: delete the left half of y=f(x)y = f(x) and reflect the right half in the yy-axis. The result is always symmetric about the yy-axis (an even function).

Interactive

Mirror the right half

Set hh negative. The turning point of y=f(x)y = f(x) is now left of the axis, so it disappears from y=f(∣x∣)y = f(|x|).

Worked example

Sketch y=∣f(x)∣y = |f(x)| and y=f(∣x∣)y = f(|x|) for f(x)=x2−2x−3f(x) = x^2 - 2x - 3

  • Simple familiar
  • Technology free

Let f(x)=x2−2x−3f(x) = x^2 - 2x - 3. Sketch (a) y=∣f(x)∣y = |f(x)| and (b) y=f(∣x∣)y = f(|x|), labelling all intercepts and turning points.

y=∣f(x)∣y = |f(x)| (solid) and y=f(∣x∣)y = f(|x|) (dashed).

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find the intercepts and turning point of y=f(x)y = f(x) first.

  2. ∣f(x)∣|f(x)|: reflect the parts below the xx-axis up.

  3. f(∣x∣)f(|x|): delete the left half, reflect the right half in the yy-axis.

Watch out for

  • Rounding off the corners where a reflected piece meets the axis.

  • Keeping the original left-hand xx-intercept (−1,0)(-1, 0) on the graph of y=f(∣x∣)y = f(|x|).

y = |f(x)|: absolute value outside

Acts on yy. Reflect the parts below the xx-axis up.

Keeps the xx-intercepts. All outputs are non-negative; the exact range depends on ff.

y = f(|x|): absolute value inside

Acts on xx. Keep the part right of the yy-axis, then mirror it to the left.

Keeps the yy-intercept. Symmetric about the yy-axis.

Let f(x)=x2−4xf(x) = x^2 - 4x. How many solutions does ∣f(x)∣=3|f(x)| = 3 have?

Common mistake

Inside or outside?

∣f(x)∣|f(x)| and f(∣x∣)f(|x|) look alike and behave completely differently. A quick test is the yy-intercept: ∣f(0)∣|f(0)| for the first, f(0)f(0) for the second. If f(0)=−3f(0) = -3, the graph of y=∣f(x)∣y = |f(x)| crosses the yy-axis at 33, but y=f(∣x∣)y = f(|x|) still crosses at −3-3.

Exam tip

Sketching marks

Draw y=f(x)y = f(x) lightly first, then transform it. Label every intercept and turning point with coordinates. Where a reflection meets the axis the graph usually has a sharp corner (a "cusp"); draw it sharp, not rounded.

Summary

  • ∣x∣|x| is the distance of xx from 00; ∣x−a∣|x - a| is the distance between xx and aa.

  • ∣g(x)∣=c|g(x)| = c with c>0c > 0 means g(x)=cg(x) = c or g(x)=−cg(x) = -c; with c<0c < 0 there are no solutions.

  • y=a∣x−h∣+ky = a|x - h| + k is a V with vertex (h,k)(h, k) and arms of gradient ±a\pm a.

  • y=∣f(x)∣y = |f(x)|: reflect everything below the xx-axis up into the upper half.

  • y=f(∣x∣)y = f(|x|): keep the right half of y=f(x)y = f(x) and reflect it in the yy-axis.

Finished the lesson?

Try the 2 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 1 of 80% read

Save your progress with a free account