【線性方程組(DSE M2):克萊瑪法則及高斯消去法】Systems of Linear Equations (DSE M2): Cramer’s Rule and Gaussian Elimination

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

對方程組 Ax = b(係數行列式為 Δ):若 Δ ≠ 0,有唯一解(克萊瑪法則:x = Δₓ/Δ)。若 Δ = 0,方程組要麼無解,要麼有無限多個解,必須用高斯消去法判斷是哪一種情況。For a system Ax = b with coefficient determinant Δ: if Δ ≠ 0 there is a unique solution (Cramer’s rule: x = Δₓ/Δ). If Δ = 0 there is either no solution or infinitely many, and you must use Gaussian elimination to find out which.

用 AI 逐步解線性方程組題目 Solve it with AI

原創練習、提示、詳解與免費 PDF / Original exercises, hints, solutions & free PDF →

DSE 數學 AI 導師 · DSE Math AI Tutor

例題 1 在 k = 0、h = 1 時的三個平面。它們相交於同一條直線,所以方程組有無限多個解。 The three planes of Example 1 with k = 0 and h = 1. They meet along one line, which is why the system has infinitely many solutions. 自己試試 → Try it yourself →

線性方程組:必記法則 Linear Systems: Rules to Remember

克萊瑪法則Cramer’s rulex = Δₓ/Δ、y = Δᵧ/Δ、z = Δ_z/Δ(須 Δ ≠ 0)x = Δₓ/Δ, y = Δᵧ/Δ, z = Δ_z/Δ (needs Δ ≠ 0)
Δ ≠ 0唯一解Unique solution
Δ = 0,而 Δₓ、Δᵧ、Δ_z 其一不為 0Δ = 0, some Δₓ, Δᵧ, Δ_z ≠ 0無解No solution
Δ = Δₓ = Δᵧ = Δ_z = 0無解或無限多個解:用高斯消去法判斷No solution or infinitely many: use Gaussian elimination
逆矩陣法Inverse-matrix methodx = A⁻¹b(須 |A| ≠ 0)x = A⁻¹b (needs |A| ≠ 0)
齊次方程組 Ax = 0Homogeneous system Ax = 0必定相容;有非零解 ⟺ |A| = 0Always consistent; non-trivial solutions ⟺ |A| = 0
↑ 返回頁頂 Back to top

唯一解、無解還是無限多解:如何判斷 Unique, No or Infinitely Many Solutions: How to Decide

  1. 以參數表示係數矩陣的行列式 Δ。
  2. 方程組當且僅當 Δ ≠ 0 時有唯一解。解 Δ = 0 可找出參數的特殊值。
  3. 把每個特殊值代入,然後用行運算化簡增廣矩陣。
  4. 若出現 0 0 0 | c(c ≠ 0)的一行,方程組無解;若出現 0 0 0 | 0,則有無限多個解:設其中一個變數為 t,再以 t 表示其餘變數。

從幾何上看,每條方程代表一個平面。唯一解即三個平面交於一點;無限多個解即三個平面有一條公共直線;無解即三個平面沒有公共點。

  1. Find Δ, the determinant of the coefficient matrix, in terms of the parameter.
  2. The system has a unique solution exactly when Δ ≠ 0. Solve Δ = 0 to find the special values of the parameter.
  3. For each special value, substitute it and reduce the augmented matrix by row operations.
  4. If a row becomes 0 0 0 | c with c ≠ 0, there is no solution. If it becomes 0 0 0 | 0, there are infinitely many: let one variable be t and express the others in terms of t.

Geometrically each equation is a plane. A unique solution is one common point; infinitely many solutions means the planes share a line; no solution means they have no common point.

↑ 返回頁頂 Back to top

線性方程組例題詳解 Worked Examples

例題 1 Example 1:含參數的方程組:唯一解或無限多個解 A system with a parameter: unique or infinitely many solutions

考慮方程組 x + y + z = 2、2x + 3y + z = 3、x + 2y + kz = h。(a) 求方程組有唯一解時 k 的取值範圍。(b) 當 k = 0 時,求使方程組相容的 h 值,並解該方程組。Consider the system x + y + z = 2, 2x + 3y + z = 3, x + 2y + kz = h. (a) Find the range of k for which it has a unique solution. (b) When k = 0, find h so that the system is consistent, and solve it.

  1. Δ = 1(3k − 2) − 1(2k − 1) + 1(4 − 3) = k
  2. (a) 有唯一解 ⟺ Δ ≠ 0 ⟺ k ≠ 0(a) Unique solution ⟺ Δ ≠ 0 ⟺ k ≠ 0
  3. (b) 當 k = 0:R₂ − 2R₁ 得 y − z = −1;R₃ − R₁ 得 y − z = h − 2(b) With k = 0: R₂ − 2R₁ gives y − z = −1; R₃ − R₁ gives y − z = h − 2
  4. 只有當 h − 2 = −1 時才相容,所以 h = 1Consistent only if h − 2 = −1, so h = 1
  5. 設 z = t:y = t − 1,x = 2 − y − z = 3 − 2tLet z = t: y = t − 1, x = 2 − y − z = 3 − 2t

答案: Answer: (a) k ≠ 0;(b) h = 1,(x, y, z) = (3 − 2t, t − 1, t),t 為任意實數(a) k ≠ 0; (b) h = 1, (x, y, z) = (3 − 2t, t − 1, t) for any real t

例題 2 Example 2:用克萊瑪法則解二元方程組 Cramer’s rule for two unknowns

用克萊瑪法則解 2x + y = 5、x − 3y = −1。Solve 2x + y = 5, x − 3y = −1 by Cramer’s rule.

  1. Δ = (2)(−3) − (1)(1) = −7
  2. Δₓ = (5)(−3) − (1)(−1) = −14
  3. Δᵧ = (2)(−1) − (5)(1) = −7
  4. x = −14 / −7 = 2, y = −7 / −7 = 1

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

↑ 返回頁頂 Back to top

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

⚠️ Δ = 0 不等於「無解」 Δ = 0 does not mean "no solution"當 Δ = 0 時,方程組只是沒有唯一解,仍可能有無限多個解。必須化簡增廣矩陣才能分辨這兩種情況。When Δ = 0 the system has no unique solution. It may still have infinitely many. You must reduce the augmented matrix to tell the two cases apart.
⚠️ Δ = 0 時不能用克萊瑪法則 Cramer’s rule cannot be used when Δ = 0除以 Δ = 0 沒有定義。在參數取特殊值時,應改用高斯消去法,並以參數 t 寫出通解。Dividing by Δ = 0 is undefined. For the special value of the parameter, switch to Gaussian elimination and write the general solution with a parameter t.
↑ 返回頁頂 Back to top

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

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

(高斯消去法 Gaussian elimination)用高斯消去法解:x + y + z = 6、2x − y + z = 3、x + 2y − z = 2。Solve by Gaussian elimination: x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2.
(參數與 Δ Parameter and Δ)k 取何值時,方程組 x + y + kz = 1、x + ky + z = 1、kx + y + z = 1 有唯一解?For what values of k does the system x + y + kz = 1, x + ky + z = 1, kx + y + z = 1 have a unique solution?
(齊次方程組 Homogeneous system)求 x + 2y − z = 0、2x + y + z = 0、x − y + 2z = 0 的非零解。Find the non-trivial solutions of x + 2y − z = 0, 2x + y + z = 0, x − y + 2z = 0.
↑ 返回頁頂 Back to top

常見問題 Frequently Asked Questions

↑ 返回頁頂 Back to top

相關主題 Related Topics

行列式 Determinants矩陣 Matrices向量的應用 Applications of VectorsDSE M2 全部課題 DSE M2: all topicsDSE M2 公式表 DSE M2 formula sheetM1 與 M2 的分別 M1 vs M2DSE M1 筆記 DSE M1 notesHKDSE 數學全部課題 HKDSE Math: all topics
線性方程組 DSE 練習題 Try a DSE Practice Question