Academy

y = |x − a|

Your home is at a on a straight road. However far you walk, left or right, the distance home is never negative.

|x − a| y = abs(x - a)
-5-4-3-2-112345-4-3-2-11234xy|x − a|aPsanjibsikder.com
Drag to move · pinch or scroll to zoom · tap to read a point
distance from x to a2.5
a = 1
t (move P) = 3.5

Step by step

  1. |x − a| is how far x is from a. The dashed segment shows it.
  2. Move P to the right of a: the distance is x − a.
  3. Move P to the left: the distance is a − x, still positive.
  4. So the graph is a V, with its tip at (a, 0) and slopes 1 and −1.
  5. With a = 0 you get y = |x|.

Try this

  • Make the tip at x = −2.
  • Where is |x − 1| = 3? Find both points.
  • Solve |x − 1| < 2 by reading the graph.

Practise this

Problems on Functions with checks, marks and help from Sir are on the exam site (sign in). Practise Functions on the exam site →