## 1. Introduction

How can we solve a system of linear equations? We can use methods such as Cramer’s rule or Gaussian elimination. While the latter is more efficient for larger systems, the former is often used when the determinant can be easily computed. Another advantage of Cramer’s rule is its educational aspect. When teaching or learning linear algebra, this concept helps to illustrate the importance of determinants in solving linear systems.

In this tutorial, we’ll review how Cramer’s rule works and how we can interpret its results geometrically.

## 2. Cramer’s Rule

Let’s consider a simple example of a system of linear equations in two dimensions, keeping in mind that the same idea extends to higher-dimensional problems:

We start solving it by computing the determinant of the left side:

Next, we replace the first column with the right-hand side:

Then, we do the same with the second column:

Finally, we obtain the values for and that solve the system as follows:

### 2.1. Numerical Demonstration

To demonstrate, we’ll use the following linear system:

We can solve it using Cramer’s rule:

Is there a way to obtain the same result using a geometric interpretation of this rule?

## 3. Geometric Interpretation

First, let’s review the intuition behind transformations and their geometric interpretation.

### 3.1. Geometric Transformations and Systems of Linear Equations

A geometric transformation maps points (vectors) from the input space to vectors in the output space. Here, we’ll consider the case where the two spaces are equal and two-dimensional.

Let our transformation be:

We assume that maps each input point to only one output point and vice versa, that for each point in a plane, only one is mapped into it.

Applying to a vector , we get a new vector . Algebraically, this mapping corresponds to the system of linear equations in Section 2:

So, we can interpret the system as the task of finding the unknown vector that transformation maps into a known vector .

### 3.2. Visualization of Geometric Transformations

Transformation can skew and translate vectors depending on the actual values of :

We can see that the basis vectors have changed. So, the area they span has also changed:

We had a unitary square that became a parallelogram stretched by a factor equal to the determinant of . Let’s verify that.

We know that the cross-product between two vectors gives the area between them. So, we can compute the new area as:

Then, we can compute with trigonometry:

where

If we replace the magnitude of the transformed basis vectors, we finally obtain:

If we consider our previous example, we have which gives us and:

This is precisely the determinant we calculated before using Cramer’s rule. So, the unitary square gets scaled by a factor of .

### 3.3. Geometric Solving

Next, let’s draw a parallelogram formed by the unknown vector and the unitary basis vector before transformation:

We know that the basis vector is unitary, and the height of the parallelogram is . So, we can compute its area as:

Although it’s an area, we should maintain the sign of . So, a negative yields a negative area.

After applying , the area doesn’t remain the same. As we know, it gets scaled by the determinant of . So, in the transformed space, we have:

and it holds that:

We can also visualize the transformation and check the parallelogram formed by and :

At this point, we can derive a formula to compute the new area similarly to what we did in the previous section. So we have that:

To compute the angle between two vectors and , we use the dot product :

Solving for , we get:

The procedure is similar for . The only difference is that we consider the parallelogram formed by the unknown vector and the transformed basis vector .

## 4. Example

Let’s apply this to our initial example:

So, we know that with the transformation, our unknown input vector lands on the output vector . Finally, the basis vector lands on the coordinates defined by the first column of . So the parallelogram becomes:

We can compute the angle with the dot product to obtain .

To find , we compute the ratio of the new area and the determinant of :

If we do the same for , we get . So, we obtained as our unknown vector, which is identical to the result we got with Cramer’s rule.

## 5. Conclusion

In this article, we provided a geometrical interpretation of Cramer’s rule. We leverage that a transformation in two-dimensional space stretches all the areas by a factor equal to the determinant of this transformation’s matrix. The same reasoning extends to higher dimensions. In a three-dimensional space, the determinant of the transformation represents the factor by which volumes are scaled, and so on.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments