What this simultaneous equations solver does
This tool solves a system of two linear equations in two unknowns, x and y. Given coefficients for the two equations, it uses Cramer's rule — a determinant-based method that is both elegant and practical — to find the solution. It reports whether the system has a unique solution, no solution, or infinitely many solutions, and shows the determinant computations step by step. Exact fraction answers are provided wherever the solution is rational, alongside decimal approximations.
The system and Cramer's rule
\[ D_y = \begin{vmatrix} a_1 & c_1 \\ a_2 & c_2 \end{vmatrix} = a_1 c_2 - a_2 c_1 \]
The three cases
- \(D \neq 0\) — unique solution. The two lines intersect at exactly one point.
- \(D = 0\) and \(D_x = D_y = 0\) — infinitely many solutions. The two equations represent the same line.
- \(D = 0\) and at least one of \(D_x, D_y\) is non-zero — no solution. The lines are parallel.
Worked examples
Example 1: Unique solution
\(2x + 3y = 12\) \(4x - y = 5\)
- Identify coefficients: \(a_1=2, b_1=3, c_1=12\); \(a_2=4, b_2=-1, c_2=5\).
- \(D = a_1b_2 - a_2b_1 = 2(-1) - 4(3) = -2 - 12 = \mathbf{-14}\). \(D \neq 0 \rightarrow\) unique solution.
- \(D_x = c_1b_2 - c_2b_1 = 12(-1) - 5(3) = -12 - 15 = \mathbf{-27}\).
- \(D_y = a_1c_2 - a_2c_1 = 2(5) - 4(12) = 10 - 48 = \mathbf{-38}\).
- \(x = \frac{D_x}{D} = \frac{-27}{-14} = \mathbf{\frac{27}{14} \approx 1.928571}\).
- \(y = \frac{D_y}{D} = \frac{-38}{-14} = \mathbf{\frac{19}{7} \approx 2.714286}\).
Example 2: Clean integer solution
\(x + y = 7\) \(x - y = 1\)
- \(a_1=1, b_1=1, c_1=7\); \(a_2=1, b_2=-1, c_2=1\).
- \(D = 1(-1) - 1(1) = -1 - 1 = \mathbf{-2}\).
- \(D_x = 7(-1) - 1(1) = -7 - 1 = \mathbf{-8}\).
- \(D_y = 1(1) - 1(7) = 1 - 7 = \mathbf{-6}\).
- \(x = \frac{-8}{-2} = \mathbf{4}\), \(y = \frac{-6}{-2} = \mathbf{3}\).
- Check: \(4 + 3 = 7\) ✓, \(4 - 3 = 1\) ✓.
Example 3: No solution (parallel lines)
\(x + y = 3\) \(2x + 2y = 8\)
- \(a_1=1, b_1=1, c_1=3\); \(a_2=2, b_2=2, c_2=8\).
- \(D = 1(2) - 2(1) = 2 - 2 = \mathbf{0}\).
- \(D_x = 3(2) - 8(1) = 6 - 8 = \mathbf{-2} \neq 0\).
- Since \(D = 0\) but \(D_x \neq 0\), the system is inconsistent: no solution.
- Geometrically, the lines are parallel and never meet.
Example 4: Infinitely many solutions
\(x + y = 3\) \(2x + 2y = 6\)
- \(a_1=1, b_1=1, c_1=3\); \(a_2=2, b_2=2, c_2=6\).
- \(D = 1(2) - 2(1) = \mathbf{0}\).
- \(D_x = 3(2) - 6(1) = 6 - 6 = \mathbf{0}\).
- \(D_y = 1(6) - 2(3) = 6 - 6 = \mathbf{0}\).
- All three determinants are zero \(\rightarrow\) infinitely many solutions.
- The second equation is twice the first — they represent the same line.
Example 5: Negative coefficients
\(3x - 2y = 5\) \(-x + 4y = 7\)
- \(a_1=3, b_1=-2, c_1=5\); \(a_2=-1, b_2=4, c_2=7\).
- \(D = 3(4) - (-1)(-2) = 12 - 2 = \mathbf{10}\).
- \(D_x = 5(4) - 7(-2) = 20 + 14 = \mathbf{34}\).
- \(D_y = 3(7) - (-1)(5) = 21 + 5 = \mathbf{26}\).
- \(x = \frac{34}{10} = \mathbf{\frac{17}{5} = 3.4}\).
- \(y = \frac{26}{10} = \mathbf{\frac{13}{5} = 2.6}\).
Where simultaneous equations appear in Class 9 & 10
Systems of two linear equations appear throughout the Punjab board mathematics and physics syllabus:
- Word problems — age problems, number problems, and mixture problems reduce to 2×2 systems.
- Coordinate geometry — intersection of two lines.
- Physics numericals — pulley problems, electrical circuits (Kirchhoff's laws), and force balance problems.
- Chemistry stoichiometry — balancing two-reaction problems.
- Linear programming — finding the feasible region requires solving pairs of constraints.
Common mistakes to avoid
- Getting the coefficients out of order. Write each equation in the form \(ax + by = c\) before identifying coefficients. Don't grab the numbers as they appear — check which one multiplies \(x\) and which multiplies \(y\).
- Forgetting the minus sign in the determinant. \(D = a_1b_2 - a_2b_1\), not \(a_1b_2 + a_2b_1\). The determinant formula has a specific sign pattern.
- Sign errors when moving terms. If the equation is \(2x - 3y = 5\), then \(b_1 = -3\), not \(3\). Keep the sign attached to the coefficient.
- Confusing the "no solution" and "infinite solutions" cases. When \(D = 0\), you must check \(D_x\) and \(D_y\). If both are zero, infinitely many. If either is non-zero, no solution.
- Not verifying the solution. Always substitute the answer into both original equations. Both must hold — checking only one is not enough.
FAQ
What are simultaneous equations?
Simultaneous equations are two or more equations in the same variables that must be satisfied at the same time. A 2×2 linear system has two equations in two unknowns, \(x\) and \(y\). Solving means finding the pair \((x, y)\) that satisfies both equations at once.
What is Cramer's rule?
Cramer's rule is a formula for solving systems of linear equations using determinants. For the system \(a_1x + b_1y = c_1\), \(a_2x + b_2y = c_2\), the solution is \(x = \frac{D_x}{D}\) and \(y = \frac{D_y}{D}\), where \(D\) is the determinant of the coefficient matrix.
What does the determinant tell you?
The determinant \(D\) determines the nature of the system. If \(D \neq 0\), there is exactly one unique solution. If \(D = 0\) and the equations are consistent, there are infinitely many solutions. If \(D = 0\) and the equations are inconsistent, there is no solution.
What is the difference between substitution and elimination?
Substitution solves one equation for one variable and substitutes into the other. Elimination adds or subtracts multiples of the equations to cancel one variable. Cramer's rule uses determinants and is faster for 2×2 and 3×3 systems, but substitution and elimination are more intuitive and are what students learn first.
Can there be more than one solution?
A 2×2 linear system can have exactly one solution (\(D \neq 0\)), infinitely many solutions (\(D = 0\) with consistent equations), or no solution (\(D = 0\) with inconsistent equations). It cannot have exactly two or three distinct solutions.
How do I check my solution?
Substitute the values of \(x\) and \(y\) back into both original equations and verify that both sides equal. Both equations must be satisfied. This substitution check catches sign errors and arithmetic mistakes.
Related tools
Related Hira Academy resources
Simultaneous equations appear throughout the Class 9 and 10 algebra syllabus and in physics numericals. Revise with our free Class 9 notes and Class 10 notes.