# Nakafa Framework: LLM
URL: /en/subject/high-school/10/mathematics/vector-operations/vector-subtraction
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/10/mathematics/vector-operations/vector-subtraction/en.mdx
Output docs content for large language models.
---
import { Vector3d } from "@repo/design-system/components/contents/vector-3d";
import { getColor } from "@repo/design-system/lib/color";
export const metadata = {
  title: "Vector Subtraction",
  description: "Master vector subtraction with step-by-step examples, geometric visualization, and real-world applications. Learn algebraic methods and properties.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "04/12/2025",
  subject: "Vector and Operations",
};
## Basic Concept of Vector Subtraction
Vector subtraction is one of the basic operations in vector mathematics. Unlike vector addition that combines two vectors, vector subtraction produces the difference between two vectors. When we subtract vector  from vector , the result is a vector that, when added to , will produce .
Mathematically, vector subtraction is defined as:
This means that subtracting vector  from vector  is equivalent to adding vector  with the negative of vector .
## Geometric Vector Subtraction
Geometrically, vector subtraction  can be depicted by:
1. Drawing vectors  and  with the same initial point.
2. Drawing vector  (vector  with reversed direction).
3. Drawing a vector from the endpoint of  to the endpoint of .
The resulting vector, , can also be obtained by drawing a line from the endpoint of vector  to the endpoint of vector  when both vectors are drawn from the same origin point.
      Vector subtraction  is equivalent to vector{" "}
       added to the negative of vector{" "}
      .
    >
  }
  vectors={[
    {
      from: [0, 0, 0],
      to: [3, 2, 1],
      color: getColor("TEAL"),
      label: "a",
    },
    {
      from: [0, 0, 0],
      to: [1, 2, 2],
      color: getColor("ROSE"),
      label: "b",
    },
    {
      from: [0, 0, 0],
      to: [-1, -2, -2],
      color: getColor("ORANGE"),
      label: "-b",
    },
    {
      from: [0, 0, 0],
      to: [2, 0, -1],
      color: getColor("PINK"),
      label: "a - b",
    },
  ]}
  cameraPosition={[6, 4, 6]}
/>
## Algebraic Vector Subtraction
Vector subtraction can be performed by subtracting corresponding components. Suppose we have two vectors:
  
  
Then vector subtraction  can be calculated as:
For two-dimensional vectors, the equation becomes:
## Example of Vector Subtraction Calculation
Suppose there are two vectors:
  
  
Vector subtraction  is:
While vector subtraction  is:
Note that  in general. In fact, .
      Visualization of vector subtraction{" "}
      .
    >
  }
  vectors={[
    {
      from: [0, 0, 0],
      to: [3, 4, 0],
      color: getColor("TEAL"),
      label: "a",
    },
    {
      from: [0, 0, 0],
      to: [1, 2, 0],
      color: getColor("ROSE"),
      label: "b",
    },
    {
      from: [0, 0, 0],
      to: [2, 2, 0],
      color: getColor("LIME"),
      label: "a - b",
    },
  ]}
  cameraPosition={[8, 6, 8]}
/>
## Applications of Vector Subtraction
Vector subtraction has many applications in real life:
1. **Calculating Displacement**: If  is the final position and  is the initial position, then  is the displacement vector.
2. **Calculating Distance**: In games like Angry Birds, vector subtraction is used to calculate the distance and direction between the bird and the target.
3. **Physics**: Vector subtraction is used to calculate the resultant force in systems with multiple forces.
## Vector Subtraction to Find the Resultant
Vector subtraction can also be used to find the resultant vector. A resultant vector is a vector that represents the combined effect of two or more vectors.
Suppose an object moves from initial position  to final position . The displacement vector of the object is:
This resultant vector shows the direction and distance of the object's displacement.
## Properties of Vector Subtraction
Vector subtraction has several important properties:
1. 
2.  (zero vector)
3. 
4. 
5. 
## Example Problem
A monkey is at position (3, 4) and wants to get a banana located at position (2, 1). Determine the displacement vector of the monkey to reach the banana.
**Solution:**
Monkey's position: 
Banana's position: 
Displacement vector of the monkey to the banana:
Therefore, the monkey needs to move 1 unit in the negative x-axis direction and 3 units in the negative y-axis direction to reach the banana.
The magnitude of the displacement vector can be calculated using the Pythagorean theorem: