Cramer's Rule is another method that can solve systems of linear equations using determinants. If you want to go straight to the sample problems, you can check out the five (5) worked examples right away. Otherwise, I suggest that you go over the prerequisite information first.
So, let's begin!
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.
After knowing how to find the determinant of a 2 x 2 matrix, you're now ready to learn the procedures on how to use Cramer's Rule. Here we go...
| Cramer's Rules for the Systems of Linear Equations with Two Variables |
| Given a linear system |
 |
| Assign names for each matrix |
| coefficient matrix |
![marix D = [[a1 b1][a2 b2]]](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAAAzCAMAAAC5dTYXAAABgFBMVEUAAACduM2Shn1VOBwTL0v34sZVY4Szz+xohKAQITp2Y1DVuZy+pYk1GQSgqqozUGxVVVX57+Xf7fcAAhq+s6J9hpdCNCpZY2zWzMMaAABeepeqqqBsUDN2kqzU3ef//88vOEaum3F7e3ugl43Lwrb////n8PpGKhGNcVVVVVkqRmOdutYbGzfhxqp2dnaEjZ0xHhWuknZLaISFob7G2ecAAAkADiXn1sZVcY09NDjBy9Sqqqp2Z17//+Hu+f/Gqo0hDg5eQiVVVWfV6viSrsv/+Oebf2MhISFxWUalm5Lsz7PU8P+2ydr///gJAACSf2xLXnGSm66hhWnLuJsRKEWhtMdnXlUaNlMJCSWgoKBjf5uJiYjPxry2oHoEEy84HAyql4RLLxN/bFt6dmxnXl7E4PMcJTTZ9f/d5/Dt///n3c3/+e5xf5KEaEtLQi9nSzQhBACUrLxxVTl6l7Pf1MGzl3ozKiFZcY3LrpK+rp0xRFkqDgAPDyx6XkI4VXH3582cuJ8fAAAAJnRSTlP/////////////////////////////////////////////////AKd6gbwAAALSSURBVFjDvZj5V9pAEMdX8KyxTQhUayu1SApPq+KBWqP0EKwoy6WprRYPtNVIVcCjHq3+691NYg8xiWSzzA/7eHmz77Nhdma+EyCY2fQTgG1CsGA3e4G55yuB0N5QoHCilz7FnwdNNXiX2TW5BhTncA3icp2MklO++Hy75xkD9xy/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7/+O3/uMGdl43/nYsRKkZVY4Sum3H+8ucXM1DE1uX/5Pv/OCVeRCz/qqr/f4YbGzcqIRf/VUvLwrauw9b///+zvMba4+wSAgD/uK7/sJR2bGNLVVUCECr/EAb/1cRnVVWJpcH/Y1lseo3/+t2hhWn/8vxLaISGak61oo1ILBDn28317NuSf3HP4uyEcWD/oITGqo282ewAAAklEAKNkpLV8P9sUDP/4tnkyKwvS2j/1Oz/kq7/jZft+v84HQ2qjXH/FyoaIzT/enP/xqo4PUb/xs9CNCoJCSX/VHG9vLy3m3726M+NoLP/Yk3///HY1M+4rrO9z+L/rr//f5fGs6D/RlBmZmb//+IVp4+1AAAAPXRSTlP///////////////////////////////////////////////////////////////////////////////8ACS+sXwAAAv9JREFUWMO9mI9XEkEQx1ePIsVfaARq6AWcbkIR6WniKFl6KYiaooVg/qgjtbQSxUisf73bu9NUujsOlpv3uAfvzd6H2d2Z/c4iMGEFVrYimLfLocjMoD8BF7GTanhvyMijJnO8MajN3teTFx1yTVjJA/vGQ0t5S88snc9CjrOU14Lu0eQJB93Bcz3vhZnoERr0U+K1NUufR3retv2sWEIcHd70XhIg2K3jnI8R1FsPFR6ePTfMBvcdwlukwptmdo2cP+xIj0TMR4XXxjw38MWZVhJkSKTEO5SewfbTZi3f+6S44KOJlGOTAk+Y3evm53fhiybvc0jCvZIKaBcNHgjz45+kHarNg2gPy5Lky21SrC86vEsr5w2kXL0s28OKFvFgW64Cyw6fwdBErbxjhWdXKqvTHTEb3/QFGObFtUPwmJN53hl5KvuRxyQvzPOHBrwG9to6KbxCl0eVQzNiffWLwttGrcoBmZFLXt15TlVnJGLl8S0h1chfocSzqUWuBQ2CBfHlY03KLyeas4JnR0rehTNynCuT0tfJKw+Xap0iLZ7XrWTk0v4aKTaNG+nVHEqrHgPspdHihTPyquH1HVXajHCpqZ9iveazwYtCLDvU+/tKey84JuqbD7dPSvempbzGmK/ieq3XrqSQrxJe1GfjYOq/r3jwzVQw5dXq6ZPbvPVsHJyhoQgFnizQjHipuAgrnRrnkileItBaAU/XbvAwz+s6SwLtjJ2ixcMHo8n+Dt3uL+R8/cJdrIX3b3/i4Y8Ap3u63d9+BFYDizc1frX6rI+EJrTrdn++snalaj2YZ34Z+S6MkZLYxVHhvTNsH8BGZrJ/I02F1yfzwskC/1iz+yPT6fRAlPXTiE/aLluj+IAf/67T/a189S9nGx1rNfPwMHMxPgpbScAaLXXpbhFKcT+cSefrHIX+4SWvrCDu0BaearJ70xTvQ4JGehfycYr9kWCYFzgr0uNJOHxoiPtBiyfMMoz+xQEekaQyVzXPUeP97ro5nnJJW8P9ruvkL0NZRDQi0vSzAAAAAElFTkSuQmCC) |
| Y - matrix |
![matrix Dy=[[a1 c1][a2 c2]]](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAAAzCAMAAABBlc3gAAABgFBMVEUAAAD/AAClkn//8MZVVVXWup3/l3obGzdVcY3/cVV/m7g0IRf/RFtvUzbU3efg7PXLrpK4y9kABCH/RjOEdmMqRmP/l7OEjZ3/vM/f+P//FzHVy8ISLEiBZUidus//cX8aAABVVWd7e3uqqqr//+Hn3dRLLxNeVVX/LxP/7+QEDi/63sH/5/DG2eeUsMv/Tmulm5L////ny67/qqohPVkAAhJohKDFxcXk1sMhISE7V3SShn3/kpP/y93/dln//Oezl3pxf5b/8dRGKhM9NDhZY2z/s7O+rp357+VNaob/VVX/y8FVOCOqqrP/L0JZcY3/fYvN5PX/kogJAADu+P84HAR2kqr/dnEqFwl/bF56XkL//8z25M5ncXr/varhxqqluMubf2MPDyz/+O6ql4Td5/D/VUKuy+fo//+Jl6ovOEb/qpf/WXb/5NsbKkX/m4i9oYXGs6CNhIn/1Mv/s8//+f9QPSr///OKblJQYHYJCSXBuK7/Egn/PSpsf5IEDhxkA5hXAAAAMnRSTlP/////////////////////////////////////////////////////////////////AA1QmO8AAALBSURBVFjD7ZjtVxJBFIeHUpAQAipQQUPwJV4PE8pBQETJwI2IFQw1AokkLTAqcSEr//Vml82OwCzCzvLJ+2EPe84dnjNzX+Z3F8Db24IFsDYBhzA1t9QBBsEpoDhbUNzh7nCS40xW63H8VMi/FvaFXWRwzMFbWH6ceSDg/pVqwEiVDO7wDXrMrtJ4b3mqAZlfBiK4qCKLnskVvHNedk4sdvZ99hTzGT/eOTJDLlW0gD3FJviEd342SQ5X0p9A+E3lgHEjFpdiny/tu1PicVHgYUKepaC39ATnrJQZYC1Xe/XIIB6XuACfdcxeS1PE4uwVmayKqk5pINhV8LjrXXbhTDbWjkaFQ4m2g6Dq1kOJcVtt3DjwcBf8WVZi3BmHa65Oc2uBf0BcIrStE6b9iKRdnbjYCi99zNJeQG2ck29GzD5bvZLjonwz2rB04T6O8TZ/QgyndrTfnKDrMNs1guw1sd1tWIL/WpN/BLEbB/ydnLyiR7C7JqD5W4WrvktU7KZj6WIXa0esuMa2sbIthk50aUeyw6wD1BkStuX3/I5KKJKBTalwl+3Y/G8OdUT30hLW3U3TmmH+FI4M99wBv/f2fvdTJO5+j/nOqffSI8RtZebgCHEBrO4nj0u48bQbuITVaj3ilDt+Rkj7clPCuObaH4HE+nD9c/GFm21Hc3jnMlJ8zO9qxx904BZ1txN+KhZ0eCUgNiqIxCjXiajoWU6ixIJ434LMRUy057nkLQKB6a6SIje9RlkpxSQBPdhEMiyupEe40IUZBpa3NRjcTAMJ9zAaYdMNsTgtaNnmNXsTISOsY/qoXDbp233aKKyXK2nRqXJvzJiFB0ZWdaumezt/oShUdChfClWCHzryrX6r5OcEcaE+cwW0pwkOXHF3nzXlcIMcLrpp83oEaZTPl3MRwgVYjUYLtmmKoobOTPFfa/8CGxcuQH+LadgAAAAASUVORK5CYII=) |
|
| Solve variable x by |
 |
| Solve variable y by |
 |
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).
Direction: Solve the following systems of linear equations with two variables using Cramer's Rule.
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.



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 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...
