# Unit vector

In mathematics, a **unit vector** in a normed vector space is a vector (often a spatial vector) whose length is 1. A unit vector is often written with a “hat”, thus: **î**.

In Euclidean space, the dot product of two unit vectors is simply the cosine of the angle between them. This follows from the formula for the dot product, since the lengths are both 1.

The **normalized vector** **û** of a non-zero vector **u** is the unit vector codirectional with **u**, i.e.,

where ||**u**|| is the norm (or length) of **u**. The term *normalized vector* is sometimes used simply as a synonym for *unit vector*.

As opposed to a general vector, which represents direction and magnitude, a unit vector just represents direction. The components are called **direction cosines**, because each is the cosine of the angle between the vector and one coordinate axis.

The elements of a basis are often chosen to be unit vectors. In the 3-Dimensional Cartesian coordinate system, these are usually **i**, **j**, and **k**—unit vectors along the *x*, *y*, and *z* axes, respectively:

These are not always written with a hat; but it can generally be assumed that **i**, **j**, and **k** are unit vectors in most contexts. Very often these unit vectors are written as **e _{1}**,

**e**and

_{2}**e**respectively.

_{3}Other coordinate systems, such as polar coordinates or spherical coordinates use different unit vectors; notations vary.

de:Einheitsvektor fr:Vecteur unitaire he:וקטור יחידה nl:Eenheidsvector pl:Wersor pt:Vetor unitário sv:Enhetsvektor th:เวกเตอร์หนึ่งหน่วย zh:单位向量