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", as in (pronounced "v-hat").
The term direction vector, commonly denoted as d, is used to describe a unit vector being used to represent spatial direction and relative direction. 2D spatial directions are numerically equivalent to points on the unit circle and spatial directions in 3D are equivalent to a point on the unit sphere.
The normalized vector û of a non-zero vector u is the unit vector in the direction of u, i.e.,
Unit vectors may be used to represent the axes of a Cartesian coordinate system. For instance, the standard unit vectors in the direction of the x, y, and z axes of a three dimensional Cartesian coordinate system are
They are often denoted using common vector notation (e.g., x or ) rather than standard unit vector notation (e.g., x̂). In most contexts it can be assumed that x, y, and z, (or and ) are versors of a 3-D Cartesian coordinate system. The notations (î, ĵ, k̂), (x̂1, x̂2, x̂3), (êx, êy, êz), or (ê1, ê2, ê3), 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, which are used to identify an element of a set or array or sequence of variables).
When a unit vector in space is expressed in Cartesian notation as a linear combination of x, y, z, 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 three orthogonal unit vectors appropriate to cylindrical symmetry are:
They are related to the Cartesian basis , , by:
The vectors 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. The derivatives with respect to are:
The unit vectors appropriate to spherical symmetry are: , the direction in which the radial distance from the origin increases; , the direction in which the angle in the x-y plane counterclockwise from the positive x-axis is increasing; and , the direction in which the angle from the positive z axis is increasing. To minimize redundancy of representations, the polar angle 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 and are often reversed. Here, the American "physics" 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 non-zero derivatives. For a more complete description, see Jacobian matrix and determinant. The non-zero derivatives are:
|Tangent vector to a curve/flux line
A normal vector to the plane containing and defined by the radial position vector and angular tangential direction of rotation 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
In terms of polar coordinates;
|Binormal vector to tangent and normal
|Parallel to some axis/line
One unit vector aligned parallel to a principal direction (red line), and a perpendicular unit vector is in any radial direction relative to the principal line.
|Perpendicular to some axis/line in some radial direction
|Possible angular deviation relative to some axis/line
Unit vector at acute deviation angle φ (including 0 or π/2 rad) relative to a principal direction.
In general, a coordinate system may be uniquely specified using a number of linearly independent unit vectors  (the actual number being equal to the degrees of freedom of the space). For ordinary 3-space, these vectors may be denoted . It is nearly always convenient to define the system to be orthonormal and right-handed:
A unit vector in was called a right versor by W. R. Hamilton, as he developed his quaternions . In fact, he was the originator of the term vector, as every quaternion has a scalar part s and a vector part v. If v is a unit vector in , then the square of v in quaternions is –1. Thus by Euler's formula, 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 .