Quarry School

Absolute value measures distance

Subject: MathematicsLeans on: Order of operationsLeans on: A number beside bars
Level 1 · FoundationsAbout 6 min read10 new termsKeystone idea. Later lessons build on this one.
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Imagine your home at 0 on a straight road.

    Rule

    |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.

    Step

    1. Calculate the entire expression inside the bars without changing its individual signs.

    2. If the result is zero or positive, keep it.

    3. If it is negative, use its opposite, the positive number the same distance from zero.

    4. Finish outside operations afterward. A number beside the bars multiplies: 3|x + 2| means 3 × |x + 2|.

    Question

    Find |−3 − 4| and then −|−3 − 4|.

    Answer

    |−3 − 4| = 7.
    −|−3 − 4| = −7.

    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.

    Strategy

    1. Find the one number inside the bars.

    2. Use its distance from zero.

    3. Complete outside multiplication, then outside addition or subtraction.

    Term

    absolute value

    Definition

    The absolute value of a number is its distance from zero. It keeps the size without the direction, so it is never negative.

    Term

    distance

    Definition

    Distance tells how far apart two places or numbers are. On a number line, the distance from A to B is |A − B|.

    Term

    piecewise function

    Definition

    A piecewise function uses different rules for different input regions. Each input follows the rule assigned to its region.

    Term

    number line

    Definition

    A number line places real numbers in order on a straight line. Larger numbers lie to the right; smaller numbers lie to the left.

    Term

    input

    Definition

    An input is a value supplied to a function. On its graph, the input is the horizontal coordinate x.

    Term

    output

    Definition

    An output is the value a function returns for an input. On its graph, the output is the vertical coordinate y = f(x).

    Term

    zero

    Definition

    A zero of a function is an input where its output is 0. On the graph, that input locates an x-intercept.

    Term

    absolute value bars

    Definition

    Absolute value bars are the pair of vertical marks around an expression. Compute the expression inside first, then take its distance from zero.

    Term

    nonnegative

    Definition

    Nonnegative means zero or positive. It excludes every negative number.

    Term

    opposite

    Definition

    The opposite of a number is equally far from zero on the other side. The opposite of 0 is 0.

    Term

    expression

    Definition

    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

    −8−6−4−202−3−4lands on −7
    Two leftward moves end at −7, which is seven units from zero.

    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

    |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.

    The same idea, five ways

    Say it

    Say the absolute value of x.

    Write it

    Absolute value measures how far x is from zero, without its direction.

    In math
    • |x|
    • |x| = x when x ≥ 0
    • |x| = −x when x < 0
    • |x| ≥ 0
    Like

    An address says which side of home; a measuring tape says how far.

    See it
    −404−6lands on −6
    The destination is −6, and its distance from zero is 6.

    The same idea, other ways

    As a walk

    A sign says which side of zero you are on. Absolute value counts how many unit gaps separate the destination from zero.

    −404−6lands on −6
    The destination is −6 and the distance is 6.
    As a measuring tape

    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

    |6| = 6

    |0| = 0

    As two instructions

    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

    With numbers

    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.

    input xoutput |x|−55−22002255↓ evaluate: input given, read the output below it
    The output row records distances, so every output is zero or positive.

    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.
    0[0, ∞)
    Zero and every number to its right use the keep-the-input instruction.

    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.

    −1012345+4lands on 4
    A walk from zero to 4 has length 4.
    1. Plan. Both inputs are zero or positive, so keep each input.
    2. Zero uses the first piecewise line.
    3. Four unit gaps separate 4 from 0.
    1. |4|=4.4 is already four units to the right of zero.
    2. |0|=0.Zero is no distance from itself.
    Answer
    • |4| = 4.
    • |0| = 0.
    Double-check Neither answer is negative, and only the input 0 gives distance 0.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: A distance must be greater than zero.
    You can be at the starting point itself.
    ✓ Instead: |0| = 0, so absolute value is nonnegative, allowing zero.

    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.
    −6−4−20+5lands on 0
    The trip from −5 back to zero has length 5.

    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).

    −6−4−20+5lands on 0
    Five units return you from −5 to zero.
    1. Plan. Test the sign of the input, then replace x in −x with (−5).
    2. −5 is negative, so use the second line.
    3. The opposite of a negative is positive.
    1. x=−5<0, so use −x.The negative-input instruction applies to positions left of zero.
    2. −x=−(−5)=5.Taking the opposite of the negative input −5 gives positive 5, the length from −5 to zero.
    Answer
    |−5|=5.
    Double-check Count the five unit gaps between −5 and 0.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: At x = −5, the formula |x| = −x gives −5.
    Both minus signs must be kept in the substitution.
    ✓ Instead: −x=−(−5)=5.

    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.
    3 − 5 = −2Take distance,multiply by 2, add 1inputoutput5
    The distance is found before the outside arithmetic.

    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.

    −22|input| + 1inputoutput5
    A measured distance 2 produces the final output 5.
    1. Plan. Follow the grouping from inside outward.
    2. 3 − 5 is −2.
    3. Only the distance is doubled.
    1. 3−5=−2, so 2|3−5|+1=2|−2|+1.The inside subtraction must finish first.
    2. |−2|=2, so the expression is 2×2+1.The distance from −2 to zero is 2.
    3. 2×2+1=4+1=5.Outside multiplication comes before addition.
    Answer
    2|3−5|+1=5
    Double-check The inside destination lies two units from zero. Doubling that length gives 4, and adding 1 gives 5.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: 2|3−5|+1=|6−10+1|.
    The outside addition is not part of the measured inside, and the grouping has changed.
    ✓ Instead: 2|3−5|+1=2×2+1=5.

    Tips and tricks

    • Underline the entire inside before doing anything outside.

    5 How

    1. Calculate the entire expression inside the bars without changing its individual signs.
    2. If the result is zero or positive, keep it.
    3. If it is negative, use its opposite, the positive number the same distance from zero.
    4. Finish outside operations afterward. A number beside the bars multiplies: 3|x + 2| means 3 × |x + 2|.

    Evaluate an expression with absolute value bars

    1
    Is the inside result negative?
    YesTake its opposite: |−7| = 7.
    NoKeep it: |4| = 4 and |0| = 0.
    ↓
    2
    Is there an operation outside the bars?
    YesDo it after finding the distance. −|−7| = −7.
    NoThe distance is the answer.
    1. Find the one number inside the bars.
    2. Use its distance from zero.
    3. 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.

    −8−6−4−202−3−4lands on −7
    The inside finishes at −7, seven units from zero.
    1. Plan. Keep the subtraction inside unchanged. Calculate its result, measure the distance, and apply the outside minus sign last.
    2. The first minus sign is part of the input −3. The second asks you to subtract 4.
    3. An outside minus sign acts after the bars.
    1. −3−4=−7.Starting three blocks left and moving four more left puts you at −7.
    2. |−3−4|=|−7|=7.The location −7 is seven blocks from zero.
    3. −|−3−4|=−7.The minus sign outside the bars acts after the distance has been found.
    Answer
    • |−3−4|=7.
    • −|−3−4|=−7.
    Double-check Walking from −7 to 0 takes seven unit steps. The second expression takes the opposite of that length, so its value is −7.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: |−3 + 5| = 8 after making both numbers positive.
    The bars measure the completed sum. −3 + 5 = 2, so changing −3 to 3 changes the sum.
    ✓ Instead: |−3+5|=|2|=2.
    ✗ Not this: −x must be negative.
    The minus sign asks for the opposite of x. If x is negative, its opposite is positive.
    ✓ Instead: For x = −6, −x = −(−6) = 6.

    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.