Back to tree

📈 直线方程:两点定一线的数学写法📈 Equations of Lines: Two Points Pin One Line

上一片「坐标系」把每个地点变成一对数字 (x, y)。这一片,测绘员小算盘机器人🧮 要用这些数字,把一条笔直的路写成方程。 The last leaf turned every spot on the map into a pair of numbers (x, y). This leaf, surveyor robot 🧮 writes a perfectly straight road down as an equation.

第 1 步:两个路标,一条直线Step 1: Two signposts, one line

先看一件天经地义的事:两个点,能定下几条直线?Start with the obvious: two points — how many straight lines can they pin down?

小算盘机器人用直尺连接两个点
小算盘机器人🧮 在地图上立了两个路标。把直尺往两点上一靠,一条笔直的路就出现了——而且只有这一条。两个点,就锁定了整条线的走向和位置;画图软件里的"两点拉直线"工具,干的就是这件事。 Robot 🧮 plants two signposts on the map. Lay a ruler across them and a straight road appears — and only one. Two points lock the whole line in place; a drawing app's "line through two points" tool does exactly this.

可是光有两个点,怎么把这条路"写"给另一台机器人听?But with only two dots, how do you "write down" the road for another robot?

第 2 步:给直线配一个方程Step 2: Give the line an equation

GPS 轨迹点连成一条直线 y = kx + b
导航每秒钟记一个位置,把 GPS 点连起来,就是一条跑过的直线轨迹。秘密在 y = kx + b:k 是斜率(每向右 1 步,线升高多少),b 是截距(x = 0 时线在多高)。调 k,线绕着起点转;调 b,线整体上下平移——两个数字就变出一族所有方向的直线。 The navigation logs one position per second; join the GPS dots and you get the straight path it ran. The secret is y = kx + b: k is the slope (how much the line climbs per step to the right), b is the intercept (how high it sits at x = 0). Turn k and the line pivots; turn b and it slides up or down — two numbers produce the whole family of straight lines.

那这两个数字,怎么从两个路标里算出来?So how do the two numbers come out of the two signposts?

第 3 步:k 和 b 怎么算Step 3: Working out k and b

山坡公路旁笔直的护栏,坡度就是斜率 k
方法就两步:① k = 纵差 ÷ 横差,两个路标的高度差除以水平距离,就是斜率,也就是公路的"坡度";② 把任一个点代进 y = kx + b,解出 b。图中护栏每段升高与前进之比不变,坡度也就不变。想更省事,记住点斜式 y − y₁ = k(x − x₁):知道斜率和一个点,一步写出方程。 Two steps: ① k = rise ÷ run — the height gap between the signposts divided by the horizontal gap gives the slope, exactly the "gradient" of a mountain road; ② plug either point into y = kx + b and solve for b. In the picture the guardrail climbs the same amount for every step forward, so its gradient stays constant. Want a shortcut? The point-slope form y − y₁ = k(x − x₁) writes the equation in one go from a slope and one point.

🎮 你来当测绘员(30 秒)🎮 Your turn: surveyor duty (30 seconds)

道理讲完了。下面给你两个金色路标,调 k 和 b 两个旋钮,让直线一次穿过两个点。Theory done. Below are two golden signposts — tune the k and b knobs until one straight line passes through both.

一句话记住它:直线方程把"笔直"翻译成两个数字:k 管倾斜,b 管起点;两个点一给,(k, b) 就唯一确定了。 Remember it in one line: an equation of a line translates "straight" into two numbers — k for tilt, b for starting height; two points fix both for good.
y = kx + b(斜截式):k 是斜率、b 是截距,拧动它们得到一族直线y = kx + b (slope-intercept form): k is the slope, b the intercept — turn them to sweep the whole family 两点定一线:k = 纵差 ÷ 横差,再把一个点代入求出 bTwo points pin one line: k = rise ÷ run, then plug one point in to get b 点斜式 y − y₁ = k(x − x₁):知道斜率和一个点,也能写出方程Point-slope form y − y₁ = k(x − x₁): slope plus one point writes the equation too

← 浏览全部 302 个知识点← Browse all 302 topics

内容参考 OpenStax 等公开教材,多来源核对 · AI 生成、人工审核 · 发现错误欢迎指正,帮这片叶子长得更好。 Based on OpenStax and other open textbooks, cross-checked across sources · AI-generated, human-reviewed · Spotted a mistake? Tell us — help this leaf grow.