Skip to content

Subtraction and Difference

Definition

The operation of subtraction x−yx-y of two integers xx and yy is defined as

x−y=x+(−y).x-y=x+(-y).

The result is called the difference between xx and y.y\text{.}


Interpretation

The difference x−yx-y measures how much larger xx is than yy: it answers "what must be added to yy to reach xx?", since y+(x−y)=xy+(x-y)=x. Its sign tells which number is larger, and its absolute value ∣x−y∣|x-y| is the distance between xx and yy on the number line.

Subtraction is defined using addition and negation, x−y=x+(−y)x-y=x+(-y), to ensure algebraic consistency: every property of subtraction follows from the rules of addition. This also explains why subtraction is less well behaved. It is not commutative, since y−x=−(x−y)y-x=-(x-y), and not associative: (5−3)−1=1(5-3)-1=1, but 5−(3−1)=35-(3-1)=3. A minus sign before brackets therefore changes every sign inside, x−(y−z)=x−y+zx-(y-z)=x-y+z. The difference set A∖BA\setminus B uses the same word for removing the elements of BB from AA.


Key Results

  • Subtraction is not commutative.
  • The difference x−yx-y equals x+(−y).x+(-y)\text{.}
  • Subtraction extends addition within the integers.

Examples

  • 5−3=2.5-3=2\text{.}
  • 3−5=−2.3-5=-2\text{.}

Prerequisites

Sources

Last updated: 20 October 2026 03:02