MathorynMathematical Formula Database

Vectors

Unit Vector

A unit vector has length 11 and points in the same direction as a\mathbf a. Normalising vectors is used to describe pure directions, in projections and normals, and in computer graphics lighting calculations.

a^=a∥a∥\hat{\mathbf a}=\frac{\mathbf a}{\|\mathbf a\|}
LaTeX\hat{\mathbf a}=\frac{\mathbf a}{\|\mathbf a\|}

Variables

a^\hat{\mathbf a}
unit vector in the direction of a
a\mathbf a
nonzero vector
∥a∥\|\mathbf a\|
length of a

Example

Find the unit vector in the direction of (3,4)(3,4).

  1. ∥(3,4)∥=5\|(3,4)\|=5.
  2. a^=(35,45)\hat{\mathbf a}=\left(\frac35,\frac45\right).

Answer: (0.6, 0.8)(0.6,\ 0.8).

Related formulas