1Solving linear systems algebraically: substitution and linear combination

2Warmup

Try to solve this system algebraically or graphically. Remember that solving the system means finding a solution that works for all equations.

2x+2y = 10 y = 32x

3Misc

Collect homework

Homework for next class: Homework: Read section 3.2, p.148-151. Problems: p.152-153 1-50 odd.

4Hybrid car again

Remember the hybrid car from the test? We said it gets 40 miles/gallon and 2 miles/kw-h. Let's also estimate that a gallon costs $3 and a kw-h costs $.1. How would we find out how much of each kind of fuel to use if we wanted to go 200 miles and spend $13?

5Substitution

Logic: You can substitute equal things for each other without changing the solution. This method is especially convenient when a coefficient is 1.

5.1Example

Solve:

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

Solution: Solve one equation for x or y, making a revised equation:

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

...and substitute in the other equation and solve for the remaining variable:

3x+4y = -4 3(-2y+2)+4y = -4 -6y+6+4y = -4 -2y = -10 y = 5

...then plug that in and solve the revised equation for the first variable:

x = -2y+2 = -25+2 = -8

So the solution is (-8,5).

Check your work! Make sure you have a solution. For example, plug in to the first equation:

3x+4y = 3(-8)+45 = -24+20 = -4?

Graph it to visualize.

6Linear combination

6.1Example

The simplest linear combination case is when the two equations add up to yield a new equation in only one variable:

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

You can add them to get

-x = -2 x = 2

Then you can plug x in to either original equation to get y:

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

Then check by plugging x and y in to the original equations. For example: 2x+y=22+(-1)=3?

6.2Example

Solve:

2x-4y = 13 4x-5y = 8

Solution: Multiply both sides of one equation so, when added to the other equation, one variable goes away:

-2(2x-4y) = -213 4x-5y = 8

The point of this is to get rid of the x term, which we see when we simplify...

-4x+8y = -26 4x-5y = 8 - 3y = -18 y = -6

...then use substitution for the first variable in either of the first equations:

13 = 2x-4y = 2x-4(-6) = 2x+24 -11 = 2x -112 = x

So the solution is (-112,-6).

Check: See if that really is a solution by plugging in to the equations. For example:

4x-5y = 4(-112)-5(-6) = -22+30 = 8?

6.3Example: the hybrid car

40x+2y = 200 3x+.1y = 13

Let's multiply both sides of the 2nd equation by -20 to get the y terms to disappear:

40x+2y = 200 -60x+(-2)y = -260 then, adding: -20x = -60 x = 3

So we need 3 gallons of gas. Then we can substitute to find how much electric charge we need:

40x+2y = 200 403+2y = 200 120+2y = 200 2y = 80 y = 40

So we need 40 kw-h of electricity. We can check: 3x+.1y=33+.140=9+4=13? Also, 40x+2y=403+240=120+80=200?.

6.4Example

You can multiply each equation by a number and add. For example:

Solve:

7x-12y = -22 -5x+8y = 14

We can make the y term coefficients opposites this way:

2(7x-12y) = 2(-22) 3(-5x+8y) = 3(14)

Using the distributive law:

14x-24y = -44 -15x+24y = 42 - -1x = -2 x = 2

Then we can solve for y using one of the other equations. Of course we could have just multiplied the 2nd equation by 32, but that would have involved fractions.

7No solution

Sometimes a system has no solution:

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

Try the linear combination method; multiply both sides of the 1st equation by -2:

-2x+4y = 3 2x-4y = 7 - 0 = 10

This obviously has no solution (no (x,y) pair can make it true).

If instead we had ended up with something like

3=3

we would know we had infinitely many solutions.