Category

Linear Combination Calculator — Solve a System of Two Equations by the Elimination Method

Solve a system of two linear equations in two variables with the linear combination (elimination) method. See every step: the multipliers, the combined equation, back-substitution, and a check. Detects unique, no, and infinitely many solutions. Supports decimals, fractions, metric and US units, and world currencies including USD and RUB.

0 calculations

Calculation Parameters

Enter the coefficients and the right-hand side of each equation (decimals or fractions like 3/4 are allowed):

x + y =
x + y =

Enter Parameters

Fill in the form on the left and click "Calculate"

Our linear combination calculator is here whenever you need to solve a system of equations using the linear combination method (also known as the elimination method). If you want to learn what the linear combination method is or how to use the linear combination method, check the article below.

We explain what combining linear equations means and how to use the linear combination method to solve systems of linear equations. Most importantly, we show you several very detailed step-by-step examples of systems solved with the linear combination method.

What is a system of linear equations?

For an equation to be linear, all its variables must be in the first power: they cannot be squared/cubed, nor under a root, nor placed in the denominator. If some numbers satisfy several linear equations at once, we say that these numbers are a solution to the system of those linear equations.

In school, we most often encounter systems of two linear equations in two variables. In general, such a system takes the form:

a₁x + b₁y = c₁
a₂x + b₂y = c₂

where:

  • x and y are the variables;
  • a₁, b₁, c₁ are the coefficients of the first equation; and
  • a₂, b₂, c₂ are the coefficients of the second equation.

What is the linear combination method?

The linear combination of equations is a method for solving systems of linear equations. The key idea is to combine the equations into a system of fewer and simpler equations. If we deal with two linear equations in two variables, we want to combine these equations into one equation with a single variable.

By combining linear equations, we mean multiplying one or both equations by suitably chosen numbers and then adding the equations together. Multipliers must allow the operation of addition to cause one of the variables to vanish. We then end up with a single equation in one variable, which we can easily solve. Once we have solved this equation, we substitute the value we've found into one of the original equations. This leads to another equation in one variable, which we quickly solve. This way, we've solved the system using linear combination!

💡 Are there other methods for solving systems of linear equations? Sure! You can also use the substitution method and Cramer's rule.

How to use this linear combination calculator?

If you want to quickly solve a system of equations using linear combination, our tool is the best choice! To use it, follow the steps below:

  1. Tell us the coefficients of your system: type them in the appropriate fields.
  2. Our linear combination calculator solves the system using the linear combination method…
  3. …and displays and explains all the intermediate steps!

You can type decimals like 0.5, negative numbers like -3, or simple fractions like 3/4 in any coefficient field. An optional unit selector lets you label the answer in metric units, US customary units, or world currencies (US dollar, Russian ruble, euro, and more) — it never changes the underlying math.

How to use the linear combination method?

For the system of equations:

a₁x + b₁y = c₁
a₂x + b₂y = c₂

we can always use the least common multiple of a₁ and a₂. Namely, put:

m₁ := LCM(a₁, a₂) / a₁
m₂ := LCM(a₁, a₂) / a₂

and multiply the first equation by m₁ and the second equation by -m₂. This creates opposite coefficients for the variable x. All we need to do is add these equations together: we will obtain an equation with the y variable only.

In some particular situations, this LCM approach boils down to elementary operations:

  • When the coefficients of one variable are opposite numbers, both multipliers are equal to 1.
  • When the coefficients of one variable are equal, one multiplier is equal to 1 and the other to -1.

It may sometimes happen that you eliminate both variables at once. First of all, do not panic. You arrived at a statement about numbers. Depending on whether the statement you got is true, like 0 = 0 or 7 = 7, or false, e.g. 0 = 1 or 5 = 7, draw conclusions about the system:

  • If the statement is false, then the system has no solution.
  • If the final statement is true, then the system has infinitely many solutions.

Linear combination method examples

Wow, we've learned a lot about what the linear combination method is! It's time to solve a few systems of linear equations using linear combinations.

Example 1

Consider the system of equations and solve it using linear combination:

x - 4y = 1
-2x + 4y = 2

  1. Add the two equations together: -x = 3.
  2. Solve for x: x = -3.
  3. Substitute x = -3 into the first equation: -3 - 4y = 1.
  4. Solve for y: -4y = 4, so y = -1.

Solution: x = -3, y = -1.

Example 2

Solve using linear combination:

2x + 3y = 3
2x - y = -3

  1. First, multiply the first equation by -1: -2x - 3y = -3.
  2. Add the equations, which eliminates x: -4y = -6.
  3. Solve for y: y = 1.5.
  4. Substitute y = 1.5 into the second equation: 2x - 1.5 = -3.
  5. Solve for x: 2x = -1.5, so x = -0.75.

Solution: x = -0.75, y = 1.5.

Example 3

Solve the system using linear combination:

3x - 7y = 1
4x + 4y = -2

  1. Use the LCM approach: LCM(3, 4) = 12. The multipliers are m₁ = 4 and m₂ = -3, and the system becomes 12x - 28y = 4 and -12x - 12y = 6.
  2. Add the equations: -40y = 10.
  3. Solve for y: y = -0.25.
  4. Substitute y = -0.25 into the second equation: 4x - 4·(-0.25) = -2.
  5. Solve for x: 4x = -1, so x = -0.25.

Solution: x = -0.25, y = -0.25.

Frequently Asked Questions

What is a linear combination of vectors?

In vector algebra, a linear combination of vectors refers to adding two or more vectors multiplied by a scalar value. For example, if a, b, and c are vectors, then a vector d is a linear combination of a, b, and c if d = x·a + y·b + z·c, where x, y, and z are scalars. We can use a linear combination of vectors to represent a system of linear equations.

Is the linear combination method the same as elimination?

Yes. The linear combination method is also called the elimination method (or the addition method). You multiply the equations by chosen numbers and add them so that one variable is eliminated, leaving a single equation in one variable.

What does it mean when a system has no solution?

It means the system is inconsistent — no pair of values can satisfy both equations at once. When you apply linear combination, both variables vanish and you are left with a false statement such as 0 = 1. Geometrically, the two lines are parallel and never meet.

When does a system have infinitely many solutions?

When the two equations describe the same line. Applying linear combination makes both variables vanish and leaves a true statement such as 0 = 0. There is then a whole family of solutions rather than a single point.

Can I enter fractions or decimals?

Yes. You can type decimals like 0.5, negative numbers like -3, or simple fractions like 3/4 in any coefficient field.

Calculation History

Loading...