Download lin eq

Document related concepts

Schrödinger equation wikipedia , lookup

Unification (computer science) wikipedia , lookup

Two-body problem in general relativity wikipedia , lookup

BKL singularity wikipedia , lookup

Maxwell's equations wikipedia , lookup

Itô diffusion wikipedia , lookup

Equation of state wikipedia , lookup

Derivation of the Navier–Stokes equations wikipedia , lookup

Calculus of variations wikipedia , lookup

Euler equations (fluid dynamics) wikipedia , lookup

Navier–Stokes equations wikipedia , lookup

Equations of motion wikipedia , lookup

Schwarzschild geodesics wikipedia , lookup

Differential equation wikipedia , lookup

Exact solutions in general relativity wikipedia , lookup

Partial differential equation wikipedia , lookup

Transcript
5
Systems and
Matrices
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
15.1 - 1
5.1
Systems of Linear Equations
• Linear Systems
• Substitution Method
• Elimination Method
• Special Systems
• Applying Systems of Equations
• Solving Linear Systems with Three Unknowns
(Variables)
• Using Systems of Equations to Model Data
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
2
Linear Systems
The definition of a linear equation given in
Chapter 1 can be extended to more variables.
Any equation of the form
a1x1  a2 x2 
 an xn  b,
for real numbers a1, a2, …, an (all nonzero) and
b, is a linear equation or a first-degree
equation in n unknowns.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
3
Linear Systems
A set of equations is called a system of
equations. The solutions of a system of
equations must satisfy every equation in the
system. If all the equations in a system are
linear, the system is a system of linear
equations, or a linear system.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
4
Linear Systems
The possible graphs of a
linear system in two
unknowns are as follows.
1. The graphs intersect at
exactly one point, which
gives the (single) orderedpair solution of the system.
The system is consistent
and the equations are
independent.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
5
Linear Systems
2. The graphs are
parallel lines, so
there is no solution
and the solution set is
Ø. The system is
inconsistent and the
equations are
independent.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
6
Linear Systems
3. The graphs are the
same line, and there
is an infinite number
of solutions. The
system is consistent
and the equations
are dependent.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
7
Substitution Method
In a system of two equations with two
variables, the substitution method
involves using one equation to find an
expression for one variable in terms of
the other, and then substituting into the
other equation of the system.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
8
Example 1
SOLVING A SYSTEM BY
SUBSTITUTION
Solve the system.
3 x  2y  11
x  y  3
(1)
(2)
Solution
Begin by solving one of the equations for one of
the variables. We solve equation (2) for y.
x  y  3
y  x 3
(2)
Add x.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
9
Example 1
SOLVING A SYSTEM BY
SUBSTITUTION
Now replace y with x + 3 in equation (1), and
solve for x.
3 x  2y  11 (1)
3 x  2( x  3)  11
Note the careful
use of
parentheses.
Let y = x + 3 in (1).
3 x  2 x  6  11
Distributive property
5 x  6  11
Combine like terms.
5x  5
x 1
Subtract 6.
Divide by 5.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
10
SOLVING A SYSTEM BY
SUBSTITUTION
Example 1
Replace x with 1 in equation (3) to obtain
y = 1 + 3 = 4. The solution of the system is the
ordered pair (1, 4). Check this solution in both
equations (1) and (2).
Check
3 x  2y  11
(1)
(2)
?
?
1  4  3
3(1)  2( 4)  11
11  11
x  y  3
True
33
True
True statements result, confirming the solution set is
{(1, 4)}.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
11
Elimination Method
Another way to solve a system of two equations,
called the elimination method, uses
multiplication and addition to eliminate a variable
from one equation. To eliminate a variable, the
coefficients of that variable in the two equations
must be additive inverses. To achieve this, we
use properties of algebra to change the system
to an equivalent system, one with the same
solution set. The three transformations that
produce an equivalent system are listed next.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
12
Transformations of a Linear
System
1. Interchange any two equations of the
system.
2. Multiply or divide any equation of the
system by a nonzero real number.
3. Replace any equation of the system by
the sum of that equation and a multiple of
another equation in the system.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
5.1 - 13
13
Example 2
SOLVING A SYTEM BY
ELIMINATION
Solve the system.
Solution
3 x  4y  1
(1)
2 x  3 y  12
(2)
One way to eliminate a variable is to use the
second transformation and multiply both sides of
equation (2) by –3, to get an equivalent system.
3 x  4y  1
6 x  9 y  36
(1)
Multiply (2) by –3
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
(3)
14
Example 2
SOLVING A SYTEM BY
ELIMINATION
Now multiply both sides of equation (1) by 2, and
use the third transformation to add the result to
equation (3), eliminating x. Solve the result for y.
6 x  8y  2
6 x  9 y  36
17 y  34
y 2
Multiply (1) by 2
(3)
Add.
Solve for y.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
15
Example 2
SOLVING A SYTEM BY
ELIMINATION
Substitute 2 for y in either of the original equations
and solve for x.
3 x  4y  1
3 x  4(2)  1
3x  8  1
3x  9
x 3
(1)
Let y = 2 in (1).
Multiply.
Add 8.
Divide by 3.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
16
Example 2
SOLVING A SYTEM BY
ELIMINATION
A check shows that
(3, 2) satisfies both
equations (1) and (2).
Therefore, the
solution set is
{(3, 2)}.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
17
Example 3
SOLVING AN INCONSISTENT
SYSTEM
Solve the system.
3 x  2y  4
(1)
6 x  4 y  7
(2)
Solution
To eliminate the variable x, multiply both sides of
equation (1) by 2 and add the result to equation (2).
6 x  4y  8
6 x  4 y  7
0  15
Multiply (1) by 2
(2)
False.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
18
Example 3
SOLVING AN INCONSISTENT
SYSTEM
Since 0 = 15 is false, the
system is inconsistent
and has no solution. As
suggested by the graph,
this means that the
graphs of the equations
of the system
never intersect. (The
lines are parallel.) The
solution set is Ø.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
19
Example 4
SOLVING A SYSTEM WITH
INFINITELY MANY SOLUTIONS
Solve the system.
8 x  2y  4
(1)
 4x  y  2
(2)
Solution
Divide both sides of equation (1) by 2, and add
the result to equation (2).
4 x  y  2
4 x  y  2
00
Divide (1) by 2.
(2)
True.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
20
Example 4
SOLVING A SYSTEM WITH
INFINITELY MANY SOLUTIONS
The result, 0 = 0, is a true statement, which
indicates that the equations of the original system
are equivalent. Any ordered pair (x, y) that satisfies
either equation will satisfy the system. Solve for y in
equation (2).
4 x  y  2
(2)
y  4x  2
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
21
Example 4
SOLVING A SYSTEM WITH
INFINITELY MANY SOLUTIONS
The solutions of the system can be
written in the form of a set of
ordered pairs (x, 4x + 2), for any
real number x. Some ordered pairs
in the solution set are
(0, 4 • 0 + 2), or (0, 2), and
(1, 4 • 1 + 2), or (1, 6), as well as
(3, 14), and (–2, –6). As shown
here, the equations of the original
system are dependent and lead to
the same straight-line graph. The
solution set can be written
{(x, 4x + 2)}.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
22
Note In the algebraic solution for Example 4,
we wrote the solution set with the variable x
arbitrary. We could write the solution set with y
arbitrary.
 y  2 
,y

 4  
By selecting values for y and solving for x in this
ordered pair, we can find individual solutions.
Verify again that (0, 2) is a solution by letting
y = 2 and solving for x to obtain 2  2  0.
4
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
23
Applying Systems of Equations
Many applied problems involve more than one
unknown quantity. Although some problems with
two unknowns can be solved using just one
variable, it is often easier to use two variables.
To solve a problem with two unknowns, we must
write two equations that relate the unknown
quantities. The system formed by the pair of
equations can then be solved using the methods
of this chapter.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
24
Solving An Applied Problem By
Writing A System of Equations
Step 1 Read the problem carefully until you understand
what is given and what is to be found.
Step 2 Assign variables to represent the unknown values,
using diagrams or tables as needed. Write down
what each variable represents.
Step 3 Write a system of equations that relates the
unknowns.
Step 4 Solve the system of equations.
Step 5 State the answer to the problem. Does it seem
reasonable?
Step 6 Check the answer in the words of the original
problem.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
5.1 - 25
25
Example 5
USING A LINEAR SYSTEM TO
SOLVE AN APPLICATION
Salaries for the same position can vary
depending on the location. In 2010, the
average of the salaries for the position of
Accountant I in San Diego, California, and
Salt Lake City, Utah, was $45,091.50. The
salary in San Diego, however, exceeded
the salary in Salt Lake City by $5231.
Determine the salary for the Accountant I
position in San Diego and in Salt Lake City.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
26
Example 5
USING A LINEAR SYSTEM TO
SOLVE AN APPLICATION
Solution
Step 1 Read the problem. We must find the
salary of the Accountant I position in
San Diego and in Salt Lake City.
Step 2 Assign variables. Let x represent the
salary of the Accountant I position in
San Diego and y represent the salary
for the same position in Salt Lake City.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
27
Example 5
USING A LINEAR SYSTEM TO
SOLVE AN APPLICATION
Solution
Step 3 Write a system of equations. Since
the average of the salaries for the
Accountant I position in San Diego and
Salt Lake City was $45,091.50, one
equation is as follows.
xy
 45,091.50
2
Multiply both sides of this equation by 2 to
clear the fraction and get an equivalent
equation.
(1)
x  y  90,183
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
28
Example 5
USING A LINEAR SYSTEM TO
SOLVE AN APPLICATION
The salary in San Diego exceeded the salary in
Salt Lake City by $5231. Thus, x – y = 5231,
which gives the following system of equations.
x  y  90,183
(1)
x  y  5231
(2)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
29
Example 5
USING A LINEAR SYSTEM TO
SOLVE AN APPLICATION
Step 4 Solve the system. To eliminate y, add
the two equations.
(1)
x  y  90,183
x  y  5231
2x
 95,414
x  47,707
(2)
Add.
Solve for x.
To find y, substitute 47,707 for x in equation (2).
47,707  y  5231
 y  42,476
y  42,476
Let x = 47,707 in (2).
Subtract 47,707.
Multiply by –1.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
30
Example 5
USING A LINEAR SYSTEM TO
SOLVE AN APPLICATION
Step 5 State the answer. The salary for the
position of Accountant I was $47,707 in
San Diego and $42,476 in Salt Lake City.
Step 6 Check. The average of $47,707 and
$42,476 is
$47,707  $42,476
 $45,091.50
2
Also, $47,707 – $42,476 = $5231, as required.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
31
Solving Linear Systems with Three
Unknowns (Variables)
Earlier, we saw that the graph of a linear
equation in two unknowns is a straight
line. The graph of a linear equation in
three unknowns requires a threedimensional coordinate system. The
three number lines are placed at right
angles. The graph of a linear equation in
three unknowns is a plane.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
32
Solving Linear Equations with three
Unknowns (Variables)
Some possible intersections of planes representing
three equations in three variables are shown here.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
33
Solving Linear Equations with three
Unknowns (Variables)
Some possible intersections of planes representing
three equations in three variables are shown here.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
34
Solving Linear Equations with three
Unknowns (Variables)
Some possible intersections of planes representing
three equations in three variables are shown here.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
35
Solving a System
Solve a linear system with three unknowns as follows.
Step 1 Eliminate a variable from any two of the
equations.
Step 2 Eliminate the same variable from a different
pair of equations.
Step 3 Eliminate a second variable using the resulting
two equations in two variables to get an
equation with just one variable whose value
we can now determine.
Step 4 Find the values of the remaining variables by
substitution. Write the solution of the system
as an ordered triple.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
36
Example 6
SOLVING A SYSTEM OF THREE
EQUATIONS WITH THREE VARIABLES
Solve the system.
3 x  9 y  6z  3
(1)
2x  y  z  2
xy z2
(2)
(3)
Solution
Eliminate z by adding equations (2) and (3). (Step 1)
3 x  2y  4
(4)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
37
Example 6
SOLVING A SYSTEM OF THREE
EQUATIONS WITH THREE VARIABLES
To eliminate z from another pair of equations,
multiply both sides of equation (2) by 6 and
add the result to equation (1). (Step 2)
12 x  6 y  6z  12
3 x  9 y  6z  3
15 x  15 y
 15
Multiply (2) by 6.
(1)
(5)
Make sure
equation (5) has
the same two
variables as
equation (4).
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
38
Example 6
SOLVING A SYSTEM OF THREE
EQUATIONS WITH THREE VARIABLES
To eliminate x from equations (4) and (5), multiply both
sides of equation (4) by –5 and add the result to
equation (5). Solve the resulting equation for y. (Step 3)
15 x  10 y  20
15 x  15 y  15
5y   5
y  1
Multiply (4) by –5.
(5)
Add.
Divide by 5.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
39
Example 6
SOLVING A SYSTEM OF THREE
EQUATIONS WITH THREE VARIABLES
Using y = – 1 , find x from equation (4) by
substitution. (Step 4)
3 x  2( 1)  4
x2
(4) with y = –1
Solve for x.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
40
Example 6
SOLVING A SYSTEM OF THREE
EQUATIONS WITH THREE VARIABLES
Substitute 2 for x and –1 for y in equation (3)
to find z.
2  ( 1)  z  2
z 1
(3) with x = 2, y = –1
Solve for z.
Verify that the ordered triple (2, –1, 1) satisfies
all three equations in the original system. The
solution set is {(2, –1,1)}.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
41
Caution When eliminating a variable
from any two equations to create equations
like (4) and (5) in Example 6, be sure to
eliminate the same variable from both
equations. Otherwise, the result will include two
equations that still have three variables, and no
progress will have been made.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
5.1 - 42
42
Example 7
SOLVING A SYSTEM OF TWO
EQUATIONS WITH THREE VARIABLES
Solve the system.
Solution
x  2y  z  4
3 x  y  4z  9
(1)
(2)
Geometrically, the solution is the intersection of the two
planes given by equations (1) and (2). The intersection
of two different nonparallel planes is a line. Thus there
will be an infinite number of ordered triples in the
solution set, representing the points on the line of
intersection.
To eliminate x, multiply both sides of equation (1) by –3
and add the result to equation (2). (Either y or z could
have been eliminated instead.)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
43
Example 7
SOLVING A SYSTEM OF TWO
EQUATIONS WITH THREE VARIABLES
3 x  6 y  3z  12
3 x  y  4z  9
7 y  7z  21
7z  7 y  21
Solve this
equation for z.
z  y  3
Multiply (1) by –3.
(2)
(3)
Add 7y.
Divide each term
by –7.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
44
Example 7
SOLVING A SYSTEM OF TWO
EQUATIONS WITH THREE VARIABLES
This gives z in terms of y. Express x also in terms of y by
solving equation (1) for x and substituting –y + 3 for z in
the result.
x  2y  z  4
x  2y  z  4
(1)
Solve for x.
x  2y  (  y  3)  4
x  y  1
The system has an infinite number
of solutions. With y arbitrary, the
solution set is of the form
{(–y + 1, y, –y + 3)}.
Substitute (– y + 3)
for z.
Simplify.
Use parentheses
around
– y + 3.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
45
Note
Had we solved equation (3) in
Example 7 for y instead of z, the solution would
have had a different form but would have led to
the same set of solutions. In that case we would
have z arbitrary, and the solution set would be of
the form {(z –2, –z + 3, z)}.
By choosing z = 2, one solution would be
(0, 1, 2).
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
46
Modeling Data
Applications with three unknowns
usually require solving a system of
three equations. If we know three
points on the graph, we can find the
equation of a parabola in the form
y  ax 2  bx  c
by solving a system of three
equations with three variables.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
47
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
Find the equation of the parabola y = ax2 + bx + c
that passes through the points (2, 4), (–1, 1), and
(–2, 5).
Solution
Since the three points lie on the graph of the given
equation y = ax2 + bx + c, they must satisfy the
equation. Substituting each ordered pair into the
equation gives three equations with three
unknowns.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
48
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
4  a(2)  b(2)  c, or
2
1  a( 1)2  b( 1)  c, or
5  a( 2)  b( 2)  c, or
2
4  4a  2b  c
(1)
1 a  b  c
(2)
5  4a  2b  c
(3)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
49
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
To solve this system, first eliminate c using
equations (1) and (2).
4  4a  2b  c
1  a  b  c
3  3a  3b
(1)
Multiply (2) by –1.
(4)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
50
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
Now, use equations (2) and (3) to eliminate the
same unknown, c.
1
a bc
5   4a  2b  c
(2)
 4  3a  b
(5)
Multiply (3) by –1.
Equation (5) must have
the same two unknowns
as equation (4).
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
51
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
Solve the system of equations (4) and (5) in two
unknowns by eliminating a.
3  3a  3b
 4   3a  b
1 
1
 b
4
4b
(4)
(5)
Add.
Divide by 4.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
52
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
Find a by substituting –¼ for b in equation (4).
1 a  b
1
1 a 
4
5
a
4
Equation (4)
divided by 3
Let b = –¼.
Add ¼ .
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
53
Example 8
USING MODELING TO FIND AN
EQUATION THROUGH THREE POINTS
5
1
Finally, find c by substituting a  and b   in
4
4
equation (2).
1 a  b  c
5  1
1      c
4  4
6
1  c
4
1
 c
2
(2)
1
b


.
5
4
Let a  ,
4
Add.
6
Subtract 4 .
5 2 1
1 or
The required equation is y  x  x  ,
4
4
2
2
y  1.25 x  0.25 x  0.5.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
54
Example 9
SOLVING AN APPLICATION USING A
SYSTEM OF THREE EQUATIONS
An animal feed is made from three ingredients: corn,
soybeans, and cottonseed. One unit of each ingredient
provides units of protein, fat, and fiber as shown in the
table. How many units of each ingredient should be used
to make a feed that contains 22 units of protein, 28 units
of fat, and 18 units of fiber?
Corn
Soybeans
Cottonseed
Total
0.25
0.4
0.2
22
Fat
0.4
0.2
0.3
28
Fiber
0.3
0.2
0.1
18
Protein
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
55
Example 9
SOLVING AN APPLICATION USING A
SYSTEM OF THREE EQUATIONS
Solution
Step 1 Read the problem. We must determine
the number of units of corn, soybeans,
and cottonseed.
Step 2 Assign variables. Let x represent the
number of units of corn, y the number
of units of soybeans, and z the number
of units of cottonseed.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
56
Example 9
SOLVING AN APPLICATION USING A
SYSTEM OF THREE EQUATIONS
Step 3 Write a system of equations. The total
amount of protein is to be 22 units, so
we use the first row of the table to write
equation (1).
0.25 x  0.4 y  0.2z  22. (1)
We use the second row of the table to obtain 28
units of fat.
0.4 x  0.2y  0.3z  28 (2)
Finally, we use the third row of the table to obtain
18 units of fiber,
0.3 x  0.2y  0.1z  18 (3)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
57
Example 9
SOLVING AN APPLICATION USING A
SYSTEM OF THREE EQUATIONS
Multiply equation (1) on both sides by 100, and
equations (2) and (3) by 10 to get an equivalent
system.
25 x  40 y  20z  2200 (4)
4 x  2y  3z  280
(5)
3 x  2y  z  180
(6)
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
58
Example 9
SOLVING AN APPLICATION USING A
SYSTEM OF THREE EQUATIONS
Step 4 Solve the system. Using the methods
described earlier in this section, we find
that x = 40, y = 15, and z = 30.
Step 5 State the answer. The feed should
contain 40 units of corn, 15 units of
soybeans, and 30 units of cottonseed.
Step 6 Check. Show that the ordered triple
(40, 15, 30) satisfies the system formed
by equations (1), (2), and (3).
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
59
Note Notice how the table in
Example 9 is used to set up the
equations of the system. The coefficients
in each equation are read from left to
right. This idea is extended in the next
section, where we introduce solution of
systems by matrices.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
60