How To Solve 2x2 Equations In A Single Step - Whiteboard style grahics showing the banner "An underrated algebra tool". This banner points to a 2x2 equation system showing the following equations: 2x + y = 2; x − y = 1; Some arrows seem to indicate cross-multiplication among the terms of the two equations.

The conventional approach to solve 2×2 equations in linear algebra involves elimination/substitution. However, the method that I will be demonstrating in this essay lets you skip these steps, simplifying the effort in the process.

In a strict sense, this method requires two steps. But you will directly arrive at the result for each unknown, with one step for each unknown. First, I will demonstrate the procedure using a simple example. Later, I will cover the mathematics behind it.

The mathematics behind this method is actually profound. So, it is well worth dipping our toes into it. Without any further ado, let us begin.

This essay is supported by Generatebg

A product with a beautiful background featuring the sponsor: Generatebg - a service that generates high-resolution backgrounds in just one click. The description says "No more costly photographers" and displays a "Get Started" button beneath the description.

Solve 2×2 Equations Without Elimination/Substitution

Consider the following 2×2 equation system:

2x + y = 2

x − y = 1

To show you the effectiveness of this method, note that we can directly arrive at the value for ‘x’ as follows:

How To Solve 2x2 Equations In A Single Step — Whiteboard style grahics showing the following equations: 2x + y = 2; x − y = 1. x = (−2 − 1)/(−2 − 1); x = 1
Example problem (2×2 equation system) — Math illustrated by the author

As I had promised, we have no substitutions or eliminations with this procedure; we arrive at the answer in a single step. If you are confused as to how I solved for ‘x’, let me explain what I did there. First, let us concentrate on the numerator of the fraction that I just constructed.

How To Solve 2x2 Equations In A Single Step — Whiteboard style grahics showing the following equations: 2x + y = 2; x − y = 1. Black arrows show that the upper y coefficient is diagonally multiplied with the lower-right term on the other side of the equal to sign. Similarly, the lower y coefficient is multiplied with the upper right term on the other side of the equal to sign. These two multiplications are subtracted from each other to obtain the numerator for x: x = (−2 − 1)/(…)
Numerator calculation — Math illustrated by the author

Focus on the black arrows that I’ve drawn. To compute the numerator, what I do is cross-multiply and subtract the coefficients of all the non-’x’ terms in the order indicated by the arrows [(2*(−1)) − (1*1)]. For example, in the equation (x − y = 1), the x-coefficient is 1 and the y-coefficient is (−1).

If you are wondering why we have to do it this way, don’t worry; I’ll explain it later in the essay. Just bear with me for now.

How To Solve 2x2 Equations In A Single Step — Whiteboard style grahics showing the following equations: 2x + y = 2; x − y = 1. Green arrows show that the upper x coefficient is diagonally multiplied with the lower y coefficient. Similarly, the lower x coefficient is multiplied with the upper y coefficient. These two multiplications are subtracted from each other to obtain the denominator for x: x = (−2 − 1)/(−2 − 1)
Denominator calculation — Math illustrated by the author

Next, let us move on to the denominator. This time, focus on the green arrows; I cross multiply and subtract the coefficients of the ‘x’ and ‘y’ terms in the order indicated by the green arrows [((2*(−1)) − (1*1)].

At this stage, we could just substitute the ‘x’ value in one of the equations to get the ‘y’ value. But since I promised that we would avoid substitution, let me solve for ‘y’ using the same method:

How To Solve 2x2 Equations In A Single Step — Whiteboard style grahics showing the following information: y = (2 − 2)/(−2 − 1) = 0/−3; y = 0
Solution for y — Math illustrated by the author

The execution for the numerator in the y-value computation is analogous to what I did before; I just cross-multiply and subtract the coefficients of all the non-y terms in the order indicated by the black arrows. The procedure for the denominator remains the same as before and we get the same result as well.


How to Solve 2×2 Equations in a Single Step — The Rule

The method that I just illustrated is known as Cramer’s rule, named after Genevan mathematician Gabriel Cramer. The trick is to realise that we are dealing with rows and columns in a 2×2 equation system.

Implicitly, we first transform the equation system into the following matrix form:

How To Solve 2x2 Equations In A Single Step — Whiteboard style grahics showing the following equations: a1x + b1y = c1; a2x + b2y = c2; Transforming to matrix form: 2x2_Matrix[a1, b1, a2, b2]*Vector[x, y] = Vector[c1, c2]
Matrix form for 2×2 equation systems — Math illustrated by the author

Next, let us assume that the system of equations has a unique solution. In other words, one of the primary conditions for applying Cramer’s rule is the result for [a1b2 − b1a2] is non-zero. Finally, using the concept of matrix determinants, we can compute ‘x’ and ‘y’ as follows:

How To Solve 2x2 Equations In A Single Step — Whiteboard style grahics showing the following information: to matrix form: 2x2_Matrix[a1, b1, a2, b2]*Vector[x, y] = Vector[c1, c2]; x = [c1b2 − b1c2]/[a1b2 − b1a2]; y = [a1c2 − c1a2]/[a1b2 − b1a2]
Cramer’s rule (using determinants) — Math illustrated by the author

As you can see, the determinant on the denominator for both ‘x’ and ‘y’ are the same. This is also why the procedure to compute the numerator for ‘y’ varies from that for ‘x’.

The prudent reader might have noticed that this method can be extended beyond just a 2×2 system of equations. However, it probably stops being useful because for ’n’ equations with ’n’ unknowns, this method requires us to compute (n + 1) determinants.

If you ever computed determinants of higher-order matrices, you’d know that they can be computationally intensive. So, for larger systems of equations, this method is not usually the most efficient.

Final Thoughts

Gabriel Cramer was actually not the first person to note this property of systems of linear equations. A Scottish mathematician named Colin Maclaurin published about it first (albeit a special case) in 1748. Cramer generalised the notion and extended the rule to an arbitrary number of unknowns in his work published in 1750.

To solve larger systems of equations, mathematicians often prefer a method known as the Gauss elimination method, which I might cover in a future essay. For 2×2 equation systems though, Cramer’s rule is a useful tool to have in your algebra toolkit.


Reference: Gabriel Cramer and Colin Maclaurin.

If you’d like to get notified when interesting content gets published here, consider subscribing.

Further reading that might interest you:

If you would like to support me as an author, consider contributing on Patreon.

Street Science

Explore humanity's most curious questions!

Sign up to receive more of our awesome content in your inbox!

Select your update frequency:

We don’t spam! Read our privacy policy for more info.