2.5.2Number Theory (Intermediate)

Integers — operations, number line, absolute value

3,192 words15 min readdifficulty · medium

What Are Integers?

Why integers matter: Natural numbers {1,2,3,}\{1,2,3,\ldots\} can't handle subtraction like 353- 5. Integers complete the system so every subtraction has answer.


The Number Line

Key features:

  • Origin: 0 is the center
  • Direction: Right = positive, Left = negative
  • Distance: Steps between points
  • Ordering: a<ba < b means "aa is left of bb"

Operations on Integers

Addition

Rule from movement:

  • Adding a positive number → move right
  • Adding a negative number → move left

Why this step? Each "move left by 5" is exactly what adding 5-5 means. The number line makes the rule visual.

Derivation of sign rules:

  • Same signs: If both positive or both negative, add magnitudes and keep the sign.
    Why? Moving in the same direction accumulates distance.
    (a)+(b)=(a+b)both move left(-a) + (-b) = -(a + b) \quad \text{both move left}

  • Opposite signs: Subtract the smaller magnitude from the larger, take the sign of the larger. If the magnitudes are equal, the result is 0.
    Why? One movement cancels part of the other. The "winner" determines the final side; a tie lands you exactly at 0.
    a+(b)={abif a>b0if a=b(ba)if b>aa + (-b) = \begin{cases} a - b & \text{if } a > b \\ 0 & \text{if } a = b \\ -(b - a) & \text{if } b > a \end{cases}


Subtraction

Rewrite as addition: ab=a+(b)a - b = a + (-b)

Why? Subtracting is the same as adding the opposite. "Take away 5" = "add negative 5" (move left 5).

Why this step? Converting to addition lets us use the single addition rule. "Subtracting a negative" becomes "adding a positive" because (6)=6-(-6) = 6.


Multiplication

Rule from repeated addition: a×b=a+a++ab times(if b>0)a \times b = \underbrace{a + a + \cdots + a}_{b \text{ times}} \quad \text{(if } b > 0\text{)}

Sign rules:

  • (+) × (+) = (+): Adding positives stays positive
  • (+) × (−) = (−): Adding negatives (opposite direction) gives negative
  • (−) × (+) = (−): Same as above (commutative)
  • (−) × (−) = (+): WHY? Think of "taking away debt". If you remove 3 debts of $5 each, you gain $15.

Formal derivation of ()×()=(+)(-) \times (-) = (+):

Start with the additive inverse property: a+(a)=0a + (-a) = 0 for any aa.

Let a=3a = 3 and b=5b = 5: 3×5+3×(5)=3×(5+(5))=3×0=03 \times 5 + 3 \times (-5) = 3 \times (5 + (-5)) = 3 \times 0 = 0 So 3×(5)=153 \times (-5) = -15 (the additive inverse of 1515).

Now consider (3)×5(-3) \times 5: (3)×5+3×5=((3)+3)×5=0×5=0(-3) \times 5 + 3 \times 5 = ((-3) + 3) \times 5 = 0 \times 5 = 0 So (3)×5=15(-3) \times 5 = -15.

Finally, (3)×(5)(-3) \times (-5). Add (3)×5(-3) \times 5 to it and factor out the common (3)(-3): (3)×(5)+(3)×5=(3)×((5)+5)=(3)×0=0(-3) \times (-5) + (-3) \times 5 = (-3) \times ((-5) + 5) = (-3) \times 0 = 0 Since (3)×5=15(-3) \times 5 = -15, substitute: (3)×(5)+(15)=0    (3)×(5)=15(-3) \times (-5) + (-15) = 0 \implies (-3) \times (-5) = 15

Why this step? We used the distributive property (factoring out (3)(-3)) and the fact that any number times zero is zero. The negative-negative case is forced to be positive to keep the sum equal to 00.


Division

Rule: a÷b=a×1ba \div b = a \times \frac{1}{b} (multiply by reciprocal)

Sign rules (same as multiplication):

  • (+)÷(+)=(+)(+) \div (+) = (+)
  • (+)÷()=()(+) \div (-) = (-)
  • ()÷(+)=()(-) \div (+) = (-)
  • ()÷()=(+)(-) \div (-) = (+)

Why this step? Division undoes multiplication. If (4)×(5)=20(-4) \times (-5) = 20, then 20÷(4)=520 \div (-4) = -5 and 20÷(5)=420 \div (-5) = -4 must hold.

Critical: Division by zero is undefined. Why? No number xx satisfies 0×x=50 \times x = 5.


Absolute Value

Why this definition? Distance is always non-negative. If aa is already positive or zero, a=a|a| = a. If aa is negative, we flip the sign to get the positive distance: 5=(5)=5|-5| = -(-5) = 5.

Deriving the triangle inequality:

Geometric intuition: If you walk a|a| steps, then b|b| steps, you travel at most a+b|a| + |b| total. If some steps backtrack, your final distance from start is less.

Algebraic proof (clean version):

A useful fact for any real xx: xxx-|x| \le x \le |x| (a number is squeezed between the negative and positive of its own magnitude).

Apply this to aa and bb: aaa,bbb-|a| \le a \le |a|, \qquad -|b| \le b \le |b|

Add the two chains of inequalities term by term: (a+b)a+ba+b-\left(|a| + |b|\right) \le a + b \le |a| + |b|

This says a+ba + b lies between (a+b)-(|a|+|b|) and +(a+b)+(|a|+|b|). By definition of absolute value, "xx lies between M-M and MM" is exactly "xM|x| \le M". Therefore: a+ba+b|a + b| \le |a| + |b| \qquad \blacksquare

Why this step? The key is that a+b|a+b| measures how far a+ba+b is from zero, and adding the two "squeeze" bounds gives us the largest possible distance. Equality holds only when aa and bb have the same sign (both move in the same direction).


Properties and Laws

Why these matter? They let us rearrange and simplify expressions confidently. For example, 3×(4+5)3 \times (4 + 5) can be computed as 3×4+3×53 \times 4 + 3 \times 5 (distributive), which is easier.


Common Mistakes


Active Recall Practice

Recall Feynman Explanation (for a 12-year-old)

Imagine you're walking along a straight path with a big zero painted in the middle. If you walk to the right, you're going into positive numbers—1, 2, 3. If you walk to the left, you're going into negative numbers—like walking backward: -1, -2, -3. Adding is just walking more steps. If I say "add 5," you walk 5 steps right. If I say "add -5," you walk 5 steps left (because the negative means "the opposite direction").

Subtracting is the same as adding the opposite. "Subtract 5" means "add -5" (walk left 5). "Subtract -5" means "add 5" (walk right 5)—that's why "minus a minus" becomes a plus!

Multiplying is like doing the same walk multiple times. 3 times 4 means "walk right 4 steps, three times" → you end up at 12. But 3 times -4 means "walk left 4 steps, three times" → you end up at -12. And -3 times -4? That's weird: it means "remove 3 groups of walking left 4 steps"—so you actually gain 12 steps to the right. Like erasing debt!

Absolute value is "how many steps away from zero are you?" Doesn't matter if you went left or right. 7|7| is 7 steps, 7|-7| is also 7 steps. It's the distance.

That's all integers are—a number line, some walking, and distance. Once you see it, all the rules make sense!



Connections

  • 2.5.01-Natural-numbers-and-place-value — Integers extend naturals with negatives
  • 2.5.03-Rational-numbers — Next step: integers divided by integers (fractions)
  • 3.2.01-Linear-equations-in-one-variable — Solving ax+b=cax + b = c uses integer operations
  • 4.1.02-Coordinate-plane — Number line becomes 2D: xx and yy axes are integer lines
  • 6.3.01-Vectors-in-2D — Vector addition is like integer addition on each axis
  • 2.1.05-Inequalities — Ordering on the number line: a<ba < b means aa is left of bb

Flashcards

#flashcards/maths

What is the set of integers?
Z={,2,1,0,1,2,}\mathbb{Z} = \{\ldots, -2, -1, 0, 1, 2, \ldots\}, all positive and negative whole numbers plus zero
On the number line, what does adding a negative number mean?
Moving left (in the negative direction)
Why does (3)+(5)=8(-3) + (-5) = -8 not =+8= +8?
Both numbers move left, so distances add in the negative direction; "two negatives make positive" only applies to multiplication/division
Convert subtraction to addition: 7(4)=?7 - (-4) = ?
7(4)=7+4=117 - (-4) = 7 + 4 = 11 (subtracting a negative is adding a positive)
Why is (2)×(3)=+6(-2) \times (-3) = +6?
Removing 2 groups of "3 units of debt" means gaining 6; formally, factoring out (2)(-2) from (2)×(3)+(2)×3=(2)×0=0(-2)\times(-3) + (-2)\times 3 = (-2)\times 0 = 0 forces it to be +6+6
What is a|a| geometrically?
The distance from aa to 0 on the number line (always non-negative)
State the triangle inequality for absolute value
a+ba+b|a + b| \le |a| + |b| (total distance from zero is at most the sum of individual distances)
If a<0a < 0, what is a|a|?
a=a|a| = -a (flip the sign to get the positive distance)
Why is division by zero undefined?
No number xx satisfies 0×x=a0 \times x = a for a0a \ne 0; the operation has no consistent result
What does the distributive law state?
a×(b+c)=a×b+a×ca \times (b + c) = a \times b + a \times c (multiplication distributes over addition)
True or false: a+b=a+b|a + b| = |a| + |b| for all integers
False. Equality holds only when aa and bb have the same sign; otherwise a+b<a+b|a+b| < |a| + |b| (triangle inequality)
Which operation has the identity element 0?
Addition (a+0=aa + 0 = a)
Which operation has the identity element 1?
Multiplication (a×1=aa \times 1 = a)
What is the additive inverse of aa?
a-a (because a+(a)=0a + (-a) = 0)
Why can't you distribute absolute value: a+ba+b|a+b| \ne |a| + |b|?
Absolute value applies to the final result after addition; if aa and bb point in opposite directions, they partially cancel, reducing the distance from zero

Concept Map

cannot handle 3-5

includes

includes

includes

modeled by

origin at

right=positive left=negative

operations become

move right or left

add the opposite

a-b = a+ -b

same or opposite signs

distance from zero

ignores

Natural numbers

Integers Z

Positive integers

Negative integers

Zero

Number line

Direction

Movement

Addition

Subtraction

Sign rules

Absolute value

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, integers ka matlab hai poora whole number universe—jismein positive numbers, zero, aur negative numbers sab shaamil hote hain, jaise {...,2,1,0,1,2,...}\{...,-2,-1,0,1,2,...\}. Iski zaroorat isliye padi kyunki sirf natural numbers (1,2,3...1,2,3...) se hum 353-5 jaisa subtraction handle nahi kar sakte the. Toh negatives add karke maths ka system complete ho gaya, taaki har subtraction ka answer nikal sake. Real life mein bhi yeh kaam aate hain—jaise debt (udhaar), zero se neeche temperature, ya kisi starting point se left ki position dikhaana.

Ab sabse pyaari cheez hai number line—ek horizontal line socho jismein beech mein zero hai, right taraf positive aur left taraf negative. Isse arithmetic ek movement ban jaati hai: positive add karo toh right jao, negative add karo toh left jao. Isi liye 3+(5)3+(-5) ka matlab hai "3 se shuru karo, 5 steps left jao, toh -2 pe pahucho". Subtraction ko toh hum addition mein hi badal dete hain—ab=a+(b)a-b = a+(-b)—yaani "minus karna matlab opposite add karna". Aur absolute value ka matlab bas itna hai ki koi number zero se kitni door hai, direction ki tension nahi.

Sign rules bhi ratne ki cheez nahi hain, samajhne ki hain. Same sign wale add karo toh magnitudes jud jaate hain (dono ek hi direction mein move kar rahe hain). Opposite signs mein ek dusre ko cancel karte hain aur jo bada hai uski taraf answer jaata hai. Aur woh famous rule ki ()×()=(+)(-)\times(-)=(+)—iske peeche logic hai "debt ko hataana": agar tumhaare 3 debts hain 5eachke,aurtumunheremovekardo,tohtumhe5 each ke, aur tum unhe remove kar do, toh tumhe 15 ka fayda ho jaata hai. Yeh intuition pakad lo toh number theory ki poori nemv strong ho jaati hai, kyunki aage har topic inhi basics pe khadi hoti hai.

Go deeper — visual, from zero

Test yourself — Number Theory (Intermediate)

Connections