Calculator Algebra and functions
Simultaneous linear equations solver
In one sentence
Solves two linear equations in x and y by elimination.
Last checked Source: uk-dfe-alevel-maths-subject-content Source: Department for Education, GCE AS and A level subject content for mathematics (topics derived; every example and value computed here), uk-dfe-alevel-maths-subject-content www.gov.uk (opens in a new tab)
Inputs
- a₁, b₁, c₁: first equation a₁x + b₁y = c₁
- a₂, b₂, c₂: second equation
Formula ref
x = (c₁b₂ − c₂b₁)/(a₁b₂ − a₂b₁), y = (a₁c₂ − a₂c₁)/(a₁b₂ − a₂b₁)
Worked input
- Input 3x + 2y = 16 and x − y = 3.
- Denominator = 3×(−1) − 1×2 = −5.
- x = 22/5, y = 7/5.
- Take x + y = 7 and x − y = 1, a pair whose y terms are opposites, so adding the equations eliminates y at once. The denominator is 1 × (−1) − 1 × 1 = −2, and the solution is x = 4, y = 3. Equations whose coefficients of one letter are opposites are quickest by adding, which removes that letter at once, and spotting this before any multiplying saves a step and a chance of an arithmetic slip. Check: substituting back gives 4 + 3 = 7 and 4 − 3 = 1, so both equations are satisfied.
- Take 2x + 4y = 6 and x + 2y = 5, two equations whose left sides are proportional while their right sides are not. The denominator is 2 × 2 − 1 × 4 = 0, so the tool reports that no solution exists. A zero denominator means the coefficient pattern is proportional, so the lines are parallel or the same line, and you have to compare the constants to decide which of the two it is. Check: halving the first equation gives x + 2y = 3, which contradicts x + 2y = 5, so the lines are parallel and never meet.
- Take 3x + 5y = 7 and 2x − 4y = 1, a pair that has a unique solution but not a whole-number one. The denominator is 3 × (−4) − 2 × 5 = −22, which gives x = 3/2 and y = 1/2. Fractional answers are common with this method, and substituting them back into both original equations, not just one, is the only reliable check that the elimination was done correctly. Check: 3 × 3/2 + 5 × 1/2 = 7 and 2 × 3/2 − 4 × 1/2 = 1, so the fractional answer fits both lines.
How to use it
- Write both equations as ax + by = c.
- If the denominator is zero the lines are parallel or identical.
- Substitute back to check.
Simultaneous linear equations solver for your study of A-level maths: where it comes from and what it covers.
See also Modulus equation solver, Polynomial long division calculator, Remainder theorem calculator and Cubic factoriser.
Study brief
- In the Pearson Edexcel Level 3 Advanced GCE in Mathematics Specification – Issue 4 – February 2020, students must learn how to solve simultaneous equations in two variables. This process can be achieved through elimination or substitution. Such problems may consist of one linear and one quadratic equation, or they might involve powers of 2 in one unknown or in both unknowns. An example of such a task is solving y = 2x + 3 and y = x2 – 4x + 8, or equations like 2x – 3y = 6 and x2 – y2 + 3x = 50. Beyond these specific algebraic methods, exam questions may also involve the solution of simultaneous equations in different contexts. For instance, students will use a calculator to find probabilities connected with the normal distribution, where simultaneous equation solutions may be required as part of the mathematical process.
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.
More from Algebra and functions
-
Completing the square calculator
Writes ax² + bx + c as a(x + p)² + q and gives the turning point.
-
Cubic factoriser
Tests integer roots with the factor theorem and factorises a cubic.
-
Discriminant calculator
Evaluates b² − 4ac and classifies the quadratic as having two real roots, one repeated root or none.
-
Graph transformation tracker
Applies a stretch, translation and reflection to a point of a curve.
-
Inverse of a linear function
Finds f⁻¹(x) for f(x) = ax + b.
-
Line and circle intersection
Finds where y = mx + c meets x² + y² = r².
-
Modulus equation solver
Solves |ax + b| = c for x.
-
Partial fractions calculator
Splits (px + q)/((x − a)(x − b)) into A/(x − a) + B/(x − b).