Maths & numbers
Two linear equations solver
Solve two equations in x and y using their coefficients.
A clear answer. Here’s how.
Solves ax+by=c and dx+ey=f with a scaled determinant formula. A near-zero determinant is rejected as singular or numerically unstable; the tool does not claim a unique answer in that case. Uses floating-point arithmetic.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- First equation: x coefficient
- 2
- First equation: y coefficient
- 1
- First equation: right side
- 7
- Second equation: x coefficient
- 1
- Second equation: y coefficient
- -1
- Second equation: right side
- 2
Example result
- x
- 3
- y
- 1