Absolute value measures distance
Quick review (2 minutes)
Imagine your home at 0 on a straight road.
|x| = x when x ≥ 0; |x| = −x when x < 0. Nonnegative means zero or positive. Opposite means the same distance from zero on the other side: the opposite of −7 is 7. Always |x| ≥ 0, and |x| = 0 exactly when x = 0. A piecewise function chooses one instruction according to the input: use the first line for zero or positive inputs, the second for negative inputs.
Calculate the entire expression inside the bars without changing its individual signs.
If the result is zero or positive, keep it.
If it is negative, use its opposite, the positive number the same distance from zero.
Finish outside operations afterward. A number beside the bars multiplies: 3|x + 2| means 3 × |x + 2|.
Find |−3 − 4| and then −|−3 − 4|.
|−3 − 4| = 7.
−|−3 − 4| = −7.
Making individual numbers positive before finishing the inside changes the problem. In |−3 + 5|, the wrong calculation |3 + 5| gives 8; the correct inside is 2, so the answer is 2. In |2 − 9|, changing subtraction to addition gives 11; the correct inside is −7, so the answer is 7.
Find the one number inside the bars.
Use its distance from zero.
Complete outside multiplication, then outside addition or subtraction.
absolute value
The absolute value of a number is its distance from zero. It keeps the size without the direction, so it is never negative.
distance
Distance tells how far apart two places or numbers are. On a number line, the distance from A to B is |A − B|.
piecewise function
A piecewise function uses different rules for different input regions. Each input follows the rule assigned to its region.
number line
A number line places real numbers in order on a straight line. Larger numbers lie to the right; smaller numbers lie to the left.
input
An input is a value supplied to a function. On its graph, the input is the horizontal coordinate x.
output
An output is the value a function returns for an input. On its graph, the output is the vertical coordinate y = f(x).
zero
A zero of a function is an input where its output is 0. On the graph, that input locates an x-intercept.
absolute value bars
Absolute value bars are the pair of vertical marks around an expression. Compute the expression inside first, then take its distance from zero.
nonnegative
Nonnegative means zero or positive. It excludes every negative number.
opposite
The opposite of a number is equally far from zero on the other side. The opposite of 0 is 0.
expression
An expression is a calculation made of numbers, letters, and operations. It does not by itself claim an equality.
1 In plain words
Imagine your home at 0 on a straight road. You can walk six blocks right to 6 or six blocks left to −6. Your direction changes, but your trip is six blocks long either way. Absolute value asks for that length. The two upright marks in |x| are called absolute value bars. Read |x| aloud as the absolute value of x. They ask for the distance from x to zero on a number line, a road of numbered positions. A distance can be zero if you stay home. It cannot be negative. Finish every operation inside the bars before measuring that distance. Then do the operations outside them.
2 Picture it
Reminder
Reminder: Order of operations, A number beside bars
- Order of operations. Grouping first, multiplication next, addition last: 2|3 − 5| + 1 = 2|−2| + 1 = 2 × 2 + 1 = 5.
- A number beside bars. 3|x + 2| means 3 × |x + 2|, so at x = 0 it is 3 × |2| = 6.
3 Why
To the right of zero, the number already tells you the distance, so |x| = x when x ≥ 0. To the left, the number carries a minus sign for direction. Multiplying that number by −1 reverses its direction and gives its positive length, so |x| = −x when x < 0. For x = −6, −x means −(−6) = 6. The bars do not erase individual signs inside an unfinished calculation. They measure the result of the whole calculation.
4 The rule
when ; when x < 0.
Nonnegative means zero or positive. Opposite means the same distance from zero on the other side: the opposite of is 7. Always , and exactly when . A piecewise function chooses one instruction according to the input: use the first line for zero or positive inputs, the second for negative inputs.
The same idea, five ways
Say the absolute value of x.
Absolute value measures how far x is from zero, without its direction.
- |x|
- |x| = x when x ≥ 0
- |x| = −x when x < 0
- |x| ≥ 0
An address says which side of home; a measuring tape says how far.
The same idea, other ways
A sign says which side of zero you are on. Absolute value counts how many unit gaps separate the destination from zero.
A measuring tape reads the length between two spots. Turning the tape around does not change a six-unit length: |−6| = |6| = 6.
|6| = 6
|0| = 0
A piecewise function selects an instruction using a condition on the input. For x ≥ 0, keep x. For x < 0, use −x. These instructions cover every real input and both give zero or a positive distance.
|x| = x, when x ≥ 0
|x| = −x, when x < 0
The column under −5 shows output 5 because −(−5) = 5. The column under 5 also shows 5. The column under 0 shows 0 because no movement separates zero from itself.
Part 1: Nonnegative input
On the right side of home, your position already says how far you walked. Zero stays zero.
- For x ≥ 0, |x| = x.
- Nonnegative means positive or zero.
Worked example
A positive position and home
Find |4| and |0|.
What it asks. Measure each input's distance from zero.
Show the steps and the answer
The plan. Both inputs are zero or positive, so keep each input.
- Plan. Both inputs are zero or positive, so keep each input.
- Zero uses the first piecewise line.
- Four unit gaps separate 4 from 0.
- .4 is already four units to the right of zero.
- .Zero is no distance from itself.
- |4| = 4.
- |0| = 0.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- The equals bar in x ≥ 0 includes zero in this instruction.
Part 2: Negative input
On the left side of home, your position includes direction. Its opposite gives the length of the trip.
- For x < 0, |x| = −x.
- −x means the opposite of x.
Worked example
The opposite of a negative
Find |−5| using the piecewise rule.
What it asks. Use the correct piecewise instruction to measure the distance of −5 from zero.
Show the steps and the answer
The plan. Test the sign of the input, then replace x in −x with (−5).
- Plan. Test the sign of the input, then replace x in −x with (−5).
- −5 is negative, so use the second line.
- The opposite of a negative is positive.
- , so use .The negative-input instruction applies to positions left of zero.
- .Taking the opposite of the negative input −5 gives positive 5, the length from −5 to zero.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Use parentheses around a negative substituted number.
Part 3: Multipliers and minus signs outside the bars
A sign or number outside the bars waits for the distance to be calculated. Think of measuring a length before doubling it or assigning its opposite. The measured length itself stays nonnegative, even when the completed expression becomes negative.
- 3|x + 2| means 3 × |x + 2|.
- −|u| is the opposite of the completed distance |u|; u here names the inside number.
- Outside multiplication comes before outside addition.
Worked example
A multiplier and an addition outside
Find 2|3 − 5| + 1.
What it asks. Calculate a distance, double it, and then add 1.
Show the steps and the answer
The plan. Follow the grouping from inside outward.
- Plan. Follow the grouping from inside outward.
- 3 − 5 is −2.
- Only the distance is doubled.
- , so .The inside subtraction must finish first.
- , so the expression is .The distance from −2 to zero is 2.
- .Outside multiplication comes before addition.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Underline the entire inside before doing anything outside.
5 How
- Calculate the entire expression inside the bars without changing its individual signs.
- If the result is zero or positive, keep it.
- If it is negative, use its opposite, the positive number the same distance from zero.
- Finish outside operations afterward. A number beside the bars multiplies: 3|x + 2| means 3 × |x + 2|.
Evaluate an expression with absolute value bars
- Find the one number inside the bars.
- Use its distance from zero.
- Complete outside multiplication, then outside addition or subtraction.
6 Worked example
Worked example
Calculate first, measure second
Find |−3 − 4| and then −|−3 − 4|.
What it asks. Find the value of the first expression, then find its opposite in the second expression.
Show the steps and the answer
The plan. Keep the subtraction inside unchanged. Calculate its result, measure the distance, and apply the outside minus sign last.
- Plan. Keep the subtraction inside unchanged. Calculate its result, measure the distance, and apply the outside minus sign last.
- The first minus sign is part of the input −3. The second asks you to subtract 4.
- An outside minus sign acts after the bars.
- .Starting three blocks left and moving four more left puts you at −7.
- .The location −7 is seven blocks from zero.
- .The minus sign outside the bars acts after the distance has been found.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Inside first, distance second, outside last.
- For a piecewise function, test the input against the conditions and use only the instruction it satisfies.
- A distance has size, while its original sign tells direction. Zero is an allowed distance.
7 The trap
Making individual numbers positive before finishing the inside changes the problem. In |−3 + 5|, the wrong calculation |3 + 5| gives 8; the correct inside is 2, so the answer is 2. In |2 − 9|, changing subtraction to addition gives 11; the correct inside is −7, so the answer is 7.