In mathematics, a unit vector in a normed vector space is a vector (often a spatial vector) whose length is 1 (the unit length). A unit vector is often denoted by a lowercase letter with a superscribed caret or “hat”, like this: (pronounced "ihat").
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 or versor of a nonzero vector is the unit vector codirectional with , i.e.,
where is the norm (or length) of . The term normalized vector is sometimes used as a synonym for unit vector.
The elements of a basis are usually chosen to be unit vectors. Every vector in the space may be written as a linear combination of unit vectors. The most commonly encountered bases are Cartesian, polar, and spherical coordinates. Each uses different unit vectors according to the symmetry of the coordinate system. Since these systems are encountered in so many different contexts, it is not uncommon to encounter different naming conventions than those used here.
Contents 
In the three dimensional Cartesian coordinate system, the unit vectors codirectional with the x, y, and z axes are sometimes referred to as versors of the coordinate system.
These are often written using normal vector notation (e.g. i, or ) rather than the caret notation, and in most contexts it can be assumed that i, j, and k, (or and ) are versors of a Cartesian coordinate system (hence a tern of mutually orthogonal unit vectors). The notations , , , or , with or without hat/caret, 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). These vectors represent an example of a standard basis.
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).
The unit vectors appropriate to cylindrical symmetry are: (also designated or ), the distance from the axis of symmetry; , the angle measured counterclockwise from the positive xaxis; and . They are related to the Cartesian basis by:
It is important to note that and are functions of , 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. The derivatives with respect to are:
The unit vectors appropriate to spherical symmetry are: , the radial distance from the origin; , the angle in the xy plane counterclockwise from the positive xaxis; and , the angle from the positive z axis. To minimize degeneracy, the polar angle is usually taken . It is especially important to note the context of any ordered triplet written in spherical coordinates, as the roles of and are often reversed. Here, the American naming convention is used. This leaves the azimuthal angle defined the same as in cylindrical coordinates. The Cartesian relations are:
The spherical unit vectors depend on both and θ, and hence there are 5 possible nonzero derivatives. For a more complete description, see Jacobian. The nonzero derivatives are:
In general, a coordinate system may be uniquely specified using a number of linearly independent unit vectors equal to the degrees of freedom of the space. For ordinary 3space, these vectors may be denoted . It is nearly always convenient to define the system to be orthonormal and righthanded:
where δ_{ij} is the Kronecker delta (which is one for i = j and zero else) and is the LeviCivita symbol (which is one for permutations ordered as ijk and minus one for permutations ordered as kji).
