自 2010 年 · 每月支持超过 200 万次工具运行
自 2010 年
添加到 Chrome

我的工具箱

自动模式

还没有收藏的工具。

升级为高级版
相关工具
矩阵幂计算器矩阵指数计算器矩阵计算器行列式计算器雅可比矩阵计算器线性方程组求解器化学方程式配平器
主页 > 数学 > 线性代数
 

克莱姆法则计算器

用克拉默法则求解二元或三元线性方程组。输入系数,查看行列式计算步骤、矩阵动画及几何图解。

免费使用无需注册即时出结果
克莱姆法则计算器立即免费试用 ▼
Examples:
xy
[
a₁₁
a₁₂
a₂₁
a₂₂
] = [
b₁
b₂
]

Embed 克莱姆法则计算器 Widget

克莱姆法则计算器

克莱姆法则计算器可以求解 2 元或 3 元线性方程组,使用的是行列式方法。输入系数矩阵和常数向量,即可得到完整的解,包括逐步的行列式计算过程、展示列替换的动画矩阵可视化,以及针对 2×2 方程组的几何解释图。克莱姆法则是线性代数中的一项基本方法,它把每个变量都表示成两个行列式之比。

What Is Cramer's Rule?

克莱姆法则是线性代数中的一个定理,它为求解方程数与未知数数量相等的线性方程组提供了一个明确的公式,前提是该方程组存在唯一解。这个法则以瑞士数学家加布里埃尔·克莱姆(Gabriel Cramer,1704–1752)的名字命名,它使用行列式将每个变量表示为一个比值:

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

其中 \(D\) 是系数矩阵的行列式,\(D_i\) 是用常数向量替换系数矩阵第 \(i\) 列后所得矩阵的行列式。

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

3×3 矩阵的行列式通过沿第一行进行代数余子式展开来计算。每个 \(D_i\) 都是将对应列替换为常数向量后得到的,解为 \(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. 选择方程组规模:根据方程和未知数的数量选择 2×2 或 3×3。
  2. 输入系数:在左侧填入系数矩阵。每一行对应一个方程,每一列对应一个变量(x、y、z)。
  3. 输入常数:在右侧填入常数向量(每个方程的右边部分)。
  4. 点击求解:计算器会计算所有行列式(D、D_x、D_y,如有需要还有 D_z),判断解的类型,并通过动画矩阵可视化展示逐步求解过程。

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.

引用此内容、页面或工具为:

"克莱姆法则计算器" 于 https://MiniWebtool.com/zh-cn/克莱姆法则计算器/,来自 MiniWebtool,https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-04-12

线性代数:

数学求解你想解决什么数学问题?

数学求解

试试
浏览更多表达式

点击示例填入,可修改数值后求解。log 默认以 10 为底,自然对数使用 ln。

数字与因数

分数与除法

幂、根式与对数

代数与方程

微积分

几何与三角

热门与最新工具:

辛普森法则计算器洛必达法则计算器奈史密斯徒步配速计算器查看全部 →
主页 > 数学 > 线性代数 > 克莱姆法则计算器