📚 IB Mathematics: Finding the Equation of a Straight Line in Two-Dimensional Coordinate Systems | IB数学:二维坐标系中直线方程的求法
In IB Mathematics, the study of linear functions forms the foundation for coordinate geometry, calculus, and many real-world modelling problems. Determining the equation of a straight line in a two-dimensional coordinate system is a core skill that appears in both Analysis and Approaches (AA) and Applications and Interpretation (AI) courses.
在IB数学中,线性函数的学习构成了坐标几何、微积分以及许多现实世界建模问题的基础。在二维坐标系中确定直线方程是核心技能,这一考点在《分析与方法》(AA) 和《应用与解释》(AI) 两门课程中都会出现。
1. The Cartesian Plane and Key Components | 笛卡尔平面与关键要素
A two-dimensional coordinate system is built on the x-axis and y-axis, which intersect at the origin O(0, 0). Any point in the plane is represented by an ordered pair (x, y). A straight line is the set of all points that satisfy a linear equation in x and y.
二维坐标系建立在 x 轴和 y 轴的基础上,两轴交于原点 O(0, 0)。平面上的任意一点都可以用有序数对 (x, y) 表示。一条直线就是平面上满足某个关于 x 和 y 的线性方程的所有点的集合。
To find the equation of a line, we need two pieces of information: the gradient (slope) and a point on the line, or two distinct points. The gradient measures the steepness of the line and is defined as the change in y divided by the change in x.
要求直线的方程,我们需要两条信息:梯度(斜率)和直线上的一个点,或者两个不同的点。梯度衡量直线的倾斜程度,定义为 y 的变化量除以 x 的变化量。
2. Gradient of a Straight Line | 直线的梯度
Given two points A(x₁, y₁) and B(x₂, y₂), the gradient m is computed as:
给定两个点 A(x₁, y₁) 和 B(x₂, y₂),梯度 m 的计算方式如下:
m = (y₂ – y₁) / (x₂ – x₁)
This formula measures the vertical change per unit horizontal change. A positive gradient indicates the line rises from left to right; a negative gradient indicates it falls. A zero gradient gives a horizontal line, while an undefined gradient corresponds to a vertical line.
该公式衡量每单位水平变化所对应的垂直变化。正梯度表示直线从左向右上升;负梯度表示直线从左向右下降。梯度为零时得到水平线,而梯度不存在时对应竖直线。
Care must be taken with the order of subtraction: x₂ – x₁ must correspond to the same points used for y₂ – y₁. If the order is reversed for only one of the differences, the sign of the gradient will be incorrect.
需要注意的是减法的顺序:x₂ – x₁ 必须与 y₂ – y₁ 对应的点一致。如果只颠倒其中一个差值的顺序,梯度的符号就会出错。
3. Gradient-Intercept Form: y = mx + c | 斜截式:y = mx + c
The gradient-intercept form is the most common representation in IB problems. In this form, m is the gradient and c is the y-intercept, the value of y where the line crosses the y-axis.
斜截式是IB题目中最常见的表示形式。在该形式中,m 是梯度,c 是 y 截距,即直线与 y 轴交点处的 y 值。
y = mx + c
To write a line in this form, we need the gradient and the y-intercept. For example, a line with gradient 2 and y-intercept -3 has equation y = 2x – 3. This form is especially useful for quickly sketching graphs and identifying the slope directly.
要使用这种形式写出直线方程,我们需要梯度与 y 截距。例如,一条梯度为 2、y 截距为 -3 的直线方程为 y = 2x – 3。这种形式在快速画图以及直接识别斜率时特别有用。
If a line passes through a point (x₀, y₀) with known gradient m, we can substitute the coordinates into y = mx + c to solve for c. For instance, if m = ½ and the line passes through (4, 6), then 6 = ½ × 4 + c, so c = 4, giving y = ½x + 4.
如果一条直线经过点 (x₀, y₀) 且梯度 m 已知,我们可以将坐标代入 y = mx + c 来求解 c。例如,若 m = ½,且直线经过点 (4, 6),则 6 = ½ × 4 + c,得 c = 4,方程为 y = ½x + 4。
4. Point-Slope Form: y – y₁ = m(x – x₁) | 点斜式:y – y₁ = m(x – x₁)
When we know the gradient and one point on the line, the point-slope form is the most direct method. The equation is:
当我们已知梯度和直线上一个点时,点斜式是最直接的求解方法。其方程为:
y – y₁ = m(x – x₁)
Here (x₁, y₁) is a fixed point on the line. This formula is derived from the definition of gradient: m = (y – y₁) / (x – x₁). Multiplying both sides by (x – x₁) gives the form above.
这里 (x₁, y₁) 是直线上的一个固定点。该公式由梯度的定义 m = (y – y₁) / (x – x₁) 推导而来,两边同时乘以 (x – x₁) 即可得到上述形式。
For example, if a line has gradient -2 and passes through (3, 5), then y – 5 = -2(x – 3). Expanding and simplifying gives y = -2x + 11. In an exam, always check whether the question asks for the equation in a specific form.
例如,若一条直线的梯度为 -2,且经过点 (3, 5),则 y – 5 = -2(x – 3)。展开并化简后得到 y = -2x + 11。在考试中,务必注意题目是否要求将方程写成特定形式。
5. Two-Point Form: Using Two Points | 两点式:利用两个点
When two points A(x₁, y₁) and B(x₂, y₂) are given, we can first compute the gradient using the slope formula, then substitute the gradient and either point into the point-slope form. This combined method is often called the two-point form.
当给出两个点 A(x₁, y₁) 和 B(x₂, y₂) 时,我们先用斜率公式计算梯度,然后将梯度和其中任意一点代入点斜式。这种组合方法通常称为两点式。
m = (y₂ – y₁) / (x₂ – x₁)
After finding m, choose one of the points, say (x₁, y₁), and write y – y₁ = m(x – x₁). For example, given points (1, 2) and (3, 8):
求出 m 后,选择其中一个点(例如 (x₁, y₁)),写出 y – y₁ = m(x – x₁)。例如,给定点 (1, 2) 和 (3, 8):
m = (8 – 2) / (3 – 1) = 6 / 2 = 3
Using (1, 2): y – 2 = 3(x – 1), so y = 3x – 1. Therefore the equation of the line is y = 3x – 1.
使用点 (1, 2):y – 2 = 3(x – 1),所以 y = 3x – 1。因此该直线的方程为 y = 3x – 1。
6. General Form: ax + by + c = 0 | 一般式:ax + by + c = 0
The general form of a straight line is ax + by + c = 0, where a, b, and c are constants, and a and b are not both zero. This form is useful for determining intersections and for vector geometry.
直线的一般式为 ax + by + c = 0,其中 a、b、c 为常数,且 a、b 不同时为零。这种形式在求交点以及向量几何中非常有用。
Any linear equation can be rearranged into this form. For example, y = 2x + 5 can be rewritten as 2x – y + 5 = 0. Notice the sign changes when moving terms across the equals sign.
任何线性方程都可以整理为这种形式。例如,y = 2x + 5 可以改写为 2x – y + 5 = 0。注意移动项到等号另一边时需要改变符号。
From the general form, the gradient is m = -a / b (provided b ≠ 0), and the y-intercept is c’ = -c / b. Mastering the conversion between forms is a frequent exam requirement.
由一般式可得,梯度为 m = -a / b(前提是 b ≠ 0),y 截距为 c’ = -c / b。熟练掌握各种形式之间的转换是考试中常见的要求。
7. Horizontal and Vertical Lines | 水平线与竖直线
Horizontal lines have a gradient of zero. Their equation is y = k, where k is a constant equal to the y-coordinate of every point on the line. For example, the line passing through (4, 7) and (-2, 7) is y = 7.
水平线的梯度为零,其方程为 y = k,其中 k 是等于直线上所有点 y 坐标的常数。例如,经过 (4, 7) 和 (-2, 7) 的直线方程为 y = 7。
Vertical lines have an undefined gradient and cannot be written in the form y = mx + c. Their equation is x = h, where h is the x-coordinate of every point on the line. For instance, the line passing through (3, 5) and (3, -12) is x = 3.
竖直线的梯度不存在,不能写成 y = mx + c 的形式。其方程为 x = h,其中 h 是直线上所有点 x 坐标的值。例如,经过点 (3, 5) 和 (3, -12) 的直线方程为 x = 3。
When using the point-slope or two-point formulas, vertical lines cause a division by zero. Always check for equal x-coordinates before applying the gradient formula.
在使用点斜式或两点式时,竖直线会导致除数为零的问题。在应用梯度公式之前,务必先检查是否存在相等的 x 坐标。
8. Finding the Equation from a Graph | 从图像中求直线方程
Given a graph, we can determine the equation by reading off the y-intercept and the gradient. The y-intercept is the point where the line crosses the y-axis. The gradient can be found by counting the vertical rise over the horizontal run between two convenient points.
给定图像时,我们可以通过读取 y 截距和梯度来确定方程。y 截距是直线与 y 轴的交点。梯度可以通过计算两个方便点之间的垂直上升量除以水平前进量来获得。
For example, if a line crosses the y-axis at 3 and passes through (2, 7), then the gradient is (7 – 3) / (2 – 0) = 4 / 2 = 2. Hence the equation is y = 2x + 3.
例如,若一条直线与 y 轴相交于点 3,并且经过点 (2, 7),则梯度为 (7 – 3) / (2 – 0) = 4 / 2 = 2。因此方程为 y = 2x + 3。
If the y-intercept is not clearly labelled, choose any two points that lie on grid intersections. Using exact coordinates improves accuracy. Approximating from a graph can lead to errors in the gradient and intercept.
如果 y 截距没有明确的标记,应选择位于网格交点上的任意两个点。使用精确坐标可以提高准确度。从图像中近似读取可能会导致梯度和截距出现误差。
9. Parallel and Perpendicular Lines | 平行线与垂直线
Parallel lines in a plane have equal gradients. If two lines are parallel, then m₁ = m₂. Conversely, if their gradients are equal and they are distinct lines, they will never intersect.
平面内两条平行线具有相等的梯度。若两直线平行,则 m₁ = m₂。反之,若两条不同的直线梯度相等,则它们永远不会相交。
Perpendicular lines have gradients that are negative reciprocals of each other. If line 1 has gradient m₁, then a perpendicular line has gradient m₂ = -1 / m₁, provided m₁ ≠ 0. Equivalently, m₁ × m₂ = -1.
两条垂直线段的梯度互为负倒数。若直线 1 的梯度为 m₁,则与其垂直的直线梯度为 m₂ = -1 / m₁(前提是 m₁ ≠ 0)。等价地,m₁ × m₂ = -1。
For example, a line perpendicular to y = 3x + 2 has gradient -1/3. If it passes through (6, 1), then y – 1 = (-1/3)(x – 6), which simplifies to y = (-1/3)x + 3.
例如,与 y = 3x + 2 垂直的直线梯度为 -1/3。若它经过点 (6, 1),则 y – 1 = (-1/3)(x – 6),化简得 y = (-1/3)x + 3。
10. Worked Examples: Exam-Style Problems | 典型例题:考试风格问题
Example 1: Find the equation of the line passing through A(2, 5) and B(6, 13).
例 1:求经过点 A(2, 5) 和 B(6, 13) 的直线方程。
First compute the gradient: m = (13 – 5) / (6 – 2) = 8 / 4 = 2. Using point A: y – 5 = 2(x – 2), so y = 2x + 1. In general form: 2x – y + 1 = 0.
首先计算梯度:m = (13 – 5) / (6 – 2) = 8 / 4 = 2。使用点 A:y – 5 = 2(x – 2),所以 y = 2x + 1。写成一般式:2x – y + 1 = 0。
Example 2: A line has gradient -3 and passes through the point (4, -2). Find its equation.
例 2:一条直线的梯度为 -3,并且经过点 (4, -2)。求其方程。
Using the point-slope form: y – (-2) = -3(x – 4), which gives y + 2 = -3x + 12, so y = -3x + 10. Always be careful with double negatives.
使用点斜式:y – (-2) = -3(x – 4),得到 y + 2 = -3x + 12,所以 y = -3x + 10。注意处理双重负号时要特别小心。
Example 3: Find the equation of the line perpendicular to y = ½x – 4 passing through (3, 1).
例 3:求与 y = ½x – 4 垂直且经过点 (3, 1) 的直线方程。
The gradient of the given line is ½, so the perpendicular gradient is -2. Hence y – 1 = -2(x – 3), leading to y = -2x + 7.
已知直线的梯度为 ½,因此垂直直线的梯度为 -2。于是 y – 1 = -2(x – 3),得到 y = -2x + 7。
11. Common Mistakes and Tips | 常见错误与应对技巧
One common mistake is mixing up the order of coordinates when calculating the gradient. Always subtract the y-coordinates in the same order as the x-coordinates.
一个常见错误是在计算梯度时弄错坐标的相减顺序。x 坐标与 y 坐标的相减顺序必须保持一致。
Another error is forgetting to simplify the final equation. IB marking schemes often deduct marks if the answer is not in the required form, such as y = mx + c or ax + by + c = 0.
另一个错误是忘记化简最终方程。IB 评分标准常常会要求将答案写成指定形式,如 y = mx + c 或 ax + by + c = 0,若未化简可能会被扣分。
Recommended tips:
推荐技巧:
- Always draw a quick sketch to visualise the line and check the reasonableness of the gradient and intercept.
- 始终快速画一个草图,观察直线并检查梯度和截距是否合理。
- When substituting a point into y = mx + c, write the substitution clearly and solve step by step.
- 在将点代入 y = mx + c 时,清楚写出代入过程并逐步求解。
- For perpendicular lines, use the multiplication check m₁ × m₂ = -1 to verify your answer.
- 对于垂直线,用乘法验证 m₁ × m₂ = -1 来检查答案是否正确。
12. Summary and Practice Suggestions | 总结与练习建议
To find the equation of a straight line in a two-dimensional coordinate system, follow this systematic process: identify which information is given, calculate the gradient if necessary, choose the appropriate form, then simplify and convert to the required format.
要在二维坐标系中求直线的方程,请遵循以下系统化的步骤:确认题目给出了哪些信息,如有必要计算梯度,选择合适的表达形式,然后化简并转换为题目要求的形式。
Memorise the key formulas and their conditions:
牢记以下关键公式及其适用条件:
| Form / 形式 | Equation / 方程 | Used when / 适用场景 |
| Gradient-intercept 斜截式 | y = mx + c | Gradient and y-intercept known 已知梯度和 y 截距 |
| Point-slope 点斜式 | y – y₁ = m(x – x₁) | Gradient and one point known 已知梯度和一个点 |
| Two-point 两点式 | m = (y₂ – y₁) / (x₂ – x₁), then point-slope 先求 m,再用点斜式 | Two points known 已知两个点 |
| General 一般式 | ax + by + c = 0 | When rearranged or required by question 当需要整理为一般式时 |
Regular practice with past-paper questions will help you recognise patterns and build speed. Pay attention to marks allocation: show all working clearly, as IB rewards method marks even if the final answer is incorrect.
定期练习历年真题可以帮助你识别题型模式并提高速度。注意分值分配: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课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply