System of Equations Calculator
Solve system equations problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.
Formula
x = (c1*b2 - c2*b1) / (a1*b2 - a2*b1), y = (a1*c2 - a2*c1) / (a1*b2 - a2*b1)
Cramer's Rule solves the system a1*x + b1*y = c1 and a2*x + b2*y = c2 by computing determinants. The main determinant D = a1*b2 - a2*b1 must be nonzero for a unique solution. Each variable is found by replacing its coefficient column with the constants column.
Worked Examples
Example 1: Unique Solution System
Problem: Solve: 2x + 3y = 8 and 4x - y = 2
Solution: Using Cramer's Rule:\nD = (2)(-1) - (4)(3) = -2 - 12 = -14\nDx = (8)(-1) - (2)(3) = -8 - 6 = -14\nDy = (2)(2) - (4)(8) = 4 - 32 = -28\nx = Dx/D = -14/-14 = 1\ny = Dy/D = -28/-14 = 2
Result: x = 1, y = 2. Verified: 2(1) + 3(2) = 8 and 4(1) - 2 = 2.
Example 2: Parallel Lines (No Solution)
Problem: Solve: 2x + 4y = 6 and x + 2y = 5
Solution: D = (2)(2) - (1)(4) = 4 - 4 = 0\nDx = (6)(2) - (5)(4) = 12 - 20 = -8\nSince D = 0 and Dx is not 0, the system is inconsistent.\nRewriting: y = -x/2 + 3/2 and y = -x/2 + 5/2 (same slope, different intercepts).
Result: No solution. The lines are parallel and never intersect.
Frequently Asked Questions
What is a system of equations and why do we solve them?
A system of equations is a set of two or more equations with the same variables that must all be satisfied simultaneously. Solving the system means finding values for each variable that make every equation true at the same time. Systems of equations appear throughout science, engineering, economics, and everyday problem-solving. For example, finding the break-even point in business requires solving a system where revenue equals cost. In physics, determining the intersection of two trajectories involves a system of equations. The solution represents the point where all constraints are met simultaneously.
What are the three types of solutions for a system of two linear equations?
A system of two linear equations can have exactly one solution, no solutions, or infinitely many solutions. A unique solution occurs when the two lines intersect at exactly one point, meaning the lines have different slopes and the determinant of the coefficient matrix is nonzero. No solution (inconsistent system) occurs when the lines are parallel but not identical, meaning they have the same slope but different y-intercepts. Infinitely many solutions (dependent system) occur when both equations describe the exact same line, meaning one equation is a scalar multiple of the other. The determinant test quickly reveals which case applies.
How does Cramer's Rule work for solving systems of equations?
Cramer's Rule uses determinants to find each variable in a system of linear equations. For a 2x2 system ax + by = e and cx + dy = f, first compute the main determinant D = ad - bc. If D is nonzero, then x = (ed - bf) / D and y = (af - ec) / D. Each variable is found by replacing its column in the coefficient matrix with the constants column and dividing by the main determinant. Cramer's Rule is elegant and direct for small systems but becomes computationally expensive for large systems because computing determinants of large matrices requires many operations. For systems larger than 3x3, elimination methods are more efficient.
What is the elimination method for solving systems of equations?
The elimination method (also called the addition method) works by multiplying one or both equations by constants so that adding or subtracting the equations eliminates one variable. For example, given 2x + 3y = 8 and 4x - y = 2, you could multiply the second equation by 3 to get 12x - 3y = 6, then add to the first equation to eliminate y. This gives 14x = 14, so x = 1. Substituting back yields y = 2. The elimination method is systematic and works well for any size system. It forms the basis of Gaussian elimination, which is the standard algorithm used in computational linear algebra.
How can I verify my solution to a system of equations?
The most reliable verification method is to substitute your solution values back into ALL original equations and confirm that each equation is satisfied. Both sides of every equation must be equal. For the system 2x + 3y = 8 and 4x - y = 2 with solution (1, 2), check: 2(1) + 3(2) = 2 + 6 = 8 and 4(1) - (2) = 4 - 2 = 2. Both check out. Additionally, if you solved graphically, the solution should be the intersection point of the two lines. You can also verify using a different solution method. If substitution gave you the answer, try elimination as a cross-check. Never skip verification on important calculations.
What does the determinant tell us about a system of equations?
The determinant of the coefficient matrix provides crucial information about the nature of the system. A nonzero determinant means the system has exactly one unique solution, and the coefficient matrix is invertible. The larger the absolute value of the determinant, the more numerically stable the solution computation tends to be. A determinant of zero means the system either has no solution or infinitely many solutions, and further analysis is needed to distinguish between these cases. In geometric terms, the determinant represents the signed area of the parallelogram formed by the row vectors, and a zero determinant means the vectors are parallel or collinear.