← 返回资讯屏轩教育 · 行业资讯

The Angle Between Two Lines | 两直线的夹角

2026-08-03 04:06 · 本文部分内容由AI辅助创作

📚 The Angle Between Two Lines | 两直线的夹角

In coordinate geometry and vector analysis, the angle between two straight lines is a fundamental concept that measures their relative orientation. Rather than relying on a diagram, we use the direction vectors of the lines to compute the acute angle between them. This approach works in both two and three dimensions and is essential for solving problems in IB Mathematics: Analysis and Approaches, as well as Applications and Interpretation.

在坐标几何与向量分析中,两条直线之间的夹角是衡量其相对方向的基本概念。我们不依赖于图形,而是利用直线的方向向量来计算它们之间的锐角。这种方法适用于二维和三维空间,并且对于解决 IB 数学分析与方法和应用与解释课程中的问题至关重要。

1. Direction Vectors and the Angle Concept | 方向向量与夹角概念

The direction of a line can be described by any non‑zero vector parallel to the line. When we speak of the angle between two lines, we mean the smaller of the two angles formed at their intersection — an acute or right angle (0° to 90°). If the lines are parallel, the angle is 0°; if they are perpendicular, it is 90°. By comparing their direction vectors, we obtain a precise measure of this angle.

一条直线的方向可以用任何与该直线平行的非零向量来描述。当我们谈论两条直线之间的夹角时,指的是它们在交点处所形成的两个角中较小的那个——锐角或直角(0° 到 90°)。如果两条直线平行,夹角为 0°;如果垂直,夹角为 90°。通过比较它们的方向向量,我们可以精确地求得这个角度。

2. Direction Vectors of Lines | 直线的方向向量

Given a line in vector form, such as r = a + λd, the vector d often extracted from parametric equations: if x = x₀ + λp, y = y₀ + λq, z = z₀ + λr, then d = (p, q, r). Always ensure the direction vector is non‑zero.

若直线以向量形式给出,如 r = a + λd,则向量 d 是一个方向向量。在笛卡尔形式 y = mx + c 下,方向向量可取为 (1, m),因为水平移动 1 个单位时 y 变化 m。在三维空间中,方向向量通常从参数方程中提取:若 x = x₀ + λp, y = y₀ + λq, z = z₀ + λr,则 d = (p, q, r)。务必确保方向向量为非零向量。

3. Dot Product and Magnitude | 点积与模长

The dot product of two vectors u = (u₁, u₂, u₃) and v = (v₁, v₂, v₃) is defined as u · v = u₁v₁ + u₂v₂ + u₃v₃. The magnitude of u is |u| = √u₁² + u₂² + u₃². These two operations are the foundation for the angle formula. In 2D, the same formulas apply with the third component set to zero.

两个向量 u = (u₁, u₂, u₃) 与 v = (v₁, v₂, v₃) 的点积定义为 u · v = u₁v₁ + u₂v₂ + u₃v₃。u 的模长是 |u| = √u₁² + u₂² + u₃²。这两种运算是夹角公式的基础。在二维情形下,同样的公式适用,只需将第三个分量设为零。

4. The Cosine Formula for the Angle | 夹角的余弦公式

If two lines have direction vectors d₁ and d₂, the angle θ between the lines (0° ≤ θ ≤ 90°) is given by:

cos θ = |d₁ · d₂| / (|d₁| |d₂|)

The absolute value in the numerator guarantees that θ is always acute or right. Once cos θ is computed, use the inverse cosine function to find θ in degrees or radians.

如果两条直线的方向向量分别为 d₁ 和 d₂,则两直线夹角 θ(0° ≤ θ ≤ 90°)满足:

cos θ = |d₁ · d₂| / (|d₁| |d₂|)

分子中的绝对值确保 θ 始终为锐角或直角。算出 cos θ 后,使用反余弦函数求出以度或弧度表示的 θ。

5. Why Absolute Value? | 为什么取绝对值?

Without absolute value, the formula would give the angle between the direction vectors themselves, which could be obtuse (between 90° and 180°). Since a line has no inherent orientation — both d and −d describe the same line — we always take the acute angle as the angle between the lines. Thus the absolute value is applied to the dot product before division.

如果不取绝对值,公式将给出方向向量之间的夹角,该夹角可能是钝角(介于 90° 到 180° 之间)。由于直线没有固有的方向——d 和 −d 描述的是同一条直线——我们始终取锐角作为两直线的夹角。因此,在除法之前需要先对点积取绝对值。

6. Example 1: Two Lines in 2D (Cartesian Form) | 示例1:二维空间中的两条直线(笛卡尔形式)

Find the angle between the lines y = 3x + 1 and 2y + x = 5.

Step 1: Direction vectors — for y = 3x + 1, slope m₁ = 3, so d₁ = (1, 3). For 2y + x = 5, rewrite as y = −½x + 2.5, slope m₂ = −½, so d₂ = (1, −0.5) or (2, −1) to avoid decimals. Let d₂ = (2, −1).
Step 2: Compute dot product: d₁ · d₂ = (1)(2) + (3)(−1) = 2 − 3 = −1.
Step 3: Magnitudes: |d₁| = √1² + 3² = √10, |d₂| = √(2² + (−1)²) = √5.
Step 4: cos θ = |−1| / (√10 × √5) = 1 / √50 = 1 / (5√2) = √2 / 10 ≈ 0.1414.
Step 5: θ = arccos(0.1414) ≈ 81.87°.

求直线 y = 3x + 1 与 2y + x = 5 之间的夹角。

步骤1:方向向量——对于 y = 3x + 1,斜率 m₁ = 3,故 d₁ = (1, 3)。对于 2y + x = 5,改写为 y = −½x + 2.5,斜率 m₂ = −½,可取 d₂ = (1, −0.5) 或为避小数取 (2, −1)。设 d₂ = (2, −1)。
步骤2:计算点积:(1)(2) + (3)(−1) = 2 − 3 = −1。
步骤3:模长:|d₁| = √1² + 3² = √10,|d₂| = √(2² + (−1)²) = √5。
步骤4:cos θ = |−1| / (√10 × √5) = 1 / √50 = 1 / (5√2) = √2 / 10 ≈ 0.1414。
步骤5:θ = arccos(0.1414) ≈ 81.87°。


广告 / Sponsored

7. Example 2: Lines in 3D Given Vector Form | 示例2:向量形式给出的三维直线

Line L₁: r = (1, 2, 0) + λ(2, −1, 2) and line L₂: r = (3, 0, 1) + μ(1, 2, −2). Determine the angle between them.

Step 1: Direction vectors are d₁ = (2, −1, 2), d₂ = (1, 2, −2).
Step 2: Dot product: d₁ · d₂ = 2×1 + (−1)×2 + 2×(−2) = 2 − 2 − 4 = −4.
Step 3: Magnitudes: |d₁| = √4 + 1 + 4 = √9 = 3; |d₂| = √1 + 4 + 4 = √9 = 3.
Step 4: cos θ = |−4| / (3×3) = 4/9 ≈ 0.4444.
Step 5: θ = arccos(4/9) ≈ 63.6° or 1.11 rad.

直线 L₁:r = (1, 2, 0) + λ(2, −1, 2),L₂:r = (3, 0, 1) + μ(1, 2, −2)。求它们之间的夹角。

步骤1:方向向量为 d₁ = (2, −1, 2),d₂ = (1, 2, −2)。
步骤2:点积:2×1 + (−1)×2 + 2×(−2) = 2 − 2 − 4 = −4。
步骤3:模长:|d₁| = √4+1+4=3;|d₂| = √1+4+4=3。
步骤4:cos θ = |−4| / (3×3) = 4/9 ≈ 0.4444。
步骤5:θ = arccos(4/9) ≈ 63.6° 或 1.11 弧度。


8. Special Cases: Parallel and Perpendicular Lines | 特殊情况:平行与垂直

Two lines are parallel if their direction vectors are scalar multiples: d₁ = kd₂. Then d₁ · d₂ = k|d₂|², and cos θ = |k| |d₂|² / (|k||d₂| × |d₂|) = 1, giving θ = 0°. If the lines are perpendicular, d₁ · d tions are extremely useful for verifying orientation without explicitly computing the angle.

如果方向向量成标量倍数关系:d₁ = kd₂,则两直线平行。此时 d₁ · d₂ = k|d₂|²,cos θ = |k| |d₂|² / (|k||d₂| × |d₂|) = 1,θ = 0°。若两直线垂直,则 d₁ · d₂ = 0,于是 cos θ = 0,θ = 90°。这些条件非常实用,无需显式计算角度即可验证直线的方向关系。


9. Finding the Angle when Lines are Skew or Intersecting | 异面直线与相交直线的夹角

In 3D, lines may not intersect — they can be skew. However, the angle between skew lines is still defined as the acute angle between their direction vectors. The method remains identical: extract direction vectors, apply the cosine formula with absolute value. The same logic holds for intersecting lines. Therefore, the calculation works regardless of whether the lines actually meet.

在三维空间中,直线可能不相交——它们可以是异面直线。然而,异面直线之间的夹角仍然被定义为它们方向向量之间的锐角。方法完全相同:提取方向向量,套用带绝对值的余弦公式。同样的逻辑也适用于相交直线。因此,无论直线是否实际相交,计算方法都不变。


10. Summary and Exam Tips | 总结与考试技巧

h line from its equation. (2) Compute the dot product and both magnitudes. (3) Use cos θ = |d₁·d₂| / (|d₁| |d₂|). (4) Apply arccos to get θ in the required unit. In IB exams, always check for parallel or perpendicular conditions first, as they may save time. Keep exact values (e.g., fractions, surds) until the final step unless asked otherwise. Remember that the angle between lines is acute, so the answer should lie in [0°, 90°]. Practice with both 2D and 3D examples to become comfortable extracting direction vectors from different forms.

求两直线夹角的方法:(1) 从直线方程中确定每条直线的一个方向向量。(2) 计算点积和两个模长。(3) 代入 cos θ = |d₁·d₂| / (|d₁| |d₂|)。(4) 使用反余弦得到所需单位的 θ。在 IB 考试中,可以先检查平行或垂直条件,有时能节省时间。除非题目另有要求,保留精确值(如分数、根式)直到最后一步。切记直线夹角为锐角,答案应在 [0°, 90°] 范围内。通过练习二维和三维的例题,熟练从不同形式中提取方向向量。

Published by TutorHao | IB Mathematics Revision Series | aleveler.com

广告 / Sponsored
IBDP国际文凭计算机科学学生用书 高级及标准水平 Computer Science for the IB Diplo…
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥524.0

更多咨询请联系16621398022(同微信)

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao