**Cramer’s Rule for a 2×2 System (with Two Variables)**

**Cramer’s Rule** is another method that can solve systems of linear equations using determinants.

In terms of notations, **matrix** is an array of numbers enclosed by square brackets while **determinant** is an array of numbers enclosed by two vertical bars.

__Notations__

The formula to find the **determinant of a 2 x 2 matrix** is very straightforward. Let’s take a quick review:

**Quick Examples to Find the Determinants of a 2 x 2 Matrix**

**Few points to consider when looking at the formula:**

1) The coefficients of variables *x* and *y* use subscripted a and b, respectively. While the constant terms use subscripted c.

2) Both denominators in solving *x* and *y* are the same. They come from the columns of *x* and *y*.

3) Looking at the numerator in solving for *x*, the coefficients of *x*-column are replaced by the constant column (in red).

4) In the same manner, to solve for *y*, the coefficients of *y*-column are replaced by the constant column (in red).

**Example 1**: Solve the system with two variables by Cramer’s Rule

Start by extracting the three relevant matrices: coefficient, *x* and *y*. Then solve each corresponding determinant.

- For
**coefficient matrix**

- For
**X – matrix**

- For
**Y – matrix**

Once all three determinants are calculated, it’s time to solve for the values of x and y using the formula above.

I can write the final answer as **( x,y) = (2,−1)**.

**Example 2**: Solve the system with two variables by Cramer’s Rule

Setup your coefficient, *x*, and *y* matrices from the given system of linear equations. Then calculate their determinants accordingly.

Remember that we **always subtract** the products of the diagonal entries.

- For the
**coefficient matrix**(use the coefficients of both*x*and*y*variables)

- For the
**X – matrix**(replace the x-column by the constant column)

- For the
**Y – matrix**(replace the y-column by the constant column)

I hope you’re getting comfortable computing for the determinant of a 2-dimensional matrix. To finally solve for the required variables, I get the following results…

Writing the final answer in the point notation, I got **( x,y) = (6,−5)**.

**Example 3**: Solve the system with two variables by Cramer’s Rule

This problem can actually be solved quite easily by Elimination Method. This is because the coefficients of variable *x* are the “same” but only opposite in signs ( +1 and −1 ). To solve this using the elimination method, you add their corresponding columns and the *x*-variable goes away – leaving you with a one-step equation in *y*. I am mentioning this because every technique has shortcomings and it is best to pick the most efficient. Always clarify from your teacher if it is okay to use another approach when the method is not specified on a given problem .

Anyway, since we are learning how to solve by Cramer’s Rule, let’s go ahead and work it out with this method.

I will construct three matrices ( coefficient, *x* and *y*) and evaluate their corresponding determinants.

- For
**coefficient matrix**

- For
**X – matrix**( written as uppercase D with subscript x )

- For
**Y – matrix**(written as uppercase D with subscript y)

After obtaining the values of the three required determinants, I will calculate *x* and *y* as follows…

The final answer in point form is just **( x,y) = (−1,2)**.

**Example 4**: Solve by Cramer’s Rule the system with two variables

Since we have gone over a few examples already, I suggest that you try this problem on your own. Then, compare your answers to the solution below.

If you get it right the first time that means you’re becoming a “pro” with regards to Cramer’s Rule. If you didn’t, try to figure out what went wrong and learn to not commit the same error next time. This is how you become better in math. Study many kinds of problems and more importantly, do a lot of independent practice.

- For
**coefficient matrix**

- For
**X – matrix**

- For
**Y – matrix**

You should get the answer below…

**Example 5**: Solve the system with two variables by Cramer’s Rule

For our last example, I included a **zero** in the constant column. Every time you see the number zero in the constant column, I highly recommend to use Cramer’s Rule to solve the system of linear equations. Why? Because the calculation of the determinants for *x* and *y* matrices drastically becomes super easy. Check it out yourself!

- For
**coefficient matrix**

- For
**X – matrix**

- For
**Y – matrix**

The final answer for this problem is…