ArticleslgStudy

mathematics

Direction cosine

Direction cosine is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Direction cosine rather than just read about it. In short: In analytic geometry, the direction cosines (or directional cosines) of a vector are the cosines of the angles between the vector of interest and each of the three positive coordinate semiaxes. Equivalently, they are the contributions of each component of the basis to a unit vector in that direction.

Direction cosine — main illustration
Direction cosine — illustration

Key takeaways

  • Direction cosine belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Direction cosine to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Direction cosine from memory before moving on to harder problems.

Reference excerpt

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

Three-dimensional Cartesian coordinates

If v is a Euclidean vector in three-dimensional Euclidean space, ⁠ℝ3,⁠ 𝐯=vx𝐞x+vy𝐞y+vz𝐞z, where ex, ey, ez are the standard basis in Cartesian coordinates 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 α, β, γ are the direction cosines and the Cartesian coordinates of the unit vector 𝐯|𝐯|, and a, b, c are the direction angles of the vector v. The direction angles a, b, c are acute, right, obtuse, or straight angles, i.e., 0 ≤ a ≤ π, 0 ≤ b ≤ π and 0 ≤ c ≤ π (There are two opposite angles between two vectors, and the direction angle x between the vectors is the one satisfying 0 ≤ x ≤ π.), and they denote the angles formed between v and the unit basis vectors ex, ey, ez.

General meaning More generally, direction cosine refers to the cosine of the angle between any two vectors starting at a same point. 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 u and v have direction cosines (αu, βu, γu) and (αv, βv, γv), respectively, having an angle θ 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 θ (because cosine is even); one is acute, right, obtuse, or straight angle (0 ≤ θ ≤ π), another is the reflex angle (π < θ < 2π), between the vectors. The convention is to choose the former, so we get θ from the scalar product by using the inverse cosine function:θ=arccos⁡(αuαv+βuβv+γuγv).

See also Cartesian tensor Euler angles

References Kay, D. C. (1988). Tensor Calculus. Schaum’s Outlines. McGraw Hill. pp. 18–19. ISBN 0-07-033484-6. Spiegel, M. R.; Lipschutz, S.; Spellman, D. (2009). Vector analysis. Schaum’s Outlines (2nd ed.). McGraw Hill. pp. 15, 25. ISBN 978-0-07-161545-7. Tyldesley, J. R. (1975). An introduction to tensor analysis for engineers and applied scientists. Longman. p. 5. ISBN 0-582-44355-5. Tang, K. T. (2006). Mathematical Methods for Engineers and Scientists. Vol. 2. Springer. p. 13. ISBN 3-540-30268-9. Weisstein, Eric W. "Direction Cosine". MathWorld.

Illustrations

Direction cosine: Direction cosines and direction angles for the unit vector 𝐯|𝐯|
Direction cosines and direction angles for the unit vector 𝐯|𝐯|

Worked examples

Example 1 — a first encounter with Direction cosine

Start with the simplest possible case. Write down what Direction cosine claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Direction cosine before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Direction cosine ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Direction cosine

In research
Direction cosine appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Direction cosine in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Direction cosine is common in secondary-school and first-year university syllabi. It links to neighbouring topics Analytic geometry, Geometry stubs, Vectors (mathematics and physics), so understanding it makes those chapters shorter.
In everyday life
Look for Direction cosine outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Direction cosine” →

How to study Direction cosine in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Direction cosine means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Direction cosine out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Direction cosine in simple terms?

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

Why does Direction cosine matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Direction cosine?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Direction cosine.

Tags

  • Analytic geometry
  • Geometry stubs
  • Vectors (mathematics and physics)

Keep exploring