Free Tool · Cramer's Rule · Step-by-Step

Simultaneous Equations Solver

Solve two equations in x and y using Cramer's rule, with determinant analysis for every case.

Solve the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂.

1 First equation
2 Second equation
System preview: fill the six coefficients

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

Standard form
a1x + b1y = c1
a2x + b2y = c2
Main determinant
D = a1b1a2b2 = a1b2 − a2b1
Determinants for the numerators
Dx = c1b1c2b2 = c1b2 − c2b1
Dy = a1c1a2c2 = a1c2 − a2c1
Solution (when D ≠ 0)
x = DxD      y = DyD

The three cases

  • D ≠ 0 — unique solution. The two lines intersect at exactly one point.
  • D = 0 and Dx = Dy = 0 — infinitely many solutions. The two equations represent the same line.
  • D = 0 and at least one of Dx, Dy is non-zero — no solution. The lines are parallel.

Worked examples

Example 1: Unique solution

2x + 3y = 12     4x − y = 5

  1. Identify coefficients: a₁=2, b₁=3, c₁=12; a₂=4, b₂=−1, c₂=5.
  2. D = a₁b₂ − a₂b₁ = 2(−1) − 4(3) = −2 − 12 = −14. D ≠ 0 → unique solution.
  3. Dₓ = c₁b₂ − c₂b₁ = 12(−1) − 5(3) = −12 − 15 = −27.
  4. D_y = a₁c₂ − a₂c₁ = 2(5) − 4(12) = 10 − 48 = −38.
  5. x = Dₓ / D = −27 / −14 = 27/14 ≈ 1.928571.
  6. y = D_y / D = −38 / −14 = 19/7 ≈ 2.714286.

Example 2: Clean integer solution

x + y = 7     x − y = 1

  1. a₁=1, b₁=1, c₁=7; a₂=1, b₂=−1, c₂=1.
  2. D = 1(−1) − 1(1) = −1 − 1 = −2.
  3. Dₓ = 7(−1) − 1(1) = −7 − 1 = −8.
  4. D_y = 1(1) − 1(7) = 1 − 7 = −6.
  5. x = −8 / −2 = 4, y = −6 / −2 = 3.
  6. Check: 4 + 3 = 7 ✓, 4 − 3 = 1 ✓.

Example 3: No solution (parallel lines)

x + y = 3     2x + 2y = 8

  1. a₁=1, b₁=1, c₁=3; a₂=2, b₂=2, c₂=8.
  2. D = 1(2) − 2(1) = 2 − 2 = 0.
  3. Dₓ = 3(2) − 8(1) = 6 − 8 = −2 ≠ 0.
  4. Since D = 0 but Dₓ ≠ 0, the system is inconsistent: no solution.
  5. Geometrically, the lines are parallel and never meet.

Example 4: Infinitely many solutions

x + y = 3     2x + 2y = 6

  1. a₁=1, b₁=1, c₁=3; a₂=2, b₂=2, c₂=6.
  2. D = 1(2) − 2(1) = 0.
  3. Dₓ = 3(2) − 6(1) = 6 − 6 = 0.
  4. D_y = 1(6) − 2(3) = 6 − 6 = 0.
  5. All three determinants are zero → infinitely many solutions.
  6. The second equation is twice the first — they represent the same line.

Example 5: Negative coefficients

3x − 2y = 5     −x + 4y = 7

  1. a₁=3, b₁=−2, c₁=5; a₂=−1, b₂=4, c₂=7.
  2. D = 3(4) − (−1)(−2) = 12 − 2 = 10.
  3. Dₓ = 5(4) − 7(−2) = 20 + 14 = 34.
  4. D_y = 3(7) − (−1)(5) = 21 + 5 = 26.
  5. x = 34 / 10 = 17/5 = 3.4.
  6. y = 26 / 10 = 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₁b₂ − a₂b₁, not a₁b₂ + a₂b₁. The determinant formula has a specific sign pattern.
  • Sign errors when moving terms. If the equation is 2x − 3y = 5, then b₁ = −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ₓ and D_y. If both are zero, infinitely many. If either is non-zero, no solution.
  • Misreading the constants. c₁, c₂ are the numbers on the right side of the equals signs. If an equation is rearranged, they may have moved.
  • 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₁x + b₁y = c₁, a₂x + b₂y = c₂, the solution is x = Dx / D and y = Dy / D, where D is the determinant of the coefficient matrix and Dx, Dy are determinants with the corresponding column replaced by the constants.

What does the determinant tell you?

The determinant D determines the nature of the system. If D ≠ 0, there is exactly one unique solution. If D = 0 and the equations are consistent (one is a multiple of the other), 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 ≠ 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.

↑