# Unit vector

In mathematics, a unit vector in a normed vector space is a vector (often a spatial vector) of length 1. A unit vector is often denoted by a lowercase letter with a circumflex, or "hat": ${\displaystyle {\hat {\imath }}}$ (pronounced "i-hat"). The term direction vector is used to describe a unit vector being used to represent spatial direction, and such quantities are commonly denoted as d. Two 2D direction vectors, d1 and d2 are illustrated. 2D spatial directions represented this way are numerically equivalent to points on the unit circle.

The same construct is used to specify spatial directions in 3D. As illustrated, each unique direction is equivalent numerically to a point on the unit sphere.

Examples of two 2D direction vectors
Examples of two 3D direction vectors

The normalized vector or versor û of a non-zero vector u is the unit vector in the direction of u, i.e.,

${\displaystyle \mathbf {\hat } ={\frac {\mathbf }{|\mathbf |}}}$

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

Unit vectors are often chosen to form the basis of a vector space. Every vector in the space may be written as a linear combination of unit vectors.

By definition, in a Euclidean space the dot product of two unit vectors is a scalar value amounting to the cosine of the smaller subtended angle. In three-dimensional Euclidean space, the cross product of two arbitrary unit vectors is a third vector orthogonal to both of them having length equal to the sine of the smaller subtended angle. The normalized cross product corrects for this varying length, and yields the mutually orthogonal unit vector to the two inputs, applying the right-hand rule to resolve one of two possible directions.

## Orthogonal coordinates

### Cartesian coordinates

Unit vectors may be used to represent the axes of a Cartesian coordinate system. For instance, the unit vectors in the direction of the x, y, and z axes of a three dimensional Cartesian coordinate system are

${\displaystyle \mathbf {\hat } ={\begin1\\0\\0\end},\,\,\mathbf {\hat } ={\begin0\\1\\0\end},\,\,\mathbf {\hat } ={\begin0\\0\\1\end}}$

They form a set of mutually orthogonal unit vectors, typically referred to as a standard basis in linear algebra.

They are often denoted using common vector notation (e.g., i or ${\displaystyle {\vec {\imath }}}$) rather than standard unit vector notation (e.g., ${\displaystyle \mathbf {\hat {\imath }} }$). In most contexts it can be assumed that i, j, and k, (or ${\displaystyle {\vec {\imath }},}$ ${\displaystyle {\vec {\jmath }},}$ and ${\displaystyle {\vec }}$) are versors of a 3-D Cartesian coordinate system. The notations ${\displaystyle (\mathbf {\hat } ,\mathbf {\hat } ,\mathbf {\hat } )}$, ${\displaystyle (\mathbf {\hat } _,\mathbf {\hat } _,\mathbf {\hat } _)}$, ${\displaystyle (\mathbf {\hat } _,\mathbf {\hat } _,\mathbf {\hat } _)}$, or ${\displaystyle (\mathbf {\hat } _,\mathbf {\hat } _,\mathbf {\hat } _)}$, with or without hat, are also used, particularly in contexts where i, j, k might lead to confusion with another quantity (for instance with index symbols such as i, j, k, used to identify an element of a set or array or sequence of variables).

When a unit vector in space is expressed, with Cartesian notation, as a linear combination of i, j, k, its three scalar components can be referred to as direction cosines. The value of each component is equal to the cosine of the angle formed by the unit vector with the respective basis vector. This is one of the methods used to describe the orientation (angular position) of a straight line, segment of straight line, oriented axis, or segment of oriented axis (vector).

### Cylindrical coordinates

The three orthogonal unit vectors appropriate to cylindrical symmetry are:

• ${\displaystyle \mathbf {\hat {\rho }} }$ (also designated ${\displaystyle \mathbf {\hat } }$ or ${\displaystyle {\boldsymbol {\hat }}}$), representing the direction along which the distance of the point from the axis of symmetry is measured;
• ${\displaystyle {\boldsymbol {\hat {\varphi }}}}$, representing the direction of the motion that would be observed if the point were rotating counterclockwise about the symmetry axis;
• ${\displaystyle \mathbf {\hat } }$, representing the direction of the symmetry axis;

They are related to the Cartesian basis ${\displaystyle {\hat }}$, ${\displaystyle {\hat }}$, ${\displaystyle {\hat }}$ by:

${\displaystyle \mathbf {\hat {\rho }} }$ = ${\displaystyle \cos \varphi \mathbf {\hat } +\sin \varphi \mathbf {\hat } }$
${\displaystyle {\boldsymbol {\hat {\varphi }}}}$ = ${\displaystyle -\sin \varphi \mathbf {\hat } +\cos \varphi \mathbf {\hat } }$
${\displaystyle \mathbf {\hat } =\mathbf {\hat } .}$

It is important to note that ${\displaystyle \mathbf {\hat {\rho }} }$ and ${\displaystyle {\boldsymbol {\hat {\varphi }}}}$ are functions of ${\displaystyle \varphi }$, and are not constant in direction. When differentiating or integrating in cylindrical coordinates, these unit vectors themselves must also be operated on. For a more complete description, see Jacobian matrix. The derivatives with respect to ${\displaystyle \varphi }$ are:

${\displaystyle {\frac {\partial \mathbf {\hat {\rho }} }{\partial \varphi }}=-\sin \varphi \mathbf {\hat } +\cos \varphi \mathbf {\hat } ={\boldsymbol {\hat {\varphi }}}}$
${\displaystyle {\frac {\partial {\boldsymbol {\hat {\varphi }}}}{\partial \varphi }}=-\cos \varphi \mathbf {\hat } -\sin \varphi \mathbf {\hat } =-\mathbf {\hat {\rho }} }$
${\displaystyle {\frac {\partial \mathbf {\hat } }{\partial \varphi }}=\mathbf .}$

### Spherical coordinates

The unit vectors appropriate to spherical symmetry are: ${\displaystyle \mathbf {\hat } }$, the direction in which the radial distance from the origin increases; ${\displaystyle {\boldsymbol {\hat {\varphi }}}}$, the direction in which the angle in the x-y plane counterclockwise from the positive x-axis is increasing; and ${\displaystyle {\boldsymbol {\hat {\theta }}}}$, the direction in which the angle from the positive z axis is increasing. To minimize redundancy of representations, the polar angle ${\displaystyle \theta }$ is usually taken to lie between zero and 180 degrees. It is especially important to note the context of any ordered triplet written in spherical coordinates, as the roles of ${\displaystyle {\boldsymbol {\hat {\varphi }}}}$ and ${\displaystyle {\boldsymbol {\hat {\theta }}}}$ are often reversed. Here, the American "physics" convention[1] is used. This leaves the azimuthal angle ${\displaystyle \varphi }$ defined the same as in cylindrical coordinates. The Cartesian relations are:

${\displaystyle \mathbf {\hat } =\sin \theta \cos \varphi \mathbf {\hat } +\sin \theta \sin \varphi \mathbf {\hat } +\cos \theta \mathbf {\hat } }$
${\displaystyle {\boldsymbol {\hat {\theta }}}=\cos \theta \cos \varphi \mathbf {\hat } +\cos \theta \sin \varphi \mathbf {\hat } -\sin \theta \mathbf {\hat } }$
${\displaystyle {\boldsymbol {\hat {\varphi }}}=-\sin \varphi \mathbf {\hat } +\cos \varphi \mathbf {\hat } }$

The spherical unit vectors depend on both ${\displaystyle \varphi }$ and ${\displaystyle \theta }$, and hence there are 5 possible non-zero derivatives. For a more complete description, see Jacobian matrix and determinant. The non-zero derivatives are:

${\displaystyle {\frac {\partial \mathbf {\hat } }{\partial \varphi }}=-\sin \theta \sin \varphi \mathbf {\hat } +\sin \theta \cos \varphi \mathbf {\hat } =\sin \theta {\boldsymbol {\hat {\varphi }}}}$
${\displaystyle {\frac {\partial \mathbf {\hat } }{\partial \theta }}=\cos \theta \cos \varphi \mathbf {\hat } +\cos \theta \sin \varphi \mathbf {\hat } -\sin \theta \mathbf {\hat } ={\boldsymbol {\hat {\theta }}}}$
${\displaystyle {\frac {\partial {\boldsymbol {\hat {\theta }}}}{\partial \varphi }}=-\cos \theta \sin \varphi \mathbf {\hat } +\cos \theta \cos \varphi \mathbf {\hat } =\cos \theta {\boldsymbol {\hat {\varphi }}}}$
${\displaystyle {\frac {\partial {\boldsymbol {\hat {\theta }}}}{\partial \theta }}=-\sin \theta \cos \varphi \mathbf {\hat } -\sin \theta \sin \varphi \mathbf {\hat } -\cos \theta \mathbf {\hat } =-\mathbf {\hat } }$
${\displaystyle {\frac {\partial {\boldsymbol {\hat {\varphi }}}}{\partial \varphi }}=-\cos \varphi \mathbf {\hat } -\sin \varphi \mathbf {\hat } =-\sin \theta \mathbf {\hat } -\cos \theta {\boldsymbol {\hat {\theta }}}}$

### General unit vectors

Common general themes of unit vectors occur throughout physics and geometry:[2]

Unit vector Nomenclature Diagram
Tangent vector to a curve/flux line ${\displaystyle \mathbf {\hat } }$

A normal vector ${\displaystyle \mathbf {\hat } }$ to the plane containing and defined by the radial position vector ${\displaystyle r\mathbf {\hat } }$ and angular tangential direction of rotation ${\displaystyle \theta {\boldsymbol {\hat {\theta }}}}$ is necessary so that the vector equations of angular motion hold.

Normal to a surface tangent plane/plane containing radial position component and angular tangential component ${\displaystyle \mathbf {\hat } }$

In terms of polar coordinates; ${\displaystyle \mathbf {\hat } =\mathbf {\hat } \times {\boldsymbol {\hat {\theta }}}}$

Binormal vector to tangent and normal ${\displaystyle \mathbf {\hat } =\mathbf {\hat } \times \mathbf {\hat } }$[3]
Parallel to some axis/line ${\displaystyle \mathbf {\hat } _{\parallel }}$

One unit vector ${\displaystyle \mathbf {\hat } _{\parallel }}$ aligned parallel to a principal direction (red line), and a perpendicular unit vector ${\displaystyle \mathbf {\hat } _{\bot }}$ is in any radial direction relative to the principal line.

Perpendicular to some axis/line in some radial direction ${\displaystyle \mathbf {\hat } _{\bot }}$
Possible angular deviation relative to some axis/line ${\displaystyle \mathbf {\hat } _{\angle }}$

Unit vector at acute deviation angle φ (including 0 or π/2 rad) relative to a principal direction.

## Curvilinear coordinates

In general, a coordinate system may be uniquely specified using a number of linearly independent unit vectors ${\displaystyle \mathbf {\hat } _}$ equal to the degrees of freedom of the space. For ordinary 3-space, these vectors may be denoted ${\displaystyle \mathbf {\hat } _,\mathbf {\hat } _,\mathbf {\hat } _}$. It is nearly always convenient to define the system to be orthonormal and right-handed:

${\displaystyle \mathbf {\hat } _\cdot \mathbf {\hat } _=\delta _}$
${\displaystyle \mathbf {\hat } _\cdot (\mathbf {\hat } _\times \mathbf {\hat } _)=\varepsilon _}$

where ${\displaystyle \delta _}$ is the Kronecker delta (which is 1 for i = j and 0 otherwise) and ${\displaystyle \varepsilon _}$ is the Levi-Civita symbol (which is 1 for permutations ordered as ijk and −1 for permutations ordered as kji).

## Right versor

A unit vector in ℝ3 was called a right versor by W. R. Hamilton as he developed his quaternions ℍ ⊂ ℝ4. In fact, he was the originator of the term vector as every quaternion ${\displaystyle q=s+v}$ has a scalar part s and a vector part v. If v is a unit vector in ℝ3, then the square of v in quaternions is –1. By Euler's formula then, ${\displaystyle \exp(\theta v)=\cos \theta +v\sin \theta }$ is a versor in the 3-sphere. When θ is a right angle, the versor is a right versor: its scalar part is zero and its vector part v is a unit vector in ℝ3.