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)
Drag to move · pinch or scroll to zoom · tap to read a point
distance from x to a2.5
Step by step
- |x − a| is how far x is from a. The dashed segment shows it.
- Move P to the right of a: the distance is x − a.
- Move P to the left: the distance is a − x, still positive.
- So the graph is a V, with its tip at (a, 0) and slopes 1 and −1.
- 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 →