Academy
MathsVectorsVector Resolution in 3D

Vector Resolution in 3D

Breaking down vectors into i, j, and k components using trigonometry.

Demystifying the 3D Vector

In 2D coordinate geometry, a vector is just the hypotenuse of a right-angled triangle. But when we step into 3D space (x,y,zx, y, z), a vector becomes the main diagonal of a rectangular box.

If we have a vector V=xi^+yj^+zk^\vec{V} = x\hat{i} + y\hat{j} + z\hat{k}, the components xx, yy, and zz are simply the length, width, and height of that box.

1. Magnitude (The Diagonal)

To find the length of the vector (the main diagonal), we apply the Pythagorean theorem in 3D:

V=x2+y2+z2|\vec{V}| = \sqrt{x^2 + y^2 + z^2}

2. Direction Cosines (l,m,nl, m, n)

In 2D, we only need one angle (θ\theta) to define a direction. In 3D, we describe a vector's direction by measuring its angle with all three axes. These are called Direction Angles:

  • α\alpha: Angle with the positive xx-axis.
  • β\beta: Angle with the positive yy-axis.
  • γ\gamma: Angle with the positive zz-axis.

If we take the cosine of these angles, we get the Direction Cosines (l,m,nl, m, n). Geometrically, these are just the ratios of the box's edges to its main diagonal:

  • l=cosα=xVl = \cos \alpha = \frac{x}{|\vec{V}|}
  • m=cosβ=yVm = \cos \beta = \frac{y}{|\vec{V}|}
  • n=cosγ=zVn = \cos \gamma = \frac{z}{|\vec{V}|}

Because they are tied to the geometry of the box, these cosines share a beautiful and strict relationship:

l2+m2+n2=1l^2 + m^2 + n^2 = 1

Interactive 3D Resolution Lab

Use the sliders below to change the x,y,zx, y, z components of the vector.

Your Task: Watch how the "bounding box" changes shape. Notice what happens to the angle γ\gamma when you set the zz-component to 00.


Sanjib's JEE Insight: A common trap in JEE Advanced is confusing Direction Cosines with Direction Ratios. Direction ratios (a,b,ca, b, c) are any three numbers proportional to the direction cosines. The components of the vector (x,y,zx, y, z) are themselves direction ratios! You only get the true direction cosines when you divide those components by the total magnitude.