Introduction to Linear Algebra using MATLAB Tutorial on Material Covered in ENG EK 127 Relevant to Linear Algebra.

Size: px
Start display at page:

Download "Introduction to Linear Algebra using MATLAB Tutorial on Material Covered in ENG EK 127 Relevant to Linear Algebra."

Transcription

1 Introduction to Liner Algebr using MATLAB Tutoril on Mteril Covered in ENG EK 7 Relevnt to Liner Algebr By Stormy Attwy Reference: Stormy Attwy, MATLAB: A Prcticl Introduction to Progrmming nd Problem Solving, pp.45+x, Burlington, MA, Elsevier Inc., 9. MATLAB Bsics Windows nd Prompt Vribles nd Assignment Sttements Constnts Opertors nd Precedence Built-in functions, Help Types Vectors nd Mtrices in MATLAB Creting Vector nd Mtrix Vribles Row Vectors Column Vectors Mtrices Specil Mtrix Functions Referring to Elements Dimensions Vectors nd Mtrices s Function Arguments Mtrix Definitions Mtrix Opertions Arry Opertions (term-by-term) Mtrix Multipliction Inverse Mtrix Augmenttion Vector Opertions: Dot Product nd Cross Product Introduction to Liner Algebr Systems of Equtions Mtrix Form x Systems Elementry Row Opertions Guss Elimintion Guss-Jordn Elimintion Reduced Row Echelon Form (RREF) RREF to solve Ax=b for x RREF to find inverse The solve Function in the Symbolic Mth Toolbox Copyright August by Stormy Attwy Pge

2 MATLAB Bsics... Windows nd Prompt... Vribles nd Assignment Sttements... Constnts... 4 Opertors nd Precedence... 4 Built-in functions, Help... 5 Types...5 Vectors nd Mtrices in MATLAB... 6 Creting Vector nd Mtrix Vribles... 6 Row Vectors... 6 Column Vectors... 7 Mtrices... 7 Specil Mtrix Functions... 7 Referring to Elements... 8 Dimensions... 9 Vectors nd Mtrices s Function Arguments... Mtrix Definitions... Mtrix Opertions... Arry Opertions (term-by-term)... Mtrix Multipliction... Inverse... 4 Mtrix Augmenttion... 5 Vector Opertions: Dot Product nd Cross Product... 5 Intro to Liner Algebr: Systems of Equtions... 6 Mtrix Form... 6 x Systems... 7 Elementry Row Opertions... 9 Guss Elimintion... 9 Guss-Jordn Elimintion... Reduced Row Echelon Form (RREF)... Guss, Guss-Jordn, RREF Exmple... The solve Function in the Symbolic Mth Toolbox... 5 Copyright August by Stormy Attwy Pge

3 MATLAB Bsics Windows nd Prompt MATLAB cn be used in two bsic modes. In the Commnd Window, you cn use it interctively; you type commnd or expression nd get n immedite result. You cn lso write progrms, using scripts nd functions (both of which re stored in M-files). This document does not describe the progrmming constructs in MATLAB. When you get into MATLAB, the configurtion my vry depending on settings nd the Version number. However, you should hve these bsic windows: the Commnd Window: this is the min window nd is usully on the right the Workspce Window: shows current vribles the Current Directory Window: shows files, by defult in the work directory (the Current Directory is set using the pull-down menu bove the Commnd Window) the Commnd History Window: shows commnds tht hve been entered in the Commnd Window In the Commnd Window, you should see >> which is the prompt. Any commnd cn be entered t the prompt. Vribles nd Assignment Sttements In order to store vlues, either in n M-file or the Commnd Window, vribles re used. The simplest wy to put vlue into vrible is to use n ssignment sttement. An ssignment sttement tkes the form vrible = expression where the nme of the vrible is on the left-hnd side, the expression is on the righthnd side, nd the ssignment opertor is the =. Vribles do not hve to be declred in MATLAB. Vribles tht re defined cn be seen in the Workspce Window. In the Commnd Window, when n ssignment sttement is entered t the prompt, MATLAB responds by showing the vlue tht ws stored in the vrible. For exmple, >> mynum = 5 + mynum = 8 >> Here, the user entered mynum = 5 + nd MATLAB responded tht it hd stored in the vrible mynum the result of the expression, 8. Putting semicolon t the end of sttement will suppress the output from tht sttement, mening tht the commnd will be crried out, but MATLAB will not show the result. Here is n exmple of initilizing vrible count to, but suppressing the output, nd then dding one to the vlue of the vrible (nd not suppressing tht output): Copyright August by Stormy Attwy Pge

4 >> count = ; >> count = count + count = MATLAB hs defult vrible, clled ns. Any time n expression is entered in the Commnd Window, without ssigning it to vrible, MATLAB will ssign the result to the vrible ns. >> 7- ns = 4 There re commnds tht cn be used to see wht vribles hve been creted in given session, nd to delete vribles. The commnds who nd whos will disply the current vribles (whos gives more informtion). The cler commnd cn be used to delete some or ll vribles. Constnts There re built-in constnts in MATLAB, including: pi.459. i, j inf infinity NN stnds for not number ; e.g. the result of / (Techniclly, these re built-in functions tht return the vlues shown.) Opertors nd Precedence There re mny opertors in MATLAB, which cn be used in expressions. Some of the rithmetic opertors include: + ddition - negtion, subtrction * multipliction / division (divided by) \ division (divided into e.g. \ is 4) ^ exponentition (e.g. ^ is 9) There is hierrchy, or set of precedence rules, for the opertors. For exmple, for the opertors shown here, the precedence is (from highest to lowest): () prentheses ^ exponentition - negtion *, /, \ ll multipliction nd division +, - ddition nd subtrction Copyright August by Stormy Attwy Pge 4

5 Built-in functions, Help MATLAB hs mny built-in functions. It hs mny mthemticl functions, e.g. bs for bsolute vlue, tn for tngent, etc. The functions re grouped together logiclly in wht re clled help topics. The help commnd cn be used in MATLAB to find out wht functions re built-in, nd how to use them. Just typing help t the prompt will show list of the help topics, the beginning of which is displyed here: >> help HELP topics: mtlb\generl mtlb\ops mtlb\lng mtlb\elmt mtlb\elfun mtlb\specfun mtlb\mtfun - Generl purpose commnds. - Opertors nd specil chrcters. - Progrmming lnguge constructs. - Elementry mtrices nd mtrix mnipultion. - Elementry mth functions. - Specilized mth functions. - Mtrix functions - numericl liner lgebr. Typing help nd the nme of help topic (the mtlb\ is not necessry) will show the functions tht re contined in tht prticulr grouping. For exmple, the beginning of the list of opertors nd specil chrcters is shown here: >> help ops Opertors nd specil chrcters. Arithmetic opertors. plus - Plus + Typing help nd the nme of function will explin the use of the function. There re mny other functions in Toolboxes with re purchsed seprtely. Types There re mny built-in types in MATLAB. These re clled clsses ; you cn see the clss of vribles when using the whos commnd or in the Workspce window. By defult, the type of numericl expressions nd vribles is double, which is double precision type for flot, or rel, numbers. Even when using n integer expression, the defult type is double. There is lso the flot type single. For integers, there re mny built-in types: int8, int6, int, int64; the number in these types represents the number of bits tht cn be stored in vrible of tht type. There re lso unsigned integer types, for exmple, uint8 is used in true color imge mtrices. Other types include chr for single chrcters (e.g. x ) or chrcter strings (e.g. hi ), nd logicl for the result of reltionl, or Boolen, expressions. Copyright August by Stormy Attwy Pge 5

6 All of these type nmes re lso nmes of functions tht cn be used to convert vrible or expression to tht type. For exmple: >> cler >> myvr = 5 + 4; >> intvr = int(myvr); >> whos Nme Size Bytes Clss intvr x 4 int rry myvr x 8 double rry Vectors nd Mtrices in MATLAB MATLAB is written to work with vectors nd mtrices; the nme MATLAB is short for Mtrix Lbortory. A mtrix looks like tble with rows nd columns; n m by n (or m x n) mtrix hs m rows by n columns (these re the dimensions of the mtrix). Vectors re specil cse in which one of the dimensions is : row vector is single row, or in other words it is by n ( row by n columns), nd column vector is m by (m rows by column). A sclr is n even simpler cse; it is by mtrix, or in other words, single vlue. As seen from the whos commnd, the defult in MATLAB is to tret single vlues s x mtrix. Creting Vector nd Mtrix Vribles Row Vectors Row vector vribles cn be creted in severl wys. The simplest method is to put the vlues tht you wnt in the vrible in squre brckets, seprted by either spces or comms: >> rowvec = [ 5 7] rowvec = 5 7 This cretes x 4 row vector rowvec, or in other words, row vector with four elements. The colon opertor cn be used to crete row vector tht itertes from the strting to ending vlue with defult step of one; in this cse, the squre brckets re not necessry: >> itvec = :7 itvec = Copyright August by Stormy Attwy Pge 6

7 A step vlue cn lso be specified: >> stepvec = :: stepvec = Column Vectors There re two bsic methods for creting column vector: either by putting the vlues in squre brckets, seprted by semicolons, or by creting row vector nd then trnsposing it. The trnspose opertor in MATLAB is the postrophe. For exmple: >> colvec = [;7;] colvec = 7 >> rowvec = [:5 44]; >> cvec = rowvec cvec = Mtrices Mtrix vribles cn be creted by putting the vlues in squre brckets; the vlues within the rows re seprted by either spces or comms, nd the rows re seprted by semicolons. One thing is very importnt: there must lwys be the sme number of vlues in every row. The colon opertor cn be used to iterte within the rows. >> mt = [:; 5 ; 6:-:4] mt = Specil Mtrix Functions There re mny built-in functions in MATLAB tht crete specil mtrices. Some of them re listed here: zeros(m,n) cretes n m x n mtrix of ll zeros zeros(n) cretes n n x n mtrix of zeros ones(m,n) cretes n m x n mtrix of ll ones ones(n) cretes n n x n mtrix of ones Copyright August by Stormy Attwy Pge 7

8 eye(n) cretes n n x n identity mtrix (ll zeros but ones on the digonl) mgic(n) cretes n n x n mgic mtrix (sum of ll rows, columns, nd digonl re the sme) rnd(n) cretes n n x n mtrix of rndom rel numbers, ech in the rnge from to rnd(m,n) cretes n m x n mtrix of rndom rel numbers, ech in the rnge from to Note: some versions of MATLAB lso hve function to crete mtrix of rndom integers, clled either rndint or rndi. Use help to see whether it is vilble in your version nd if so, how to use it. Referring to Elements Once you hve creted vector or mtrix vrible, it is necessry to know how to refer to individul elements nd to subsets of the vector or mtrix. In this section, we will use the following vribles to illustrte: >> vec = 4::4 vec = >> mt = [:; 5 ; 6:-:4] mt = For vector (row or column), referring to n individul element is done by giving the nme of the vrible nd in prentheses the number of the element (which is clled the index or the subscript). In MATLAB, the elements of vector re numbered from to the length of the vector. For mtrix, both the row nd the column index must be given in prentheses, seprted by comm (lwys the row index nd then the column index). >> vec() ns = 8 >> mt(,) ns = The colon opertor cn be used to iterte through subscripts. For exmple, this sys the third through fifth elements of the vector (which cretes nother row vector): >> vec(:5) ns = 8 Copyright August by Stormy Attwy Pge 8

9 Using just the colon by itself for row or column index mens ll of them. For exmple, this sys ll rows within the second column, or in other words, the entire second column: >> mt(:,) ns = 5 There is lso specil keyword end which cn be used to refer to the lst element in vector, or the lst row nd/or column in mtrix (for exmple, below, the lst element in the first row): >> mt(,end) ns = These methods of referring to elements cn be used to modify elements nd in some cses to delete them. To delete element(s), the empty vector [] is ssigned. This exmple cretes vector, modifies vlue in it, nd then deletes two elements: >> newvec = [ ]; >> newvec(4) = 49 newvec = >> newvec(:) = [] newvec = Note: this cn be done with mtrices lso, s long s every row in the mtrix hs the sme number of vlues. This mens, for exmple, tht you could not delete n individul element from mtrix, but you could delete n entire row or column. Dimensions There re severl functions tht re used to determine the number of elements in nd the dimensions of vribles. Assuming vector vrible vec nd mtrix vrible mt, numel(vec) returns the number of elements in the vector numel(mt) returns the totl number of elements in the mtrix (the product of the number of rows nd the number of columns) length(vec) returns the number of elements in the vector length(mt) returns either the number of rows or the number of columns in the mtrix, whichever is lrger size(mt) returns the number of rows nd the number of columns of the mtrix size(vec) returns the number of rows nd the number of columns of the vector Copyright August by Stormy Attwy Pge 9

10 The size function brings up couple of unique nd importnt concepts in MATLAB: A function cn return more thn one vlue It is possible to hve vector contining more thn one vlue on the left-hnd side of n ssignment sttement. This cn be used to store the vlues tht re returned from function. For exmple, to store the number of rows in mtrix in vrible r nd the number of columns in vrible c, vector with the vribles r nd c is on the left-hnd side of n ssignment sttement tht uses the size function to return both of these vlues: >> mt = [7 5; 4:7] mt = >> [r c] = size(mt) r = c = 4 In generl, it is NOT good prctice to ssume the dimensions of vector or mtrix. For vector vrible, typiclly either numel or length is used to determine the number of elements in the vector. For mtrix, the ssignment sttement shown bove with size is generlly used since it is frequently useful to hve the number of rows nd columns stored in seprte vribles. There re lso mny functions in MATLAB tht cn chnge the orienttion or dimensions of mtrix: reshpe(mt,m,n) reshpes the mtrix s n m x n mtrix (the number of elements must be the sme) by filling the new mtrix with the vlues from the old one column t time fliplr(mt) flips the columns from left to right flipud(mt) flips the rows up nd down Vectors nd Mtrices s Function Arguments In MATLAB, n entire vector or mtrix cn be pssed s n rgument to function, nd the function will evlute the function on every element, nd return s result vector or mtrix with the sme dimensions s the input rgument. For exmple, >> v = :5; >> exp(v) ns = Copyright August by Stormy Attwy Pge

11 >> mt = [- 4 ; - ] mt = >> bs(mt) ns = 4 For some functions, however, MATLAB will operte column-wise on mtrix rguments. For exmple, there is function sum tht will sum the elements in vector. For mtrix, however, it will sum ech individul column. Using the vribles v nd mt shown bove, >> sum(v) ns = 5 >> sum(mt) ns = - Mtrix Definitions There re mny definitions tht relte to mtrices, nd MATLAB hs relevnt functions for mny of them. Two mtrices re sid to be equl to ech other if they hve the sme dimensions, nd ll corresponding elements re equl. In MATLAB, there is function isequl tht will receive two mtrix rguments nd will return logicl for true if they re equl, or logicl for flse if not. A mtrix is squre if the number of rows is the sme s the number of columns. There re definitions tht pply only to squre mtrices. The digonl of squre mtrix is the set of elements from the upper left corner to the lower right; these re the elements for which the row nd column indices re the sme. The trce of squre mtrix is the sum of the elements on the digonl. A digonl mtrix is mtrix for which ll of the elements tht re not on the digonl re zeros. There re severl functions relted to squre mtrices: trce(squremt) returns the trce of squre mtrix dig(squremt) returns the digonl of squre mtrix s vector dig(vec) cretes digonl mtrix by creting mtrix of ll zeros nd putting the vector vec on the digonl An upper tringulr mtrix is squre mtrix is mtrix tht hs ll zeros below the digonl. A lower tringulr mtrix is squre mtrix tht hs ll zeros bove the digonl. MATLAB hs functions triu(mt) nd tril(mt) tht will receive mtrix Copyright August by Stormy Attwy Pge

12 rgument n will crete n upper or lower tringulr mtrix, respectively, by replcing elements with zeros s pproprite. The digonl of mtrix is sometimes clled the min digonl. There cn be subdigonls. For exmple, tridigonl mtrix is mtrix tht hs min digonl nd sub-digonl directly below the min digonl nd nother directly bove it. Mtrix Opertions Mthemticl opertions cn be performed on mtrices; MATLAB hs built-in opertors nd/or functions for them. Since MATLAB is written to work on mtrices, loops re not necessry for mtrix opertion. For exmple, sclr multipliction mens multiplying every element in mtrix by sclr vlue. In MATLAB, this is ccomplished simply using the * opertor: >> mt = reshpe(:8,,4) mt = >> mt * 5 ns = Arry Opertions (term-by-term) Mtrix opertions re clled rry opertions if they operte on two mtrices the two mtrices hve the sme dimensions the opertions re performed term-by-term; in other words, on corresponding elements For rry ddition nd subtrction, the + nd - opertors re used. For exmple, for rry ddition: 8 A + B = C = >> A = [:5; 8:] A = >> B = reshpe(:6,,) B = Copyright August by Stormy Attwy Pge

13 >> C = A + B C = For ny opertion tht is bsed on multipliction (this mens multipliction, division, nd exponentition), the rry opertor hs dot (. ) in front of it. For exmple, using the mtrices A nd B bove: >> timesb = A.* B timesb = >> risedtob = A.^ B risedtob = Mtrix Multipliction Mtrix multipliction is VERY different from the rry multipliction defined bove. If mtrix A hs dimensions m x n, then in order to be ble to multiply it by mtrix B, B must hve dimensions n x something; we ll cll the column dimension p. In other words, in order to multiply A * B, the number of rows of B hs to be the sme s the number of columns of A. We sy tht the inner dimensions must gree. The resulting mtrix, C, will hve s its dimensions m x p (the outer dimensions ). So, [A] mxn [B] nxp = [C] mxp This just explins the dimensions; it does not yet describe how the elements in the mtrix C re derived. Every element in C is the result of summing the products of corresponding elements in the rows of A nd the columns of B. Any given element in C, C ij, is defined s C ij = n ik b k kj For exmple, 8 A * B = C * = The first element in C, C, is found by multiplying corresponding elements in the first row of A nd the first column of B, nd summing these, e.g. * + 4* + 5* = 6. In MATLAB, mtrix multipliction is ccomplished using the * opertor. Copyright August by Stormy Attwy Pge

14 >> A = [:5; 8:] A = >> B = reshpe(:6,,) B = >> C = A * B C = Note tht for squre mtrices, multiplying mtrix A by n identity mtrix I with the sme size results in the mtrix A (so, multiplying mtrix by I is similr to multiplying sclr by ; it doesn t chnge it). >> A = mgic() A = >> A * eye() ns = Inverse The definition of the inverse of mtrix is tht when multiplying mtrix by its inverse, the result is the identity mtrix. Mthemticlly, we would write this [A] [A - ] = [I]. MATLAB hs built-in function to find n inverse, inv. >> A = [ ; 4] A = 4 >> inv(a) ns = >> A * inv(a) ns = Copyright August by Stormy Attwy Pge 4

15 Mtrix Augmenttion Mtrix ugmenttion mens tking mtrix nd ugmenting by dding more columns, or nother mtrix, to it. Note tht the dimensions must be correct in order to do this. In MATLAB, this is clled conctenting nd cn be done for either vector or mtrix by putting the two together in squre brckets. Here is n exmple in which mtrix A is ugmented with n identity mtrix with the sme size of A; note tht cn be obtined with eye(size(a)): >> A = [ ; 4] A = 4 >> [A eye(size(a))] ns = 4 Vector Opertions: Dot Product nd Cross Product As long s the dimensions re correct, some of the definitions nd opertions given on mtrices bove re lso vlid for vectors, since vectors re just specil cse of mtrices. There re some opertions, however, tht re only vlid for vectors, including the dot product nd cross product. For two vectors A nd B tht hve the sme length, the dot product is written A B nd is defined s n Ai B i i = A B + A B + A B + + A n B n where n is the length of the vectors. In MATLAB, there is function dot to ccomplish this. The cross product AxB is defined only if A nd B re vectors of length, nd cn be written using the following mtrix multipliction: A A B A x B = A A B = [A B -A B, A B -A B, A B -A B ] A A B MATLAB hs built-in function cross for the cross product. Copyright August by Stormy Attwy Pge 5

16 Intro to Liner Algebr: Systems of Equtions A system of liner lgebric equtions is of the form x + x + x +. + n x n = b x + x + x +. + n x n = b x + x + x +. + n x n = b m x + m x + m x +. + mn x n = b m where the s re the coefficients, the x s re the unknowns, nd the b s re constnt vlues. Using MATLAB, there re two bsic methods for solving such set of equtions: By putting it in mtrix form Using the solve function which is prt of the Symbolic Mth Toolbox Mtrix Form Becuse of the wy tht mtrix multipliction works, the system of equtions shown bove cn be written s the product of mtrix of the coefficients A nd column vector of the unknowns x: m m A x = b n x b n x b n x = b m mn x n b m We hve mtrix multipliction eqution of the form Ax = b, nd we wnt to solve for the unknowns x. This cn be ccomplished s follows: A x = b A - A x = A - b I x = A - b x = A - b So, the solution cn be found s product of the inverse of A nd the column vector b. Copyright August by Stormy Attwy Pge 6

17 In MATLAB, there re two wys of doing this, using the built-in inv function nd mtrix multipliction, nd lso using the \ opertor: >> A = [ 4 ; - ; 4] A = 4-4 >> b = [ ] b = >> x = inv(a) * b x = >> A\b ns = x Systems The simplest system is x system, with just two equtions nd two unknowns. For these systems, there is simple definition for the inverse of mtrix, which uses the determinnt D of the mtrix. For coefficient mtrix A defined generlly s A =, the determinnt D is defined s. The inverse A - = D Copyright August by Stormy Attwy Pge 7

18 For exmple, for the system x + x = - x + 4x = This would be written in mtrix form s 4 x x = The determinnt D = *4 -* = -. The inverse A - = 4 / = / x / So the solution is: = = x / / 5/ MATLAB hs built-in function det to find the determinnt of mtrix. >> A = [ ; 4] A = 4 >> b = [-;] b = - >> det(a) ns = - >> inv(a) ns = >> x = inv(a) * b x = Copyright August by Stormy Attwy Pge 8

19 Elementry Row Opertions Although finding the inverse of x mtrix is strightforwrd, s is using it to find the unknowns, it is not so simple for lrger systems of equtions. Therefore, we resort to other methods of solution. Once the system is in mtrix form, some of these methods involve trnsforming mtrices using wht re clled Elementry Row Opertions, or EROs. The importnt thing to understnd bout these EROs is tht using them to modify mtrix does not chnge wht the solution to the set of equtions will be. There re EROs:. Scling: multiplying row by sclr (mening, multiplying every element in the row by the sme sclr). This is written sr i r i, which indictes tht row i is modified by multiplying it by sclr s.. Interchnge: interchnging the loctions of two rows. This is written s r i r j which indictes tht rows i nd j re interchnged.. Replcement: replcing ll of the elements in one row with tht row plus or minus sclr multiplied by nother row. This is written s r i +/- sr j r i These EROs form the bsis for the methods described next. Guss Elimintion The Guss Elimintion method is method for solving mtrix eqution Ax=b for x. The process is:. Strt by ugmenting the mtrix A with the column vector b.. Perform EROs to trnsform this ugmented mtrix to upper tringulr form.. Use bck-substitution to solve for the unknowns in x. For exmple, for x system, the first step is to ugment the mtrix [A b]: b b Then, EROs re pplied to get the ugmented mtrix into n upper tringulr form (which, for x mtrix mens finding n ERO tht would chnge to ): b b Here, the primes indicte tht the vlues my hve been chnged. Putting this bck into the eqution form, we hve x x = b b Copyright August by Stormy Attwy Pge 9

20 So, we now use the lst line which sys x = b to solve first for x : x = b / nd then go bck to the first line which sys to solve for x : x + x = b x = (b x ) / Guss-Jordn Elimintion The Guss-Jordn Elimintion method strts exctly the sme wy s the Guss Elimintion method, but insted of bck-substitution to solve for x, EROs re used to get the ugmented mtrix into digonl form.. Strt by ugmenting the mtrix A with the column vector b.. Perform EROs to trnsform this ugmented mtrix to upper tringulr form (forwrd elimintion).. Use bck elimintion (perform more EROs) to get to digonl form 4. Solve for the unknowns in x. For exmple, for x mtrix, the mtrix is first ugmented: b b b EROs re then performed using forwrd elimintion to get it to upper tringulr form: b b b At this point, the Guss method would then use bck-substitution to solve first for x, then x, then x. Insted, the Guss-Jordn method continues with bck elimintion to get it to digonl form: Copyright August by Stormy Attwy Pge

21 b b b Then, the unknowns cn be found esily, in ny order using these equtions: x i = b i / ii Reduced Row Echelon Form (RREF) Reduced Row Echelon Form (RREF) tkes the Guss-Jordn elimintion method one step further by performing scling EROs on ll rows so tht the ii coefficients on the digonl ll become ones. RREF to solve Ax=b for x To use the RREF method to solve the mtrix eqution Ax = b for x, the mtrix A is ugmented with b, nd then the Guss-Jordn method is followed. The finl step is to scle ll rows. For exmple, for x mtrix, b b b b b b Then, the solution is simply the lst column. MATLAB hs function rref to ccomplish this. RREF to find inverse This technique nd function cn lso be used to find the inverse of mtrix A. The procedure is: Augment A with n identity mtrix the sme size s A Follow the procedure bove using EROs to reduce the left-side to n identity mtrix; the right side will be the mtrix inverse. For exmple, for x mtrix, strt with [A I]: nd then reduce this to: Copyright August by Stormy Attwy Pge

22 r r r r r r r r r which is [I A - ]. Guss, Guss-Jordn, RREF Exmple Since the Guss, Guss-Jordn nd RREF methods to solve Ax = b for x ll begin the sme wy, we will demonstrte ll with one exmple. The following x system of equtions: x + x + x = x = x + x = cn be written in mtrix form: x x x = To solve for x, we strt with the ugmented mtrix [A b] nd perform forwrd elimintion by finding EROs to get it to upper tringulr form: r / r r 4 / / 8/ r -4/ r r / Now, for the Guss method, we use bck substitution: -/x = so x = x = x + x + x = x + - = x = - x = - Insted for Guss-Jordn, we continue with bck elimintion: Copyright August by Stormy Attwy Pge

23 / r + r r r -r r / Once in digonl form, we cn solve: x = - so x = - x = -x = so x = For RREF, scle ll rows: / r r -r r So now the lst column is x. We cn lso use RREF to find A - nd solve tht wy. Strt with the ugmented mtrix [A I]: r r r r r 4 r + 4r r 4 r - r r 4 So A - = nd x = = 4 4 Copyright August by Stormy Attwy Pge

24 In MATLAB, to solve Ax=b we begin by ugmenting [A b]: >> A = [ ; ; ]; >> b = [:]; >> Ab = [A b] Ab = Performing n ERO in MATLAB cn be ccomplished by using ssignment sttements to modify rows. For exmple this ERO r / r r 4 / / 8/ is done with: >> Ab(,:) = Ab(,:) - / * Ab(,:) Ab = MATLAB hs function rref to reduce: >> rref(ab) ns = - In MATLAB, we cn find the inverse of mtrix using rref nd then check tht using the inv function: >> rref([a eye(size(a))]) ns = >> inv(a) ns = Copyright August by Stormy Attwy Pge 4

25 The solve Function in the Symbolic Mth Toolbox If you hve the Symbolic Mth Toolbox, the solve eqution cn lso be used to solve sets of equtions. The solution is returned s structure. Structures re similr to vectors in tht they cn store multiple vlues. However, insted of hving elements, structures hve fields tht re nmed. While indexing is used to refer to elements of vector, the dot opertor is used to refer to the fields in structure vrible. As n exmple, we will solve the following x system of equtions tht ws used in the previous section: x + x + x = x = x + x = For simplicity, we will chnge the x,x,x to x,y,z, nd pss the three equtions s strings to the solve function: >> result = solve(*x+*y+z=, y=, x+*y=) result = x: [x sym] y: [x sym] z: [x sym] This stores the unknowns in fields clled x, y, nd z within the result vrible. The dot opertor is used to see the ctul vlues, which re stored s symbolic expressions. The double function cn convert them to numbers: >> result.x ns = - >> x = double([result.x result.y result.z]) x = - Copyright August by Stormy Attwy Pge 5

Algebra Review. How well do you remember your algebra?

Algebra Review. How well do you remember your algebra? Algebr Review How well do you remember your lgebr? 1 The Order of Opertions Wht do we men when we write + 4? If we multiply we get 6 nd dding 4 gives 10. But, if we dd + 4 = 7 first, then multiply by then

More information

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY MAT 0630 INTERNET RESOURCES, REVIEW OF CONCEPTS AND COMMON MISTAKES PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY Contents 1. ACT Compss Prctice Tests 1 2. Common Mistkes 2 3. Distributive

More information

Operations with Polynomials

Operations with Polynomials 38 Chpter P Prerequisites P.4 Opertions with Polynomils Wht you should lern: Write polynomils in stndrd form nd identify the leding coefficients nd degrees of polynomils Add nd subtrct polynomils Multiply

More information

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers. 2 Rtionl Numbers Integers such s 5 were importnt when solving the eqution x+5 = 0. In similr wy, frctions re importnt for solving equtions like 2x = 1. Wht bout equtions like 2x + 1 = 0? Equtions of this

More information

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( ) Polynomil Functions Polynomil functions in one vrible cn be written in expnded form s n n 1 n 2 2 f x = x + x + x + + x + x+ n n 1 n 2 2 1 0 Exmples of polynomils in expnded form re nd 3 8 7 4 = 5 4 +

More information

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES DAVID WEBB CONTENTS Liner trnsformtions 2 The representing mtrix of liner trnsformtion 3 3 An ppliction: reflections in the plne 6 4 The lgebr of

More information

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100 hsn.uk.net Higher Mthemtics UNIT 3 OUTCOME 1 Vectors Contents Vectors 18 1 Vectors nd Sclrs 18 Components 18 3 Mgnitude 130 4 Equl Vectors 131 5 Addition nd Subtrction of Vectors 13 6 Multipliction by

More information

Vectors 2. 1. Recap of vectors

Vectors 2. 1. Recap of vectors Vectors 2. Recp of vectors Vectors re directed line segments - they cn be represented in component form or by direction nd mgnitude. We cn use trigonometry nd Pythgors theorem to switch between the forms

More information

and thus, they are similar. If k = 3 then the Jordan form of both matrices is

and thus, they are similar. If k = 3 then the Jordan form of both matrices is Homework ssignment 11 Section 7. pp. 249-25 Exercise 1. Let N 1 nd N 2 be nilpotent mtrices over the field F. Prove tht N 1 nd N 2 re similr if nd only if they hve the sme miniml polynomil. Solution: If

More information

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm Bibhudendr chry, Girij Snkr Rth, Srt Kumr Ptr, nd Sroj Kumr Pnigrhy Novel Methods of Generting Self-Invertible Mtrix for Hill Cipher lgorithm Bibhudendr chry Deprtment of Electronics & Communiction Engineering

More information

SPECIAL PRODUCTS AND FACTORIZATION

SPECIAL PRODUCTS AND FACTORIZATION MODULE - Specil Products nd Fctoriztion 4 SPECIAL PRODUCTS AND FACTORIZATION In n erlier lesson you hve lernt multipliction of lgebric epressions, prticulrly polynomils. In the study of lgebr, we come

More information

Factoring Polynomials

Factoring Polynomials Fctoring Polynomils Some definitions (not necessrily ll for secondry school mthemtics): A polynomil is the sum of one or more terms, in which ech term consists of product of constnt nd one or more vribles

More information

4.11 Inner Product Spaces

4.11 Inner Product Spaces 314 CHAPTER 4 Vector Spces 9. A mtrix of the form 0 0 b c 0 d 0 0 e 0 f g 0 h 0 cnnot be invertible. 10. A mtrix of the form bc d e f ghi such tht e bd = 0 cnnot be invertible. 4.11 Inner Product Spces

More information

Integration by Substitution

Integration by Substitution Integrtion by Substitution Dr. Philippe B. Lvl Kennesw Stte University August, 8 Abstrct This hndout contins mteril on very importnt integrtion method clled integrtion by substitution. Substitution is

More information

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam 1./1.1 Introduction to Computers nd Engineering Problem Solving Fll 211 - Finl Exm Nme: MIT Emil: TA: Section: You hve 3 hours to complete this exm. In ll questions, you should ssume tht ll necessry pckges

More information

MATH 150 HOMEWORK 4 SOLUTIONS

MATH 150 HOMEWORK 4 SOLUTIONS MATH 150 HOMEWORK 4 SOLUTIONS Section 1.8 Show tht the product of two of the numbers 65 1000 8 2001 + 3 177, 79 1212 9 2399 + 2 2001, nd 24 4493 5 8192 + 7 1777 is nonnegtive. Is your proof constructive

More information

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity Bbylonin Method of Computing the Squre Root: Justifictions Bsed on Fuzzy Techniques nd on Computtionl Complexity Olg Koshelev Deprtment of Mthemtics Eduction University of Texs t El Pso 500 W. University

More information

Math 135 Circles and Completing the Square Examples

Math 135 Circles and Completing the Square Examples Mth 135 Circles nd Completing the Squre Exmples A perfect squre is number such tht = b 2 for some rel number b. Some exmples of perfect squres re 4 = 2 2, 16 = 4 2, 169 = 13 2. We wish to hve method for

More information

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes The Sclr Product 9.3 Introduction There re two kinds of multipliction involving vectors. The first is known s the sclr product or dot product. This is so-clled becuse when the sclr product of two vectors

More information

Experiment 6: Friction

Experiment 6: Friction Experiment 6: Friction In previous lbs we studied Newton s lws in n idel setting, tht is, one where friction nd ir resistnce were ignored. However, from our everydy experience with motion, we know tht

More information

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions. Lerning Objectives Loci nd Conics Lesson 3: The Ellipse Level: Preclculus Time required: 120 minutes In this lesson, students will generlize their knowledge of the circle to the ellipse. The prmetric nd

More information

Binary Representation of Numbers Autar Kaw

Binary Representation of Numbers Autar Kaw Binry Representtion of Numbers Autr Kw After reding this chpter, you should be ble to: 1. convert bse- rel number to its binry representtion,. convert binry number to n equivlent bse- number. In everydy

More information

9 CONTINUOUS DISTRIBUTIONS

9 CONTINUOUS DISTRIBUTIONS 9 CONTINUOUS DISTIBUTIONS A rndom vrible whose vlue my fll nywhere in rnge of vlues is continuous rndom vrible nd will be ssocited with some continuous distribution. Continuous distributions re to discrete

More information

Object Semantics. 6.170 Lecture 2

Object Semantics. 6.170 Lecture 2 Object Semntics 6.170 Lecture 2 The objectives of this lecture re to: to help you become fmilir with the bsic runtime mechnism common to ll object-oriented lnguges (but with prticulr focus on Jv): vribles,

More information

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation FUNCTIONS AND EQUATIONS. SETS AND SUBSETS.. Definition of set. A set is ny collection of objects which re clled its elements. If x is n element of the set S, we sy tht x belongs to S nd write If y does

More information

MODULE 3. 0, y = 0 for all y

MODULE 3. 0, y = 0 for all y Topics: Inner products MOULE 3 The inner product of two vectors: The inner product of two vectors x, y V, denoted by x, y is (in generl) complex vlued function which hs the following four properties: i)

More information

Pentominoes. Pentominoes. Bruce Baguley Cascade Math Systems, LLC. The pentominoes are a simple-looking set of objects through which some powerful

Pentominoes. Pentominoes. Bruce Baguley Cascade Math Systems, LLC. The pentominoes are a simple-looking set of objects through which some powerful Pentominoes Bruce Bguley Cscde Mth Systems, LLC Astrct. Pentominoes nd their reltives the polyominoes, polycues, nd polyhypercues will e used to explore nd pply vrious importnt mthemticl concepts. In this

More information

Regular Sets and Expressions

Regular Sets and Expressions Regulr Sets nd Expressions Finite utomt re importnt in science, mthemtics, nd engineering. Engineers like them ecuse they re super models for circuits (And, since the dvent of VLSI systems sometimes finite

More information

Section 7-4 Translation of Axes

Section 7-4 Translation of Axes 62 7 ADDITIONAL TOPICS IN ANALYTIC GEOMETRY Section 7-4 Trnsltion of Aes Trnsltion of Aes Stndrd Equtions of Trnslted Conics Grphing Equtions of the Form A 2 C 2 D E F 0 Finding Equtions of Conics In the

More information

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one. 5.2. LINE INTEGRALS 265 5.2 Line Integrls 5.2.1 Introduction Let us quickly review the kind of integrls we hve studied so fr before we introduce new one. 1. Definite integrl. Given continuous rel-vlued

More information

Basic Analysis of Autarky and Free Trade Models

Basic Analysis of Autarky and Free Trade Models Bsic Anlysis of Autrky nd Free Trde Models AUTARKY Autrky condition in prticulr commodity mrket refers to sitution in which country does not engge in ny trde in tht commodity with other countries. Consequently

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

EQUATIONS OF LINES AND PLANES

EQUATIONS OF LINES AND PLANES EQUATIONS OF LINES AND PLANES MATH 195, SECTION 59 (VIPUL NAIK) Corresponding mteril in the ook: Section 12.5. Wht students should definitely get: Prmetric eqution of line given in point-direction nd twopoint

More information

A.7.1 Trigonometric interpretation of dot product... 324. A.7.2 Geometric interpretation of dot product... 324

A.7.1 Trigonometric interpretation of dot product... 324. A.7.2 Geometric interpretation of dot product... 324 A P P E N D I X A Vectors CONTENTS A.1 Scling vector................................................ 321 A.2 Unit or Direction vectors...................................... 321 A.3 Vector ddition.................................................

More information

Or more simply put, when adding or subtracting quantities, their uncertainties add.

Or more simply put, when adding or subtracting quantities, their uncertainties add. Propgtion of Uncertint through Mthemticl Opertions Since the untit of interest in n eperiment is rrel otined mesuring tht untit directl, we must understnd how error propgtes when mthemticl opertions re

More information

Graphs on Logarithmic and Semilogarithmic Paper

Graphs on Logarithmic and Semilogarithmic Paper 0CH_PHClter_TMSETE_ 3//00 :3 PM Pge Grphs on Logrithmic nd Semilogrithmic Pper OBJECTIVES When ou hve completed this chpter, ou should be ble to: Mke grphs on logrithmic nd semilogrithmic pper. Grph empiricl

More information

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding 1 Exmple A rectngulr box without lid is to be mde from squre crdbord of sides 18 cm by cutting equl squres from ech corner nd then folding up the sides. 1 Exmple A rectngulr box without lid is to be mde

More information

Section 5-4 Trigonometric Functions

Section 5-4 Trigonometric Functions 5- Trigonometric Functions Section 5- Trigonometric Functions Definition of the Trigonometric Functions Clcultor Evlution of Trigonometric Functions Definition of the Trigonometric Functions Alternte Form

More information

6.2 Volumes of Revolution: The Disk Method

6.2 Volumes of Revolution: The Disk Method mth ppliction: volumes of revolution, prt ii Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem ) nd the ccumultion process is to determine so-clled volumes of

More information

Module Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials

Module Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials MEI Mthemtics in Ection nd Instry Topic : Proof MEI Structured Mthemtics Mole Summry Sheets C, Methods for Anced Mthemtics (Version B reference to new book) Topic : Nturl Logrithms nd Eponentils Topic

More information

Integration. 148 Chapter 7 Integration

Integration. 148 Chapter 7 Integration 48 Chpter 7 Integrtion 7 Integrtion t ech, by supposing tht during ech tenth of second the object is going t constnt speed Since the object initilly hs speed, we gin suppose it mintins this speed, but

More information

Hillsborough Township Public Schools Mathematics Department Computer Programming 1

Hillsborough Township Public Schools Mathematics Department Computer Programming 1 Essentil Unit 1 Introduction to Progrmming Pcing: 15 dys Common Unit Test Wht re the ethicl implictions for ming in tody s world? There re ethicl responsibilities to consider when writing computer s. Citizenship,

More information

Review guide for the final exam in Math 233

Review guide for the final exam in Math 233 Review guide for the finl exm in Mth 33 1 Bsic mteril. This review includes the reminder of the mteril for mth 33. The finl exm will be cumultive exm with mny of the problems coming from the mteril covered

More information

Reasoning to Solve Equations and Inequalities

Reasoning to Solve Equations and Inequalities Lesson4 Resoning to Solve Equtions nd Inequlities In erlier work in this unit, you modeled situtions with severl vriles nd equtions. For exmple, suppose you were given usiness plns for concert showing

More information

Econ 4721 Money and Banking Problem Set 2 Answer Key

Econ 4721 Money and Banking Problem Set 2 Answer Key Econ 472 Money nd Bnking Problem Set 2 Answer Key Problem (35 points) Consider n overlpping genertions model in which consumers live for two periods. The number of people born in ech genertion grows in

More information

2 DIODE CLIPPING and CLAMPING CIRCUITS

2 DIODE CLIPPING and CLAMPING CIRCUITS 2 DIODE CLIPPING nd CLAMPING CIRCUITS 2.1 Ojectives Understnding the operting principle of diode clipping circuit Understnding the operting principle of clmping circuit Understnding the wveform chnge of

More information

Module 2. Analysis of Statically Indeterminate Structures by the Matrix Force Method. Version 2 CE IIT, Kharagpur

Module 2. Analysis of Statically Indeterminate Structures by the Matrix Force Method. Version 2 CE IIT, Kharagpur Module Anlysis of Stticlly Indeterminte Structures by the Mtrix Force Method Version CE IIT, Khrgpur esson 9 The Force Method of Anlysis: Bems (Continued) Version CE IIT, Khrgpur Instructionl Objectives

More information

g(y(a), y(b)) = o, B a y(a)+b b y(b)=c, Boundary Value Problems Lecture Notes to Accompany

g(y(a), y(b)) = o, B a y(a)+b b y(b)=c, Boundary Value Problems Lecture Notes to Accompany Lecture Notes to Accompny Scientific Computing An Introductory Survey Second Edition by Michel T Heth Boundry Vlue Problems Side conditions prescribing solution or derivtive vlues t specified points required

More information

P.3 Polynomials and Factoring. P.3 an 1. Polynomial STUDY TIP. Example 1 Writing Polynomials in Standard Form. What you should learn

P.3 Polynomials and Factoring. P.3 an 1. Polynomial STUDY TIP. Example 1 Writing Polynomials in Standard Form. What you should learn 33337_0P03.qp 2/27/06 24 9:3 AM Chpter P Pge 24 Prerequisites P.3 Polynomils nd Fctoring Wht you should lern Polynomils An lgeric epression is collection of vriles nd rel numers. The most common type of

More information

Treatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3.

Treatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3. The nlysis of vrince (ANOVA) Although the t-test is one of the most commonly used sttisticl hypothesis tests, it hs limittions. The mjor limittion is tht the t-test cn be used to compre the mens of only

More information

LECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes.

LECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes. LECTURE #05 Chpter 3: Lttice Positions, Directions nd Plnes Lerning Objective To describe the geometr in nd round unit cell in terms of directions nd plnes. 1 Relevnt Reding for this Lecture... Pges 64-83.

More information

Repeated multiplication is represented using exponential notation, for example:

Repeated multiplication is represented using exponential notation, for example: Appedix A: The Lws of Expoets Expoets re short-hd ottio used to represet my fctors multiplied together All of the rules for mipultig expoets my be deduced from the lws of multiplictio d divisio tht you

More information

RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS

RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS Known for over 500 yers is the fct tht the sum of the squres of the legs of right tringle equls the squre of the hypotenuse. Tht is +b c. A simple proof is

More information

Rotating DC Motors Part II

Rotating DC Motors Part II Rotting Motors rt II II.1 Motor Equivlent Circuit The next step in our consiertion of motors is to evelop n equivlent circuit which cn be use to better unerstn motor opertion. The rmtures in rel motors

More information

The Velocity Factor of an Insulated Two-Wire Transmission Line

The Velocity Factor of an Insulated Two-Wire Transmission Line The Velocity Fctor of n Insulted Two-Wire Trnsmission Line Problem Kirk T. McDonld Joseph Henry Lbortories, Princeton University, Princeton, NJ 08544 Mrch 7, 008 Estimte the velocity fctor F = v/c nd the

More information

Vector differentiation. Chapters 6, 7

Vector differentiation. Chapters 6, 7 Chpter 2 Vectors Courtesy NASA/JPL-Cltech Summry (see exmples in Hw 1, 2, 3) Circ 1900 A.D., J. Willird Gis invented useful comintion of mgnitude nd direction clled vectors nd their higher-dimensionl counterprts

More information

AREA OF A SURFACE OF REVOLUTION

AREA OF A SURFACE OF REVOLUTION AREA OF A SURFACE OF REVOLUTION h cut r πr h A surfce of revolution is formed when curve is rotted bout line. Such surfce is the lterl boundr of solid of revolution of the tpe discussed in Sections 7.

More information

Java CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser:

Java CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser: Jv CUP Jv CUP is prser-genertion tool, similr to Ycc. CUP uilds Jv prser for LALR(1) grmmrs from production rules nd ssocited Jv code frgments. When prticulr production is recognized, its ssocited code

More information

Appendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered:

Appendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered: Appendi D: Completing the Squre nd the Qudrtic Formul Fctoring qudrtic epressions such s: + 6 + 8 ws one of the topics introduced in Appendi C. Fctoring qudrtic epressions is useful skill tht cn help you

More information

Lecture 3 Gaussian Probability Distribution

Lecture 3 Gaussian Probability Distribution Lecture 3 Gussin Probbility Distribution Introduction l Gussin probbility distribution is perhps the most used distribution in ll of science. u lso clled bell shped curve or norml distribution l Unlike

More information

Warm-up for Differential Calculus

Warm-up for Differential Calculus Summer Assignment Wrm-up for Differentil Clculus Who should complete this pcket? Students who hve completed Functions or Honors Functions nd will be tking Differentil Clculus in the fll of 015. Due Dte:

More information

body.allow-sidebar OR.no-sidebar.home-page (if this is the home page).has-custom-banner OR.nocustom-banner .IR OR.no-IR

body.allow-sidebar OR.no-sidebar.home-page (if this is the home page).has-custom-banner OR.nocustom-banner .IR OR.no-IR body.llow-sidebr OR.no-sidebr.home-pge (if this is the home pge).hs-custom-bnner OR.nocustom-bnner.IR OR.no-IR #IDENTIFIER_FOR_THIS_SITE div#pge-continer.depends_on_page_ty PE llow-sidebr mens tht there

More information

Protocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff

Protocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff Protocol Anlysis 17-654/17-764 Anlysis of Softwre Artifcts Kevin Bierhoff Tke-Awys Protocols define temporl ordering of events Cn often be cptured with stte mchines Protocol nlysis needs to py ttention

More information

CS99S Laboratory 2 Preparation Copyright W. J. Dally 2001 October 1, 2001

CS99S Laboratory 2 Preparation Copyright W. J. Dally 2001 October 1, 2001 CS99S Lortory 2 Preprtion Copyright W. J. Dlly 2 Octoer, 2 Ojectives:. Understnd the principle of sttic CMOS gte circuits 2. Build simple logic gtes from MOS trnsistors 3. Evlute these gtes to oserve logic

More information

Virtual Machine. Part II: Program Control. Building a Modern Computer From First Principles. www.nand2tetris.org

Virtual Machine. Part II: Program Control. Building a Modern Computer From First Principles. www.nand2tetris.org Virtul Mchine Prt II: Progrm Control Building Modern Computer From First Principles www.nnd2tetris.org Elements of Computing Systems, Nisn & Schocken, MIT Press, www.nnd2tetris.org, Chpter 8: Virtul Mchine,

More information

Lectures 8 and 9 1 Rectangular waveguides

Lectures 8 and 9 1 Rectangular waveguides 1 Lectures 8 nd 9 1 Rectngulr wveguides y b x z Consider rectngulr wveguide with 0 < x b. There re two types of wves in hollow wveguide with only one conductor; Trnsverse electric wves

More information

AA1H Calculus Notes Math1115, Honours 1 1998. John Hutchinson

AA1H Calculus Notes Math1115, Honours 1 1998. John Hutchinson AA1H Clculus Notes Mth1115, Honours 1 1998 John Hutchinson Author ddress: Deprtment of Mthemtics, School of Mthemticl Sciences, Austrlin Ntionl University E-mil ddress: John.Hutchinson@nu.edu.u Contents

More information

Chapter 2 The Number System (Integers and Rational Numbers)

Chapter 2 The Number System (Integers and Rational Numbers) Chpter 2 The Number System (Integers nd Rtionl Numbers) In this second chpter, students extend nd formlize their understnding of the number system, including negtive rtionl numbers. Students first develop

More information

1.2 The Integers and Rational Numbers

1.2 The Integers and Rational Numbers .2. THE INTEGERS AND RATIONAL NUMBERS.2 The Integers n Rtionl Numers The elements of the set of integers: consist of three types of numers: Z {..., 5, 4, 3, 2,, 0,, 2, 3, 4, 5,...} I. The (positive) nturl

More information

CHAPTER 11 Numerical Differentiation and Integration

CHAPTER 11 Numerical Differentiation and Integration CHAPTER 11 Numericl Differentition nd Integrtion Differentition nd integrtion re bsic mthemticl opertions with wide rnge of pplictions in mny res of science. It is therefore importnt to hve good methods

More information

Math 314, Homework Assignment 1. 1. Prove that two nonvertical lines are perpendicular if and only if the product of their slopes is 1.

Math 314, Homework Assignment 1. 1. Prove that two nonvertical lines are perpendicular if and only if the product of their slopes is 1. Mth 4, Homework Assignment. Prove tht two nonverticl lines re perpendiculr if nd only if the product of their slopes is. Proof. Let l nd l e nonverticl lines in R of slopes m nd m, respectively. Suppose

More information

Radius of the Earth - Radii Used in Geodesy James R. Clynch February 2006

Radius of the Earth - Radii Used in Geodesy James R. Clynch February 2006 dius of the Erth - dii Used in Geodesy Jmes. Clynch Februry 006 I. Erth dii Uses There is only one rdius of sphere. The erth is pproximtely sphere nd therefore, for some cses, this pproximtion is dequte.

More information

Physics 43 Homework Set 9 Chapter 40 Key

Physics 43 Homework Set 9 Chapter 40 Key Physics 43 Homework Set 9 Chpter 4 Key. The wve function for n electron tht is confined to x nm is. Find the normliztion constnt. b. Wht is the probbility of finding the electron in. nm-wide region t x

More information

19. The Fermat-Euler Prime Number Theorem

19. The Fermat-Euler Prime Number Theorem 19. The Fermt-Euler Prime Number Theorem Every prime number of the form 4n 1 cn be written s sum of two squres in only one wy (side from the order of the summnds). This fmous theorem ws discovered bout

More information

1. Definition, Basic concepts, Types 2. Addition and Subtraction of Matrices 3. Scalar Multiplication 4. Assignment and answer key 5.

1. Definition, Basic concepts, Types 2. Addition and Subtraction of Matrices 3. Scalar Multiplication 4. Assignment and answer key 5. . Definition, Bsi onepts, Types. Addition nd Sutrtion of Mtries. Slr Multiplition. Assignment nd nswer key. Mtrix Multiplition. Assignment nd nswer key. Determinnt x x (digonl, minors, properties) summry

More information

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom Byesin Updting with Continuous Priors Clss 3, 8.05, Spring 04 Jeremy Orloff nd Jonthn Bloom Lerning Gols. Understnd prmeterized fmily of distriutions s representing continuous rnge of hypotheses for the

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Vectors and dyadics. Chapter 2. Summary. 2.1 Examples of scalars, vectors, and dyadics

Vectors and dyadics. Chapter 2. Summary. 2.1 Examples of scalars, vectors, and dyadics Chpter 2 Vectors nd dydics Summry Circ 1900 A.D., J. Willird Gis proposed the ide of vectors nd their higher-dimensionl counterprts dydics, tridics, ndpolydics. Vectors descrie three-dimensionl spce nd

More information

Physics 6010, Fall 2010 Symmetries and Conservation Laws: Energy, Momentum and Angular Momentum Relevant Sections in Text: 2.6, 2.

Physics 6010, Fall 2010 Symmetries and Conservation Laws: Energy, Momentum and Angular Momentum Relevant Sections in Text: 2.6, 2. Physics 6010, Fll 2010 Symmetries nd Conservtion Lws: Energy, Momentum nd Angulr Momentum Relevnt Sections in Text: 2.6, 2.7 Symmetries nd Conservtion Lws By conservtion lw we men quntity constructed from

More information

Answer, Key Homework 10 David McIntyre 1

Answer, Key Homework 10 David McIntyre 1 Answer, Key Homework 10 Dvid McIntyre 1 This print-out should hve 22 questions, check tht it is complete. Multiple-choice questions my continue on the next column or pge: find ll choices efore mking your

More information

Network Configuration Independence Mechanism

Network Configuration Independence Mechanism 3GPP TSG SA WG3 Security S3#19 S3-010323 3-6 July, 2001 Newbury, UK Source: Title: Document for: AT&T Wireless Network Configurtion Independence Mechnism Approvl 1 Introduction During the lst S3 meeting

More information

Helicopter Theme and Variations

Helicopter Theme and Variations Helicopter Theme nd Vritions Or, Some Experimentl Designs Employing Pper Helicopters Some possible explntory vribles re: Who drops the helicopter The length of the rotor bldes The height from which the

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

Morgan Stanley Ad Hoc Reporting Guide

Morgan Stanley Ad Hoc Reporting Guide spphire user guide Ferury 2015 Morgn Stnley Ad Hoc Reporting Guide An Overview For Spphire Users 1 Introduction The Ad Hoc Reporting tool is ville for your reporting needs outside of the Spphire stndrd

More information

JaERM Software-as-a-Solution Package

JaERM Software-as-a-Solution Package JERM Softwre-s--Solution Pckge Enterprise Risk Mngement ( ERM ) Public listed compnies nd orgnistions providing finncil services re required by Monetry Authority of Singpore ( MAS ) nd/or Singpore Stock

More information

AntiSpyware Enterprise Module 8.5

AntiSpyware Enterprise Module 8.5 AntiSpywre Enterprise Module 8.5 Product Guide Aout the AntiSpywre Enterprise Module The McAfee AntiSpywre Enterprise Module 8.5 is n dd-on to the VirusScn Enterprise 8.5i product tht extends its ility

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Understanding Basic Analog Ideal Op Amps

Understanding Basic Analog Ideal Op Amps Appliction Report SLAA068A - April 2000 Understnding Bsic Anlog Idel Op Amps Ron Mncini Mixed Signl Products ABSTRACT This ppliction report develops the equtions for the idel opertionl mplifier (op mp).

More information

How To Study The Effects Of Music Composition On Children

How To Study The Effects Of Music Composition On Children C-crcs Cognitive - Counselling Reserch & Conference Services (eissn: 2301-2358) Volume I Effects of Music Composition Intervention on Elementry School Children b M. Hogenes, B. Vn Oers, R. F. W. Diekstr,

More information

Lecture 5. Inner Product

Lecture 5. Inner Product Lecture 5 Inner Product Let us strt with the following problem. Given point P R nd line L R, how cn we find the point on the line closest to P? Answer: Drw line segment from P meeting the line in right

More information

Distributions. (corresponding to the cumulative distribution function for the discrete case).

Distributions. (corresponding to the cumulative distribution function for the discrete case). Distributions Recll tht n integrble function f : R [,] such tht R f()d = is clled probbility density function (pdf). The distribution function for the pdf is given by F() = (corresponding to the cumultive

More information

Numeracy across the Curriculum in Key Stages 3 and 4. Helpful advice and suggested resources from the Leicestershire Secondary Mathematics Team

Numeracy across the Curriculum in Key Stages 3 and 4. Helpful advice and suggested resources from the Leicestershire Secondary Mathematics Team Numercy cross the Curriculum in Key Stges 3 nd 4 Helpful dvice nd suggested resources from the Leicestershire Secondry Mthemtics Tem 1 Contents pge The development of whole school policy 3 A definition

More information

The Definite Integral

The Definite Integral Chpter 4 The Definite Integrl 4. Determining distnce trveled from velocity Motivting Questions In this section, we strive to understnd the ides generted by the following importnt questions: If we know

More information

How To Network A Smll Business

How To Network A Smll Business Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES

UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES Solution to exm in: FYS30, Quntum mechnics Dy of exm: Nov. 30. 05 Permitted mteril: Approved clcultor, D.J. Griffiths: Introduction to Quntum

More information

Solving BAMO Problems

Solving BAMO Problems Solving BAMO Problems Tom Dvis tomrdvis@erthlink.net http://www.geometer.org/mthcircles Februry 20, 2000 Abstrct Strtegies for solving problems in the BAMO contest (the By Are Mthemticl Olympid). Only

More information

6 Energy Methods And The Energy of Waves MATH 22C

6 Energy Methods And The Energy of Waves MATH 22C 6 Energy Methods And The Energy of Wves MATH 22C. Conservtion of Energy We discuss the principle of conservtion of energy for ODE s, derive the energy ssocited with the hrmonic oscilltor, nd then use this

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

. At first sight a! b seems an unwieldy formula but use of the following mnemonic will possibly help. a 1 a 2 a 3 a 1 a 2

. At first sight a! b seems an unwieldy formula but use of the following mnemonic will possibly help. a 1 a 2 a 3 a 1 a 2 7 CHAPTER THREE. Cross Product Given two vectors = (,, nd = (,, in R, the cross product of nd written! is defined to e: " = (!,!,! Note! clled cross is VECTOR (unlike which is sclr. Exmple (,, " (4,5,6

More information