Docsity

Matrices_calculas_advance, Summaries of Calculus for Engineers

Partial preview of the text

Download Matrices_calculas_advance and more Summaries Calculus for Engineers in PDF only on Docsity!

Chapter 5 Matrices 5.1 Basic Definitions Matrix: A square or rectangular array of numbers or functions that obey certain laws, as in the case of determinants, the number or functions in a matrix are called elements, and these elements are distinguished by two sub- scripts having the same indication as the two subscripts of an element in determinant. If a matrix A has m rows and n columns it is written in the form Mi G2 Gin 21 Gag *** Gan A= . . . (5.1) Gmi Am2 *** Oman where parentheses are used to enclose the array of elements and is called a matrix of order mxn (m by n). Ifm =n the matrix is called a square matrix. The main diagonal in a square matrix consists of elements a1, @22,--- , Gan; and their sum is called the trace. If the matrix is a square matrix, it is possible to construct a determi- nant from the elements of the matrix arranged in the same way called the determinant of the matrix. If the expansion of the determinant of the matrix vanishes the matrix is called singular matrix. It is worthwhile at this stage to emphasize on the following important remarks. (i) The matrix elements (unlike the determinant elements) can not be combined. (ii) It follows from the above remark that the matrix is not a single number. We see that we are heading towards constructing a new form of mathe- matics. 5.2 Laws and Properties of Matrices a) Equality: Matrix A=Matrix B, if and only if a;; = bj; for all values of i and j. This of course requires that A and B are of the same order. b) Addition (Subtraction): The operation of addition (or subtraction) of two m x n matrices is defined as: C = ALB (5.2) where ¢;; = aj; + bj; for all i and j. Example 5.1 : Given the matrices: 2-1 3 7-4 3 A=!4 5 1 » B=| -2 5 6 6 2 3 1 3 2 Find A+ BandB-A Solution: 2+7 -1-4 343 9 -5 6 A+B={[ 4-2 545 146 ]=(2 10 7 5 6+1 243 342 7 5 7-2 -441 3-3 5 -3 0 B-A=| -2-4 5-5 6-1 ={-6 0 5 1-6 3-2 2-3 -5 1-1 A The direct product (tensor product) 7 d) It can be shown by use of the definition, that matrix product is not commutative except in special cases. On the other hand the associa- tive law is valid (AB)C’ = A(BC). There is also a distributive law A(B+C) = AB+AC. is defined for general matrices. If Ais an (mxn) matrix and B an (nx r) matrix then the direct product is | A@B=C where C' is an (mn x sr) matrix. If A= ay 2) , B=( 21 a2 bay then Ab aude a1B apB Qi1ba1 ayy bap A@B = ® (23 wp) Aridi; Ani dy2 Q21b21 Anibon Example 5.3 : Given that (01 _({1 0 1=\i 9 7 = 1g 4 Find 0; @ 03 Solution: 0.0 01 1 0 0 0 nea=(i 5) (i a)- 1 0 0 -1 bie bop ) Q2b11 Qy2b21 Az2b1 An2bo) coon (5.6) Q2b12 Qy2bo9 22b12 A229 0 ~-1 0 Division: The operation of division of a matrix by general matrix is not uniquely defined 5.2. LAWS AND PROPERTIES OF MATRICES 209 e) The derivative of a matrix: If the elements of a matrix A are functions of z then the derivative of the matrix A with respect to z is a matrix whose elements are the derived clements (with respect to x) of matrix A. Example 5.4 : d got 1 2 86a 0 dt \ .« = Ing & —-e i £ f) The Integral of a Matrix: To integrate a matrix with respect to a certain variable z, each element is integrated separately with respect to x. Example 5.5 : 1 0 e& Ing+c Co er +03 | z dz = 3 x 2 1 3 ate +c) 3r+c5 i + g) Transpose of a Matrix: A new matrix A? is constructed by inter- changing the rows and columns of matrix A, the resulting matrix is called the transpose of A. 2-1 3 Example 5.6 : Find the transpose of the matriz A= 4 2 1 2 4 AT=| -1 2 5.4. TRACE 211 (iv) The Unit Matrix: This is a square matrix whose elements are 4,;, Kronecker delta. For example l= oor oro Hoo It has the property Al=1A. (v) Diagonal Matrix: This is a square matrix in which the nondiagonal elements are zero. Specifically if a 3 x 3 matrix is diagonal then ay, 0 0 A= 0 a2 O 0 0 agg Multiplication of diagonal matrices is commutative, ie. AB = BA provided they are of the same order. (vi) Symmetric Matrix: If a matrix is not changed under transposition then the matrix is said to be symmetricie. A= A’ for instance the 2-1 3 matrix A= | -l1 5 6 is symmetric matrix since A’ = 3° 6 -7 2 -1 3 -1 5 6 3 6 -7 5.4 Trace One of the interesting properties of the square matrices is that the trace of a product of two such matrices is independent of the order of multiplication. trace(AB) = DAB) =LeLiab Msi ED hes 5 (BA);; trace(BA) This is always true even though AB # BA. --- CHAPTER 5. MATRICES Example 5.8 Given the two matrices: 1 A=| 3 1 Show that trace AB = trace BA wre wn oo Ne wv Ul “——_ ere Pow co ds ow Nee Solution: -7 9 4 = 2-9 -5 8 14 14 Trace AB =6~-8+0=-2, Trace BA=-7—94+14=-2 Then we conclude that Trace AB = Trace BA even though AB 4 BA 5.5 Matrix Inversion Consider a square matrix A to be known. Provided that the matrix is nonsingular matrix the problem is to find its inverse A-? such that AA*=A1A=1 To begin with, we consider the following identities. a) We know from the determinants that Di ayea; = D> ajzeys = JAI i 7 where |A| is the determinant composed of the elements of the matrix A and cj; is cofactor of the element a3. UHAFLER 0. MATRICES Eqn.(5.7) can be written as ACT -1 - ig (5.8) where A°? is a matrix of the cofactors of the original matrix but trans- posed. Example 5.9 Find the inverse of the matrix 3 4 1) A= 2 1 -3 —2 3 ~=#21 Solution: 10 4 8 10 -1 ~13 Ac = -1 5 -17 » AT=/ 4 5 -13) 11-5 8 -17 -5 304 ~41 ld] = | 2 1 3 | = 3(10) ~4(-4) + 1(8) = 54 -2 3 041 then " 3 94°41 10 -1 ~13 AAt = = 2 1 -3 4 5 S4\ io 34 8 -17 5 1 [340 0 100 ==! 0 54 0}=/010 54 lo 0 54 001 5.6. ORTHOGONAL MATRICES 215 5.6 Orthogonal Matrices As we have seen in chapter one, the ordinary three dimensional space may be described by the Cartesian coordinate system (x,y,z). Now, let us sup- pose thai there is another Cartesian frame of reference, centered at the same ~ origin but has the axes (2',y',2) oriented as shown in Fig.(5.1). z 2 Figure 5-1: The unit vector 4’ along the x-axis can be considered as a vector in the space defined by the axes x,y and z, so it can be written using the projection method as i = icos(2 ,x) + jcos(z,y) + kcos(z , z) (5.9) using the same method we get the following expressions for j and k' i k icos(y’,2) +9 cos(y,y) +k cos(y’, z) (5.10) icos(z ,x) + jcos(z’,y) + kecos(z’, z) (5.11) I The cosines, cos(z x), cos(z’,y), and cos(2’,z) are called the direction cosines of the vector é with respect to the original frame of reference 2, y, and z. The same can be said about the cosines that appeared in eqns.(5.10) and (5.11). 5.6. ORTHOGONAL MATRICES 217 Alternatively if we dot both sides of eqn.(5.17) by i,j, and k respectively we get a = tay tyan+Zas1 (5.20a) = day tye +2032 (5.20b) = cagty ast z'a33 (5.20c) And in matrix notations eqn.(5.20) can be written as ' z 1 Aq, 431 z y ) =| G2 O22 ase y (5.21) z Q13 G23 233 Zz , £ Substituting for | y’ | from eqn.(5.19) we get Zz z 1 G21 G31 Qi. G2 3 rz y | =| Ga G22 aso Qn G22 O23 y (5.22) z @3 A223 433 a3, 32 33 2 This shows that - 4, G21 G31 Qy1 412 413 @p, 2 32 an 22 23 | =1 (5.23) 13 G23 033 Q31 32 @33 then ATA = 1 : (5.24) or AT = At (5.25) Matrices satisfying eqn.(5.24) are called orthogonal matrices. Example 5.10 Determine which of the following is an orthogonal matric and which is not A ar = 1 i 2 2 5 4 a)A=] 1 v3 B= 0 -1 i = -%© 9 2 2 1 0 0 -1 1 0 3 Solution: a) As a start we write the transpose matrix AT v3 1 e 3 ? AN = | 1 vB 2 2 0 0 -1 then v3 1 0 v3 1 3 2 2 2 2 ATA = 1 VB a 1 0 2 2 2 2 0 0 -1 0 0 -1 1 0 0 = 0 1 0 0 0 1 Since A satisfies the orthogonality condition ATA = 1, then A is an orthogonal matrix. be written more explicitly in the form @1 G12 ++ Qin zy) Ty @21 G22 +" Gan TQ Z2 : =) G@n1 Qn2 *** Gnn En In From which we get the set of the homogeneous equations (11 — A) a1 + @ygt2+++++ aint, = 0 ay) + (22 —A)Zg+++++G2nt, = 0 + : ti + t (5.27) Gny booteee eee +(@an-A)tn = 0 This set of equations can have a nontrivial solution if and only if (an — A) 12 aa Qin @:; —A)- G: a (aa ) ; an =0 (5.28) On Qm2 ++" (ann = A) This is a polynomial equation of degree n in X. The values of \ sat- isfying this equation (roots) are called eigenvalues of matrix A. Related to each eigenvalue, there is a column vector X # 0, called eigenvector. Eigen is a German word meaning proper or characteristic and came with early treat- ments of quantum mechanics. Eqn.(5.28) can be written in a compact form as |A-Al]=0 (5.29) and it is usually called the characteristic (or secular) equation. Now, if the roots are all distinct, there will be n independent eigenvectors. However, when the roots are not all distinct, if is impossible, in general, to have n independent eigenvectors, but in the important case of the Hermitian matrix, there will be always n independent eigenvectors even if there are nondistinct roots. 5.7. EIGENVALUES AND EIGENVECTORS 221 © In many cases it is desirable to have eigenvectors normalized, which means that the sum of the absolute squares of their components is equal to one. Example 5.11 Given the matrit Find a) The eigenvalues b) The eigenvectors c) The unit eigenvectors (Normalized eigenvectors). Solution: a) The characteristic equation is (1-A) [e= ANB =ry=0 =O (1—A)(2-A(B-A) = 0 The eigenvalues are A= 1, 2, 3 b) To find the eigenvectors corresponding to d= 1 we write 112 Ly , Ty (222)(2) -o(2) 00 3 23 £3 This gives the equations fy + D2 + 203 = £1 (1) 2x9 + £3 = T2 (2) 323 = 23 (3) 5.8. REDUCTION OF A MATRIX TO DIAGONAL FORM... 223 and we get the following equations D+ 29+ 23 = 32) (10) 2rq + 23 = 32 (11) Bag = 323 (12) From eqn.(12) 3 is not determined, then we choose x3 = 2, so from eqn.(11) 22 = 2, and from eqn.(10) 2, = 3, then the third eigenvector is 3 2 2 c) The unit eigenvectors (normalized eigenvectors) are 1 1 3 1 1 oO}, yj] 1), and —]| 2 5.8 Reduction of a Matrix to Diagonal Form (Diagonalization) Suppose that A is a square matrix of order 3 x 3 and has the three distinct eigenvalues \1, A2, Ag and the three corresponding eigenvectors [one C12 C13 C21 , C22 > C23 C31 C32 C33 Let us construct a new matrix C consists of the eigenvectors as columns, Cu C12 C13 C= | cr Coz Cos (5.30) C31 C32 C33 ie. --- UHAF LEH 5. MATRICES Multiplying matrix C' on the left by A gives 1 M2 a3 Cu C12 C13 AC = 221 22 a3 C21 C22 Cag, 231 G32 33 31 C32 C33 Aven Avera Aseis Aicar Azco2 Agcas (5.31) Ares Aves. Aseag tl C1 Aen since Al cy = Aye21 and similar results for column 2 and Cay Aicar column 3. Egn.(5.31) can be written as Cu C2 C13 1 0 0 AC = C21 Con C23 0 r»2 0 (5.32) C31 C32 C33 0 0 3 Le. Mm 0 0 AC = Cl 0 » 0 (5.33) 0 0 As Multiplying both sides from the left by the inverse of matrix C’ (ie. C7) yields M0 0 csc = CC] 0 » 0 (5.34) 00 5 1 0 0 = 0 » 0 (5.38) 0 0° Xs From the above procedure we conclude that to diagonalize a matrix of order 3 x 3 and of three distinct eigenvalues 1, Az and 3, all what we need is to write these eigenvalues in the main diagonal and put all other elements equal to zero.