# Nakafa Framework: LLM
URL: https://nakafa.com/en/subject/high-school/10/mathematics/vector-operations/two-dimensional-vector
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/10/mathematics/vector-operations/two-dimensional-vector/en.mdx
Output docs content for large language models.
---
import { VectorChart } from "@repo/design-system/components/contents/vector-chart";
import { Vector3d } from "@repo/design-system/components/contents/vector-3d";
import { getColor } from "@repo/design-system/lib/color";
export const metadata = {
  title: "Two-Dimensional Vector",
  description: "Master two-dimensional vectors on coordinate planes. Learn vector components, magnitude calculations, and unit vectors with visual demonstrations.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "04/11/2025",
  subject: "Vector and Operations",
};
## Two-Dimensional Vector Concept
In the Cartesian coordinate system, each point on a plane can be represented by a pair of numbers , where  is the horizontal position and  is the vertical position. The origin point is .
If we draw a straight line from the origin  to another point, for example , we get a **vector**. This vector is often written as . A vector has both **magnitude** (line length) and **direction** (indicated by the arrow).
To simplify, we use **unit vectors**. Unit vectors have a length of 1 unit.
-  is the unit vector in the positive 
  -axis direction (horizontal).
-  is the unit vector in the positive 
  -axis direction (vertical).
Vector  can be expressed as a combination of horizontal movement of  and vertical movement of . In unit vector form, we write:
## Vector Components and Magnitude
The values  and  in vector  are called the vector **components**.
-  is the **horizontal component**. It's like the shadow of
  the vector on the 
  -axis when illuminated from above.
-  is the **vertical component**. It's like the shadow of
  the vector on the 
  -axis when illuminated from the side.
A vector with these two components is called a **two-dimensional vector**.
The **length** or **magnitude** of vector , written as , is the distance from the origin point  to the endpoint . If  is the endpoint of the vector and  is the projection of point Q onto the -axis, we can calculate it using the Pythagorean theorem on the right-angled triangle :
## Two-Dimensional Vector Visualization
Observe the following vector visualization to understand the concept of vectors in the Cartesian plane:
      Visualization of vector{" "}
      
      in the Cartesian coordinate system
    >
  }
  vectors={[
    {
      from: [0, 0, 0],
      to: [4, 3, 0],
      color: getColor("LIME"),
      label: "Vector OQ",
    },
    {
      from: [0, 0, 0],
      to: [4, 0, 0],
      color: getColor("TEAL"),
      label: "X Component",
    },
    {
      from: [0, 0, 0],
      to: [0, 3, 0],
      color: getColor("YELLOW"),
      label: "Y Component",
    },
  ]}
/>
In this visualization, we don't use the -axis because we're working in a two-dimensional plane.
In the visualization above:
- Vector  (light green) has initial point  and endpoint 
- The -component (light blue) is the projection of vector  on the -axis, which is 
- The -component (yellow) is the projection of vector  on the -axis, which is 
- The magnitude of the vector