📚 Angle Between Two Lines in Space: Formulas and Calculations | 空间两直线夹角公式与计算
In three-dimensional geometry, lines are rarely described by a simple gradient. Instead, we use direction vectors to describe their orientation. One common IB examination task is to find the angle between two lines in space using their direction vectors and the dot product. This article explains the formula, its derivation, and several worked examples that reflect typical IB questions.
在三维几何中,直线很少用简单的斜率来描述,而是通过方向向量来表示其方向。IB考试中常见的一类题目,就是利用方向向量和点积求空间中两条直线的夹角。本文将详细讲解相关公式、推导过程以及若干符合IB考试风格的例题。
1. The Direction Vector of a Line in Space | 空间中直线的方向向量
A line in space can be written in vector form as r = a + λb, where a is a position vector of a point on the line, b is a nonzero direction vector, and λ is a scalar parameter. The direction vector determines the line’s orientation, but its length does not matter for angle calculations.
空间直线可以写成向量形式 r = a + λb,其中 a 是直线上某一点的位矢,b 是非零方向向量,λ 为实参数。方向向量决定了直线的方向,但其长度并不影响夹角计算。
For example, the line passing through A(1, 2, 3) and B(4, 6, 10) has direction vector b = (4 – 1, 6 – 2, 10 – 3) = (3, 4, 7). Any scalar multiple of this vector, such as (6, 8, 14), represents the same direction.
例如,经过点 A(1, 2, 3) 和 B(4, 6, 10) 的直线,其方向向量为 b = (4 – 1, 6 – 2, 10 – 3) = (3, 4, 7)。该向量的任意非零倍数,如 (6, 8, 14),都表示同一方向。
2. The Angle Between Two Lines – Definition | 两直线夹角的定义
In three-dimensional space, two non-parallel lines may be skew, meaning they do not intersect yet are not parallel. However, the angle between them is still defined as the angle between their direction vectors when placed tail-to-tail. This angle is usually taken to be the acute angle, between 0° and 90°.
在三维空间中,两条不平行的直线可能是异面直线,即它们既不平行也不相交。但两条直线的夹角仍定义为将方向向量平移至同起点后所夹的角。通常取锐角,即 0° 到 90° 之间的角。
If two lines are parallel, the angle between them is 0°. If they are perpendicular, the angle is 90°. In all other cases, we use the dot product to find the cosine of the angle.
若两条直线平行,夹角为 0°;若垂直,夹角为 90°。对于其他情况,我们利用点积来求夹角的余弦值。
3. The Dot Product Formula | 点积公式
Let the two lines have direction vectors d₁ = (a₁, a₂, a₃) and d₂ = (b₁, b₂, b₃). The cosine of the angle θ between the lines is given by:
cos θ = |d₁ · d₂| / (|d₁||d₂|)
where d₁ · d₂ = a₁b₁ + a₂b₂ + a₃b₃ and |d| = √(a₁² + a₂² + a₃²). The absolute value in the numerator ensures that θ is acute.
设两条直线的方向向量分别为 d₁ = (a₁, a₂, a₃) 与 d₂ = (b₁, b₂, b₃),则两直线夹角 θ 的余弦为:
cos θ = |d₁ · d₂| / (|d₁||d₂|)
其中 d₁ · d₂ = a₁b₁ + a₂b₂ + a₃b₃,|d| = √(a₁² + a₂² + a₃²)。分子上的绝对值保证 θ 为锐角。
4. Deriving the Formula | 公式推导
Consider the direction vectors placed tail-to-tail. By definition of the dot product, we have:
d₁ · d₂ = |d₁||d₂| cos φ
where φ is the angle between the two vectors themselves. Since the angle between two lines is conventionally acute, we take cos θ = |cos φ|. Therefore:
cos θ = |d₁ · d₂| / (|d₁||d₂|)
由点积定义,若方向向量共起点,则
d₁ · d₂ = |d₁||d₂| cos φ
其中 φ 是两向量间的夹角。由于两直线夹角通常取锐角,令 cos θ = |cos φ|,因此:
cos θ = |d₁ · d₂| / (|d₁||d₂|)
5. Special Cases: Parallel and Perpendicular Lines | 特殊情况:平行与垂直
Parallel lines: Their direction vectors are scalar multiples of each other. In this case, the dot product formula gives cos θ = 1, so θ = 0°.
平行直线:其方向向量互为标量倍数。点积公式给出 cos θ = 1,故 θ = 0°。
Perpendicular lines: Their direction vectors are orthogonal, so d₁ · d₂ = 0. This gives cos θ = 0, hence θ = 90°.
垂直直线:其方向向量正交,因此 d₁ · d₂ = 0,于是 cos θ = 0,θ = 90°。
These two cases are quickly tested without computing the full formula.
这两种情况无需计算完整公式即可快速判断。
6. Worked Example 1 – Simple Direction Vectors | 例题1:简单方向向量
Question: Find the angle between two lines with direction vectors d₁ = (1, -2, 2) and d₂ = (3, 0, 4).
题目:已知两条直线的方向向量分别为 d₁ = (1, -2, 2) 和 d₂ = (3, 0, 4),求两直线夹角。
Solution: Compute the dot product and magnitudes:
解答:计算点积和模长:
d₁ · d₂ = (1)(3) + (-2)(0) + (2)(4) = 3 + 0 + 8 = 11
|d₁| = √(1 + 4 + 4) = 3, |d₂| = √(9 + 0 + 16) = 5
Therefore:
因此:
cos θ = |11| / (3 × 5) = 11 / 15
So θ = arccos(11/15) ≈ 42.8°. The angle between the two lines is approximately 42.8°.
所以 θ = arccos(11/15) ≈ 42.8°。两直线夹角约为 42.8°。
7. Worked Example 2 – Using Parametric Equations | 例题2:使用参数方程
Question: Two lines are given by:
题目:有两条直线的参数方程为:
L₁: r = (1, 3, 2) + t(2, -1, 1)
L₂: r = (2, 1, 4) + s(-1, 3, 2)
Find the angle between L₁ and L₂.
求 L₁ 与 L₂ 的夹角。
Solution: The direction vectors are d₁ = (2, -1, 1) and d₂ = (-1, 3, 2). Their dot product is:
解答:方向向量为 d₁ = (2, -1, 1),d₂ = (-1, 3, 2)。点积为:
d₁ · d₂ = (2)(-1) + (-1)(3) + (1)(2) = -2 – 3 + 2 = -3
The magnitudes are:
模长为:
|d₁| = √(4 + 1 + 1) = √6, |d₂| = √(1 + 9 + 4) = √14
Using the absolute value in the numerator:
使用分子上的绝对值:
cos θ = |-3| / (√6 × √14) = 3 / √84 = 3 / (2√21)
Thus θ = arccos(3/(2√21)) ≈ 70.9°. The angle between the two lines is about 70.9°.
因此 θ = arccos(3/(2√21)) ≈ 70.9°。两直线的夹角约为 70.9°。
8. Worked Example 3 – Lines in Symmetric Form | 例题3:对称式直线
Question: Find the angle between the following two lines:
题目:求以下两条直线之间的夹角:
L₁: (x – 1)/2 = (y + 2)/(-1) = (z – 3)/1
L₂: x/1 = (y – 4)/1 = (z + 5)/(-2)
Solution: For a line in symmetric form, the denominators give the direction vector. Therefore:
解答:对称式直线中分母即对应方向向量。因此:
d₁ = (2, -1, 1), d₂ = (1, 1, -2)
Compute the dot product:
计算点积:
d₁ · d₂ = (2)(1) + (-1)(1) + (1)(-2) = 2 – 1 – 2 = -1
The magnitudes are:
模长为:
|d₁| = √6, |d₂| = √(1 + 1 + 4) = √6
Then:
于是:
cos θ = |-1| / (√6 × √6) = 1 / 6
Hence θ = arccos(1/6) ≈ 80.4°. The angle between L₁ and L₂ is approximately 80.4°.
所以 θ = arccos(1/6) ≈ 80.4°。L₁ 与 L₂ 的夹角约为 80.4°。
9. Common Mistakes and How to Avoid Them | 常见错误与避免方法
Mistake 1: Forgetting the absolute value. In IB questions, the angle between lines is always acute. If you omit the absolute value, you may obtain an obtuse angle for some line pairs. Always use |d₁ · d₂|.
错误1:忘记加绝对值。IB题目中两直线夹角通常取锐角。若忽略绝对值,某些直线对会得到钝角。务必使用 |d₁ · d₂|。
Mistake 2: Using position vectors instead of direction vectors. The formula requires direction vectors, not the position vectors of points on the lines. If a line is given as r = a + λb, use b, not a.
错误2:误用位矢代替方向向量。公式需要使用方向向量,而不是直线上点的位矢。若直线表示为 r = a + λb,应使用 b,而非 a。
Mistake 3: Confusing the angle between two lines with the angle between a line and a plane. For a line and a plane, the formula involves the normal vector and uses the complementary angle. Read the question carefully.
错误3:混淆两直线夹角与直线和平面夹角。直线与平面的夹角涉及法向量,并且需要取余角。请仔细审题。
Mistake 4: Arithmetic errors in scalar products. Sign errors are common when direction vectors contain negative components. Write down each multiplication step.
错误4:点积计算中的算术错误。当方向向量含负分量时,符号错误频繁出现。请写出每一步乘法过程。
10. Practice Problems | 练习题目
Problem 1: Find the angle between the lines with direction vectors (2, -3, 6) and (1, 2, -2).
练习1:求方向向量为 (2, -3, 6) 与 (1, 2, -2) 的两直线夹角。
Answer: cos θ = 16 / (7 × 3) = 16/21, θ ≈ 40.4°
Problem 2: Two lines are given by r = (0, 2, 1) + t(1, 1, 1) and r = (3, -1, 4) + s(-2, 0, 3). Determine the angle between them.
练习2:已知直线 r = (0, 2, 1) + t(1, 1, 1) 与 r = (3, -1, 4) + s(-2, 0, 3),求它们的夹角。
Answer: cos θ = 1 / (√3 × √13) = 1/√39, θ ≈ 80.8°
Problem 3: Show that the lines (x – 2)/3 = (y + 1)/4 = (z – 5)/(-2) and (x – 1)/(-6) = (y – 2)/(-8) = (z + 3)/4 are parallel.
练习3:证明直线 (x – 2)/3 = (y + 1)/4 = (z – 5)/(-2) 与 (x – 1)/(-6) = (y – 2)/(-8) = (z + 3)/4 平行。
Hint: The direction vector of the second line is -2 times the first direction vector.
提示:第二条直线的方向向量是第一条方向向量的 -2 倍。
11. Summary | 小结
To find the angle between two lines in space, first write each line in vector or symmetric form to identify its direction vector. Then apply the dot product formula with the absolute value to obtain the acute angle:
求空间两直线夹角时,首先将直线写成向量式或对称式以确定方向向量,然后利用带绝对值的点积公式求锐角:
cos θ = |d₁ · d₂| / (|d₁||d₂|)
Remember that parallel lines give θ = 0° and perpendicular lines give θ = 90°. Practising with different forms of line equations will help you master this essential IB topic.
请记住:平行直线 θ = 0°,垂直直线 θ = 90°。多练习不同类型的直线方程,可以帮助你掌握这个IB考试中的重要考点。
Published by TutorHao | IB Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导