📚 Direction Cosines: Definition and Applications | 方向余弦的定义与应用
In three-dimensional geometry, vectors are everywhere — but how do we unambiguously describe a vector's orientation in space? Direction cosines are the elegant answer. They give a complete, standardized description of the direction of a vector or line, and they appear throughout IB Mathematics: Analysis and Approaches HL, particularly in vectors, lines, planes, and 3D geometry.
在三维几何中,向量无处不在——但我们如何无歧义地描述一个向量在空间中的方向?方向余弦就是优雅的答案。它们提供了一种完整、标准化的向量或直线方向描述,贯穿IB数学:分析与方法HL中的向量、直线、平面和三维几何等章节。
1. Definition of Direction Cosines | 方向余弦的定义
Consider a vector v space. The direction angles α, β, and γ are the angles that the vector makes with the positive x-, y-, and z-axes, respectively. The direction cosines are defined as the cosines of these angles:
考虑三维空间中的向量v = v₁i + v₂j + v₃k。方向角α、β、γ分别是向量与x轴、y轴、z轴正方向所成的角。方向余弦定义为这些角的余弦值:
cos α = v₁ / |v|, cos β = v₂ / |v|, cos γ = v₃ / |v|
where |v| = √v₁² + v₂² + v₃² is the magnitude of the vector. Each direction cosine lies between -1 and 1 inclusive, since each component is divided by the vector's magnitude.
其中|v| = √v₁² + v₂² + v₃²是向量的模。每个方向余弦都在-1到1之间(含端点),因为各分量被向量的模相除。
2. Fundamental Identity: Sum of Squares | 基本恒等式:平方和
A crucial property immediately follows from the definition. Since |v|² = v₁² + v₂² + v₃², dividing through by |v|² gives:
从定义出发,一个重要性质立刻浮现。由于|v|² = v₁² + v₂² + v₃²,两边除以|v|²得到:
cos²α + cos²β + cos²γ = 1
This identity is a powerful verification tool. If you compute three numbers claimed to be direction cosines, their squares must sum to exactly 1. Conversely, any three real numbers whose squares sum to 1 can be interpreted as direction cosines of some vector.
这个恒等式是强大的验证工具。如果你计算出的三个数被称为方向余弦,它们的平方和必须恰好等于1。反过来,任意三个平方和为1的实数都可以解释为某个向量的方向余弦。
3. Direction Cosines and the Unit Vector | 方向余弦与单位向量
Divide a non-zero vector v by its magnitude to obtain the unit vector u = v / |v|. The components of this unit vector are exactly the direction cosines:
将非零向量v除以它的模得到单位向量u = v / |v|。这个单位向量的分量恰好就是方向余弦:
u = (cos α) i + (cos β) j + (cos γ) k
s length 1, the Pythagorean identity cos²α + cos²β + cos²γ = 1 is automatically satisfied.
这或许是理解方向余弦最直观的方式:它们是沿原向量方向的单位向量的笛卡尔分量。因为单位向量长度为1,勾股恒等式cos²α + cos²β + cos²γ = 1自然成立。
4. Direction Cosines of a Line | 直线的方向余弦
A line in space has two possible directions. The direction cosines of a line are the direction cosines of any non-zero direction vector parallel to that line. If the line has direction vector d = a i + b j + c k, then:
空间中的直线有两个可能的方向。直线的方向余弦是与该直线平行的任意非零方向向量的方向余弦。若直线具有方向向量d = a i + b j + c k,则:
cos α = a / √a² + b² + c², cos β = b / √a² + b² + c², cos γ = c / √a² + b² + c²
If the direction vector is replaced by its negative, every direction cosine changes sign. Both sets of direction cosines describe the same line, just with opposite orientations. In the IB syllabus, this sign ambiguity is often relevant when calculating angles between lines or planes.
如果将方向向量替换为其相反向量,每个方向余弦都会改变符号。两组方向余弦描述同一条直线,只是方向相反。在IB课程中,这种符号不确定性在计算直线间或平面间夹角时经常需要特别注意。
5. Direction Ratios: A Simpler Alternative | 方向比:更简单的替代
Sometimes, instead of the exact cosines, we only need the proportions between the components. Any triple (a : b : c) proportional to the direction vector is called a set of direction ratios of the line or vector. For any triple (a, b, c), the direction cosines are:
有时,我们不需要精确的余弦值,而只需要分量之间的比例。任何与方向向量成比例的三元组(a : b : c)都称为直线或向量的方向比。对于任意三元组(a, b, c),方向余弦为:
cos α = a / √a² + b² + c², cos β = b / √a² + b² + c², cos γ = c / √a² + b² + c²
Direction ratios are particularly convenient because they avoid square roots in intermediate steps. The direction ratios of a vector are essentially its components, up to a common scale factor. For example, the vector v = 2i + 4j - 6k has direction ratios (2 : 4 : -6), which simplifies to (1 : 2 : -3).
方向比特别方便,因为在中间步骤避免了平方根。向量的方向比本质上就是其分量,至多相差一个公共比例因子。例如,向量v = 2i + 4j - 6k的方向比为(2 : 4 : -6),可简化为(1 : 2 : -3)。
6. Application: Angle Between Two Vectors or Lines | 应用:两向量或两直线的夹角
Let two vectors a and b have direction cosines (l₁, m₁, n₁) and (l₂, m₂, n₂), respectively. The angle θ between the vectors satisfies:
设两个向量a和b的方向余弦分别为(l₁, m₁, n₁)和(l₂, m₂, n₂)。两向量之间的夹角θ满足:
cos θ = l₁l₂ + m₁m₂ + n₁n₂
+ m₁m₂ + n₁n₂. It is remarkably simple because direction cosines already normalise the vectors to unit length. For two lines with direction ratios (a₁ : b₁ : c₁) and (a₂ : b₂ : c₂), the angle is:
这个公式本质上就是两个单位向量的点积:u₁ · u₂ = l₁l₂ + m₁m₂ + n₁n₂。它非常简洁,因为方向余弦已经将向量归一化为单位长度。对于方向比为(a₁ : b₁ : c₁)和(a₂ : b₂ : c₂)的两条直线,夹角为:
cos θ = (a₁a₂ + b₁b₂ + c₁c₂) / [√a₁² + b₁² + c₁² · √a₂² + b₂² + c₂²]
In IB HL Paper 2 and Paper 3, this formula is frequently tested in vector geometry problems, particularly in finding the acute angle between two lines.
在IB HL卷二和卷三中,这个公式经常出现在向量几何问题中,特别是求两条直线之间的锐角。
7. Application: Projection of a Vector | 应用:向量的投影
The scalar projection of vector a onto vector b is |a| cos θ. If b has direction cosines (l, m, n), then the scalar projection can be written as:
向量a在向量b上的标量投影为|a| cos θ。如果b的方向余弦为(l, m, n),则标量投影可以写成:
projection = a₁l + a₂m + a₃n
where a₁, a₂, a₃ are the components of a. This is another direct application of the dot product: a · u, where u is the unit vector along b. The vector projection is then this scalar multiplied by the unit vector u.
其中a₁, a₂, a₃是a的分量。这是点积的另一个直接应用:a · u,其中u是沿b方向的单位向量。向量投影则是这个标量乘以单位向量u。
8. Orthogonality and Direction Cosines | 正交性与方向余弦
y if the angle between them is 90°, meaning cos θ = 0. Using the direction cosine formula:
两向量垂直当且仅当它们之间的夹角为90°,即cos θ = 0。利用方向余弦公式:
l₁l₂ + m₁m₂ + n₁n₂ = 0
This condition is both necessary and sufficient. It also underlies the notion of perpendicular lines in 3D and is used to determine whether two planes are perpendicular or whether a line is perpendicular to a plane.
这个条件既是必要的也是充分的。它也是三维空间中垂直直线概念的基础,并用于判断两个平面是否垂直或一条直线是否与平面垂直。
9. Relation to Spherical Coordinates | 与球坐标的联系
In IB, students sometimes encounter spherical coordinates or need to visualise direction angles intuitively. If a unit vector has spherical coordinates (r, θ, φ) — where θ is the polar angle from the positive z-axis and φ is the azimuthal angle from the positive x-axis — then its direction cosines are:
在IB中,学生有时会遇到球坐标,或者需要直观地想象方向角。若单位向量的球坐标为(r, θ, φ)——其中θ是从z轴正方向的极角,φ是从x轴正方向的方位角——则其方向余弦为:
cos α = sin θ cos φ, cos β = sin θ sin φ, cos γ = cos θ
This connection shows that direction cosines are not merely an abstract algebraic concept; they encode geometric information about the vector's orientation relative to the coordinate axes. For a unit sphere, the point (cos α, cos β, cos γ) lies exactly on the sphere's surface.
这种联系表明方向余弦不仅仅是抽象的代数概念;它们编码了向量相对于坐标轴方向的几何信息。对于单位球面,点(cos α, cos β, cos γ)恰好位于球面上。
10. Worked Example | 典型例题
Problem. A vector v has direction ratios (2, -1, 2). Find its direction cosines, the corresponding direction angles, and verify the fundamental identity.
问题。向量v的方向比为(2, -1, 2)。求其方向余弦、对应的方向角,并验证基本恒等式。
Solution. The magnitude of the direction vector is √(2² + (-1)² + 2²) = √4 + 1 + 4 = √9 = 3. Therefore:
解答。方向向量的模为√(2² + (-1)² + 2²) = √4 + 1 + 4 = √9 = 3。因此:
cos α = 2/3, cos β = -1/3, cos γ = 2/3
. Verification: (2/3)² + (-1/3)² + (2/3)² = 4/9 + 1/9 + 4/9 = 9/9 = 1. The identity holds.
因此α = cos⁻¹(2/3) ≈ 48.2°,β = cos⁻¹(-1/3) ≈ 109.5°,γ = cos⁻¹(2/3) ≈ 48.2°。验证:(2/3)² + (-1/3)² + (2/3)² = 4/9 + 1/9 + 4/9 = 9/9 = 1。恒等式成立。
11. Common Mistakes to Avoid | 常见错误警示
Confusing direction ratios with direction cosines directly. You must divide by the magnitude, not use the raw components.
将方向比直接当作方向余弦。必须先除以模,不能直接使用原始分量。
Forgetting that α, β, γ are measured against the positive axes. A negative component will produce an obtuse direction angle greater than 90°.
忘记α、β、γ是同正坐标轴所成的角。负分量会产生大于90°的钝角方向角。
Using the formula for cos θ between two lines but forgetting the absolute value when the acute angle is required. The expression l₁l₂ + m₁m₂ + n₁n₂ may be negative; the acute angle uses its absolute value.
求两直线夹角时使用cos θ公式但忘记在需要锐角时取绝对值。表达式l₁l₂ + m₁m₂ + n₁n₂可能为负;锐角应使用其绝对值。
Misidentifying the components of a unit vector. Always check: if the numbers are direction cosines, their squared sum must be 1.
错误识别单位向量的分量。始终检查:如果这些数是方向余弦,它们的平方和必须为1。
12. Summary | 总结
Direction cosines provide a complete, normalised description of a vector' ns involving dot products, projections, and angles between lines. Mastery of this topic is essential for success in IB Mathematics HL vectors and 3D geometry.
方向余弦提供了三维空间中向量方向的完整且归一化的描述。定义为向量与坐标轴夹角的余弦,它们等于相应单位向量的分量,满足cos²α + cos²β + cos²γ = 1,并极大简化了涉及点积、投影和直线间夹角的计算。掌握这一主题对于在IB数学HL向量与三维几何中取得成功至关重要。
Published by TutorHao | IB Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

或截图后用「扫一扫 → 相册」选择本图