Mathwords logoMathwords

Unit Vector

Unit Vector

A vector of magnitude 1. Often a unit vector is written using the ^ symbol. For example, û is a unit vector pointing in the same direction as vector u.

Key Formula

u^=uu\hat{u} = \frac{\vec{u}}{\|\vec{u}\|}
Where:
  • u^\hat{u} = The unit vector in the direction of vector u
  • u\vec{u} = The original vector
  • u\|\vec{u}\| = The magnitude (length) of vector u

Worked Example

Problem: Find the unit vector in the direction of the vector u = (3, 4).
Step 1: Calculate the magnitude of u.
u=32+42=9+16=25=5\|\vec{u}\| = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5
Step 2: Divide each component of the vector by its magnitude.
u^=(3,4)5=(35,45)=(0.6,0.8)\hat{u} = \frac{(3,\, 4)}{5} = \left(\frac{3}{5},\, \frac{4}{5}\right) = (0.6,\, 0.8)
Step 3: Verify the result has magnitude 1.
0.62+0.82=0.36+0.64=1=1  \sqrt{0.6^2 + 0.8^2} = \sqrt{0.36 + 0.64} = \sqrt{1} = 1 \;\checkmark
Answer: The unit vector in the direction of (3, 4) is (0.6, 0.8).

Why It Matters

Unit vectors let you separate a vector's direction from its magnitude, which is essential in physics for describing forces, velocities, and other quantities. The standard unit vectors i^\hat{i}, j^\hat{j}, and k^\hat{k} along the x-, y-, and z-axes form the building blocks for expressing any vector in component form. Normalizing a vector to a unit vector is also a foundational step in computer graphics, machine learning, and engineering.

Common Mistakes

Mistake: Dividing only one component by the magnitude instead of every component.
Correction: You must divide each component of the vector by the same magnitude to preserve the direction.

Related Terms

  • VectorA unit vector is a special case of a vector
  • MagnitudeThe length that equals 1 for a unit vector
  • NormalizeThe process of converting a vector to a unit vector
  • Dot ProductOften computed using unit vectors for angles
  • Scalar MultiplicationUsed when dividing a vector by its magnitude