【線性方程組(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.
例題 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 →
Find Δ, the determinant of the coefficient matrix, in terms of the parameter.
The system has a unique solution exactly when Δ ≠ 0. Solve Δ = 0 to find the special values of the parameter.
For each special value, substitute it and reduce the augmented matrix by row operations.
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.
例題 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(3k − 2) − 1(2k − 1) + 1(4 − 3) = k
(a) 有唯一解 ⟺ Δ ≠ 0 ⟺ k ≠ 0(a) Unique solution ⟺ Δ ≠ 0 ⟺ k ≠ 0
(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
只有當 h − 2 = −1 時才相容,所以 h = 1Consistent only if h − 2 = −1, so h = 1
設 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.
⚠️ Δ = 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.
溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。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.
當且僅當係數矩陣的行列式不等於零。此時克萊瑪法則、逆矩陣法或高斯消去法都會得出同一個解。
Exactly when the determinant of the coefficient matrix is not zero. Then Cramer’s rule, the inverse matrix or Gaussian elimination all give the same single solution.
化簡增廣矩陣。若出現 0 0 0 | c(c ≠ 0)的一行,即出現矛盾,方程組無解。若出現全為零的一行,表示其中一條方程是多餘的,方程組有無限多個解。
Reduce the augmented matrix. A row 0 0 0 | c with c ≠ 0 is a contradiction, so there is no solution. A row of all zeros means one equation is redundant, so there are infinitely many solutions.
齊次方程組必定有平凡解 x = y = z = 0。非零解是指其他任何解;當且僅當係數矩陣為奇異矩陣時才存在。
A homogeneous system always has the trivial solution x = y = z = 0. A non-trivial solution is any other solution; it exists exactly when the coefficient matrix is singular.