Solve Systems with Matrices - Amazon S3

17
Solve Systems with Matrices College Algebra

Transcript of Solve Systems with Matrices - Amazon S3

Page 1: Solve Systems with Matrices - Amazon S3

Solve Systems with MatricesCollege Algebra

Page 2: Solve Systems with Matrices - Amazon S3

Describing Matrices

A matrix is a rectangular array of numbers. A row in a matrix is a set of numbers that are aligned horizontally. A column in a matrix is a set of numbers that are aligned vertically. Matrices are enclosed in or , and are usually named with capital letters.Examples:

𝐴 = 1 23 4 , 𝐡 =

1 2 70 βˆ’5 67 8 2

, 𝐢 =βˆ’1 30 23 1

Page 3: Solve Systems with Matrices - Amazon S3

Describing Matrices

A matrix is often referred to by its size or dimensions: π‘šΓ—π‘› indicating π‘šrows and 𝑛 columns. Matrix entries are defined first by row and then by column. For example, the entry π‘Ž34 is located at row 𝑖, column 𝑗.

𝐴 =π‘Ž77 π‘Ž78 π‘Ž79π‘Ž87 π‘Ž88 π‘Ž89π‘Ž97 π‘Ž98 π‘Ž99

A square matrix has dimensions 𝑛×𝑛, meaning it has the same number of rows and columns.A row matrix has dimensions 1×𝑛 (one row), such as 𝐡 = 𝑏77 𝑏78 𝑏79

A column matrix has dimensions π‘šΓ—1 (one column), such as 𝐢 =𝑐77𝑐87

Page 4: Solve Systems with Matrices - Amazon S3

Adding and Subtracting Matrices

Given matrices 𝐴 and 𝐡 of like dimensions, addition and subtraction of 𝐴and 𝐡 will produce matrix 𝐢 or matrix 𝐷 of the same dimension.

𝐴 + 𝐡 = 𝐢 such that π‘Ž34 + 𝑏34 = 𝑐34𝐴 βˆ’ 𝐡 = 𝐷 such that π‘Ž34 βˆ’ 𝑏34 = 𝑑34

Example:

𝐴 = βˆ’2 30 1 and 𝐡 = 8 1

5 4𝐴 + 𝐡 = 6 4

5 5𝐴 βˆ’ 𝐡 = βˆ’10 2

βˆ’5 βˆ’3

Page 5: Solve Systems with Matrices - Amazon S3

Multiplying a Matrix by a Scalar

Scalar multiplication involves finding the product of a constant by each entry in the matrix.

Given 𝐴 =π‘Ž77 π‘Ž78π‘Ž87 π‘Ž88 , the scalar multiple 𝑐𝐴 =

π‘π‘Ž77 π‘π‘Ž78π‘π‘Ž87 π‘π‘Ž88

Scalar multiplication is distributive. For the matrices 𝐴 and 𝐡 with scalars π‘Žand 𝑏,

π‘Ž 𝐴 + 𝐡 = π‘Žπ΄ + π‘Žπ΅π‘Ž + 𝑏 𝐴 = π‘Žπ΄ + 𝑏𝐴

Page 6: Solve Systems with Matrices - Amazon S3

Product of Two Matrices

The product of two matrices is only possible when the inner dimensions are the same. If 𝐴 is an π‘šΓ—π‘Ÿ matrix and 𝐡 is an π‘ŸΓ—π‘› matrix, the product matrix 𝐴𝐡 is an π‘šΓ—π‘› matrix.To obtain the entry in row 𝑖, column 𝑗 of 𝐴𝐡, multiply row 𝑖 in 𝐴 by column 𝑗in 𝐡 as follows:

π‘Ž37 π‘Ž38 π‘Ž3@ A𝑏74𝑏84𝑏B4

= π‘Ž37𝑏74 + π‘Ž38𝑏84 + β‹―+ π‘Ž3@𝑏B4

Matrix multiplication is associative: 𝐴𝐡 𝐢 = 𝐴(𝐡𝐢)Matrix multiplication is distributive: 𝐢 𝐴 + 𝐡 = 𝐢𝐴 + 𝐢𝐡

Page 7: Solve Systems with Matrices - Amazon S3

Product of Two Matrices

Example: Multiply 𝐴 = 1 2 34 5 6 and 𝐡 =

7 108 119 12

Solution: Since 𝐴 has dimension 2Γ—3 and 𝐡 has dimension 3Γ—2, 𝐴𝐡 has dimension 2Γ—2.

𝐴𝐡 = 1 7 + 2 8 + 3(9) 1 10 + 2 11 + 3(12)4 7 + 5 8 + 6(9) 4(10) + 5 11 + 6(12)

𝐴𝐡 = 50 68122 167

Page 8: Solve Systems with Matrices - Amazon S3

Systems of Equations and Matrices

A matrix can be used to represent and solve a system of equations. The coefficients of the variables and the constants become the entries in a matrix. A vertical line separates the coefficient entries from the constants; this is called an augmented matrix.Example:

G3π‘₯ βˆ’ 𝑦 βˆ’ 𝑧 = 0π‘₯ + 𝑦 = 52π‘₯ βˆ’ 3𝑧 = 2

is represented as3 βˆ’1 βˆ’11 1 02 0 βˆ’3

|052

Notice that all the variables line up in their own columns, and missing terms have a coefficient of 0.

Page 9: Solve Systems with Matrices - Amazon S3

Row Operations and Row-Echelon Form

In order to solve the system of equations, we convert the augmented matrix to row-echelon form in which there are ones down the main diagonal, and zeros in every position below the main diagonal.

1 π‘Ž 𝑏0 1 𝑐0 0 1

We use row operations to obtain a new matrix that is row-equivalent.1. Interchange rows. (Notation: 𝑅3 ↔ 𝑅4)2. Multiply a row by a constant. (Notation: 𝑐𝑅3)3. Add the product of a row multiplied by a constant to another row.

(Notation: 𝑅3 + 𝑐𝑅4)

Page 10: Solve Systems with Matrices - Amazon S3

Gaussian Elimination

The Gaussian elimination method refers to a strategy to obtain the reduced row-echelon form of a matrix.

Example: 1 23 βˆ’2|

10βˆ’2

βˆ’3𝑅7 + 𝑅8 = 𝑅81 20 βˆ’8|

10βˆ’32 Obtain a zero in row 2, column 1

βˆ’7O𝑅8 = 𝑅8

1 20 1|

104 Obtain a one in row 2, column 2

βˆ’2𝑅8 + 𝑅7 = 𝑅71 00 1|

24 Obtain a zero in row 1, column 2

Page 11: Solve Systems with Matrices - Amazon S3

Gaussian Elimination

Given a system of equations, create the augmented matrix from the coefficients and constants. Reduce the matrix to row-echelon form to obtain the solution for the system.For example:

P π‘₯ + 2𝑦 = 103π‘₯ βˆ’ 2𝑦 = βˆ’2 is written as 1 2

3 βˆ’2|10βˆ’2

Reduce this matrix to 1 00 1|

24

Rewrite the system as Pπ‘₯ = 2𝑦 = 4 for the solution of 2,4

Page 12: Solve Systems with Matrices - Amazon S3

Identity Matrix and Multiplicative Inverse

The identity matrix, 𝐼@, is a square matrix containing ones down the main diagonal and zeros everywhere else.

𝐼8 =1 00 1 𝐼9 =

1 0 00 1 00 0 1

If 𝐴 is an 𝑛×𝑛 matrix and 𝐡 is an 𝑛×𝑛 matrix such that 𝐴𝐡 = 𝐡𝐴 = 𝐼@, then 𝐡 = 𝐴S7, the multiplicative inverse of matrix 𝐴.

Example: 𝐴 = 1 5βˆ’2 βˆ’9 , 𝐡 = βˆ’9 βˆ’5

2 1

𝐴𝐡 = 1 βˆ’9 + 5(2) 1 βˆ’5 + 5(1)βˆ’2 βˆ’9 βˆ’ 9(2) βˆ’2 βˆ’5 βˆ’ 9(1) = 1 0

0 1 = 𝐼8

Page 13: Solve Systems with Matrices - Amazon S3

Find the Inverse Using Matrix Multiplication

To find the inverse of a given matrix, multiply it by a matrix containing unknown constants and set it equal to the identity. This will result in systems of equations that can be used to find the unknowns.

Example: 𝐴 = 1 βˆ’22 βˆ’3

1 βˆ’22 βˆ’3 A π‘Ž 𝑏

𝑐 𝑑 = 1 00 1 Set up 𝐴 A 𝐴S7 = 𝐼

1π‘Ž βˆ’ 2𝑐 1𝑏 βˆ’ 2𝑑2π‘Ž βˆ’ 3𝑐 2𝑏 βˆ’ 3𝑑 = 1 0

0 1 Find the product

P1π‘Ž βˆ’ 2𝑐 = 12π‘Ž βˆ’ 3𝑐 = 0 , P1𝑏 βˆ’ 2𝑑 = 0

2𝑏 βˆ’ 3𝑑 = 1 Create systems and solve for π‘Ž, 𝑐 and 𝑏, 𝑑

Page 14: Solve Systems with Matrices - Amazon S3

Find the Inverse by Augmenting with the Identity

When matrix 𝐴 is transformed into 𝐼, the augmented matrix 𝐼 transforms into 𝐴S7.

Example: 𝐴 = 2 15 3

2 15 3|

1 00 1 Augment 𝐴 with the identity

1 00 1|

3 βˆ’1βˆ’5 2 Perform row operations to turn 𝐴 into the identity

𝐴S7 = 3 βˆ’1βˆ’5 2 Inverse is the right side of the augmented matrix

Page 15: Solve Systems with Matrices - Amazon S3

Inverse of a 2Γ—2 Matrix

If 𝐴 is a 2Γ—2 matrix such as 𝐴 = π‘Ž 𝑏𝑐 𝑑 , the multiplicative inverse of 𝐴 is

given by the formula𝐴S7 =

1π‘Žπ‘‘ βˆ’ 𝑏𝑐

𝑑 βˆ’π‘βˆ’π‘ π‘Ž

If π‘Žπ‘‘ βˆ’ 𝑏𝑐 = 0, then 𝐴 has no inverse.

Example: 𝐴 = 1 βˆ’22 βˆ’3

Solution: 𝐴S7 = 77 S9 S(S8)(8)

βˆ’3 2βˆ’2 1 = βˆ’3 2

βˆ’2 1

Page 16: Solve Systems with Matrices - Amazon S3

Solve a System of Equations Using an Inverse

Given a system of equations, write the coefficient matrix 𝐴, the variable matrix 𝑋, and the constant matrix 𝐡. Then 𝐴𝑋 = 𝐡. Multiply both sides by the inverse of 𝐴 to obtain the solution, 𝑋 = 𝐴S7𝐡.

Example: Solve the system of equations P 3π‘₯ + 8𝑦 = 54π‘₯ + 11𝑦 = 7

3 84 11

π‘₯𝑦 = 5

7 Write the system in matrix terms

𝐴S7 = 11 βˆ’8βˆ’4 3 Use the formula for the inverse of a 2Γ—2 matrix

π‘₯𝑦 = 11 βˆ’8

βˆ’4 357 = 11 5 + βˆ’8 7

βˆ’4 5 + 3(7) = βˆ’11 The solution is βˆ’1,1

Page 17: Solve Systems with Matrices - Amazon S3

Quick Review

β€’ What are the dimensions of a matrix?β€’ How do you find the product of two matrices?β€’ What is an augmented matrix?β€’ What are the characteristics of a matrix in row-echelon form?β€’ What are the three row operations used to obtain row-echelon form?β€’ How do you find the inverse of a 2Γ—2 matrix?β€’ Can the inverse be found for all dimensions of a matrix?β€’ How do you solve a system of equations using Gaussian elimination?β€’ How do you solve a system using the inverse of a matrix?