Vector Subtraction
How It Works
Subtracting one vector from another is the same as adding its opposite: a − b = a + (−b). The vector −b has the same length as b but points the other way.
In components, you subtract matching entries: (a₁ − b₁, a₂ − b₂, …, aₙ − bₙ). Both vectors must have the same number of components.
Implementation
Deeper Look
Place a and b tail to tail. The difference a − b is the arrow that runs from the tip of b to the tip of a — so b + (a − b) = a. Unlike addition, subtraction is not commutative: b − a points the opposite way to a − b, with the same length.
Displacement
If a and b are position vectors of two points, a − b is the displacement from point B to point A, and its length |a − b| is the distance between them.
Relative Velocity
Physics uses subtraction for relative motion: the velocity of A as seen from B is vA − vB.