簡化您的工作流程:搜尋 miniwebtool。
添加插件
主頁 > 數學 > 線性代數 > Cramer's Rule Calculator
 

Cramer's Rule Calculator

Solve systems of 2 or 3 linear equations using Cramer's rule. Enter coefficients, get step-by-step determinant calculations with animated matrix visualization, geometric interpretation graph, and the complete solution.

Cramer's Rule Calculator
Examples:
xy
[
a₁₁
a₁₂
a₂₁
a₂₂
] = [
b₁
b₂
]

Embed Cramer's Rule Calculator Widget

Cramer's Rule Calculator

The Cramer's Rule Calculator solves systems of 2 or 3 linear equations using determinants. Enter the coefficient matrix and constants vector, and get the complete solution with step-by-step determinant calculations, animated matrix visualization showing column replacement, and a geometric interpretation graph for 2×2 systems. Cramer's rule is a fundamental technique in linear algebra that expresses each variable as a ratio of two determinants.

What Is Cramer's Rule?

Cramer's rule is a theorem in linear algebra that provides an explicit formula for solving a system of linear equations with as many equations as unknowns, provided the system has a unique solution. Named after Swiss mathematician Gabriel Cramer (1704–1752), the rule uses determinants to express each variable as a ratio:

$$x_i = \frac{D_i}{D}$$

where \(D\) is the determinant of the coefficient matrix and \(D_i\) is the determinant formed by replacing the \(i\)-th column of the coefficient matrix with the constants vector.

Key Concepts

📐
Determinant
A scalar value computed from a square matrix that indicates whether the system has a unique solution.
🔄
Column Replacement
Replace one column of the coefficient matrix with the constants vector to form each D_i.
📊
Unique Solution
Exists when D ≠ 0. Each variable equals D_i / D.
Singular Case
When D = 0, the system has either no solution or infinitely many.

Cramer's Rule Formulas

For a 2×2 System

Given the system:

$$a_1x + b_1y = c_1$$ $$a_2x + b_2y = c_2$$

DeterminantFormulaDescription
\(D\)\(\begin{vmatrix} a_1 & b_1 \\ a_2 & b_2 \end{vmatrix} = a_1 b_2 - b_1 a_2\)Coefficient matrix determinant
\(D_x\)\(\begin{vmatrix} c_1 & b_1 \\ c_2 & b_2 \end{vmatrix} = c_1 b_2 - b_1 c_2\)Replace x-column with constants
\(D_y\)\(\begin{vmatrix} a_1 & c_1 \\ a_2 & c_2 \end{vmatrix} = a_1 c_2 - c_1 a_2\)Replace y-column with constants

Solution: \(x = D_x / D\), \(y = D_y / D\)

For a 3×3 System

The determinant of a 3×3 matrix is computed using cofactor expansion along the first row. Each \(D_i\) is formed by replacing the corresponding column with the constants vector, and the solution is \(x_i = D_i / D\).

When Does Cramer's Rule Work?

ConditionD ValueResult
Unique solutionD ≠ 0Each variable = D_i / D
No solution (inconsistent)D = 0, some D_i ≠ 0Lines/planes are parallel
Infinitely many solutionsD = 0, all D_i = 0Equations are dependent

Cramer's Rule vs. Other Methods

MethodBest ForLimitation
Cramer's RuleSmall systems (2×2, 3×3), exact symbolic solutionsSlow for large systems (n! complexity)
Gaussian EliminationGeneral systems, large matricesNo closed-form formula
Matrix InverseMultiple right-hand sidesRequires D ≠ 0, expensive to compute
LU DecompositionRepeated solving, numerical stabilityMore complex to implement

How to Use the Cramer's Rule Calculator

  1. Choose the system size: Select 2×2 or 3×3 depending on how many equations and unknowns you have.
  2. Enter coefficients: Fill in the coefficient matrix on the left. Each row corresponds to one equation, and each column to a variable (x, y, z).
  3. Enter constants: Fill in the constants vector on the right (the right-hand side of each equation).
  4. Click Solve: The calculator computes all determinants (D, D_x, D_y, and optionally D_z), determines the solution type, and shows the step-by-step process with animated matrix visualization.

Real-World Applications

FieldApplicationExample
EngineeringCircuit analysis (Kirchhoff's laws)Finding currents in a resistor network
EconomicsMarket equilibriumSupply and demand intersection
PhysicsForce balanceFinding reaction forces in statics
ChemistryBalancing equationsStoichiometric coefficients
Computer GraphicsCoordinate transformationsLine/plane intersection points

FAQ

What is Cramer's rule?
Cramer's rule is a method for solving a system of linear equations using determinants. For each variable, you replace its column in the coefficient matrix with the constants vector and divide the resulting determinant by the main determinant. It works when the coefficient matrix has a nonzero determinant.
When does Cramer's rule fail?
Cramer's rule fails when the determinant of the coefficient matrix is zero. This means the system either has no solution (inconsistent — the equations describe parallel lines or planes) or infinitely many solutions (dependent — the equations are redundant). In such cases, other methods like Gaussian elimination are needed.
What is the formula for Cramer's rule in a 2×2 system?
For the system a1*x + b1*y = c1, a2*x + b2*y = c2: x = Dx/D and y = Dy/D, where D = a1*b2 - b1*a2 is the determinant of the coefficient matrix, Dx replaces the x-column with the constants, and Dy replaces the y-column with the constants.
Can Cramer's rule solve systems larger than 3×3?
Cramer's rule can theoretically solve any n×n system, but it becomes computationally expensive for large systems because it requires computing n+1 determinants, each of size n×n. For systems larger than 3×3, methods like Gaussian elimination or LU decomposition are far more efficient in practice.
What does a zero determinant mean geometrically?
For a 2×2 system, a zero determinant means the two lines are parallel (no solution) or coincident (infinitely many solutions). For a 3×3 system, it means the three planes do not intersect at a single point — they may be parallel, intersect along a line, or all coincide in a plane.

引用此內容、頁面或工具為:

"Cramer's Rule Calculator" 於 https://MiniWebtool.com/zh-tw/克萊姆法則計算機/,來自 MiniWebtool,https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-04-12

您還可以嘗試我們的 AI數學解題器 GPT,通過自然語言問答解決您的數學問題。

其他相關工具:

線性代數:

常用工具:

分數計算機標準偏差計算機 - 高精度斜邊計算機毛利率計算機磅轉公斤轉換器最簡分數計算機圖片分割器相對標準偏差計算機真心話大冒險產生器kg到lbs轉換器比例計算機羅馬數字轉換器kpa到psi轉換器圓計算機百分比增加計算機百分比增長率計算機AI內容檢測器隨機撲克牌產生器MAC地址查找百分比折扣計算機質數分解計算機🎮 遊戲靈敏度轉換器分數到小數計算機百分比誤差計算機分數百分比轉換器年齡計算機太陽、月亮與上升星座計算機 🌞🌙✨百分比減少計算機隨機名稱生成器百分比計算機HEX計算機百分比變化計算機ANC計算機樂透號碼生成器迷宮產生器商和餘數計算機校正鈣計算機定期存款計算機年份天數計算機 - 今天是今年的第幾天OPS計算機加價計算機反向文字複利計算機影片轉圖片擷取器SRT時間偏移小數到分數計算機因子計算機查找並替換文字坡度與傾斜度計算機CAGR計算機psi到kpa轉換器線性迴歸計算機簡單利息計算機調整影片速度對數計算機跑步配速計算機隨機信用卡生成器組合計算機畢達哥拉斯定理計算機隨機顏色生成器二次公式計算機兩點間距離計算機我的幸運數字是什麼Bar to PSI 轉換器凱薩密碼工具小字體生成器 ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾合併影片多分數計算機隨機選擇器棒球打擊率計算機PSI 轉 Bar 轉換器SRT轉換為TXT工具行數統計工具隨機錦標賽對陣生成器名人名言搜尋 (英文)最小公倍數計算機橢圓 周長計算機隨機撲克手牌生成器比率與百分比計算機汽車貸款計算機複數計算機隨機餐點產生器克到磅轉換器平均值計算機樣本標準差計算機音訊分割器質數檢查器厘米到英尺和英寸轉換器MAC地址產生器圖片打碼工具上壘率計算機文字重複工具階乘計算機隨機生日生成器cpm計算機賓果卡生成器騎行速度計算機⏱️ 小時計算機積分計算機填字遊戲製作器視訊位元率計算機音樂調性轉換器音樂BPM節拍點擊器照片檔案大小估計計算機百萬畫素到列印尺寸計算機裁切係數計算機曝光三角計算機車輛拖曳能力計算機汽車租賃計算機0–60與四分之一英里計算機電動車充電時間計算機電動汽車續航計算機汽車油耗計算器服裝尺碼轉換器紙張尺寸參考表戒指尺寸轉換器天文單位轉換器燃油效率轉換機 MPG L/100km km/L資料傳輸速率轉換器扭力轉換器 (Nm, ft-lb, kgf-cm)刪除線文字產生器空白字元視覺化工具閱讀時間計算機演講時間計算機段落計數器句子計數器音節計數器文字轉二進位/十六進位/ASCII轉換器Lorem Picsum 佔位圖片產生器.env 檔案生成器Git 指令生成器顏色代碼轉換器全格式Bcrypt 雜湊產生器和驗證器JWT產生器CSS Grid 生成器數值積分計算機Z變換計算機快速傅立葉變換FFT計算機張量積計算機矩陣指數計算機約當標準形計算機環與體計算機群論階數計算機常微分方程組求解器伯努利微分方程式求解器歐拉方法計算機方向場斜率場繪圖器二階常微分方程求解器一階常微分方程求解器穩定婚姻問題求解器網路最大流計算機平面圖檢查器漢密爾頓路徑檢查器旅行推銷員問題求解器 (TSP)線性規劃求解器容斥原理計算機遞迴關係求解器鄰接矩陣計算機拓撲排序計算機圖著色計算機邏輯閘模擬器卡諾圖 (K-Map) 求解器布林代數化簡器分拆函數計算機數字根計算機費波那契數檢查器埃及分數計算機莫比烏斯函數計算機哥德巴赫猜想驗證器梅森質數檢查器孿生質數查找器親和數檢查器完全數檢查器模冪運算計算機重複排列計算機效果量計算機相對風險計算機勝算比計算機列聯表計算機費雪精確檢定計算機斯皮爾曼等級相關係數計算機貝塔分布計算機韋布爾分佈計算機指數分佈計算機幾何分佈計算機負二項分布計算機超幾何分布計算機F-Test/F分布計算機貝氏定理計算機特徵多項式計算機矩陣冪計算機喬列斯基分解計算機QR分解計算機矩陣對角化計算機Cramer's Rule Calculator行空間計算機零空間計算機向量夾角計算機單位向量計算機向量大小計算機向量外積計算機向量點積計算機矩陣乘法計算機逆矩陣計算機RREF計算機列最簡階梯形牛頓迭代法計算機雅可比矩陣計算機曲面積分計算機線積分計算機旋度計算機散度計算機梯度計算機多變量優化計算機微積分相關變化率求解器瞬時變化率計算機平均變化率計算機無限級數求和計算機級數收斂判定計算機冪級數計算機麥克勞林級數計算機洛必達法則計算機廣義積分計算機辛普森法則計算機梯形法則計算機黎曼和計算機參數曲線繪圖器旋轉體表面積計算機旋轉體體積計算機座標幾何距離計算機海倫公式計算機圓的切線計算機角平分線計算機內切圓計算機三角形外接圓計算機大圓距離計算機3D距離計算機環面計算機圓台計算機不規則多邊形面積計算機正多邊形計算機圓錐曲線識別器雙曲線計算機拋物線計算機二項式定理展開計算機帕斯卡三角形產生器乘積符號計算機 (Pi 記號)西格瑪求和計算機有理根定理計算機笛卡爾符號法則計算機平行線和垂直線計算機直線方程式計算機標準形式轉斜截式轉換器點斜式計算機非線性方程組求解器有理方程式求解器字母方程式求解器三角方程式求解器指數方程式求解器對數方程式求解器四次方程式計算機三次方程求解器估算計算機數字轉分數轉換器跳數產生器單位費率計算機上取整和下取整計算機絕對值計算機數列模式查找器位值圖產生器運算順序計算機PEMDAS直式加減法計算機長乘法計算機乘法表產生器🎮 遊戲貨幣換算器🎲 掉落機率計算機🎰 抽卡保底計算機⚔️ DPS計算機❄️ 雪天計算機🚚 搬家費用估算器🔍 抄襲檢測器📷 OCR / 圖片文字辨識📈 折線圖製作工具🥧 圓餅圖製作工具📊 長條圖製作工具🔊 音調產生器🖱️ 點擊計數器線上記事本⬛ 寬高比計算機🌍 碳足跡計算機👙 胸罩尺碼計算機輪胎尺寸計算機燃油費用計算機💧 露點計算機🌡️ 體感溫度計算機🌬️ 風寒指數計算機⏰ 線上鬧鐘⏰ 打卡計算機📅 日期差計算機🕐 軍事時間轉換器⏱️ 線上碼錶⏱️ 倒數計時器🌐 時區轉換器地毯計算機擋土牆計算機HVAC容量計算機隔熱材料計算機鋪路石計算機鋼筋計算機木材計算機平方英尺計算機交叉相乘計算機五數概括計算機百分位數計算機正態分布計算機p值計算機比率計算機配方法計算機四捨五入計算機長除法計算機科學計算機番茄鐘學習計時器有效數字計算機考試成績計算機加權成績計算機期末成績計算機成績計算機諧振頻率計算機阻抗計算機分貝 (dB) 計算機功率因數計算機RC時間常數計算機變壓器計算機線規計算機555定時器計算機電容器計算機並聯電阻計算機分壓器計算機LED電阻計算機莫耳/克/粒子轉換器滴定計算機沸點計算機經驗式計算機百分產率計算機化學計量計算機化學方程式平衡器稀釋計算機馬力計算機扭矩計算機自由落體計算機理想氣體狀態方程計算機壓力計算機密度計算機功和功率計算機位能計算機動能計算機拋體運動計算機動量計算機速度計算機加速度計算機力計算機網紅行銷ROI計算機ROAS計算機CTR計算機社交媒體用戶名檢查器社群媒體發文時間優化工具社群媒體ROI計算機Facebook廣告費用計算機YouTube Shorts 收益計算機Twitch收益計算機YouTube觀看時間計算機Twitter/X 時間戳轉換器YouTube頻道統計TikTok收益計算機社群媒體圖片尺寸指南Instagram字體生成器Twitter/X 字元計數機YouTube留言抽選器YouTube標籤提取器YouTube縮圖下載器YouTube收益估算器隨機RPG角色生成器