Direction cosine

From testwiki
Jump to navigation Jump to search

Template:Short description Template:No footnotes

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 Template:Math in Template:Tmath
Direction cosines and direction angles for the unit vector 𝐯|𝐯|

Template:Further

If Template:Math is a Euclidean vector in three-dimensional Euclidean space, Template:Tmath

𝐯=vx𝐞x+vy𝐞y+vz𝐞z,

where Template:Math are the standard basis in Cartesian notation, then the direction cosines are

α=cos⁡a=𝐯⋅𝐞x‖𝐯‖=vxvx2+vy2+vz2,β=cos⁡b=𝐯⋅𝐞y‖𝐯‖=vyvx2+vy2+vz2,γ=cos⁡c=𝐯⋅𝐞z‖𝐯‖=vzvx2+vy2+vz2.

It follows that by squaring each equation and adding the results

cos2a+cos2b+cos2c=α2+β2+γ2=1.

Here Template:Math are the direction cosines and the Cartesian coordinates of the unit vector 𝐯|𝐯|, and Template:Math are the direction angles of the vector Template:Math.

The direction angles Template:Math are acute or obtuse angles, i.e., Template:Math, Template:Math and Template:Math, and they denote the angles formed between Template:Math and the unit basis vectors Template:Math.

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. Simply put, direction cosines provide an easy method of representing the direction of a vector in a Cartesian coordinate system.

Applications

Determining angles between two vectors

Let Template:Math and Template:Math have direction cosines Template:Math and Template:Math, respectively, having an angle Template:Mvar between them. Their unit vectors are𝐮̂=ux‖𝐮‖𝐞x+uy‖𝐮‖𝐞y+uz‖𝐮‖𝐞z=αu𝐞x+βu𝐞y+γu𝐞z𝐯̂=vx‖𝐯‖𝐞x+vy‖𝐯‖𝐞y+vz‖𝐯‖𝐞z=αv𝐞x+βv𝐞y+γv𝐞zrespectively.

Taking the scalar product of these two unit vectors yield,𝐮̂⋅𝐯̂=αuαv+βuβv+γuγv.The geometric interpretation of the scalar product of these two unit vectors is equivalent to the projection of one vector onto another; linking the two definitions we find the following.

αuαv+βuβv+γuγv=cos⁡θ

There exist two choices for Template:Mvar (because cosine is even); one is acute, another is the obtuse angle between them. The convention is to choose the acute, so we take the absolute value of the scalar product.θ=arccos⁡(|αuαv+βuβv+γuγv|).

See also

References


Template:Geometry-stub