Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.

Similar presentations


Presentation on theme: "1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented."— Presentation transcript:

1 1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented matrix: Elementary row operations: 1)Row switching. 2)Row multiplication by a nonzero number. 3)Adding a multiple of a row to another row. These operations are reversible.

2 2 Solving a set of linear equations by row reduction: Row reduced matrix

3 3 Possible cases of the solution of a set of linear equation: Solving m equations with n unknowns: 1)If Rank M < Rank A, the equations are inconsistent and there is no solution. 2)If Rank M = Rank A = n, there is one solution. 3)If Rank M = Rank A = R<n, then R unknowns can be expressed by the remaining n−R unknowns. Rank of a matrix: The number of the nonzero rows in the row reduced matrix. It is the maximal number of linearly independent row (or column) vectors of the matrix. Rank of A = Rank of A T (where (A T ) ij = (A) ji, transpose matrix).

4 4 Read: Chapter 3: 1-2 Homework: 3.2.4,8,10,12,15; Due: March 7

5 5 3.3 Determinates; Cramer’s rule Determinate of an n×n matrix: Minor: i j Cofactor: Determinate of a 1×1 matrix: Definition of the determinate of an n×n matrix: March 3 Determinants

6 6 Triple product of 3 vectors: Useful properties of determinants: 1)A common factor in a row (column) may be factored out. 2)Interchanging two rows (columns) changes the sign of the determinant. 3)A multiple of one row (column) can be added to another row (column) without changing the determinant. 4)The determinate is zero if two rows (columns) are identical or proportional. Example p91.2. Equivalent methods: 1)A determinate can be expanded by any row or any column: 2)|A|=|A T |. Example p90.1

7 7 Theorem: For homogeneous linear equations, the determinant of the coefficient matrix must be zero for a nontrivial solution to exist. Cramer’s rule in solving a set of linear equations:

8 8 Read: Chapter 3: 3 Homework: 3.3.1,10,15,17 (No computer work is needed.) Due: March 21

9 9 March 7 Vectors 3.4 Vectors Vector: A quantity that has both a magnitude and a direction. Geometrical representation of a vector: An arrow with a length and a direction. Addition and subtraction: Vector addition is commutative and associative. Algebraic representation of a vector: Magnitude of a vector: Note: A is a vector and A is its length. They should be distinguished.

10 10 Vector or cross product: B A  A×BA×B Cross product in determinant form: Scalar or dot product: B A  Parallel and perpendicular vectors: Examples p102.3, p105.4. Problems 4.5,26. Relations between the basis vectors:

11 11 Read: Chapter 3: 4 Homework: 3.4.5,7,12,18,26. Due: March 21

12 12 3.5 Lines and planes Equations for a straight line: y z A r−r 0 x Equations for a plane: N r−r 0 Examples p109.1, 2. March 17 Lines and planes

13 13 Distance from a point to a plane: n P R Q  Distance from a point to a line: Example p110.3. A P R Q  Example p110.4. Distance between two skew lines: A B P Q n F G Example p110.5,6. Problems 5.12,18,42. Let FG be the shortest distance, then it must be perpendicular to both lines (proof).

14 14 Read: Chapter 3: 5 Homework: 3.5.7,12,18,20,26,32,37,42. Due: March 28

15 15 3.6 Matrix operations Matrix equation: March 19,21 Matrix operations Multiplication by a number: Matrix addition:

16 16 More about matrix multiplication: 1)The product is associative: A(BC)=(AB)C 2)The product is distributive: A(B+C)=AB+AC 3)In general the product is not commutative: AB  BA. [A,B]=AB−BA is called the commutator. Unit matrix: Zero matrix: Product theorem: Matrix multiplication: Note: 1)The element on the ith row and jth column of AB is equal to the dot product between the ith row of A and the jth row of B. 2)The number of columns in A is equal to the number of rows in B. Example:

17 17 Matrix inversion: 1)M −1 is the inverse of M if MM −1 = M −1 M =I=1. 2)Only square matrix can be inversed. 3)det (M M −1 ) = det(M) det( M −1 ) = det(I)=1, so det (M)  0 is necessary for M to be invertible. Calculating the inverse matrix: Example p120.3. Solving a set of linear equations by matrix operations:

18 18 Equivalence between r=M -1 k and the Cramer’s rule: Three equivalent ways of solving a set of linear equations: 1)Row reduction 2)Cramer’s rule 3)r=M -1 k Cramer’s rule is an actual realization of r=M -1 k.

19 19 Gauss-Jordan method of matrix inversion: Let (M L p M L p-1 M L p-2 … M L 2 M L 1 ) M = M L M = I be the result of a series of elementary row operations on M, then (M L p M L p-1 M L p-2 … M L 2 M L 1 ) I = M L I = M −1. That is, Equivalence between row reduction and r=M -1 k: Row reduction is to decompose the M −1 in r=M −1 k into many steps.

20 20 Rotation matrices: Rotation of vectors y x  Functions of matrices: Expansion or power series expansion is implied. Examples:

21 21 Read: Chapter 3: 6 Homework: 3.6.9,13,15,18,21 Due: March 28

22 22 3.7 Linear combinations, linear functions, linear operators Linear combination: aA + bB March 24, 26 Linear operators Linear function f (r): Linear operator O: Example p125.1; Problem 7.15 Linear transformation: The matrix M is a linear operator representing a linear transformation.

23 23 Orthogonal transformation: An orthogonal transformation preserves the length of a vector. Orthogonal matrix : The matrix for an orthogonal transformation is an orthogonal matrix. Theorem: M is an orthogonal matrix if and only if M T = M −1. Theorem: det M=  1 if M is orthogonal.

24 24 2×2 orthogonal matrix: Conclusion: A 2×2 orthogonal matrix corresponds to either a rotation (with det M=1) or a reflection (with det M=−1).

25 25 Two-dimensional rotation: y x  y x   x' y' Two-dimensional reflection: y x   /2 Example p128.3.

26 26 Read: Chapter 3: 7 Homework: 3.7.9,15,22,26. Due: April 4

27 27 3.8 Linear dependence and independence Linear dependence of vectors: A set of vectors are linearly dependent if some linear combination of them is zero, with not all the coefficients equal to zero. March 28 Linear dependence and independence 1. If a set of vectors are linearly dependent, then at least one of the vectors can be written as a linear combination of others. 2. If a set of vectors are linearly dependent, then at least one row in the row-reduced matrix of these vectors equals to zero. The rank of the matrix is then less than the number of rows. Example: Any three vectors in the x-y plane are linearly dependent. E.g. (1,2), (3,4), (5,6). Linear independence of vectors: A set of vectors are linearly independent if any linear combination of them is not zero, with not all the coefficients equal to zero.

28 28 Linear dependence of functions: A set of functions are linearly dependent if some linear combination of them is always zero, with not all the coefficients equal to zero. Examples: Theorem: If the Wronskian of a set of functions then the functions are linearly independent.

29 29 Examples p133.1,2. Note: W=0 does not always imply the functions are linearly dependent. E.g., x 2 and x|x| about x=0. However, when the functions are analytic (infinitely differentiable), which we meet often, W=0 implies linear dependence.

30 30 Homogeneous equations: 1. Homogeneous equations always have the trivial solution (all unknowns=0). 2. If Rank M=Number of unknowns, the trivial solution is the only solution. 3. If Rank M< Number of unknowns, there are infinitely many solutions. Theorem: A set of n homogeneous equations with n unknowns has nontrivial solutions if and only if the determinant of the coefficients is zero. Proof: 1. det M ≠0  r =M -1 0=0. 2. Only trivial solution exists  Columns of M are linearly independent  det M ≠0. Examples p135.4.

31 31 Read: Chapter 3: 8 Homework: 3.8.7,10,13,17,24. Due: April 4

32 32 3.9 Special matrices and formulas March 31 Special matrices Transpose matrix A T of A: Complex conjugate matrix A * of A: Adjoint (transpose conjugate) matrix A + of A: Inverse matrix A -1 of A: A -1 A= AA -1 =1. Symmetric matrix: A=A T (A is real) Orthogonal matrix: A −1 =A T (A is real) Hermitian matrix: A =A + Unitary matrix: A -1 =A + Normal matrix: AA + =A + A, or [A,A + ]=0.

33 33 Associative law for matrix multiplication: A(BC)=(AB)C Transpose of a product: (AB) T =B T A T Corollary: (ABC) T =C T B T A T Index notation for matrix multiplication: Kronecker  symbol: Exercises on index notations:

34 34 Trace of a matrix: Trace of a product: Tr(AB)=Tr(BA) Corollary: Tr(ABC)=Tr(BCA)=Tr(CAB) Inverse of a product: (AB) -1 =B -1 A -1 Corollary: (ABC) -1 =C -1 B -1 A -1

35 35 Read: Chapter 3: 9 Homework: 3.9.2,4,5,23,24. Due: April 11

36 36 3.10 Linear vector spaces April 2 Linear vector spaces n-dimensional vectors: Linear vector space: Several vectors and the linear combinations of them form a space. Subspace: A plane is a subspace of 3-dimensional space. Span: A set of vectors spans the vector space if any vector in the space can be written as a linear combination of the spanning set. Basis: A set of linearly independent vectors that spans a vector space. Dimension of a vector space: The number of basis vectors that span the vector space. Examples p143.1; p144.2.

37 37 Inner product of two n-dimensional vectors: Length of an n-dimensional vector: Two n-dimensional vectors are orthogonal if Schwarz inequality:

38 38 Orthonormal basis: A set of vectors form an orthonormal basis if they are mutually orthogonal and each vector is normalized. Gram-Schmidt orthonormalization: Starting from n linearly independent vectors we can construct an orthonormal basis set Example p146.4.

39 39 Complex Euclidean space: Inner product: Length: Orthogonal vectors: Schwarz inequality: Example p146.5. Bra-ket notation of vectors:

40 40 Read: Chapter 3: 10 Homework: 3.10.1,10. Due: April 11

41 41 3.11 Eigenvalues and eigenvectors; Diagonalizing matrices April 4, 7 Eigenvalues and eigenvectors Eigenvalues and eigenvectors: For a matrix M, if there is a nonzero vector r and a scalar such that then r is called an eigenvector of M, and is called the corresponding eigenvalue. M only changes the “length” of its eigenvector r by a factor of eigenvalue, without affecting its “direction”. For nontrivial solutions of this homogeneous equation, we need This is called the secular equation, or characteristic equation.

42 42 Example: Calculate the eigenvalues and eigenvectors of

43 Let operator M actively change (rotate, stretch, etc.) a vector. The matrix representation of the operator depends on the choice of basis vectors: Let matrix C change the basis (coordinate transformation): Question: 43 Similarity transformation: M′ =CMC -1 is called a similar transformation of M. M′ and M are called similar matrices. They are the same operator represented in different bases that are related by the transformation matrix C. That is: If r′ =Cr, then M′ = CMC -1. Theorem: A similarity transformation does not change the determinate or trace of a matrix: x x' y y' r (r') R (R') M (M') r r' C R' M' M C R

44 44 Diagonalization of a matrix: Theorem: A matrix M may be diagonalized by a similarity transformation C -1 MC=D, where C consists of the column eigenvectors of M, and the diagonalized matrix D consists of the corresponding eigenvalues. That is, the diagonization equation C -1 MC=D just summarizes the eigenvalues and eigenvectors of M.

45 45

46 46 More about the diagonalization of a matrix C -1 MC=D: (2×2 matrix as an example): 1.D describes in the (x', y') system the same operation as M describes in the (x, y) system. 2.The new x', y' axes are along the eigenvectors of M. 3.The operation is more clear in the new system:

47 47 Diagonalization of Hermitian matrices: 1.The eigenvalues of a Hermitian matrix are always real. 2.The eigenvectors corresponding to different eigenvalues of a Hermitian matrix are orthogonal. 3.{A matrix has real eigenvalues and can be diagonalized by a unitary similarity transformation}if and only if {it is Hermitian}. Example p155.2.

48 48 Corollary: {A matrix has real eigenvalues and can be diagonalized by an orthogonal similarity transformation} if and only if {it is symmetric}.

49 49 Read: Chapter 3: 11 Homework: 3.11.3,13,14,19,32,33,42. Due: April 18


Download ppt "1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented."

Similar presentations


Ads by Google