Direction cosine

From HandWiki
Revision as of 17:26, 12 March 2023 by Scavis2 (talk | contribs) (correction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Cosines of the angles between the vector and the three coordinate axes.

In analytic geometry, the direction cosines (or directional cosines) of a vector are the cosines of the angles between the vector and the three positive coordinate axes. Equivalently, they are the contributions of each component of the basis to a unit vector in that direction.

Three-dimensional Cartesian coordinates

Vector v in R3
Direction cosines and direction angles for the unit vector v/|v|

If v is a Euclidean vector in three-dimensional Euclidean space, R3,

[math]\displaystyle{ \mathbf v = v_x \mathbf e_x + v_y \mathbf e_y + v_z \mathbf e_z, }[/math]

where ex, ey, ez are the standard basis in Cartesian notation, then the direction cosines are

[math]\displaystyle{ \begin{alignat}{2} \alpha &{}= \cos a = \frac{\mathbf v \cdot \mathbf e_x}{\Vert\mathbf v\Vert } &&{}= \frac{v_x}{\sqrt{v_x^2 + v_y^2 + v_z^2}},\\ \beta &{}= \cos b = \frac{\mathbf v \cdot \mathbf e_y}{\Vert\mathbf v\Vert } &&{}= \frac{v_y}{\sqrt{v_x^2 + v_y^2 + v_z^2}},\\ \gamma &{}= \cos c = \frac{\mathbf v \cdot \mathbf e_z}{\Vert\mathbf v\Vert } &&{}= \frac{v_z}{\sqrt{v_x^2 + v_y^2 + v_z^2}}. \end{alignat} }[/math]

It follows that by squaring each equation and adding the results

[math]\displaystyle{ \cos^2 a + \cos^2 b + \cos^2 c = \alpha^{2} + \beta^{2} + \gamma^{2} = 1. }[/math]

Here α, β and γ are the direction cosines and the Cartesian coordinates of the unit vector v/|v|, and a, b and c are the direction angles of the vector v.

The direction angles a, b and c are acute or obtuse angles, i.e., 0 ≤ a ≤ π, 0 ≤ bπ and 0 ≤ cπ, and they denote the angles formed between v and the unit basis vectors, ex, ey and ez.

General meaning

More generally, direction cosine refers to the cosine of the angle between any two vectors. They are useful for forming direction cosine matrices that express one set of orthonormal basis vectors in terms of another set, or for expressing a known vector in a different basis.

See also

References