absolutevalues
absolutevalues
Absolute values
Jackie Nicholas
Jacquie Hargreaves
Janet Hunter
2006
c University of Sydney
Mathematics Learning Centre, University of Sydney 1
|–2|=2 |4|=4
–2 0 4
| a – x | = |x – a |
a x
From this definition we can graph the function by taking each part separately. The graph
of y = |x| is given below.
y
2
x
–2 –1 0 1 2
Example
Solution
For y = |x − 2| we have
⎧
⎪
⎨ +(x − 2) when x − 2 ≥ 0 or x≥2
y=
⎪
⎩ −(x − 2) when x − 2 < 0 or x<2
That is,
⎧
⎪
⎨ x−2 for x ≥ 2
y=
⎪
⎩ −x + 2 for x < 2
y
2
1
y = –x + 2 x < 2 y=x–2 x≥2
x
0 1 2 3 4
We could have sketched this graph by first of all sketching the graph of y = x − 2 and
then reflecting the negative part in the x-axis.
Example
Solution
Example
Solution
We know that the values x = 12 and x = 4 are important x values here, so we will use
them to divide the x axis into three sections and will consider them in turn.
Case 1. For x < 12 , |x − 4| = −(x − 4) = |2x − 1| = −(2x − 1), so −x + 4 = −2x + 1.
Therefore, x = −3.
Case 2. For 1
2
≤ x < 4, |x − 4| = −(x − 4) = |2x − 1| = 2x − 1, so −x + 4 = 2x − 1.
Therefore, x = 53 .
Case 3. For x ≥ 4, |x − 4| = x − 4 = |2x − 1| = 2x − 1, so x − 4 = 2x − 1.
Therefore, x = −3, but this does not satisfy the assumption x ≥ 4 so this case does not
give us a solution.
The solutions are x = −3 and x = 53 .