Cramer's rule
Formula for systems of linear equations
- 17 chapters
- 24m
- Mathematics
- Free · no sign-up
The text includes both theoretical proofs and practical examples. Readers will find discussions on inconsistent and indeterminate cases, with specific worked examples showing how to handle each situation. Geometric interpretation helps visualize solutions while abstract linear algebra proofs offer deeper mathematical understanding.
This resource covers everything from basic concepts to advanced applications. Each chapter builds logically on previous sections, making complex topics accessible. Anyone studying linear algebra or working with systems of equations will find this guide valuable for both learning and reference.
Listen
-
Read this chapter
When an n × n matrix A has a determinant that is not zero, and you have a vector x made up of the variables, then there's a theorem that tells us the system has just one solution. That solution gives you the exact values for each unknown variable. The theorem says that in this situation, you can find those values using a specific formula.
When dealing with a system of linear equations represented by an n × n matrix A that has a nonzero determinant, and where X and B are n × m matrices, we can examine specific subsets of rows and columns. For given sequences of row indices i₁ < i₂ < ⋯ < iₖ ≤ n and column indices j₁ < j₂ < ⋯ < jₖ ≤ m, let XI,J denote the k × k submatrix of X formed by taking rows indexed by I and columns indexed by J. Similarly, let AB(I,J) be the n × n matrix constructed by replacing the iₛ-th column of A with the jₛ-th column of B for each s from 1 to k.
-
Read this chapter
The proof for Cramer's rule depends on two key properties of determinants: linearity with respect to any column and the fact that a determinant equals zero when two columns are identical. That second property comes from the idea that swapping any two columns flips the sign of the determinant. To prove the rule, we fix one column index j and treat the other columns as having fixed values. This makes the determinant a function of just the entries in the jth column. Because of linearity, this function takes a specific form.
If you apply the function Dj to any column k of the matrix A that isn't column j, the result is the determinant of a new matrix where column j has been replaced by column k. Since that matrix ends up having two identical columns, its determinant equals zero. Now, imagine a system made up of n linear equations with n unknowns, represented by the coefficient matrix A, assuming that the determinant of A is not zero.
If you take the equations and combine them by multiplying the first one by C1,j, the second by C2,j, and so on up to the last multiplied by Cn,j, then for any value of k, the new coefficient of xk turns out to be zero. That is, all coefficients vanish except for the one attached to xj, which equals det(A). At the same time, the constant term becomes Dj(b1,…,bn), leaving you with a single equation that looks like this:
As constructed, the numerator equals the determinant of the matrix formed by replacing column *j* of *A* with *b*, which gives us Cramer’s rule as a necessary condition for a solution. We still need to show that these values for the unknowns actually solve the system. Let *M* be the *n* × *n* matrix where row *j* contains the coefficients of *Dj*, for *j* = 1, ..., *n*—this is the adjugate matrix of *A*. In matrix terms, we now have to prove that...
This concludes the argument, because when you have a square matrix with a left inverse, it automatically has a right-inverse as well. That’s according to the Invertible matrix theorem, which lays out the conditions under which matrices behave in predictable ways. So the proof stands, relying on that established principle to tie everything together.
-
Read this chapter
If you're trying to find the inverse of a matrix, you'll need to use the adjugate matrix and the determinant. The adjugate matrix is denoted as adj(A), and the determinant is written as det(A). There's also the identity matrix, which is labeled I. As long as the determinant of A is not zero, then you can calculate the inverse matrix of A using this relationship. That condition — a nonzero determinant — is essential for the inverse to exist. Without it, there’s no inverse. So when working with matrices, always check that the determinant isn't zero before attempting to find the inverse.
This gives us a way to find the inverse of matrix A, as long as its determinant is not zero. Actually, this method works more generally, whenever we're dealing with a commutative ring and the determinant is a unit in that ring. When the determinant isn't a unit, then the matrix doesn't have an inverse within the ring, though it might be invertible if we move to a larger ring where some of those non-unit elements become invertible.
-
Read this chapter
In systems of linear equations with three unknowns, there's a way to solve for each variable using determinants. For instance, to find x, you take the determinant of a matrix where the first column is replaced by the constants d1, d2, d3, and divide that by the determinant of the original coefficient matrix. The same process applies to y and z, but with their respective columns replaced. These formulas show how each variable relates directly to the ratios of these specific determinants, giving explicit solutions for systems involving three equations and three unknowns.
-
Read this chapter
Cramer's rule plays a role in Ricci calculus, particularly when working with Christoffel symbols—those important quantities that help describe curvature in spaces where distances and angles change. The calculations involve both the first and second kinds of these symbols, which appear throughout the mathematical machinery of the theory. This connection shows how Cramer’s method, originally developed for solving systems of linear equations, finds its way into more advanced areas of mathematics used to understand geometric structures. It's a bridge between basic algebra and the deeper tools needed in differential geometry.
Cramer's rule helps us prove that the divergence operator on a Riemannian manifold stays the same even when we change coordinates. We give a direct proof here, without needing to bring in the Christoffel symbols. This approach makes the result clearer by focusing on what’s essential. The method relies on Cramer’s technique to show invariance, keeping the explanation clean and focused. It's a way of demonstrating that certain mathematical operations don’t depend on how we choose to describe them. The proof avoids complications introduced by other tools, making it more straightforward. That's the key idea behind this part of Ricci calculus.
On a manifold M with a metric g, we consider local coordinates labeled x₁ through xₙ. A vector field A is expressed as Ai∂/∂xi, where the summation convention applies throughout the discussion.
-
Read this chapter
Here is the paragraph following your detailed instructions:
Consider this system of three linear equations with three unknowns: 3x minus 2y plus 5z equals 24, 4x minus 7y minus z equals 19, and 5x minus 6y plus 4z equals 13. To solve it using Cramer’s Rule, we first define the coefficient matrix A as having rows [3, −2, 5], [4, −7, −1], and [5, −6, 4]. Then we form three related matrices A1, A2, and A3 by replacing the columns of A with the constants from the right side of the equations. Calculating their determinants yields |A| = −5, |A1| = −5, |A2| = 10, and |A3| = 5. Applying Cramer’s Rule gives x = 1, y = −2, and z = −1. Substituting these values back into the original equations confirms they are correct.
-
Read this chapter
Here is the rewritten paragraph in clear spoken English, following all your guidelines:
Cramer's rule offers a method for solving systems of linear equations, specifically when you have a square matrix A and a vector b, and a unique solution is guaranteed to exist. The pseudocode outlines the steps needed to calculate that solution using determinants. It’s a systematic approach, describing exactly how to compute each variable in the system by replacing columns within the coefficient matrix and evaluating resulting determinants. This algorithm provides a direct formula for finding the values of the unknowns without needing to perform row operations or use matrix inversion. The process relies on the properties of determinants and the structure of the linear system itself, making it both elegant and precise in its application.
-
Read this chapter
Cramer's rule isn’t just an algebraic tool—it also has a meaningful geometric interpretation that helps us visualize what’s happening with systems of equations. This geometric view can serve as a kind of proof or at least offer insight into why the rule works the way it does. These ideas apply broadly, not just to simple cases like two equations with two unknowns, but to more general situations as well.
The area of the parallelogram formed by the vectors (a11, a21) and (a12, a22) can be calculated using the determinant of the system of equations. This determinant gives the geometric measure of the space enclosed by those two vectors in a plane. When you have a system of linear equations with two variables, the coefficient matrix defines these two vectors. The value of the determinant tells you the area of the parallelogram they create. This connection between algebra and geometry is key to understanding how systems of equations behave visually. It's not just numbers on a page — it's about shape and space. The determinant provides that link between the mathematical formula and its geometric meaning.
When you have a system of linear equations with more variables and equations, you can think of it geometrically using determinants. Specifically, if you have n vectors in n-dimensional space, the determinant of those vectors gives you the volume of the shape they form — called a parallelepiped. This idea extends into higher dimensions, so in three-dimensional space, for example, three vectors create a parallelepiped whose volume equals the absolute value of their determinant. The same principle applies no matter how many dimensions you're working in.
The area of a parallelogram formed by vectors x₁(a₁₁, a₂₁) and (a₁₂, a₂₂) equals x₁ times the area of the original parallelogram, because one side has been scaled by that factor. Then, using Cavalieri’s principle, this final parallelogram shares the same area as the one built from (b₁, b₂) = x₁(a₁₁, a₂₁) + x₂(a₁₂, a₂₂) and (a₁₂, a₂₂).
-
Read this chapter
Consider the map that takes a vector x = (x₁, …, xₙ) and sends it to (1/det A)(det(A₁), …, det(Aₙ)), where Aᵢ is the matrix A with x inserted into the i-th column, just as in Cramer’s rule. Because the determinant is linear in each column, this map is itself linear. It maps the i-th column of A to the i-th standard basis vector eᵢ = (0, …, 1, …, 0), since a matrix with two identical columns has determinant zero. So this linear map agrees with the inverse of A on the column space of A. Since A is invertible, its columns span all of ℝⁿ, meaning the map is indeed A⁻¹. Cramer’s rule follows directly.
-
Read this chapter
If we assume the original matrix A is invertible, then the matrix X1 has columns formed by A⁻¹b, A⁻¹v₂, and so on, up to A⁻¹vₙ, where vₙ represents the n-th column of A. Now recall that matrix A₁ is constructed with columns b, v₂, ..., vₙ. Because of this, X₁ equals A⁻¹ times A₁. Using the rule that the determinant of a product equals the product of the determinants, we can now proceed to the next step in the proof.
-
Read this chapter
When we talk about systems of linear equations, we sometimes encounter situations where there are no solutions at all. This is called an inconsistent system. On the other hand, there are cases where a system has more than one solution — this is known as an indeterminate system. For linear equations specifically, if a system is indeterminate, it will have infinitely many solutions, provided we're working over an infinite field. In such cases, the solutions can be described using one or more parameters that can take on any value.
Cramer’s rule works when the main determinant of a system is not zero. But if that determinant equals zero—especially in a 2×2 system—then things get more complicated. If the determinants in the numerator are nonzero, the system has no solution and is called inconsistent. However, if those numerator determinants are also zero, then the system might have infinitely many solutions and is said to be indeterminate.
-
Read this chapter
By looking at the equations closely, you can see that the second one is just the first one multiplied by a number, which means there isn’t one unique answer. Instead, there are actually infinitely many solutions. When you try to use Cramer's Rule to solve this system, you end up dividing by zero because the main determinant equals zero. That tells us right away that the system doesn't have a single solution, but rather an infinite set of them. So even though we might attempt to apply the rule, it shows us the system is indeterminate.
When we apply Cramer’s rule to this system, we find that both the numerators and denominators in the formulas equal zero. This result tells us the system has infinitely many solutions, which means it's indeterminate. The equations don't lead to a unique answer; instead, they describe a relationship where multiple values satisfy all conditions at once. So even though we've used the method correctly, the outcome shows us that this particular set of equations doesn’t have one solution—it has an infinite number. That’s what makes it indeterminate.
-
Read this chapter
By looking at the system of equations, you can see that the expressions on the left side are exactly the same in both equations, but the numbers on the right are different. Because of this, there's no solution that can satisfy both equations at once. That makes the system inconsistent. When you try to apply Cramer's Rule anyway, it leads to a result that shows there are no solutions.
When we apply Cramer’s rule to this system, we find that the solutions involve fractions where the denominator equals zero. This makes those values undefined. However, the numerators in these fractions are not zero—they remain non-zero. Because of this, the system has no valid solution and is classified as inconsistent.
When working with 3×3 or larger systems of linear equations, a zero coefficient determinant doesn’t give you a complete picture. If any of the numerator determinants are nonzero, then the system is definitely inconsistent. But it's important to note that even when all determinants equal zero, the system may still be inconsistent rather than indeterminate. A straightforward example shows this: the system where x+y+z=1, x+y+z=2, and x+y+z=3. These equations contradict each other, yet all the relevant determinants come out as zero.
-
Read this chapter
Cramer’s rule isn’t practical for larger systems of equations. If you have n equations with n unknowns, you need to calculate n plus one determinants. Gaussian elimination, on the other hand, is much more efficient, requiring about the same amount of work as computing just one determinant. There's even a method called the Bareiss algorithm that tweaks Gaussian elimination so it can produce all the necessary determinants in one go, making it faster and cleaner than using Cramer’s rule directly.
This method works with permutations just as the Gaussian approach does. So when using approximate calculations, the results can be more reliable than those from Gaussian methods. That's because the early steps are computed without any rounding errors, before numbers get rounded off later in the process.
In 1997, a method for solving systems of linear equations using Cramer's rule was introduced that matches the computational complexity of matrix multiplication. One such approach uses the Strassen Multiplication Algorithm and calculates the solution in (7/15)nlog₂(7) plus additional operations proportional to n squared.
Despite its slow speed compared to other methods, Cramer’s Rule is still a useful tool in linear algebra for understanding the nature of solutions without actually solving the system. It helps engineers and mathematicians study problems in lower dimensions, especially when working by hand with messy decimals. For instance, someone might face a problem like this:
-
Read this chapter
Overview
A system of linear equations is just a set of equations with the same variables, like x, y, and z, where each equation is a straight-line relationship. For example, three equations in three unknowns can be solved together to find values that work for all of them at once. One such solution might be the triple (1, -2, -2), which satisfies every equation in the system. These systems are central to linear algebra and show up everywhere from engineering to economics. They're also important in numerical methods, where algorithms help solve them. While real or complex numbers are usually the focus, the math works for other kinds of values too — even more unusual structures like those studied in tropical geometry.
Simple nontrivial example
Here is a rewritten version of the paragraph:
A basic but important type of linear system contains two equations with two unknowns, like 2x plus 3y equals 6, and 4x plus 9y equals 15. To work through this kind of problem, start by rearranging the first equation to express x in terms of y, giving x equals 3 minus 3 over 2 times y. Then replace x in the second equation with that expression, leading to an equation with only y. Once you solve for y and get y equals 1, plug that value back into the original expression for x to find that x equals 3 over 2. This approach can be extended to handle systems involving more variables.
General form
A system of linear equations can be expressed in a general form using m equations and n unknowns, where each equation is written as a sum of products of coefficients and variables equaling a constant term. The coefficients are typically real or complex numbers, though they can also be integers, rational numbers, polynomials, or elements from more abstract algebraic systems. Each equation in the system involves the same set of unknowns, represented as x1 through xn, and the constants on the right side of the equations are denoted as b1 through bm. This format allows for a structured approach to solving multiple equations simultaneously, with the number of equations m matching the number of constant terms, and the number of unknowns n determining how many variables need to be found.
-
Read this chapter
Overview
In linear algebra, the adjugate or classical adjoint of a square matrix is what you get when you take the transpose of its cofactor matrix. It's also sometimes called the adjunct matrix, though that term can be confusing since it’s easily mistaken for the adjoint operator — a different idea altogether, especially for real matrices where that operator is just the transpose. When you multiply any matrix by its adjugate, you get a diagonal matrix, meaning all the entries off the main diagonal are zero. The numbers along the diagonal are all the same: they’re the determinant of the original matrix. This relationship helps us find the inverse of a matrix, too — if the matrix is invertible, we can calculate its inverse by dividing its adjugate by its determinant.
Definition
The adjugate of a matrix A is what you get when you take the cofactor matrix C and flip it over its diagonal, written as C transpose. To build that cofactor matrix, you start with the original matrix A, which has entries from a commutative ring R. For each entry in A, you compute its minor Mij, which is the determinant of the smaller matrix formed by removing row i and column j. Then, you multiply each minor by a sign factor, (-1) raised to the power of i plus j, to get the cofactor. These cofactors form the entries of matrix C. Finally, the adjugate adj(A) is just the transpose of this cofactor matrix, so its (i, j) entry equals the (j, i) cofactor of A.
Important consequence
The adjugate matrix is defined in a way that connects directly to the determinant of a matrix. When you multiply a matrix A by its adjugate, you get a diagonal matrix where all the diagonal entries are equal to det(A). This relationship is a result of the Laplace expansion of the determinant. That formula leads to a key result in matrix algebra: a matrix A is invertible if and only if its determinant is an invertible element of the ring R. And when that condition holds, you can express the adjugate as det(A) times A inverse, or solve for A inverse using the adjugate and the determinant.
-
Read this chapter
Overview
The determinant is a fundamental scalar value derived from square matrix entries, playing a key role in linear algebra and transformations. It can be calculated explicitly for 2×2 and 3×3 matrices, defined as the unique function mapping matrix products to products of scalars, with triangular matrices having determinants equal to the product of their diagonal entries. The determinant of a product equals the product of determinants, determining whether a matrix has an inverse. A matrix's inverse can be expressed using its adjugate, and similar matrices share the same determinant, making it a well-defined property of linear transformations. It scales volumes and indicates orientation changes, behaving linearly with respect to rows or columns due to its multilinear nature. Laplace expansion and Gaussian elimination compute determinants, while Cramer's rule uses them to solve systems of equations. The characteristic polynomial of a matrix is built from a determinant, and determinants appear in geometry for computing areas and volumes, and in analysis through the Jacobian determinant for change of variables.
Dimension < 2
When discussing matrices with fewer than two rows and columns, we encounter cases that rarely appear directly but can arise when working with n × n matrices where n is unspecified. A 0 × 0 matrix is the empty matrix—having no rows, columns, or entries—and its determinant is defined as 1 by standard conventions for the empty set and empty product. A 1 × 1 matrix contains just one entry, and its determinant is simply that entry: det[a] = a. An example showing how these rules fit together is the inverse formula for an n × n matrix A with nonzero determinant d: A⁻¹ = (1/d) times the adjugate matrix of A. For n = 1, the single entry in the adjugate matrix is the determinant of the empty matrix, which is 1. So [d]⁻¹ = (1/d)[1] = [1/d], matching expectations for a 1 × 1 matrix.
Parallelogram area
When you have two vectors in a plane, like (a, c) and (b, d), they form a parallelogram with corners at the origin and three other points. The area of that shape is given by the absolute value of the determinant ad − bc. But the sign of this determinant carries extra information: it shows whether you rotate from the first vector to the second in a counterclockwise or clockwise direction. A positive result means a counterclockwise turn, while a negative one indicates a clockwise rotation. If the vectors are aligned, the determinant equals zero. So, the determinant doesn’t just give the size of the area—it tells you its signed area as well. This relationship can be proven using trigonometry or by cutting and rearranging parts of the parallelogram.
Read
Free to download, keep and share. For general information only — not professional medical, legal or financial advice. Please consult a qualified professional.