ebook img

Matrix Algebra [Lecture notes] PDF

46 Pages·2017·0.3 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Matrix Algebra [Lecture notes]

MT182 MATRIX ALGEBRA MARKWILDON Thesenotesareintendedtogivethelogicalstructureofthecourse;proofs and further examples and remarks will be given in lectures. Further in- stallments will be issued as they are ready. All handouts and problem sheetswillbeputonMoodle. These notes are based in part on notes for similar courses run by Dr Rainer Dietmann, Dr Stefanie Gerke and Prof. James McKee. I would verymuchappreciatebeingtoldofanycorrectionsorpossibleimprove- ments. You are warmly encouraged to ask questions in lectures, and to talk to meafterlecturesandinmyofficehours. Iamalsohappytoanswerques- tionsaboutthelecturesorproblemsheetsbyemail. Myemailaddressis [email protected]. Lectures: Mondaynoon(QBLT),Friday10am(QBLT),Friday3pm(BLT1). OfficehoursinMcCrea240: Monday4pm,Wednesday10amandFriday 4pm. WorkshopsforMT172/MT182: MondaysorWednesdays,fromWeek2. Date:SecondTerm2015/16. 2 MATRIX ALGEBRA Thiscourseisonvectorsandmatrices,thefundamentalobjectsofalge- bra. You will learn the material mainly by solving problems, in lectures, inworkshopsandinyourowntime. Outline. (A) Vectors in R3: vector notation, displacement vectors, dot product and vector product. Lines and planes. Use in solving geometric problems. (B) Introductiontomatrices: matrixadditionandmultiplication. Rota- tionsandreflectionsinR2 andR3. Eigenvectorsandeigenvalues, characteristic polynomial, trace and determinant. Diagonaliza- tionwithapplications. (C) Determinants: permutationsanddisjointcycledecomposition. Def- initionofthedeterminantofann nmatrix. Application: invert- × ingamatrix. (D) Solving equations: elementary row operations, echelon form and row-reducedechelonform,rank. Applicationtosolvingequation andcomputinginverseofamatrix. (E) Vector spaces: abstract vector spaces, linear independence, span- ning,dimension,subspaces. Basesofvectorspaces. RecommendedReading. Allthesebooksareavailableonshort-termloan fromthelibrary. Ifyoufindtherearenotenoughcopies,emailme. [1] Linear algebra (Schaum’s outlines), Seymour Lipschutz, McGraw- Hill(1968),510.76LIP.Clearandconcisewithlotsofexamples. [2] Undergraduatealgebra: Afirstcourse,ChristopherNorman,Oxford UniversityPress(1986),512.11NOR.Veryclear,goodforPart(E) ofthecourse. [3] Linear algebra: a modern introduction, David Poole, Brooks/Cole (2011),3rdedition,512.3POO.Simpleandstraightforward,good forfirstfourpartsofcourse. [4] Linear algebra, Stephen H. Freidberg, Arnold J. Insel, Laurence E. Spence, Pearson Education (2002), 515.5 FRI. More advanced, goodforfurtherreading. AlsoyouwillfindalinkonMoodletoProf.JamesMcKee’snotes. These willgiveyouadifferentviewofthecoursematerialwithmoredetailthan thesenotes. 3 Problem sheets. There will be 8 marked problem sheets; the first is due in on Friday 22nd January. To encourage you to work hard during the term, each problem sheet is worth 1.25% of your overall grade. Note thatthismarkisawardedforanyreasonableattemptatthesheet. (Thereis alinkonMoodletothedocumentexplainingthispolicyinmoredetail.) Moodle. All handouts, problem sheets and answers will be posted on Moodle. You should find a link under ‘My courses’, but if not, go to moodle.rhul.ac.uk/course/view.php?id=406. Exercises in these notes. Exercises set in these notes are mostly simple tests that you are following the material. Some will be used for quizzes inlectures. Doingtheotherswillhelpyoutoreviewyournotes. Optional questions and extras. The ‘Bonus question’ at the end of each problem sheet, any ‘optional’ questions, and any ‘extras’ in these notes areincludedforinterestonly,andtoshowyousomemathematicalideas beyond the scope of this course. You should not worry if you find them difficult. If you can do the compulsory questions on problem sheets, know the definitions and main results from lectures, and can prove the results whoseproofsaremarkedasexaminableinthesenotes,thenyoushould doverywellintheexamination. 4 (A)VectorsinR3 1. INTRODUCTION TO VECTORS Lecture 1 VECTORS AND DISPLACEMENT VECTORS. Definition1.1. R3 isthesetofallorderedtriples(x,y,z)ofrealnumbers. Thenotation(x,y,z)meansthatwecareabouttheorderoftheentries. Forexample(1,2,3) = (2,1,3). Orderedtriplesarenotsets. 6 Wethinkof(x,y,z) R3 asthepointinthree-dimensionalspacewith ∈ coordinates x, y and z in the x, y and z directions. For example, the dia- grambelowshowsacubewithonevertexattheoriginO = (0,0,0). y (0,1,0) (0,0,0) (1,0,0) x (0,0,1) z We can also write elements of R3 as vectors in column notation. As vectors,(0,0,0),(1,0,0),(0,0,1)and(0,0,1)are 0 1 0 0 0 = 0 , i = 0 , j = 0 , k = 0 .         0 0 1 1         Vectors are written in bold; when handwritten, they are underlined. We willseeamoregeneraldefinitionofvectorslaterinthecourse. Exercise1.2. Labeleachvertexofthecubebythecorrespondingvector. Supposethat AandBaredistinctpointsinR3. Startingfrom Awecan walktoB. Thedisplacementvector−A→B,givesthedistancewemoveineach coordinatedirection. Forexampleif A = (1,2,3)and B = (3,2,1)then 2 −A→B = 0 A = (1,2,3)   2 −   (3,2,1) = B since we move 3 1 = 2 in the x-direction, 2 2 = 0 in the y-direction − − and1 3 = 2inthez-direction. − − 5 Problem1.3. (a) Whatisthedisplacementvectorfrom(1,0,0)to(0,0,1)? (b) If we apply this displacement starting at (1,1,0), where do we finish? (c) Ifwefinishat (12, 3,2) afterapplyingthisdisplacement,where − mustwehavestarted? (d) WhatisthedisplacementvectorfromtheoriginOto(1,1,0)? VECTOR SUM AND PARALLELOGRAM RULE. Problem 1.4. Let B = (1,0,0) and let C = (0,1,0). Start at the origin O andapplythedisplacementvectorO−→B. Wheredowefinish? Nowapply O−→C. Let D bethefinishingpoint. Find D. C = (0,1,0) 1 0 O−→B = 0 , O−→C = 1 .     0 0 O = (0,0,0)     B = (1,0,0) Thismotivatesthefollowingdefinition. a x Definition 1.5. Let u = b and v = y be vectors. We define the     sumofuandvby c z     a+x u+v = b+y .   c+z   Generalizing Problem 1.4, let A,B,C,D be points. If we start at A, and apply the displacement vectors −A→B then −A→C, we end up at D where −A→D = −A→B+−A→C. Thisiscalledtheparallelogramrule. C D −A→C −A→D A B −A→B Exercise 1.6. Which displacement vectors label the sides BD and CD of theparallelogram? Whatis−A→B+−B→A? Whatis−A→B+−B→C+C−→D+−D→A? 6 SCALAR MULTIPLICATION AND LINEAR COMBINATIONS. Elements of R arecalledscalars. Definition1.7. LetvbeasinDefinition1.6,andletα R. Wedefinethe ∈ αx scalarmultiplicationofαandvbyαv = αy .   αz   Usingthiswecanperformmorecomplicatedvectorcomputations. Lecture 2 Example 1.8. Let A = (1,0,1) and B = (1,2,3) and let u and v be the correspondingvectors. Then B 1 1 1 1 − 2u 3v = 2 0 3 2 = 6 = 6 O−→B −A→B −  −   −  −  1 3 7 7 −         Exercise: Find v u. Note that v u = O−→B O−→A = −A→B. Find α such − − − O O−→A A thatthez-coordinateofαu+viszero. A sum of the form αu+βv is called a linear combination of the vectors u and v. Moregenerally, α u + +α v isalinearcombinationofthe 1 1 r r ··· vectorsv ,...,v . 1 r Problem 1.9. Let u and v be as in Example 1.8. Express u as a linear combination of the vectors i, j, k. Express v as a linear combination of i,i+j,k. Problem 1.10. There is a unique plane Π containing (0,0,0), (1, 1,0) − and(0,1, 1). Is(1,0, 1)inthisplane? Is(1,1, 3)inthisplane? − − − DOTPRODUCT. Youmighthaveseenanotherdefinitionofvector,assome- thing having both magnitude and direction. Exercise: criticize this defi- nition. x Definition1.11. Thelengthofavectorv = y is v = x2+y2+z2.   || || z q   The notation v is also used. This can be confused with the absolute | | value of a real number, or the modulus of a complex number, so v is || || probablybetter. Example1.12. Considerthecubeshownonpage4. Thelengthofadiag- onalacrossaface,andthelengthofaspacediagonalare 1 1 1 = √2 and 1 = √3. (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) 0 (cid:12)(cid:12) (cid:12)(cid:12) 1 (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) Howcanweco(cid:12)(cid:12)mpute(cid:12)(cid:12)theanglebetwe(cid:12)e(cid:12)ntwo(cid:12)(cid:12)non-zerovectors? (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) (cid:12)(cid:12) 7 By convention, the angle is between 0 and π. It is π/2 if and only if thevectorsareorthogonal. Example1.13. Wewillfindtheanglebetween√3i+jand√3i jbycon- − sideringthetrianglewithverticesat(0,0,0),(√3,1,0)and(√3, 1,0). − The key property that we used was √3i+j = √3i j = 2, so || || || − || thetriangleisisosceles. Wecanreducetothiscasebyscalingeachvector. Exercise 1.14. Show that if v R3 and α R then αv = α v . ∈ ∈ || || | ||| || Deducethatv/ v haslength1. (Suchvectorsaresaidtobeunitvectors.) || || Lecture 3 Theorem 1.15. Let u = ai+bj+ck and let v = xi+yj+zk be non-zero vectors. Letθ betheanglebetweenuandv. Then ax+by+cz cosθ = . u v || |||| || The diagram used in the proof is below: u = u/ u = a i+b j+c k 0 0 0 || || andv = v/ v = x i+y j+z k. 0 0 0 || || x0,y0,z0b b (cid:0) (cid:1) t/2 θ/2 a0,b0,c0 (0,0,0) 1 (cid:0) (cid:1) Thismotivatesthefollowingdefinition. Definition1.16. Letu = ai+bj+ckandv = xi+yj+zk R3. Thedot ∈ productofuandvis u v = ax+by+cz. · PROPERTIES OF THE DOT PRODUCT. Lemma1.17. Letn,v R3benon-zerovectors[correctedinlecture]. Let ∈ θ betheanglebetweennandv. (a) v v = v 2. · || || (b) n v = n v cosθ · || |||| || (c) n v = 0ifandonlyifnandvareorthogonal. · 8 (d) Suppose that n = 1. Let w = (n v)n. Then v = w+(v w) || || · − v wherewisparalleltonandv wisorthogonalton. − (e) Letu R3 andletα, β R. Thenn (αu+βv) = αn u+βn v. ∈ ∈ · · · In words, (d) says that the component of v in the direction of n has lengthn v. Note n = 1isrequired. (Youcanalwaysscalen.) · || || n n v · Example 1.18. Let ‘ be the line through the points A = (1,0,0) and B = (0,0,1). Let ‘ be a line with direction i+√2j k intersecting ‘. The 0 − angle between ‘ and ‘ does not depend on where the intersection is. 0 Sincethedirectionof‘is−A→B = i+k,theangleθ isdeterminedby − ( i+k) (i+√2j k) 2 √2 θ 0 π π π π cosθ = − · − = − = . 6 4 3 2 ||−i+k||||i+√2j−k|| √2×2 − 2 sinθ 0 12 √22 √23 1 Sotheobtuseangleis3π/4andtheanglewewantisπ/4. cosθ 1 √3 √2 1 0 2 2 2 Youneedtoknowthestandardvaluesofsineandcosine. Thetablein B themarginmaybeausefulreminder. O−→B −A→B Part (a) of Lemma 1.17 is surprisingly useful. As an application of (a) and(b)weprovethecosinerule. WeneedExample1.8: O−→B O−→A = −A→B. − O A Lecture 4 O−→A Exercise 1.19. Let A, B R3 be points such that OAB is a triangle. Let ∈ u = O−→A and v = O−→B and let θ be the angle between u and v. Find the lengthoftheside ABbyusing(a)tocompute −A→B 2 = O−→B O−→A 2 = v u 2. || || || − || || − || Amorechallengingexerciseistouse(d)and(e)inLemma1.17toshow that the altitudes of a triangle meet at a point. This is a bonus question onSheet2. LINES AND PLANE ANGLE AND INTERSECTION. AtA-levelyousawthat the plane through a R3 with normal direction n R3 is v R3 : ∈ ∈ { ∈ n v = n a . · · } Problem1.20. Whatistheangleθ betweentheplanes v R3 : ( i+j+2k) v = 1 and v R3 : ( i+k) v = 1 ? { ∈ − · } { ∈ − · − } A line always makes an angle between 0 and π/2 (a right angle) with aplane. 9 Lemma 1.21. Let Π be a plane with normal n. Let ‘ be a line with direction c meetingΠatauniquepoint. Theangleθ betweenΠand‘satisfies sinθ = n c | · | wheren = n/ n andc = c/ c . || || || || b b b b Problem 1.22. Let Π be the xz-plane, so Π = xi+zk : x,z R . Let ‘ { ∈ } bethelinepassingthrough0andi+√2/3j k. Whataretheminimum − andmaximumanglesbetween‘andalineinΠpassingthrough0? 1 y i+√2/3j k = √2/3 −   1 −   ‘ (0,0,0) x Π z Where does Π meet the line through ( 1, 1,0) and (0,1,1)? (You can − − usethesamemethodforQuestion4(b)onSheet1.) 2. THE VECTOR PRODUCT MOTIVATION. To solve Problem 1.22 we needed a vector orthogonal to Lecture 5 the xz-plane. Inthiscasethenormalvectorjwasobvious. Problem2.1. LetΠbetheplanecontainingi,2i+jand4i+2j+k. Find anormalvectortoΠ. x a r By Lemma 1.17(c), y is orthogonal to both b and s if and       onlyif z c t       ax+by+cz = 0 rx+sy+tz = 0. Multiplythefirstequationbyt,thesecondbycandsubtracttoget (at cr)x+(bt cs)y = 0. − − Thissuggestswemighttake x = bt cs and y = cr at. Substitutingin − − wefindthatbothequationsholdwhenz = as br. − 10 DEFINITION AND PROPERTIES OF THE VECTOR PRODUCT. a r Definition2.2. Thevectorproductofvectors b and s isdefinedby     c t     a r bt cs − b s = cr at .  ×   −  c t as br −       Ifyourememberthetopentryisbt csyoucanobtaintheothersusing − thecyclicpermutations a b c a and r s t r. Sometimes 7→ 7→ 7→ 7→ 7→ 7→ isusedratherthan . ∧ × Exercise2.3. (a) Showthatv v = 0forallv R3. × ∈ (b) Showthati j = k,j k = iandk i = j. Hencefind(i+j) × × × × (i k). − u v Notethatineachcase,ifu v = wthenthevectorsu,vandwforma × × right-handedsystemwith(asexpected)worthogonaltouandv. Chang- v ing u and v by a small displacement does not change the orientation of thesystem,sothesystemisalwaysright-handed. u Lecture 6 Itremainstofindthelengthofu v. × Theorem 2.4. Let u and v be non-zero vectors. Let θ be the angle between u andv. Then u v = u v sinθ. || × || || |||| || AREA OF TRIANGLES. Theidentity u v 2 = u 2 v 2 (u v)2 || × || || || || || − · seenintheproofofTheorem2.4isusefulandofindependentinterest. Problem2.5. Let B = (1,8,2)andC = (8,2,1). LetO−→D = O−→B+O−→C. (a) WhatistheareaoftheparallelogramOBDC? (b) WhatistheareaofthetriangleOBC? C Suppose that ABC is a triangle with sides and angles as shown in the γ b a margin. UsingTheorem2.4andtheargumentfor(b),itsareais α β 21||−A→B||||−A→C||sinα = 12bcsinα. A c B Repeatingthisargumentwiththeothersidesgives 1bcsinα = 1casinβ = 2 2 1absinγ. Nowdividethroughby 1abctogetthesinerule. 2 2

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.