When you solve systems with two variables and therefore two equations, the equations can be linear or nonlinear. Linear systems are usually expressed in the form Ax + By = C, where A, B, and C are real numbers.

When solving linear systems, you have two methods at your disposal, and which one you choose depends on the problem:

If the coefficient of any variable is 1, which means you can easily solve for it in terms of the other variable, then substitution is a very good bet. If you use this method, then it doesn’t matter how each equation is set up.

If all the coefficients are anything other than 1, then you can use elimination, but only if the equations can be added together to make one of the variables disappear. However, if you use this method, be sure that all the variables and the equal sign line up with one another before you add the equations together.

## With the substitution method

In the *substitution method*, you use one equation to solve for one variable and then substitute that expression into the other equation to solve for the other variable. Look for a variable with a coefficient of 1 … that’s how you’ll know where to begin. If the coefficient on a variable is 1, then that is the variable you should solve for because solving for that variable will solely entail adding or subtracting terms in order to move everything to the other side of the equal sign. That way, you won’t have to divide by the coefficient when you’re solving, which means you won’t have any fractions.

For example, suppose you’re managing a theater, and you need to know how many adults and children are in attendance at a show. The auditorium is sold out and contains a mixture of adults and children. The tickets cost $23.00 per adult and $15.00 per child. If the auditorium has 250 seats and the total ticket revenue for the event is $4,846.00, how many adults and children are in attendance?

To solve the problem with the substitution method, follow these steps:

Express the word problem as a system of equations.

You can use the information given in the word problem to set up two different equations. You want to solve for how many adult tickets (

*a*) and child tickets (*c*) you sold. If the auditorium has 250 seats and was sold out, the sum of the adult tickets and child tickets must be 250.The ticket prices also lead you to the revenue (or money made) from the event. The adult ticket price times the number of adults present lets you know how much money you made from the adults. You can do the same calculation with the child tickets. The sum of these two calculations must be the total ticket revenue for the event.

Here’s how you write this system of equations:

Solve for one of the variables.

Pick the variable with a coefficient of 1 if you can, because solving for this variable will be easy. For this example, you can choose to solve for

*a*in the first equation. To do this, subtract*c*from both sides:*a*= 250 –*c*.You can always move things from one side of an equation to the other, but don’t fall prey to the trap that 250 –

*c*is 249*c*, like some people do. Those are not like terms, so you can’t combine them.Substitute the solved variable into the other equation.

In this example, you solve for

*a*in the first equation. You take this value (250 –*c*) and substitute it into the other equation for*a*. (Make sure that you don’t substitute into the equation you used in Step 1; otherwise, you’ll be going in circles.)The second equation now says 23(250 –

*c*) + 15*c*= 4,846.Solve for the unknown variable.

When you distribute the number 23, you get 5,750 – 23

*c*+ 15*c*= 4,846. When you simplify this, you get 5,750 – 8*c*= 4,846, or –8*c*= –904. So,*c*= 113. A total of 113 children attended the event.Substitute the value of the unknown variable into one of the original equations to solve for the other unknown variable.

You don’t have to substitute into one of the original equations, but your answers tend to be more accurate if you do.

When you plug 113 into the first equation for

*c*, you get*a*+ 113 = 250. Solving this equation, you get*a*= 137. You sold a total of 137 adult tickets.Check your solution.

When you plug

*a*and*c*into the original equations, you should get two true statements. Does 137 + 113 = 250? Yes. Does 23(137) + 15(113) = 4,846? Indeed.

## With the process of elimination

If solving a system of two equations with the substitution method proves difficult or the system involves fractions, the elimination method is your next best option. (Who wants to deal with fractions anyway?) In the *elimination method*, you make one of the variables cancel itself out by adding the two equations.

Sometimes, you have to multiply one or both equations by constants in order to add the equations; this situation occurs when you can’t eliminate one of the variables by just adding the two equations together. (Remember that in order for one variable to be eliminated, the coefficients of one variable must be opposites.)

For example, the following steps show you how to solve the system

by using the process of elimination:

Rewrite the equations, if necessary, to make like variables line up underneath each other.

The order of the variables doesn’t matter; just make sure that like terms line up with like terms from top to bottom. The equations in this system have the variables

*x*and*y*lined up already:Multiply the equations by constants to make one set of variables match coefficients.

Decide which variable you want to eliminate.

Say you decide to eliminate the

*x*variables; first, you have to find their least common multiple. What number do 20 and 1/3 both go into? The answer is 60. But one of them has to be negative so that when you add the equations, the terms cancel out (that’s why it’s called elimination!). Multiply the top equation by –3 and the bottom equation by 180. (Be sure to distribute this number to each term — even on the other side of the equal sign.) Doing this gives you the following:Add the two equations.

You now have 72

*y*= 120.Solve for the unknown variable that remains.

Dividing by 72 gives you

Substitute the value of the found variable into either equation.

In this example, you use the first equation:

Solve for the final unknown variable.

You end up with

Check your solutions.

Always verify your answer by plugging the solutions back into the original system.

It works! Now check the other equation:

Because both values are solutions to both equations, the solution to the system is correct.