Question 112638: in solving systems of linear equations how do you know whether to eliminate the x's or y's?
Answer by bucky(2189) (Show Source):
You can put this solution on YOUR website! It doesn't make any difference which one you eliminate ... the answers will turn out to be the same.
.
Just eliminate the one that seems to be the easiest to do, whether it is x or it is y.
.
For example, take the two linear equations:
.
+4x + 3y = +29
+2x + 6y = +28
.
Let's eliminate the x column by multiplying the bottom equation (all terms on both sides) by -2.
This multiplication changes the bottom equation and the two equations are then:
.
+4x + 3y = +29
-4x -12y = -56
.
Add the two equations in columns to eliminate the x column and you end up with:
.
-9y = -27
.
Solve for y by dividing both sides of this equation by -9 and you get:
.
y = -27/-9 = +3
.
Take this value of y and substitute it into one of the two original equations to solve for x.
Let's substitute it into the equation:
.
+4x + 3y = +29
.
Replacing y by +3 changes this equation to:
.
+4x + 3*3 = +29
.
Do the multiplication on the left side to reduce the equation to:
.
+4x + 9 = +29
.
Get rid of the 9 on the left side by subtracting 9 from both sides to get:
.
4x = 20
.
Solve for x by dividing both sides by 4 and you have:
.
x = 20/4 = +5
.
So by eliminating the x terms we got an answer of y = 3 and x = 5.
.
Now let's return to the original set of equations and solve it by eliminating the y column.
Start with:
.
+4x + 3y = +29
+2x + 6y = +28
.
Multiply the top equation (all terms on both sides) by -2 to convert the equation set
to:
.
-8x - 6y = -58
+2x + 6y = +28
.
Add the two equations vertically to eliminate the y column and get:
.
-6x = -30
.
Solve for x by dividing both sides by -6 and you get:
.
x = -30/-6 = +5
.
Return to one of the two original equations and substitute +5 for x to solve for y. Let's
use the bottom equation this time, although we could also use the top one again.
The bottom
equation is:
.
+2x + 6y = +28
.
Substitute 5 for x and it becomes:
.
2*5 + 6y = +28
.
Multiply on the left side:
.
+10 + 6y = +28
.
Get rid of the +10 on the left side by subtracting +10 from both sides and you have:
.
6y = 18
.
Solve for y by dividing both sides by 6 and the result is:
.
y = 18/6 = 3
.
So when we eliminated the x column we got y = 3 and x = 5 as the answer. And when we
eliminated the y column we got x = 5 and y = 3 .... the answers are the same. This
example shows you that it doesn't really make any difference which variable you choose to
eliminate ... the results will be the same in either case.
.
Hope this helps you to understand the situation when using variable elimination to find
the common solution for a pair of linear equations.
.
|
|
|