Download presentation
1
Systems of Linear Equations and Matrices
Chapter 2 ECO B. Potter
2
Systems of Linear Equations and Matrices
2.2 Solution of Linear Systems by the Gauss-Jordan Method 2.3 Addition and Subtraction of Matrices 2.4 Multiplication of Matrices 2.5 Matrix Inverses 2.6 Input-Output Models ECO B. Potter
3
Systems of Linear Equations and Matrices
2.2 Solution of Linear Systems by the Gauss-Jordan Method Working with some basic Matrix Algebra 2.3 Addition and Subtraction of Matrices 2.4 Multiplication of Matrices 2.5 Matrix Inverses Solving a system of linear equations using matrix inverses (with Microsoft Excel). ECO B. Potter
4
Matrix Algebra Matrix – A rectangular array of numbers.
is a m n matrix (m rows, n columns), where the entry in the ith row and jth column is aij. ECO B. Potter
5
Matrix Algebra Matrices are often named with capital letters (M).
Matrices are classified by size (# of rows # of columns). M is a 2 x 3 matrix Row matrix (row vector) – a matrix containing only 1 row. Column matrix (column vector) – only 1 column. ECO B. Potter
6
Matrix Algebra Matrix Equality
Two matrices are equal if they are the same size and if each pair of corresponding elements is equal. could be true ECO B. Potter
7
2.3 Addition and Subtraction of Matrices
Adding Matrices The sum of two m n matrices X and Y is the m n matrix X + Y in which each element is the sum of the corresponding elements of X and Y. ECO B. Potter
8
Adding Matrices - example
A toy company has plants in Boston, Chicago, and Seattle that manufacture toy phones and calculators. The following matrices show the per-item production costs for the three plants: Use matrix addition to determine the firm’s total per-item costs. Boston Chicago Seattle ECO B. Potter
9
Adding Matrices - example
A toy company has plants in Boston, Chicago, and Seattle that manufacture toy phones and calculators. The following matrices show the per-item production costs for the three plants: ECO B. Potter
10
Adding Matrices - example
A toy company has plants in Boston, Chicago, and Seattle that manufacture toy phones and calculators. The following matrices show the per-item production costs for the three plants: ECO B. Potter
11
2.3 Addition and Subtraction of Matrices
Additive Inverse The additive inverse (or negative) of a matrix X is the matrix –X in which each element is the additive inverse of the corresponding element of X. ECO B. Potter
12
2.3 Addition and Subtraction of Matrices
Zero Matrix The sum of matrices X and –X is a zero matrix A matrix whose elements are all zeros. If O is an m x n zero matrix, and A is any m n matrix, then Zero matrix – Additive identity matrix ECO B. Potter
13
2.3 Addition and Subtraction of Matrices
Subtracting Matrices The difference between two m n matrices X and Y is the m n matrix X Y (or Y X) in which each element is found by subtracting the corresponding elements of X and Y. ECO B. Potter
14
2.3 Addition and Subtraction of Matrices
Motorcycle Helmets The following table shows the percentage of motorcyclists in various regions of the country who used helmets compliant with federal safety regulations and the percentage who used helmets that were not compliant in two recent years. 2008 Compliant Noncompliant Northeast 45 8 Midwest 67 16 South 61 14 West 71 5 2009 Compliant Noncompliant Northeast 61 15 Midwest 67 8 South 65 6 West 83 4 ECO B. Potter
15
2.3 Addition and Subtraction of Matrices
Write two matrices for the 2008 and 2009 helmet usage. Use the two matrices to form a matrix showing the change in helmet usage from 2008 to 2009. 2008 Compliant Noncompliant Northeast 45 8 Midwest 67 16 South 61 14 West 71 5 2009 Compliant Noncompliant Northeast 61 15 Midwest 67 8 South 65 6 West 83 4 ECO B. Potter
16
2.3 Addition and Subtraction of Matrices
Write two matrices for the 2008 and 2009 helmet usage. Use the two matrices to form a matrix showing the change in helmet usage from 2008 to 2009. ECO B. Potter
17
2.4 Multiplication of Matrices
Product of a Matrix and a Scaler (real number) The product of a scaler k and a matrix X is the matrix kX, each of whose elements is k times the corresponding element of X. ECO B. Potter
18
2.4 Multiplication of Matrices
The product AB of an m n matrix A and an n k matrix B is found as follows. Multiply each element of the first row of A by the corresponding element of the first column of B. The sum of these n products is the first row, first column of AB. Multiply each element of the first row of A by the corresponding element of the second column of B. The sum of these n products is the first row, second column of AB. Example... ECO B. Potter
19
Multiplication of Matrices
AB A B The product AB of two matrices A and B can be found only if the number of columns of A is the same as the number of rows of B. ECO B. Potter
20
Now You Try Find the matrix product. ECO B. Potter
21
Try another; pg. 105, #43 Quantity Price (in dollars) Paper Tape
Binders Memo Pads Pens Department 1 10 4 3 5 6 Department 2 7 2 8 Department 3 1 Department 4 Price (in dollars) Supplier A Supplier B Paper 2 3 Tape 1 Binders 4 Memo Pads Pens ECO B. Potter
22
Try another; pg. 105, #43 Write the information in the “Quantity” table as a 4 5 matrix Q. ECO B. Potter
23
Try another; pg. 105, #43 Write the information in the “Price” table as a 5 2 matrix P. ECO B. Potter
24
Try another; pg. 105, #43 Find the product QP (QP will be a 4 2 matrix) ECO B. Potter
25
Using Microsoft Excel Array 1 is a 4 x 5 (m x n) matrix
Array 2 is a 5 x 2 (n x k) matrix ECO B. Potter
26
Using Microsoft Excel Highlight m k cells. Enter the function,
m = rows in array 1 k = columns in array 2 Enter the function, =MMULT(array 1,array 2) Select Ctrl + Shift + Enter ECO B. Potter
27
Microsoft Excel Highlight m x k cells. (m = 4, k = 2)
ECO B. Potter
28
Microsoft Excel Highlight m x k cells. Highlight m x k cells.
(m = 4, k = 2) Enter the function, =MMULT(array 1,array 2) Highlight m x k cells. (m = 4, k = 2) ECO B. Potter
29
Microsoft Excel Highlight m x k cells. (m = 4, k = 2)
Enter the function, =MMULT(array 1,array 2) Select Ctrl + Shift + Enter ECO B. Potter
30
Microsoft Excel ECO B. Potter
31
Microsoft Excel ECO B. Potter
32
Microsoft Excel ECO B. Potter
33
2.5 Matrix Inverses Comparable to the reciprocal of a real number.
If A is an n x n matrix, A-1 is the multiplicative inverse of matrix A. (A-1 does not mean 1/A) Just as the real number 1 is the multiplicative identity for real numbers, I is defined as the multiplicative identity matrix. Therefore, and, ECO B. Potter
34
Multiplicative Identity Matrix I
2 x 2 identity matrix 3 x 3 identity matrix 4 x 4 identity matrix ECO B. Potter
35
Multiplicative Identity Matrix I
AI = A ECO B. Potter
36
Microsoft Excel Highlight n x n cells. Enter the function,
=MINVERSE(array) Select Ctrl + Shift + Enter ECO B. Potter
37
Microsoft Excel Example: Find A – 1 ECO B. Potter
38
Microsoft Excel ECO B. Potter
39
Microsoft Excel Highlight n n cells ECO B. Potter
40
Microsoft Excel Highlight n n cells Enter the function,
=MINVERSE(array) ECO B. Potter
41
Microsoft Excel Highlight n n cells Enter the function,
=MINVERSE(array) Select Ctrl + Shift + Enter ECO B. Potter
42
Systems of Linear Equations
A system of linear equations is a set of n linear equations in k variables (or unknowns) that are solved together. The simplest linear system is one with 2 equations in 2 variables. A solution of a system is a solution that satisfies all the equations in the system. ECO B. Potter
43
Solving a 22 System of Linear Equations
Example: Three methods Graph the lines and identify the intersection (if any) Substitution Elimination ECO B. Potter
44
Graphing Method (x, y) ECO B. Potter
45
Substitution Solve the first equation for y ECO B. Potter
46
Substitution Solve the first equation for y
Substitute this expression for y in the second equation Solve for x ECO B. Potter
47
Substitution Solve the first equation for y
Substitute this expression for y in the second equation Solve for x ECO B. Potter
48
Substitution Solve the first equation for y
Substitute this expression for y in the second equation Solve for x ECO B. Potter
49
Substitution Substitute x = 3 in either equation to solve for y.
Solution: (3, 2) ECO B. Potter
50
Elimination In systems of equations where the coefficients of terms containing the same variable are opposites, the elimination method can be applied by adding the equations. If the coefficients of those terms are the same, the elimination method can be applied by subtracting the equations. ECO B. Potter
51
Elimination Multiply the first equation by 4 and the second equation by 3, so the coefficients of y are negatives of each other. ECO B. Potter
52
Elimination Any solution of this system must also be the solution of the sum of the two equations ECO B. Potter
53
Elimination Any solution of this system must also be the solution of the sum of the two equations Substitute x = 3 in either equation to solve for y. Solution: (3, 2) ECO B. Potter
54
Solving Systems of Equations With Matrix Inverses
Most practical in solving several systems that have the same variable matrix but different constants. Write the system as a matrix equation AX = B, where A is the matrix of the coefficients of the variables, X is the matrix of the variables, B is the matrix of the constants. ECO B. Potter
55
Solving Systems of Equations With Matrix Inverses
Example: Consider a system of 3 equations in 3 variables (x, y, z) ECO B. Potter
56
Solving Systems of Equations With Matrix Inverses
Example: Consider a system of 3 equations in 3 variables (x, y, z) ECO B. Potter
57
Solving Systems of Equations With Matrix Inverses
Solve the matrix equation AX = B Given: A-1A = I, and IX = X Multiply both sides by A-1 Associative property Multiplication inverse property Identity property ECO B. Potter
58
Solving Systems of Equations With Matrix Inverses
Solve the matrix equation AX = B Given: A-1A = I, and IX = X Multiply both sides by A-1 Associative property Multiplication inverse property Identity property ECO B. Potter
59
Solving Systems of Equations With Matrix Inverses
To solve a system of equations AX = B, where A is the matrix of coefficients, X is the matrix of variables, and B is the matrix of constants, first find A-1. Then X = A-1B. ECO B. Potter
60
Example Solve the following system using matrix notation:
ECO B. Potter
61
Example Write each equation in proper form. ECO B. Potter
62
Example Proper form of the system: Terms with variables on the left;
constants on the right; variables in the same order in each equation. ECO B. Potter
63
Example becomes ECO B. Potter
64
Example Write each equation in proper form.
Write the corresponding matrix equation, AX=B ECO B. Potter
65
Example Write each equation in proper form.
Write the corresponding matrix equation, AX=B Use Microsoft Excel to: calculate the inverse of the coefficient matrix (A1) multiply A1 by the constant matrix (B) to find the variable matrix (X). ECO B. Potter
66
Excel ECO B. Potter
67
Excel Highlight 3 3 cells ECO B. Potter
68
Excel =MINVERSE(array) ECO B. Potter
69
Excel Ctrl + Shift + Enter ECO B. Potter
70
Excel ECO B. Potter
71
Excel Highlight 3 1 cells ECO B. Potter
72
Excel =MMULT(array1,array2) ECO B. Potter
73
Excel Ctrl + Shift + Enter ECO B. Potter
74
Excel = X ECO B. Potter
75
Example x = 1, y = -3, z = 2 ECO B. Potter
76
Example An electronics company produces transistors, resistors, and computer chips. Each transistor requires 3 units of copper, 1 unit of zinc, and 2 units of glass. Each resistor requires 3, 2, and 1 units of the three materials, and each computer chip requires 2, 1, and 2. How many of each product can be made with 810 units of copper, 410 units of zinc, and 490 units of glass? ECO B. Potter
77
Transistor (x) Resistor (y) Comp. Chip (z) Copper 3 2 Zinc 1 Glass
ECO B. Potter
78
Transistor (x) Resistor (y) Comp. Chip (z) Copper 3 2 Zinc 1 Glass
ECO B. Potter
79
Transistor (x) Resistor (y) Comp. Chip (z) Copper 3 2 Zinc 1 Glass
ECO B. Potter
80
ECO B. Potter
81
Microsoft Excel ECO B. Potter
82
Microsoft Excel Use MINVERSE(b1:d3) ECO B. Potter
83
Microsoft Excel Use MMULT(b5:d7,g1:g3) ECO B. Potter
84
100 transistors, 110 resistors, and 90 computer chips can be made
ECO B. Potter
85
Now You Try Pretzels cost $3 per pound, dried fruit $4 per pound, and nuts $8 per pound. How many pounds of each should be used to produce 140 pounds of trail mix costing $6 per pound in which there is twice as much pretzels (by weight) than dried fruit? ECO B. Potter
86
Now You Try Let: x = the number of pounds of pretzels
y = the number of pounds of dried fruit z = the number of pounds of nuts The system of equations is: ECO B. Potter
87
2.6 Input-Output Models Matrix models used for studying the interdependencies in an economy. Developed by Wassily Leontief (1906 – 1909) 1973 Nobel prize in economics ECO B. Potter
88
Input-Output Models In practice, very complicated with many variables. In an economy with n basic commodities, the production of each relies on inputs of the other commodities. Example: Oil to run machinery to plant and harvest wheat. Input-Output Matrix – shows the amounts of each commodity used in the production of one unit of each commodity. Deal with the production and flow of goods in an economy. ECO B. Potter
89
Input-Output Models Input-Output matrix - simplified economy with three commodity categories (Agriculture, Manufacturing, Transportation). Agriculture Manufacturing Transportation 1/3 ECO B. Potter
90
Input-Output Models The amount of each commodity needed to produce one unit of agriculture. Input-Output matrix - simplified economy with three commodity categories (Agriculture, Manufacturing, Transportation). Agriculture Manufacturing Transportation 1/3 ECO B. Potter
91
Input-Output Models The amount of each commodity needed to produce one unit of manufacturing. Input-Output matrix - simplified economy with three commodity categories (Agriculture, Manufacturing, Transportation). Agriculture Manufacturing Transportation 1/3 ECO B. Potter
92
Input-Output Models The amount of each commodity needed to produce one unit of transportation. Input-Output matrix - simplified economy with three commodity categories (Agriculture, Manufacturing, Transportation). Agriculture Manufacturing Transportation 1/3 = A ECO B. Potter
93
Input-Output Models Input-Output matrix (A) ECO B. Potter
94
Input-Output Models If the economy produces: 60 units of agriculture 52 units of manufacturing 48 units of transportation Production matrix (X) – Column matrix that gives the amount of each commodity produced by the economy: ECO B. Potter
95
Input-Output Models Input-Output matrix (A), Production matrix (X)
¼ unit of agriculture is used to produce each unit of manufacturing. 52 units of manufacturing are produced. ¼ 52 = 13 units of agriculture are used in the production of manufacturing ECO B. Potter
96
Input-Output Models Input-Output matrix (A), Production matrix (X)
1/3 unit of agriculture is used to produce each unit of transportation. 48 units of transportation are produced. 1/3 48 = 16 units of agriculture are used in the production of transportation. ECO B. Potter
97
Input-Output Models Input-Output matrix (A), Production matrix (X)
Therefore, = 29 units of agriculture are used for “production” in the economy ECO B. Potter
98
Input-Output Models Input-Output matrix (A), Production matrix (X)
Since A gives the amount of each commodity needed to produce 1 unit of each, and X gives the number of units of each commodity produced, AX gives the amount of each commodity used in the production process. ECO B. Potter
99
Input-Output Models Input-Output matrix (A), Production matrix (X)
ECO B. Potter
100
Input-Output Models Using Excel: Use =MMULT(B1:D3,G1:G3)
ECO B. Potter
101
Input-Output Models Input-Output matrix (A), Production matrix (X)
29 units of agriculture, 42 units of manufacturing, 28 units of transportation are used to produce 60, 52, and 48 units of each. Remainder is used to satisfy the demand outside the production system. ECO B. Potter
102
Input-Output Models Therefore, production of 60 units of agriculture, 52 units of manufacturing, and 48 units of transportation would satisfy a demand of 31, 10, and 20 units of the commodities. Demand Matrix (D) – Represents the demand for the various commodities outside the production process. ECO B. Potter
103
Input-Output Models If matrix I – A has an inverse, then In practice, A and D are known and X must be found. Where, X = amounts of production needed to satisfy the demands (D) Identity Property Distributive Property ECO B. Potter
104
Input-Output Models What should production of each commodity be to satisfy demands for 516 units of agriculture, 258 units of manufacturing, and 129 units of transportation? ECO B. Potter
105
Input-Output Models What should production of each commodity be to satisfy demands for 516 units of agriculture, 258 units of manufacturing, and 129 units of transportation? ECO B. Potter
106
Input-Output Models Excel Use =MINVERSE(B5:D7) ECO B. Potter
107
Input-Output Models What should production of each commodity be to satisfy demands for 516 units of agriculture, 258 units of manufacturing, and 129 units of transportation? ECO B. Potter
108
Input-Output Models What should production of each commodity be to satisfy demands for 516 units of agriculture, 258 units of manufacturing, and 129 units of transportation? ECO B. Potter
109
Input-Output Models Excel Use =MMULT(B5:D7,G1:G3) ECO B. Potter
110
Input-Output Models Production of 921 units of agriculture, 862 units of manufacturing, and 575 units if transportation is needed to satisfy demands of 516, 258, and 129. What should production of each commodity be to satisfy demands for 516 units of agriculture, 258 units of manufacturing, and 129 units of transportation? ECO B. Potter
111
Chapter 2 End ECO B. Potter
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.