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