📚 Equation of a Straight Line: Forms and Methods | 直线的方程表达与求法
The equation of a straight line is one of the most fundamental topics in coordinate geometry. It connects algebraic expressions with geometric visualisations, and nearly every A-level pure mathematics paper includes at least one question that requires you to write down the equation of a line given certain conditions. Mastering the various forms and the methods for deriving them will give you a solid foundation for tackling curves, gradients, and transformations later.
直线的方程是坐标几何中最基础的内容之一。它把代数表达式与几何图形紧密联系起来,几乎每一份 A-level 纯数学试卷中都会至少有一道题要求你根据给定条件写出直线的方程。熟练掌握直线的各种表达形式及其求法,将为你后续学习曲线、斜率与变换奠定坚实基础。
1. The Gradient of a Line | 直线的斜率
Before we write any equation, we must understand the gradient (or slope) of a straight line. The gradient measures how steep the line is, and it is defined as the ratio of the vertical change to the horizontal change between two distinct points. If the line passes through the points P(x₁, y₁) and Q(x₂, y₂), then the gradient m is given by:
在写出任何方程之前,我们必须先理解直线的斜率(坡度)。斜率衡量直线的倾斜程度,定义为两点之间纵坐标变化量与横坐标变化量之比。若直线经过点 P(x₁, y₁) 和 Q(x₂, y₂),则斜率 m 为:
m = (y₂ − y₁) / (x₂ − x₁)
It is important to remember that the order of subtraction must be consistent. If you use y₂ − y₁ for the numerator, you must use x₂ − x₁ for the denominator; reversing either one will change the sign of the gradient.
务必注意:分子与分母中的相减顺序必须保持一致。若分子使用 y₂ − y₁,则分母必须使用 x₂ − x₁;如单独颠倒其中一项,会使斜率的符号发生错误。
-
A line sloping upward from left to right has a positive gradient (m > 0).
从左向右上升的直线具有正斜率(m > 0)。
-
A line sloping downward from left to right has a negative gradient (m < 0).
从左向右下降的直线具有负斜率(m < 0)。
-
A horizontal line has gradient 0, because y₂ = y₁.
水平线的斜率为 0,因为 y₂ = y₁。
-
A vertical line has an undefined gradient, because x₂ = x₁, which would make the denominator zero.
竖直线的斜率不存在,因为 x₂ = x₁,分母为零。
2. The Point-Slope Form | 点斜式
The point-slope form is the most direct way to write the equation of a line when you know one point on the line and its gradient. If a line has gradient m and passes through the point (x₁, y₁), then for any other point (x, y) on the line, the gradient calculated between these two points must equal m. This gives:
点斜式是当你知道直线上一点及其斜率时最直接的方程写法。若一条直线的斜率为 m,且经过点 (x₁, y₁),则对于该直线上任意另一点 (x, y),这两点之间计算得到的斜率都等于 m。因此有:
y − y₁ = m(x − x₁)
This form is extremely useful because it requires only two pieces of information: a point and a gradient. For example, if a line has gradient 3 and passes through the point (2, −5), its equation is y + 5 = 3(x − 2). You may expand or rearrange it as needed, but the point-slope form often serves as the clearest starting point.
这种形式非常实用,因为它只需要两个信息:一个点和一个斜率。例如,若一条直线的斜率为 3,且经过点 (2, −5),则其方程为 y + 5 = 3(x − 2)。你可以根据需要进行展开或整理,但点斜式通常是最清晰的起点。
3. The Slope-Intercept Form | 斜截式
The slope-intercept form is probably the most recognizable equation of a straight line. It expresses the line in terms of its gradient m and its y-intercept c:
斜截式大概是直线方程中最常见的形式。它用直线的斜率 m 和 y 轴截距 c 来表达直线:
y = mx + c
Here, c is the value of y when x = 0; that is, the point where the line crosses the y-axis. This form is especially convenient when you need to compare two lines quickly, because the gradient and intercept are directly visible.
其中 c 是当 x = 0 时的 y 值,也就是直线与 y 轴的交点。这种形式在需要快速比较两条直线时尤其方便,因为斜率和截距一目了然。
To convert from the point-slope form to the slope-intercept form, simply expand the brackets and rearrange into the form y = mx + c. For instance, from y + 5 = 3(x − 2), we obtain y = 3x − 11, so the gradient is 3 and the y-intercept is −11.
要将点斜式转换为斜截式,只需展开括号并整理为 y = mx + c 的形式。例如,从 y + 5 = 3(x − 2) 可得 y = 3x − 11,因此斜率为 3,y 轴截距为 −11。
4. The Two-Point Form | 两点式
When two points on a line are given, you can first compute the gradient and then use the point-slope form. However, it is also useful to know the two-point form directly. Given points A(x₁, y₁) and B(x₂, y₂), the equation of the line through them is:
当直线上两个点已知时,你可以先计算斜率,再使用点斜式。不过,直接掌握两点式也很有用。已知点 A(x₁, y₁) 和 B(x₂, y₂),经过这两点的直线方程为:
(y − y₁) / (y₂ − y₁) = (x − x₁) / (x₂ − x₁)
This equality states that the ratio of vertical changes equals the ratio of horizontal changes. After cross-multiplying, you will obtain a linear equation in x and y. It is a reliable method because it does not require you to compute m separately, though in practice most students still prefer to find m first.
这个等式表示纵坐标变化之比等于横坐标变化之比。通过交叉相乘,你将得到一个关于 x 和 y 的线性方程。这是一个可靠的方法,因为它不需要单独计算 m,但实际练习中大多数学生仍倾向于先求斜率。
5. The Intercept Form | 截距式
A line that crosses the x-axis at (a, 0) and the y-axis at (0, b) can be written in the intercept form:
若一条直线与 x 轴交于 (a, 0)、与 y 轴交于 (0, b),则它可以写成截距式:
x / a + y / b = 1
This form is particularly handy in coordinate geometry problems where you know the intercepts, or when you want to find the area of a triangle formed by the line and the coordinate axes. The area of that triangle is simply ½ × |a| × |b|.
这种形式在已知截距、或需要计算直线与坐标轴围成三角形的面积时特别有用。此时三角形的面积为 ½ × |a| × |b|。
Notice that if the line passes through the origin, then both intercepts are zero, so this form is not applicable. In that case, use y = mx instead.
注意:如果直线经过原点,则两个截距均为零,此时截距式不适用。这种情况下应使用 y = mx。
6. The General Form | 一般式
The most comprehensive way to express a straight line is the general linear equation in two variables:
表达直线最通用的方式是二元一次一般方程:
Ax + By + C = 0
where A, B and C are constants, and not both A and B are zero. Every straight line, including vertical and horizontal lines, can be written in this form. For example, a vertical line x = 4 can be written as x + 0·y − 4 = 0; a horizontal line y = −2 can be written as 0·x + y + 2 = 0.
其中 A、B、C 为常数,且 A 和 B 不能同时为零。任何直线,包括竖直线和水平线,都可以写成这种形式。例如,竖直线 x = 4 可写作 x + 0·y − 4 = 0;水平线 y = −2 可写作 0·x + y + 2 = 0。
The gradient of a line in general form is m = −A/B (provided B ≠ 0). The y-intercept is −C/B, and the x-intercept is −C/A. Converting from y = mx + c to general form is straightforward: rearrange to mx − y + c = 0, then multiply through if you wish to avoid fractions.
一般式中直线的斜率为 m = −A/B(前提 B ≠ 0)。y 轴截距为 −C/B,x 轴截距为 −C/A。从 y = mx + c 转换到一般式很直接:整理为 mx − y + c = 0,然后如有需要再两边乘以某个数来消除分数。
7. Finding the Equation from Given Conditions | 根据给定条件求方程
Exam questions rarely ask you simply to write an equation from a picture. Instead, they provide conditions that you must translate into one of the forms above. Let us categorise the most common scenarios.
考试题目很少让你直接根据图形写出方程。相反,它们会给出一些条件,你需要把这些条件转化到上述某一种形式之中。下面我们来分类讨论最常见的几种情形。
Situation 1: Given a point and a gradient. This is the simplest case. Use the point-slope form directly: y − y₁ = m(x − x₁). Then rearrange as required.
情形一:已知一点和斜率。 这是最简单的情形。直接使用点斜式:y − y₁ = m(x − x₁),然后按需整理即可。
Situation 2: Given two points. First compute the gradient using m = (y₂ − y₁)/(x₂ − x₁), then substitute one of the points into the point-slope form.
情形二:已知两点。 先用 m = (y₂ − y₁)/(x₂ − x₁) 计算斜率,然后把其中一个点代入点斜式。
Situation 3: Given the x- and y-intercepts. If the intercepts are known, use the intercept form x/a + y/b = 1 immediately, or find the gradient from the two intercept points.
情形三:已知 x 轴和 y 轴截距。 如果截距已知,可直接使用截距式 x/a + y/b = 1,或者由两个截距点求斜率。
Situation 4: Given a line parallel or perpendicular to the unknown line. From the given line, read off its gradient m. If the unknown line is parallel, it has the same gradient; if perpendicular, its gradient is −1/m. Then use any known point to complete the equation.
情形四:已知未知直线与某条直线平行或垂直。 从给定的直线中读出其斜率 m。若未知直线与它平行,则斜率相同;若垂直,则斜率为 −1/m。然后利用任一已知点完成方程。
8. Parallel and Perpendicular Lines | 平行与垂直直线
Two lines are parallel if and only if they have the same gradient. This condition is both necessary and sufficient. For example, the lines y = 2x + 5 and y = 2x − 1 are parallel because both have gradient 2.
两条直线平行当且仅当它们的斜率相等。这个条件既是必要的也是充分的。例如,直线 y = 2x + 5 和 y = 2x − 1 平行,因为它们的斜率都为 2。
Two lines are perpendicular if the product of their gradients is −1. In other words, if line 1 has gradient m, line 2 has gradient −1/m. For example, a line with gradient 3 is perpendicular to a line with gradient −1/3.
两条直线垂直当且仅当它们的斜率之积为 −1。换句话说,若直线 1 的斜率为 m,则直线 2 的斜率为 −1/m。例如,斜率为 3 的直线与斜率为 −1/3 的直线垂直。
These rules have two special exceptions: a horizontal line (m = 0) is parallel only to other horizontal lines, and it is perpendicular only to vertical lines. Conversely, a vertical line has no defined gradient, so you should treat it separately.
这些规则有两个特例:水平线(m = 0)只与其他水平线平行,只与竖直线垂直。反之,竖直线没有确定的斜率,因此应单独处理。
9. Applications in Coordinate Geometry | 坐标几何中的应用
The equation of a straight line is not an isolated topic; it interacts with many other areas of coordinate geometry. One common application is finding the point of intersection of two lines. Since the intersection point lies on both lines, you solve the two equations simultaneously.
直线方程并不是一个孤立的话题;它与坐标几何中的许多其他内容相互关联。一个常见的应用是求两条直线的交点。由于交点同时位于两条直线上,你只需联立两个方程求解即可。
Another application is determining the area of a triangle enclosed by a line and the coordinate axes. If the line has equation x/a + y/b = 1, the triangle’s vertices are (0,0), (a,0) and (0,b), and its area is ½|ab|. This formula appears frequently in A-level questions that combine algebra with geometry.
另一个应用是求一条直线与坐标轴围成的三角形面积。若直线方程为 x/a + y/b = 1,则三角形的三个顶点为 (0,0)、(a,0) 和 (0,b),其面积为 ½|ab|。这个公式在 A-level 试卷中将代数与几何结合的题目中经常出现。
Additionally, the distance from a point to a line can be derived using the general form. When the line is written as Ax + By + C = 0, the perpendicular distance from a point (x₀, y₀) to the line is:
此外,点到直线的距离也可以借助一般式来推导。当直线写为 Ax + By + C = 0 时,点 (x₀, y₀) 到该直线的垂直距离为:
|Ax₀ + By₀ + C| / √(A² + B²)
This formula is worth memorising; it is a quick win in papers that include perpendicular distances.
这个公式值得牢记;在包含垂直距离的试卷中,它是一个快速得分点。
10. Common Mistakes and Tips | 常见错误与技巧
Many students lose marks not because they do not understand the concepts, but because of small, avoidable errors. Below are the most frequent pitfalls.
许多学生丢分并非由于不理解概念,而是因为一些细小且可避免的错误。以下是最常见的易错点。
-
Sign errors when computing gradient. Always write the coordinates in the same order for subtraction. If you swap the order in the denominator, the sign of m flips.
计算斜率时的符号错误。 相减时始终保持坐标顺序一致。如果在分母中调换了顺序,m 的符号就会翻转。
-
Forgetting vertical and horizontal cases. A vertical line cannot be written in the form y = mx + c. Recognise it as x = k and move on.
忘记竖直和水平的情况。 竖直线不能写成 y = mx + c 的形式。认出它是 x = k 即可继续解题。
-
Sloppy expansion of brackets. When converting from point-slope to general form, double-check every sign after expansion.
展开括号时粗心。 从点斜式转换为一般式时,展开后务必逐项核对符号。
-
Leaving the answer in the wrong form. Read the question carefully: sometimes it explicitly asks for the form y = mx + c, sometimes for ax + by + c = 0.
答案形式不符合要求。 仔细审题:有时题目明确要求 y = mx + c 的形式,有时则要求 ax + by + c = 0 的形式。
-
Not checking the answer. After writing your equation, substitute both given points (or the single point plus the line’s intercept) back into the equation to verify.
不检查答案。 写出方程后,把给出的两个点(或一个点加上截距)代回方程中进行验证。
11. Worked Example | 综合例题
Let us consolidate everything with a typical exam-style problem. A line passes through A(2, 3) and B(4, −1). Find its equation in the form y = mx + c and determine where it crosses the x-axis.
让我们通过一道典型考试风格的综合例题来巩固以上内容。一条直线经过 A(2, 3) 和 B(4, −1)。求该直线方程并写成 y = mx + c 的形式,并求它与 x 轴的交点。
Step 1: Find the gradient.
第一步:求斜率。
m = (−1 − 3) / (4 − 2) = −4 / 2 = −2
Step 2: Use the point-slope form with A(2, 3).
第二步:用点 A(2, 3) 代入点斜式。
y − 3 = −2(x − 2) → y − 3 = −2x + 4 → y = −2x + 7
Step 3: Find the x-intercept. Set y = 0:
第三步:求与 x 轴的交点。 令 y = 0:
0 = −2x + 7 → x = 7/2
So the x-intercept is at (7/2, 0). We can verify this by substituting x = 7/2 into y = −2x + 7, which gives y = 0. This confirms the algebra was correct.
因此直线与 x 轴的交点为 (7/2, 0)。我们可以通过把 x = 7/2 代入 y = −2x + 7 验证,得到 y = 0,这确认了代数的正确性。
12. Summary and Exam Advice | 总结与应试建议
In summary, the equation of a straight line can be expressed in multiple equivalent forms: point-slope, slope-intercept, two-point, intercept, and general. The key to success is choosing the most efficient form based on the information given in the question, and then converting to the required format with careful algebraic manipulation.
总而言之,直线方程可以用多种等价形式表达:点斜式、斜截式、两点式、截距式和一般式。解题成功的关键在于根据题目给出的信息选择最有效的形式,然后再谨慎地进行代数运算并转换成题目要求的形式。
For your revision, keep the following quick-reference table close by.
复习时,请将下面这张快速参考表放在手边。
| Given Information 已知条件 |
Best Form to Use 最佳使用形式 |
| One point + gradient 一点 + 斜率 |
Point-slope form y − y₀ = m(x − x₀) 点斜式 y − y₀ = m(x − x₀) |
| Two points 两点 |
Two-point form, or find m then use point-slope 两点式,或先求 m 再用点斜式 |
| x- and y-intercepts x 轴与 y 轴截距 |
Intercept form x/a + y/b = 1 截距式 x/a + y/b = 1 |
| Parallel or perpendicular to a given line 与已知直线平行或垂直 |
Determine m from the given line, then use point-slope 从已知直线确定 m,再用点斜式 |
Finally, always check whether the question requires a specific form. If you consistently write the equation in the asked format, substitute the original points to verify, and watch out for special cases such as vertical and horizontal lines, you will handle this topic with confidence in your examination.
最后,始终检查题目是否要求特定的形式。如果你能始终按题目要求格式写方程、代回原有点验算,并留意竖直线和水平线等特殊情况,就能在考试中从容应对这个专题。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导