Intersection of an absolute-value graph and a line

The absolute-value graph y=xy = |x| is a V shape with a corner at the origin. It joins two half-lines: y=xy = x for x0x \geq 0 and y=xy = -x for x<0x < 0. We find where this y=xy = |x| meets the line y=2y = 2.

Finding the intersections

At an intersection x=2|x| = 2. Two numbers have absolute value 22, namely 22 and 2-2, so x=2,2x = 2, -2. Both give y=2y = 2, so the intersection points are (2,2)(2, 2) and (2,2)(-2, 2).

Removing the absolute value by cases

The standard way to remove an absolute value is to split into cases.

RangeEquation without the absolute valueSolutionFits its range
x0x \geq 0x=2x = 2x=2x = 2yes
x<0x < 0x=2-x = 2x=2x = -2yes

That last check matters: each solution must lie in the range it came from, and a value that falls outside its own range has to be thrown away.

Reading it as a distance

The absolute value is also a distance from the origin. Reading x=2|x| = 2 as asking for the numbers lying 22 away from 00, the number line offers one on the right and one on the left. The two intersections are exactly that left-right symmetry. Saying that y=xy = |x| is even and symmetric about the yy-axis, and saying that the intersections sit symmetrically at x=±2x = \pm 2, are the same statement.

Care when squaring both sides

You may also square both sides, turning x=2|x| = 2 into x2=4x^2 = 4 and hence x=±2x = \pm 2. But squaring discards the sign, so it needs care. The equation x=1|x| = -1 obviously has no solution, since the left side is never negative, yet squaring produces x2=1x^2 = 1 and the false solutions x=±1x = \pm 1. Whenever you square, substitute back into the original equation to check.

Sliding the line up and down

LineNumber of intersectionsIntersections
y=ky = k with k>0k > 022(±k,k)(\pm k, k)
y=0y = 011the origin
y=ky = k with k<0k < 000none

The corner of the V sits at the origin, and that is where the count changes.

As an inequality

An inequality of the form xa<d|x - a| < d describes everything within dd of aa, that is ad<x<a+da - d < x < a + d. Tolerances on a measurement are written this way precisely because the absolute value is a distance. The large dots on the graph are the intersection points (2,2)(2, 2) and (2,2)(-2, 2).