📚 The equation of a straight line | 直线的方程
In coordinate geometry, a straight line is one of the simplest and most important graphs. The equation of a line links the x‑ and y‑coordinates of every point on the line, allowing us to model linear relationships, compute intersections, and solve real-world problems. In the IB Mathematics curriculum, you are expected to work with multiple forms of the line's equation and to switch confidently between them.
在坐标几何中,直线是最简单也是最重要的图形之一。直线方程把直线上每一点的 x 坐标和 y 坐标联系起来,让我们能够建立线性关系模型、计算交点并解决实际问题。IB 数学课程要求你掌握直线方程的多种形式,并能在这些形式之间自如地转换。
1. Introduction to the straight line | 直线简介
lope) and by a point it passes through. Because the relationship between x and y is linear — the rate of change is constant — xcept vertical lines) can be written as y = mx + c, where m is the gradient and c is the y‑intercept. Vertical lines have an undefined gradient and are expressed as x = k.
平面直角坐标系中的一条直线可以由其倾斜程度(斜率)和经过的一个点唯一确定。由于 x 与 y 之间的关系是线性的——变化率恒定——因此除了竖直直线外,每条直线都可以写成 y = mx + c 的形式,其中 m 是斜率,c 是 y 轴截距。竖直直线的斜率无定义,其方程写作 x = k。
IB questions frequently ask you to find the equation from a graph, from two points, or from one point and a parallel or perpendicular line. You must also recognise the different algebraic forms and understand their geometric meaning.
IB 考题经常要求你根据图像、两点、或一个点和一条平行/垂直的直线来求出方程。你还必须识别不同的代数形式并理解它们的几何意义。
2. Gradient (slope) of a line | 直线的斜率
The gradient m measures the steepness of a line. If two points (x₁, y₁) and (x₂, y₂) lie on the line, the gradient is the ratio of the vertical change to the horizontal change:
斜率 m 衡量直线的陡峭程度。如果直线上有两点 (x₁, y₁) 和 (x₂, y₂),那么斜率就是竖直变化与水平变化的比值:
m = (y₂ − y₁) / (x₂ − x₁) (x₂ ≠ x₁)
= constant, and an undefined (infinite) slope corresponds to a vertical line x = constant.
斜率为正意味着直线从左到右上升;斜率为负意味着下降。斜率为零时得到水平直线 y = 常数;斜率无定义(无穷大)时对应竖直直线 x = 常数。
Be careful with the order: subtract the coordinates consistently. The gradient is a rate — for every unit increase in x, y changes by m units.
注意顺序:坐标相减时要保持一致。斜率是一种变化率——x 每增加 1 个单位,y 就改变 m 个单位。
3. Slope-intercept form | 斜截式
The most common form of a straight line equation is the slope-intercept form:
直线方程最常见的形式是斜截式:
y = mx + c
Here m is the gradient and c is the y‑intercept — the y‑coordinate where the line crosses the y‑ easy to sketch the graph: plot the point (0, c), then use the slope to find another point.
其中 m 是斜率,c 是 y 轴截距——即直线与 y 轴相交处(x = 0)的 y 坐标。这种形式能让你非常容易地画出图像:标出点 (0, c),然后利用斜率找到另一个点。
For example, the line y = 2x − 5 has gradient 2 and crosses the y‑axis at (0, −5). From the y‑intercept, move 1 unit right and 2 units up to reach (1, −3), and so on.
例如,直线 y = 2x − 5 的斜率为 2,交 y 轴于点 (0, −5)。从 y 截距开始,向右移动 1 个单位再向上移动 2 个单位就到达 (1, −3),依此类推。
Note that the IB often uses c for the y‑ ions (b, k) are also common, but the structure y = mx + c is universal in IB examinations.
注意 IB 常用 c 来表示 y 轴截距;其他符号(b, k)也很常见,但 y = mx + c 的结构在 IB 考试中是通用的。
4. Point-slope form | 点斜式
When you know one point (x₁, y₁) on the line and the gradient m, the point-slope form is the most direct way to write the equation:
当你知道直线上的一点 (x₁, y₁) 以及斜率 m 时,点斜式是写出方程的最直接方式:
y − y₁ = m (x − x₁)
This form captures the idea that the line is the set of all points (x, y) such that the slope between (x₁, y₁) and (x, y) equals m. It is especially useful when a problem gives the gradient and a point that is not the y‑intercept, because you can avoid first calculating c.
这种形式体现了直线就是所有满足 (x₁, y₁) 与 (x, y) 之间斜率等于 m 的点 (x, y) 的集合。当问题给出斜率和非 y 截距的点时,点斜式特别有用,因为你可以不必先计算 c。
After substituting the values, you can expand and simplify to obtain the slope-intercept form or the general form if required by the question.
代入数值后,你可以展开并化简,得到斜截式或题目要求的一般式。
5. General form of a linear equation | 直线的一般式
All straight lines in the plane can be expressed by a linear equation in the general form:
平面内的所有直线都可以用一般式线性方程来表示:
Ax + By + C = 0
th zero. The beauty of this form is that it treats vertical and horizontal lines uniformly — vertical lines have B = 0, horizontal lines have A = 0.
其中 A、B 和 C 是常数,且 A 与 B 不同时为零。这种形式的优点在于它统一处理竖直和水平直线——竖直直线满足 B = 0,水平直线满足 A = 0。
vely. Many IB problems ask you to convert between general form and other forms, and to recognise that multiplying the entire equation by a non‑zero constant describes the same line.
斜率可以提取为 m = −A / B(当 B ≠ 0 时),截距则分别通过令 x = 0 和 y = 0 求出。许多 IB 题目要求你在一般式和其他形式之间转换,并认识到将整个方程乘以一个非零常数仍描述同一条直线。
6. Finding the equation from two points | 已知两点求直线方程
A very common exam task is to determine the equation of a line that passes through two given points, say P(x₁, y₁) and Q(x₂, y₂). First, compute the gradient using the slope formula:
考试中一个非常常见的任务是求经过两个给定点的直线方程,例如 P(x₁, y₁) 和 Q(x₂, y₂)。首先,利用斜率公式计算斜率:
m = (y₂ − y₁) / (x₂ − x₁)
Once you have m, pick either of the two points (the result is the same) and substitute into the point-slope form:
一旦求出 m,任选其中一个点(结果相同)代入点斜式:
y − y₁ = m (x − x₁)
can then rearrange the equation into the requested form. If the two points have the same x‑ordinate, the line is vertical and its equation is simply x = x₁. If they share the same y‑coordinate, it is horizontal: y = y₁.
然后你可以将方程整理成要求的形式。如果两点的 x 坐标相同,这条直线是竖直的,方程就是 x = x₁。如果两点的 y 坐标相同,直线是水平的:y = y₁。
As an alternative, you can use the two-point form directly, though it is just the gradient formula combined with the point-slope idea:
作为一种替代,你可以直接使用两点式,它其实只是斜率公式与点斜思想的结合:
(y − y₁) / (x − x₁) = (y₂ − y₁) / (x₂ − x₁)
This equation explicitly states that the slope between (x, y) and (x₁, y₁) equals the slope between the two given points.
这个方程明确表达了 (x, y) 与 (x₁, y₁) 之间的斜率等于给定两点之间的斜率。
7. Intercept form | 截距式
When a line cuts the x‑axis at (a, 0) and the y‑axis at (0, b), with a ≠ 0 and b ≠ 0, its equation can be written elegantly in intercept form:
当一条直线交 x 轴于点 (a, 0)、交 y 轴于点 (0, b),且 a ≠ 0、b ≠ 0 时,其方程可以简洁地写成截距式:
x / a + y / b = 1
t form to general form, multiply through by ab to obtain bx + ay = ab or bx + ay − ab = 0.
这种形式对画图特别方便,因为两个截距直接给出了两个点。要将截距式转换为一般式,可将方程两边乘以 ab,得到 bx + ay = ab 或 bx + ay − ab = 0。
Intercept form is not always the most useful for algebraic manipulation, but it highlights the geometric meaning of a and b and often appears in optimisation problems.
截距式在代数处理上并不总是最方便的,但它突显了 a 和 b 的几何意义,并且经常出现在优化问题中。
8. Parallel and perpendicular lines | 平行与垂直直线
Working with parallel and perpendicular lines relies on gradient relationships. Two non‑vertical lines are parallel if and only if their gradients are equal:
处理平行和垂直直线依赖于斜率之间的关系。两条非竖直直线平行当且仅当它们的斜率相等:
m₁ = m₂
Two non‑vertical lines are perpendicular if and only if the product of their gradients is −1:
两条非竖直直线垂直当且仅当它们斜率的乘积为 −1:
m₁ × m₂ = −1 or equivalently m₂ = −1 / m₁
This means that if a line has gradient m, a perpendicular line will have gradient −1/m, provided m ≠ 0. For instance, a line with slope 3 is perpendicular to a line with slope −1/3.
这意味着如果一条直线的斜率为 m,那么与它垂直的直线斜率为 −1/m(前提是 m ≠ 0)。例如,斜率为 3 的直线与斜率为 −1/3 的直线垂直。
Vertical and horizontal lines are special cases: a vertical line (undefined slope) is perpendicular to a horizontal line (slope 0). Equation questions frequently ask you to find a line through a given point that is parallel or perpendicular to another line. Simply extract the required gradient, then use point‑slope form with the given point.
竖直和水平直线是特殊情况:一条竖直直线(斜率无定义)垂直于一条水平直线(斜率为 0)。方程题常要求你求经过给定点且平行或垂直于另一条直线的直线。你只需提取所需的斜率,然后用给定点和点斜式即可。
9. Intersection of two lines | 两直线的交点
The intersection point of two straight lines satisfies both equations simultaneously. To find it, solve the two linear equations as a system. When equations are given in slope‑intercept form, set the y‑expressions equal:
两条直线的交点同时满足两个方程。要求出它,需要将这两个线性方程作为方程组来求解。当方程以斜截式给出时,可令 y 的表达式相等:
m₁ x + c₁ = m₂ x + c₂
Solve for x, then substitute back to find y. If both equations are in general form, you can use substitution or elimination. The solution (x, y) is the intersection point.
解出 x,然后代回求出 y。如果两个方程都是一般式,你可以使用代入法或消元法。解出的 (x, y) 就是交点。
Two lines might not intersect (parallel and distinct, no solution), might be coincident (infinitely many solutions), or might intersect at exactly one point. Intersections are fundamental in linear programming, in determining collision points, and in solving many IB geometry problems.
两条直线可能不相交(平行且不重合,无解),可能重合(无穷多解),也可能恰好交于一点。交点在线性规划、确定碰撞点以及解决许多 IB 几何问题中都是基础。
10. Distance from a point to a line | 点到直线的距离
en in general form Ax + By + C = 0 is calculated using the perpendicular distance formula:
点 P(x₁, y₁) 到用一般式 Ax + By + C = 0 表示的直线的最短距离可以用垂直距离公式计算:
d = |Ax₁ + By₁ + C| / √A² + B²
rst rearrange the line equation into the form Ax + By + C = 0 before applying the formula.
绝对值的运用确保了距离为正;分母是法向量 (A, B) 的长度。在使用公式之前,你必须先把直线方程整理成 Ax + By + C = 0 的形式。
This formula can also be used to find the distance between two parallel lines: choose a point on one line and find its perpendicular distance to the other line. It is an elegant tool that connects algebra with geometry and frequently appears in IB papers.
该公式还可用来求两条平行直线之间的距离:在其中一条直线上取一点,再求该点到另一条直线的垂直距离。这是一个将代数与几何联系起来的优雅工具,经常出现在 IB 试卷中。
11. Applications and problem solving | 应用与问题解决
Straight line equations model countless real‑life situations: linear cost and revenue functions, temperature conversion, constant speed, supply and demand, and many others. In IB problems, you are often given a scenario that requires building a linear model, interpreting the gradient and intercepts, and then using the model to make predictions.
直线方程可以模拟无数现实情形:线性成本与收益函数、温度转换、匀速运动、供给与需求等等。在 IB 题目中,常会给出一个需要建立线性模型的情景,让你解释斜率和截距的意义,然后利用模型进行预测。
For example, a company' e x is the number of units sold. The gradient 50 represents the profit per unit, and the y‑intercept −2000 represents the fixed costs when zero units are sold.
例如,一家公司的利润 P(单位:美元)可以建模为 P = 50x − 2000,其中 x 是销售数量。斜率 50 表示每件产品的利润,y 截距 −2000 表示不销售任何产品时的固定成本。
Problem‑solving often blends different concepts: you might need to find the equation of a median, an altitude, or a perpendicular bisector in a triangle, all of which rely on slopes, midpoints, and the line equation forms discussed above. Solid command of these techniques is essential for success in IB Mathematics.
解决问题时常需要综合不同概念:你可能需要求出三角形中一条中线、高线或垂直平分线的方程,这些都依赖于斜率、中点以及上文讨论过的直线方程形式。扎实掌握这些技巧对在 IB 数学中取得成功至关重要。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

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