How to solve a system of equations
This calculator uses Cramer’s rule. Work out three numbers called determinants, D, Dx and Dy, each a cross-multiplication of four of your numbers. Then x is Dx ÷ D and y is Dy ÷ D. Here it is with your equations:
Here it is with your numbers:
- D = 12 × (−3) − 3 × 2, which is −42
- Dx = 15 × (−3) − 3 × 13, which is −84
- Dy = 12 × 13 − 15 × 2, which is 126
- x = Dx ÷ D: −84 ÷ (−42), which is 2
- y = Dy ÷ D: 126 ÷ (−42), which is −3
- Check in the first equation: 12 × 2 + 3 × (−3) is 15, and in the second, 2 × 2 + (−3) × (−3) is 13.
It means (2, −3) is the one point that is on both lines.
Source OpenStax College Algebra 2e · 7.8 Solving Systems with Cramer's Rule (Example 2) ↗
One solution, no solution or infinitely many
Each equation is a straight line, and a solution is a point on both lines. Two lines can meet in three ways:
- They cross once: exactly one solution (an independent system). D is not 0.
- They are parallel: no solution (inconsistent). D is 0, and Dx or Dy is not.
- They are the same line: infinitely many solutions (dependent). D, Dx and Dy are all 0.
FAQs
What are the four ways to solve a system of equations?
Graphing, substitution, addition (also called elimination) and Cramer’s rule. Graphing finds where the two lines cross; substitution solves one equation for x or y and puts that into the other; addition multiplies the equations so one letter cancels when you add them; Cramer’s rule uses determinants, as in the steps above.
What is the fastest way to solve a system of equations?
It depends on the equations. If one is already “y = …” or “x = …”, substitution is quickest. If the same letter has matching or opposite numbers in front, addition cancels it in one step. Cramer’s rule always works the same way, which is why calculators use it.
Can a system of equations have no solution?
Yes, when the lines are parallel. x + 2y = 9 and x + 2y = 13 can’t both be true, so the system has no solution (it is called inconsistent). If the two equations are the same line, like x + 3y = 2 and 3x + 9y = 6, there are infinitely many solutions (dependent).
Sources
- OpenStax College Algebra 2e: 7.1 Systems of Linear Equations: Two Variables (one, no or infinitely many solutions; substitution and addition)
- OpenStax College Algebra 2e: 7.8 Solving Systems with Cramer's Rule (Example 2)