【聯立方程:消元法、代入法及圖像】Simultaneous Equations: Elimination, Substitution and Graphs

SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20

解含 x、y 的兩條方程,可用消元法(先使係數相同,再相加或相減)或代入法。若其中一條是二次方程,便把一次方程化成 y 作主項再代入。每個解都是兩條圖像的交點。To solve two equations in x and y, eliminate one unknown (add or subtract after matching coefficients) or substitute one equation into the other. When one equation is a quadratic, make y the subject of the linear equation and substitute. Each solution is a point where the two graphs meet.

用 AI 逐步解聯立方程題目 Solve it with AI練習 221 條 DSE 模擬題 Practise 221 DSE-style questions
拖動 x − y = c 中的 c:紅線平移,它與 2x + y = 7 的交點沿藍線移動。c = 2 即例題 1 的解 (3, 1)。 Drag c in x − y = c: the red line slides and its intersection with 2x + y = 7 moves along the blue line. c = 2 gives the solution (3, 1) of Example 1. 自己試試 → Try it yourself →

解法一覽 Methods at a Glance

消元法Elimination把方程乘以適當數,使一個係數相同,再相加或相減Multiply to match one coefficient, then add or subtract
代入法Substitution把一個未知數化為主項,再代入另一條方程Make one unknown the subject and substitute into the other equation
一次與二次Linear and quadratic把直線代入二次方程,得 Ax² + Bx + C = 0Substitute the line into the quadratic: get Ax² + Bx + C = 0
解的數目Number of solutionsΔ > 0: 2, Δ = 0: 1 (tangent), Δ < 0: none
↑ 返回頁頂 Back to top

二元一次聯立方程式 Simultaneous Linear Equations

當用兩個未知數,列出兩條二元一次方程式表示情境中嘅數量關係時,我們就可以將呢兩條方程式並列以得出答案,稱之為二元一次聯立方程式,或二元一次方程組。我哋會使用「{」嚟表示二元一次聯立方程式,例如 a₁x + b₁y = c₁ 及 a₂x + b₂y = c₂。注意:上下兩條方程的常數 a、b、c 均為不同的數值,但 x 與 y 則各自代表相同的東西。

When two unknowns are used to write two linear equations for the quantities in a situation, we can put the two equations side by side to get the answer. This is called a system of simultaneous linear equations. We use a brace "{" for it, for example a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Here x and y each stand for the same thing in both equations, while the constants a, b, c of the two equations are different numbers.

↑ 返回頁頂 Back to top

代入消去法 Solving by Substitution

【範例】解下列二元一次聯立方程式:3x + 2y = 13 ……(1),x − 3y = −3 ……(2)。

解:由 (2) 可得 x = −3 + 3y,將其代入 (1),我們可得:3(−3 + 3y) + 2y = 13,−9 + 9y + 2y = 13,11y = 22,y = 2。將 y = 2 代入 (2):x − 6 = −3,x = 3。

故 x = 3,y = 2 為二元聯立方程組的解。

Example: solve 3x + 2y = 13 …(1) and x − 3y = −3 …(2).

From (2), x = −3 + 3y. Put it into (1): 3(−3 + 3y) + 2y = 13, −9 + 9y + 2y = 13, 11y = 22, y = 2. Put y = 2 into (2): x − 6 = −3, so x = 3.

So x = 3, y = 2.

↑ 返回頁頂 Back to top

加減消去法 Solving by Elimination

【說明】將二元一次聯立方程組的兩式分別乘除幾倍,兩式相加或相減,使兩個未知數變成一個未知數。利用解一元一次方程式的解法先解出一個未知數,然後再解第二個未知數。

【範例】同一組方程式:將 (1) 乘 3,將 (2) 乘 2,可得 9x + 6y = 39 ……(3),2x − 6y = −6 ……(4)。將 (3) 相加 (4):11x = 33,x = 3。將 x = 3 代入 (1):9 + 2y = 13,y = 2。

Multiply the two equations by suitable numbers, then add or subtract them so that one unknown disappears. Solve for one unknown as in a linear equation, then find the other.

Example: the same equations. Multiply (1) by 3 and (2) by 2: 9x + 6y = 39 …(3), 2x − 6y = −6 …(4). Add (3) and (4): 11x = 33, so x = 3. Put x = 3 into (1): 9 + 2y = 13, so y = 2.

↑ 返回頁頂 Back to top

二元一次聯立方程應用題 Word Problems with Simultaneous Equations

利用二元一次聯立方程式解決生活情境中的問題,解題步驟為:1. 認清題意設定兩個適當的未知數;2. 依題意列出二元一次聯立方程式;3. 利用代入消去法或加減消去法解二元一次聯立方程式。

【範例】某人行 35 公里的路,第一段每小時行 4 公里,第二段每小時行 5 公里,若以每小時行 4 公里的速度改為每小時行 5 公里,而每小時行 5 公里的速度改為每小時行 4 公里,則可比原路多行 2 公里,問原路程共需費多少小時?

解:設第一段時間為 x,第二段時間為 y。4x + 5y = 35 ……(1),5x + 4y = 37 ……(2)。由 (1) 可得 x = (35 − 5y)/4,代入 (2):5(35 − 5y)/4 + 4y = 37,175 − 25y = 148 − 16y,27 = 9y,y = 3。再代入 (1):4x + 15 = 35,x = 5。所以第一段時間為 5 小時,第二段時間為 3 小時,原路程共費時 8 小時。

To solve a real-life problem with simultaneous equations: 1. understand the question and set two suitable unknowns; 2. write the two equations from the question; 3. solve them by substitution or elimination.

Example: a man walks 35 km, the first part at 4 km/h and the second part at 5 km/h. If the speeds were swapped (5 km/h for the first part and 4 km/h for the second) he would walk 2 km more in the same times. Find the total time.

Let the first part take x hours and the second y hours. 4x + 5y = 35 …(1) and 5x + 4y = 37 …(2). From (1), x = (35 − 5y)/4. Put it into (2): 5(35 − 5y)/4 + 4y = 37, so 175 − 25y = 148 − 16y, 27 = 9y and y = 3. Then 4x + 15 = 35, so x = 5. The first part takes 5 hours, the second 3 hours: the total time is 8 hours.

↑ 返回頁頂 Back to top

圓方程三點求圓 Equation of Circle from 3 Points Equation of a Circle from Three Points

圓形方程的基本式為 x² + y² + Dx + Ey + F = 0,然而如果要透過三點計算圓方程,就需要用到標準式 (x − a)² + (y − b)² = r²,當中 (a, b) 係圓心座標,r 係半徑。

例題:圓經過三點 (2, 0)、(0, 1) 及 (0, 4),求圓心、半徑及圓的方程。

  1. 將三點分別代入:(2 − a)² + b² = r²、a² + (1 − b)² = r²、a² + (4 − b)² = r²。
  2. 前兩式相減(r² 消去):4a − 2b = 3。
  3. 後兩式相減:6b = 15,得 b = 2.5;再得 4a = 3 + 5,a = 2。
  4. 代入第一式:0 + 2.5² = r²,r = 2.5。

因此,圓心是 (2, 2.5),半徑是 2.5,圓的方程是 (x − 2)² + (y − 2.5)² = 6.25,即一般式 x² + y² − 4x − 5y + 4 = 0。

The general form of a circle is x² + y² + Dx + Ey + F = 0, but to find a circle from three points we use the standard form (x − a)² + (y − b)² = r², where (a, b) is the centre and r the radius.

Example: a circle passes through (2, 0), (0, 1) and (0, 4). Find the centre, the radius and the equation.

  1. Put each point in: (2 − a)² + b² = r², a² + (1 − b)² = r², a² + (4 − b)² = r².
  2. Subtract the first two (r² cancels): 4a − 2b = 3.
  3. Subtract the last two: 6b = 15, so b = 2.5. Then 4a = 3 + 5, so a = 2.
  4. Put back into the first: 0 + 2.5² = r², so r = 2.5.

The centre is (2, 2.5), the radius is 2.5, and the equation is (x − 2)² + (y − 2.5)² = 6.25, or x² + y² − 4x − 5y + 4 = 0 in general form.

↑ 返回頁頂 Back to top

聯立方程例題詳解 Worked Examples

例題 1 Example 1:兩條一次方程 Two linear equations

解 2x + y = 7 及 x − y = 2。Solve 2x + y = 7 and x − y = 2.

  1. 兩式相加消去 y:3x = 9,所以 x = 3Add the equations to eliminate y: 3x = 9, so x = 3
  2. 3 − y = 2, so y = 1

答案: Answer: x = 3, y = 1

例題 2 Example 2:直線與圓 A line and a circle

解 y = x + 1 及 x² + y² = 25。Solve y = x + 1 and x² + y² = 25.

  1. x² + (x + 1)² = 25, so 2x² + 2x − 24 = 0
  2. x² + x − 12 = 0, so (x + 4)(x − 3) = 0
  3. 把每個 x 代回直線:y = x + 1Put each x back into the line: y = x + 1

答案: Answer: (3, 4) and (−4, −3)

例題 3 Example 3:直線何時與曲線相切? When does a line touch a curve?

求 c,使 y = 2x + c 與 y = x² 相切。Find c so that y = 2x + c touches y = x².

  1. x² = 2x + c, so x² − 2x − c = 0
  2. 相切即只有一個解:Δ = 4 + 4c = 0Tangent means one solution: Δ = 4 + 4c = 0

答案: Answer: c = −1 (touching at (1, 1))

↑ 返回頁頂 Back to top

💡 應試陷阱與秘訣 Exam Traps & Secrets

⚠️ 要代入一次方程 Substitute into the linear equation由二次方程求得 x 後,要用一次方程求 y。代入二次方程會得出多餘的錯誤答案。After finding x from a quadratic, find y from the linear equation. Using the quadratic gives extra, false pairs.
⚠️ 兩個未知數都要寫 Write both unknowns解是一對數值。只寫出 x 會損失最後的分數。A solution is a pair. Stopping at the values of x loses the final marks.
↑ 返回頁頂 Back to top

✏️ 自我測試:互動練習 Self-Test: Interactive Practice

溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。How to study: click any question to load it on the coordinate grid and check your steps.

(消元法 Elimination)解 3x + 2y = 12 及 5x − 2y = 4。Solve 3x + 2y = 12 and 5x − 2y = 4.
(直線與圓 Line and circle)解 y = 2x − 1 及 x² + y² = 13。Solve y = 2x − 1 and x² + y² = 13.
(相切條件 Tangent condition)求 k 的值,使 y = x + k 與 x² + y² = 8 只有一個交點。Find the values of k for which y = x + k meets x² + y² = 8 at exactly one point.
↑ 返回頁頂 Back to top

聯立方程練習題(DSE 模擬題) Exercises: DSE-Style Practice

SketchMath 題庫內的 DSE 風格練習,選擇題及長題目均附解答。 DSE-style practice from the SketchMath question bank, with solutions for every MC and long question.

二元一次方程 · 中二
31 條選擇題 31 MC · 27 條長題目 27 long questions
續方程 · 中四
128 條選擇題 128 MC · 35 條長題目 35 long questions

常見問題 Frequently Asked Questions

↑ 返回頁頂 Back to top

相關主題 Related Topics

配方法 Completing the Square線性規劃 Linear Programming更多關於方程 More about Equations圓的方程 Equations of CirclesHKDSE 數學全部課題 HKDSE Math: all topicsDSE 數學公式表(全課題) HKDSE Maths Formula SheetDSE 數學練習(按年級) DSE Maths Practice by Form
聯立方程 DSE 練習題 Try a DSE Practice Question