Math Lab

Unit Vector of a 2-D Vector

Vector Algebra · Class XII

Scale a vector to length 1 by dividing by its magnitude. Components show the direction cosines.

3
type a value
-55
4
type a value
-55
Live values
  • |a|5
  • â_x (cos α)0.6
  • â_y (cos β)0.8
  • Check: â_x² + â_y²1
Live readout
|a|5
â_x (cos α)0.6
â_y (cos β)0.8
Check: â_x² + â_y²1
a_x3
a_y4

Formulas in this lab

  • |a|
    ax2+ay2\sqrt{a_x^2 + a_y^2}
  • â_x (cos α)
    ax/aa_x/|a|
  • â_y (cos β)
    ay/aa_y/|a|
  • Check: â_x² + â_y²
    =1= 1
Tip: (3,4) has magnitude 5 , unit vector is (0.6, 0.8).

Frequently asked questions

What is a unit vector?

A unit vector $\hat{a}$ has magnitude $1$ and points in the direction of $\vec{a}$. The formula is $\hat{a} = \vec{a}/|\vec{a}|$. So for $\vec{a} = (3, 4)$, $|\vec{a}| = 5$ and $\hat{a} = (0.6, 0.8)$.

How do I use the unit vector lab?

Enter the components of $\vec{a}$. The lab returns $|\vec{a}|$ and the unit vector $\hat{a}$. Verify $|\hat{a}| = 1$ by checking that the squared components sum to $1$. Try $\vec a = (1, 1, 1)$: $|\vec a| = \sqrt{3}$, $\hat a = (1/\sqrt 3, 1/\sqrt 3, 1/\sqrt 3)$.

Why are unit vectors important in 3-D geometry?

They strip out magnitude and isolate direction, which is exactly what direction cosines $(l, m, n)$ are. They also simplify many formulas: angle between two lines is $\cos\theta = \hat a\cdot\hat b$. Every JEE 3-D problem starts by normalising direction vectors.

Where do unit vectors appear in graphics and physics?

Game engines use unit vectors for surface normals to compute lighting and reflection. Robotics uses them to encode orientation. The unit vectors $\hat{i}, \hat{j}, \hat{k}$ along the axes are the building blocks of every position vector you write.