2x2 Linear System Solver
Solve a system of two linear equations (ax + by = e and cx + dy = f) instantly. Use it when you need exact values of x and y that satisfy both equations simultaneously.
About this calculator
A 2×2 linear system consists of two equations with two unknowns, x and y: ax + by = e and cx + dy = f. The solution uses Cramer's Rule, which relies on determinants. The main determinant of the coefficient matrix is D = a·d − c·b. The value of x is found as x = (e·d − f·b) / (a·d − c·b), and y is found as y = (a·f − c·e) / (a·d − c·b). If the determinant D equals zero, the system has either no solution or infinitely many solutions, meaning the two lines are parallel or coincident. This method provides an exact algebraic solution without the need for row reduction.
How to use
Suppose you want to solve: 2x + 3y = 12 and x − y = 1. Enter a = 2, b = 3, e = 12, c = 1, d = −1, f = 1. The determinant is D = (2)(−1) − (1)(3) = −2 − 3 = −5. Then x = (e·d − f·b) / D = (12·(−1) − 1·3) / (−5) = (−12 − 3) / (−5) = −15 / −5 = 3. For y: y = (a·f − c·e) / D = (2·1 − 1·12) / (−5) = (2 − 12) / (−5) = −10 / −5 = 2. Solution: x = 3, y = 2.
Frequently asked questions
What does it mean when the determinant of a 2x2 linear system is zero?
When the determinant D = a·d − c·b equals zero, the two equations do not have a unique solution. The lines represented by the equations are either parallel (no solution) or identical (infinitely many solutions). In practice, you can check by substituting back: if both equations reduce to the same relationship, there are infinite solutions; if they contradict each other, there is none. Cramer's Rule breaks down in this case, so other methods like substitution must be used.
How is Cramer's Rule used to solve a system of two linear equations?
Cramer's Rule solves a linear system by expressing each unknown as a ratio of determinants. For the system ax + by = e and cx + dy = f, the solution is x = (e·d − f·b) / (a·d − c·b) and y = (a·f − c·e) / (a·d − c·b). The denominator is the determinant of the coefficient matrix, while the numerators replace the respective column with the constants e and f. It is efficient and exact for 2×2 systems, making it ideal for quick algebraic solutions.
When should I use a 2x2 linear system solver instead of solving by hand?
A 2×2 linear system solver is useful whenever speed and accuracy matter, such as in engineering, physics, economics, or computer graphics where systems of equations appear frequently. Solving by hand through substitution or elimination is feasible but error-prone, especially when coefficients are decimals or fractions. The calculator applies Cramer's Rule precisely, reducing the chance of arithmetic mistakes. It is also a great learning tool for verifying your own manual solutions.