vector subtraction — Definition, Formula & Examples
Vector subtraction is the operation of finding the difference between two vectors by subtracting each corresponding component of the second vector from the first. The result is a new vector that points from the tip of the second vector to the tip of the first.
Given two vectors and in , their difference is defined as . Equivalently, vector subtraction is the addition of and the additive inverse .
Key Formula
Where:
- = The first vector, with components $(a_1, a_2, a_3)$
- = The vector being subtracted, with components $(b_1, b_2, b_3)$
How It Works
To subtract vector from vector , subtract each component of from the matching component of . In 2D, if and , you compute . Geometrically, you can think of it as reversing (flipping its direction) and then adding it to using the triangle or parallelogram rule. The resulting vector points from the tip of to the tip of when both vectors start at the origin.
Worked Example
Problem: Subtract vector b = (7, 2, −1) from vector a = (3, 8, 5).
Step 1: Subtract the x-components.
Step 2: Subtract the y-components.
Step 3: Subtract the z-components.
Answer:
Why It Matters
Vector subtraction is essential in physics for finding relative velocity, displacement between two points, and the direction from one object to another. In computer graphics and game development, subtracting position vectors determines the direction a camera or character should face.
Common Mistakes
Mistake: Subtracting in the wrong order, computing instead of .
Correction: Unlike scalar subtraction, swapping the order reverses the direction of the result. , so always check which vector comes first.
