簡化您的工作流程:搜尋 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,通過自然語言問答解決您的數學問題。

線性代數:

常用工具:

隨機撲克牌產生器分數計算機真心話大冒險產生器模計算機斜邊計算機百分比增加計算機隨機信用卡生成器羅馬數字轉換器相對標準偏差計算機HEX計算機🎮 遊戲靈敏度轉換器最簡分數計算機比例計算機圓計算機kpa到psi轉換器磅轉公斤轉換器百分比減少計算機百分比折扣計算機百分比增長率計算機樣本標準差計算機商和餘數計算機kg到lbs轉換器MAC地址查找Instagram用戶ID查詢毛利率計算機質數分解計算機校正鈣計算機百分比變化計算機圖片分割器太陽、月亮與上升星座計算機 🌞🌙✨年齡計算機反向文字隨機字母生成器隨機餐點產生器最小公倍數計算機ANC計算機🌡️ 體感溫度計算機查找並替換文字坡度與傾斜度計算機畢達哥拉斯定理計算機兩點間距離計算機影片轉圖片擷取器百分比誤差計算機分數百分比轉換器Bar to PSI 轉換器調整影片速度AI內容檢測器因子計算機標準偏差計算機 - 高精度加價計算機年份天數計算機 - 今天是今年的第幾天克到磅轉換器賓果卡生成器凱薩密碼工具隨機名稱生成器SRT時間偏移二次公式計算機複利計算機音訊分割器土星回歸計算機樂透號碼生成器CAGR計算機心算訓練器簡單利息計算機隨機數學題產生器對數計算機合併影片小字體生成器 ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾定期存款計算機影片壓縮器psi到kpa轉換器迷宮產生器平均值計算機血壓解讀器分數到小數計算機棒球打擊率計算機出生星期計算機考拉茲猜想計算機⏱️ 小時計算機文字重複工具隨機選擇器FPS 轉換器YouTube頻道統計百分比到ppm轉換器隨機顏色生成器📅 日期計算機磅到克轉換器cpm計算機橢圓 周長計算機小數到分數計算機速度計算機Facebook用戶ID查詢壓力轉換器工作搜尋器SRT轉換為TXT工具剪刀石頭布產生器條碼產生器星期幾計算機直角三角形計算機組合計算機隨機英文單字產生器比率與百分比計算機最大公因子計算機總體標準差計算機-高精度數獨產生器與求解器百分比計算機我的幸運數字是什麼MAC地址產生器質數檢查器文件大小轉換器💧 露點計算機行數統計工具HEX轉換器可整除測試計算機純利潤計算機ERA計算機GUID / UUID 生成器汽車貸款計算機刪除線文字產生器圖片打碼工具隨機錦標賽對陣生成器黃金比例計算機積分計算機線規計算機總和計算機隨機物品生成器線性迴歸計算機上壘率計算機步數距離計算機弧長計算機排序數字保齡球計分計算機複數計算機預期壽命計算機隨機字符串生成器隨機時間生成器騎行速度計算機體積轉換器音節計數器演講時間計算機PSI 轉 Bar 轉換器投球命中率計算機鋼筋計算機YouTube收益估算器速度轉換器公因子計算機AI標點符號添加器密度計算機移除標點符號線上工具隨機日期生成器立方根計算機跑步配速計算機影片分割器扭力轉換器 (Nm, ft-lb, kgf-cm)汽車折舊計算機游泳配速計算機為影片新增浮水印科學記數法計算機GIF 轉 MP4 轉換器填字遊戲製作器樓梯計算機比率計算機相關係數計算器OPS計算機慣性矩計算機預產期計算機多分數計算機獲取字符串長度AI Token 計算機圓台計算機隨機貓狗名字產生器比較分數計算機克到盎司轉換器鋼材重量計算機WHtR計算機XML驗證器愛情兼容性計算機隨機生日生成器凱利公式計算機正方形計算機二進製計算機刪除換行符質數列表不規則多邊形面積計算機圖片旋轉器橢圓面積計算機階乘計算機MP3循環播放器乘法計算機債券收益率到期日計算機斜率計算機SRT合併工具分數簡化旋轉影片混凝土計算機股票平均成本計算機圓錐展開圖模板產生器將前綴和後綴添加到文本Base64解碼器圓柱體體積計算機 高精度瀝青計算機立方碼計算機天線長度計算機電線管填充率計算機串聯並聯電容計算機感抗計算機房間照明計算機勒克斯轉流明計算機流明轉瓦特轉換器發電機功率計算機mah到wh轉換器三相功率計算機kVA計算機安培轉瓦特計算機瓦特轉安培計算機串聯電阻計算機摩擦力計算機斜面計算機機械利益計算機聲速計算機波速計算機浮力計算機終端速度計算機德布羅意波長計算機光子能量計算機emc2計算機時間膨脹計算機克卜勒第三定律計算機逃逸速度計算機萬有引力計算機比爾-朗伯定律計算機能斯特方程式計算機滲透壓計算機沸點上升計算機凝固點下降計算機百分比組成計算機當量濃度計算機重量莫耳濃度計算機pKa到Ka轉換器亨德森-哈塞爾巴爾赫計算機理論產量計算機限量試劑計算機電子組態計算機互動式元素週期表AI教案產生器AI測驗產生器引用產生器 (APA/MLA/Chicago)出席率計算機AP分數計算機ACT分數計算機SAT分數計算機百分比轉CGPA轉換器CGPA轉百分比轉換器簡易評分器 EZ Grader養育孩子成本計算機寶寶奶量計算機尿布尺寸計算機嬰兒名字產生器寶寶眼睛顏色預測器兒童BMI百分位計算機兒童身高預測器hcg翻倍時間計算機試管嬰兒預產期計算機著床計算機中國生男生女預測器ISO 8601 日期格式化工具儒略日轉換器午睡計算機月相計算機日出日落計算機世界時鐘日期至羅馬數字轉換器退休倒數計時戒癮天數計算機半歲生日計算機紀念日計算機週數計算機小費分配計算機電子郵件行銷ROI計算機每筆潛在客戶成本計算機營運資本計算機邊際貢獻計算機FIFO / LIFO 計算機安全庫存計算機再訂購點計算機經濟訂購量eoq計算機折舊計算機手工藝品定價計算機批發價格計算機Shopify 利潤計算機Amazon FBA 計算機eBay費用計算機Etsy費用計算機Stripe 手續費計算機PayPal手續費計算機投注賠率轉換器十一奉獻計算機天課計算機英國印花稅計算機HRA免稅計算機服務酬金計算機NPS計算機EPF計算機PPF計算機RD計算機SWP計算機稅前薪資倒推計算機貸款比較計算機信用使用率計算機CD階梯計算機美國國庫券T-Bill計算機I 系列儲蓄債券計算機529大學儲蓄計算機HSA計算機遣散費計算機加薪計算機發票產生器出差津貼計算機里程報銷計算機房租漲幅計算機按比例租金計算機房租負擔能力計算機汽車落地價計算機購車預算計算器機車貸款計算機房車貸款計算機船舶貸款計算機土地貸款計算機建築貸款計算機只付利息抵押貸款計算機氣球貸款計算機房貸點數計算機PMI計算機雙週房貸還款計算機ARM浮動利率房貸計算機VA貸款計算機實領薪資計算機AI SQL 查詢產生器AI正規表達式產生器AI 資料視覺化工具(貼上 CSV)AI文字語氣分析器AI履歷分析器AI單位轉換器自然語言AI道歉信產生器AI禮貌藉口產生器AI 旅行行程產生器AI閱讀清單產生器AI健身計劃產生器AI膳食計畫生成器AI禮物點子產生器AI食譜產生器依現有食材獎學金投資報酬率計算機大學費用計算機語言學習流利度小時數計算機詞彙測驗產生器康乃爾筆記產生器學習曲線計算機閃卡間隔重複排程器顏料調色計算機磁磚填縫劑計算機六標準差製程能力計算機YouTube縮圖下載器隨機RPG角色生成器