«

Linear Equation Solver

Enter the coefficients for two linear equations to find their intersection point, variables (x, y), and visual graph.

{
x
y =
x
y =

Cramer's Rule Steps

X Value

--

Y Value

--

Understanding Systems of Linear Equations

A system of linear equations consists of two or more linear equations that share the same variables. When you solve a standard two-variable system, you are finding the exact (x, y) coordinate where the two lines intersect on a two-dimensional graph.

How Cramer's Rule Works

While systems are commonly solved using substitution or elimination, this calculator uses Cramer's Rule. This theorem uses matrix determinants to isolate the variables mathematically, bypassing manual algebraic manipulation.

For a standard system formatted as:

  • a1x + b1y = c1
  • a2x + b2y = c2

Cramer's Rule dictates that the intersection is found by calculating three specific determinants:

  • Main Determinant (D): Calculated using only the x and y coefficients: (a1 · b2) - (a2 · b1).
  • X-Determinant (Dx): Calculated by replacing the x column with the constant (c) column: (c1 · b2) - (c2 · b1).
  • Y-Determinant (Dy): Calculated by replacing the y column with the constant (c) column: (a1 · c2) - (a2 · c1).

The final intersection coordinates are simply x = Dx / D and y = Dy / D.

Special Cases: Parallel and Identical Lines

The main determinant (D) acts as a diagnostic tool that reveals the geometric relationship between the two lines:

  • One Unique Solution: If D is any number other than zero, the lines have different slopes and will intersect at exactly one point.
  • No Solution (Parallel Lines): If D = 0 but Dx or Dy is non-zero, the lines have identical slopes but different y-intercepts. They are perfectly parallel and will never cross.
  • Infinite Solutions (Identical Lines): If D, Dx, and Dy all equal exactly zero, the two equations are scaled versions of each other. They represent the exact same line resting on top of each other, meaning every point on the line is a valid solution.