Text. 7. Summary. A. Gilat, MATLAB: An Introduction with Applications, 4th ed., Wiley Wikipedia: Matrix, SLE, etc.

Size: px
Start display at page:

Download "Text. 7. Summary. A. Gilat, MATLAB: An Introduction with Applications, 4th ed., Wiley Wikipedia: Matrix, SLE, etc."

Transcription

1 2. Linear algebra 1. Matrix operations 2. Determinant and matrix inverse 3. Advanced matrix manipulations in the MATLAB 4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination 5. Systems of linear equations with the tridiagonal matrix. The Thomas algorithm (optional) 6. Solution of SLE in the MATLAB. Problems 7. Summary Text A. Gilat, MATLAB: An Introduction with Applications, 4th ed., Wiley Wikipedia: Matrix, SLE, etc. ME 349, Engineering Analysis, Alexey Volkov 1

2 2.1. Matrix operations Motivation: Solution of SLE Notion of a matrix Productofamatrixandanumber,sumofmatrix,matrix transpose, product of matrices Special matrices Reading assignment Gilat, 3.1, 3.2, 3.4, and 3.5 ME 349, Engineering Analysis, Alexey Volkov 2

3 2.1. Matrix operation Motivation: Solution of systems of linear equation The linear function is the function of the form, where,. The linear equation is the equation of the form = 0. Solution (root) /. The system of linear equations (SLE) of equations with unknowns is the system : Row index = index of equation, Column index = index of unknown, coefficients of equations (1,..,, 1,..,)., unknowns (1,..,)., right hand sides (RHSs) of equations (1,..,). To solve a SLE means to find such that turn every equation in the system into identity. ME 349, Engineering Analysis, Alexey Volkov 3

4 2.1. Matrix operation Applications of SLEs: Numerical solutions of partial differential equations: Computational heat transfer, computational fluid mechanics, computational solid mechanics, and many more... ME 349, Engineering Analysis, Alexey Volkov 4

5 2.1. Matrix operations In mathematics, the matrix is a (two dimensional) table of values. Example: Matrix of 5 x 60 values. T(1,1) T(1,2)... T(1,j 1) Column j T(1,j) T(1,j+1)... T(1,59) T(1,60) Row i... T(i,1) T(i,2)... T(i,j 1) T(i,j) T(i,j+1)... T(i,59) T(i,60)... T(5,1) T(5,2)... T(5,j 1) T(5,j) T(5,j+1)... T(5,59) T(5,60) Every entry in the table of the matrix is called the element of the matrix. Every element of the matrix is identified by two integers: The row index and column index. The size of the matrix is the number of rows and number of columns :. Mathematical notation:,, :Matrix of size,,,,,, :Element of matrix in row and column ME 349, Engineering Analysis, Alexey Volkov 5

6 2.1. Matrix operations Basic operations with matrices Scalar multiplication. Product of number and matrix of size is the matrix of size,where Can be calculated for arbitrary and. Matrix addition: Sum of two matrixes and B of size is the matrix of the same size,where Can be calculated only if both matrices and have the same size. We can define subtraction: Difference of two matrices is 1. Matrix transpose: Transpose of matrix of size is the matrix of size,where Examples:,, ME 349, Engineering Analysis, Alexey Volkov 6

7 2.1. Matrix operations Matrix multiplication: Product of two matrices and of sizes and is the matrix of size,where Can be calculated only if, i.e. if the number of columns in is equal to the number of rows in. ( or may not exist: :, : 1, exists, does not exist). Examples:,, Properties: Can be proved by direct evaluation of the left and right hand sides (LHSs and RHSs),,,, ME 349, Engineering Analysis, Alexey Volkov 7

8 2.1. Matrix operations Special matrices Let be a matrix of size. is the row vector if the number of rows is equal to 1 (1):,. is the column vector if the number of columns is equal to 1 (1):,. Transpose of a column vector is a row vector. The zero matrix is the matrix with all zero elements. is the square matrix if the number of rows is equal to the number of columns (). The main diagonal of the square matrix is the diagonal where. Square matrix is called symmetric if. Consequence:. Square matrix is called skew symmetric if. Consequence: 0,. Square matrix is called the identity matrix if 1, 0for. Properties: Examples:,,, is the square matrix,, ME 349, Engineering Analysis, Alexey Volkov 8, , Row Column Symmetric Skew symmetric Identity Zero

9 2.2. Determinant and matrix inverse Determinant Matrix inverse Determinant and matrix inverse in the MATLAB Cramer's rule for matrix inverse Reading assignment Gilat, 3.5 ME 349, Engineering Analysis, Alexey Volkov 9

10 2.2. Determinant and matrix inverse Determinant The determinant det of a square matrix is a uniquely defined numerical value that is calculated based on the elements of the matrix with special rules. Notation:, det det There are a lot of ways to introduce the rules that determine the values of the determinant. We will consider not the best, but simplest iterative rule of introducing the determinant. 1. For every element of matrix of size, let's introduce a square submatrix of size 1 1, which is obtained from by removing all elements in row and column.the(first) minor of corresponding to is det. 2. For every element of matrix, let's introduce the signature that is equal to 1 1 if the number of "steps" from along rows and columns is even 1 otherwise number of "steps" is odd 3. The cofactor of is. Example:, 1 1 1, 1 1 1, ME 349, Engineering Analysis, Alexey Volkov 10

11 2.2. Determinant and matrix inverse 3. Determinant of the square matrix of size 1 x 1 is its element: det. 4. The determinant of the square matrix of arbitrary size can be calculated as: det Eq. (2.2.1) reduces calculation of the determinant of a matrix of size to determinants of matrices of smaller size 1 1. Now we can apply the same rule for and reduces to determinants of matrices of size 2 2 etc. until we get matrixes of size 1 x 1, i.e. just numbers. Eq. (2.2.1) gives us the determinant in the form of "expansion" of matrix along its 1 st row. It can be proved (but we will not do it) that we can obtain the same value det if we will calculate the determinant in the form of "expansion" along any row or column of the matrix : ME 349, Engineering Analysis, Alexey Volkov 11 det det (2.2.1) (2.2.2) (2.2.3) The drawback of our definition of det, Eq. (2.2.1), is that it is difficult to prove (2.2.2) and (2.2.3).

12 2.2. Determinant and matrix inverse Examples:Determinantsofmatrices2x2and3x3. "Expansion" along the first row "Expansion" along the second column Some properties of the determinant (without prove): det det,det 0. det det det. Let's consider a matrix that is obtained from by swapping of any pair of rows or columns. Then det det. Let's consider a matrix which is obtained from by multiplying any single column or row in by constant.thendet det. In particular, det det. Addition to a column or row of any other column or row multiplied by constant does not change det. ME 349, Engineering Analysis, Alexey Volkov 12

13 2.2. Determinant and matrix inverse Let's consider an upper or low triangular matrix : 0 or E.g., for upper triangular matrix: det Determinant of any upper or low triangular matrix is equal to the product of elements on the main diagonal. For diagonal matrix: det For identity matrix: det det In order to simplify calculations of a determinant by hand, we need to choose a row or column with maximum number of zeros. ME 349, Engineering Analysis, Alexey Volkov 13

14 2.2. Determinant and matrix inverse Calculation of det for large is extremely lengthy procedure. It requires ~! individual arithmetic operations: 10, ~ ; 100, ~ For practical calculations of determinants at large, thedecomposition methods are used. They require ~ of arithmetic operations: 10, ~10 ; 100, ~ 10. Geometrical meaning of determinants of 2 x 2 and 3 x 3 matrices (without prove),,,,,,,, det = signed (±) area of parallelogram det = signed (±) volume of parallelepiped ME 349, Engineering Analysis, Alexey Volkov 14

15 2.2. Determinant and matrix inverse Matrix inverse Let's consider a square matrix of size. Thematrix of size is called the matrix inverse to or the inverse matrix if (2.2.4) Existence of the inverse matrix: Let's apply the properties of the determinant: det det det det 1 Thus, The matrix is invertible (has the inverse) only if det 0. The matrix is called singular or degenerate if det 0. If the matrix is invertible, then det 1 det (2.2.5) ME 349, Engineering Analysis, Alexey Volkov 15

16 2.2. Determinant and matrix inverse Cramer's rule (without prove) Cramer's rule says that the inverse of any invertible square matrix can be found in the form:, det 0, then where are cofactors of elements of matrix. According to Cramer's rule, we need to perform three steps in order to find : 1. To calculate cofactors for all elements of and form the matrix 2. To find the transpose of : 3. To calculate determinant det and divide by det : 1 det ME 349, Engineering Analysis, Alexey Volkov 16 (2.2.5)

17 2.2. Determinant and matrix inverse Example: Matrix 2 x , det 0 det 1 Finding the matrix inverse with Cramer's rule is a lengthy operation. It requires calculation of of determinants of size 1 1. If the determinants are calculated according to the expansion formula, Eq. (2.2.1), then the total number of arithmetic operations ~ 1!!. In practical calculations, the decomposition methods are used to calculate minors, and the time complexity of Cramer's rule drops down to ~ and even to ~. ME 349, Engineering Analysis, Alexey Volkov 17

18 2.3. Advanced matrix manipulations in MATLAB Matrix operation in the MATLAB Examples Reading assignment Gilat, 3.1, 3.2, 3.4, and 3.5 ME 349, Engineering Analysis, Alexey Volkov 18

19 2.3. Advanced matrix manipulations in MATLAB Matrix operations in the MATLAB Matrix isa2darray:a=[12;34]; Column vector is a 2D array where the number of columns is equal to 1: a = [ 1 ; 2 ] ; Row vector is a 2D array, where the number of rows is equal to 1: a = [ 1 4 ] ; Function size ( A ) returns the numbers of rows and columns of the matrix A. Matrix operations: Scalar multiplication:a=2;b=[12;34];c=a*b; Addition (subtraction): d=[ 12; 34];f=d+b; Transpose:g=[123;345];h=g'; Matrix multiplication:w=b*g; Matrix power (only for square matrices): p = b^3 is equivalent to p = b * b * b. Function det ( A ) returns the determinant of the square matrix A. Function inv ( A ) returns the inverse of the square matrix A. inv (A)=A^ 1. Right Matrix division B/A=B*inv(A)=B*A^ 1 if B is a row vector and A is a square matrix. Left Matrix division A\B=inv(A)*B=A^ 1*B if B is a column vector and A is a square matrix. There are a lot of other build in functions for manipulating of matrices: See Gilat 3.5. ME 349, Engineering Analysis, Alexey Volkov 19

20 2.3. Advanced matrix manipulations in MATLAB Example 2.3.1: Calculate the matrix division for , The following six MATLAB expressions give the same result: B / A B * A^ 1 B * inv ( A ) ( A' \B')' ( (A')^ 1 * B' )' ( inv (A') * B' )' ans = Results can be different only due to round off error. ME 349, Engineering Analysis, Alexey Volkov 20

21 2.3. Advanced matrix manipulations in MATLAB Example 2.3.2: Calculate the matrix inverse for If : >> M * inv ( M ) ans = If : >> M * inv ( M ) ans = if 0then det 0 and the matrix is singular. if 0, but 0,thendet ~ 0, and calculation of the matrix inverse is very inaccurate due to round off errors. We must be extremely careful then calculating the matrix inverse for matrices with det 0! ME 349, Engineering Analysis, Alexey Volkov 21

22 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination System of linear equations (SLE) SLE with a square matrix of coefficients: When the solution exists and is unique Gauss elimination Reading assignment oflinear equations.html ME 349, Engineering Analysis, Alexey Volkov 22

23 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Systems of linear equations The system of linear equations (SLE) of equations with unknowns is the system : (2.4.1), coefficients of equations (1,..,, 1,..,)., unknowns (1,..,)., right hand sides (RHSs) of equations (1,..,). To solve a SLE means to find such that turn every equation in the system into identity. In general, a SLE may have/not have a solution. If a solution exits, it can be unique, or, alternatively, the system may have multiple solutions. ME 349, Engineering Analysis, Alexey Volkov 23

24 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Matrix form of a SLE (SLE in the matrix notation) Every SLE can be written in the matrix notation:,, (2.4.2), Matrix of coefficients of the SLE (of size )., Column vector of unknowns., Column vector of RHSs. The matrix form of the SLE given by Eq. (2.4.1): (2.4.3) Solution of an SLE with the square matrix of coefficients We will consider the most important case, when the number of equations is equal to the number of unknowns, and the matrix of coefficients is a square matrix. Theorem: If, then the unique solution of the SLE, Eq. (2.4.3) exists if det 0. Proof: If det 0, then the square matrix has the inverse, such that. ME 349, Engineering Analysis, Alexey Volkov 24

25 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Let s then multiple Eq. (2.4.3) from the left by : (2.4.4) Now we see that al least one solution given by Eq. (2.4.4) exists. In order to prove the uniqueness, let s assume that another solution exists, such that. But then. If we multiply the last equation by, then we obtain, i.e. and the solution is unique. Consequences: 1. Eq. (2.4.4) shows us how to find the solution of a SLE with the square matrix of coefficients: First we need to find the inverse of and then just to multiply it by the RHS vector. 2. A SLE given by Eq. (2.4.3) is called homogeneous if. The theorem says that the homogeneous SLE with det 0 has only the trivial solution. 3. If det 0 then the SLE can have multiple solutions or may not have them at all. ME 349, Engineering Analysis, Alexey Volkov 25

26 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Example: det 0 means that one or a few pairs of individual equations in the SLE are "proportional" to each other (this is not an accurate statement): The SLE has multiple solutions The SLE has no solutions In the majority of practical problems, however, the number of equations is very large, so it is enormously time consuming to find by applying Cramer's rule. The methods of solutions of SLEs focus on the problem: How to find the solution without explicit finding the inverse. There are two groups of methods, which have different domains of applicability: 1. Direct methods (Gauss elimination, Thomas algorithm for SLEs with tridiagonal matrices, etc). 2. Iterative methods (Jacobi method, Gauss Seidel method, etc). We will consider only Gauss elimination. ME 349, Engineering Analysis, Alexey Volkov 26

27 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Idea of a direct method: Step by step elimination of unknowns Question: How can we solve a SLE by hand? First equation: / Second equation: / / / / Can do this only if 0 / / / Third equation: Now we can substitute equations for and into the third equation and get equation with only one unknown. Once is determined, we can calculate and then. Gauss eliminations is the formalization of this approach in the form convenient for coding at arbitrary number of unknowns. ME 349, Engineering Analysis, Alexey Volkov 27

28 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Gauss elimination for a SLE with the square matrix of coefficients Let's first consider a SLE with the upper triangular matrix of coefficients (0if ): (2.4.5) ,, For the upper triangular matrix, det, so that the condition det 0 is equivalent to 0, i.e. all coefficients on the main diagonal are not equal to zero. Then the solution can be found with the back substitution procedure staring with as follows: /,, /,,, /,, etc until. (2.4.6) Conclusion: Once we have a SLE of form (2.4.5), its solution can be easily found without. ME 349, Engineering Analysis, Alexey Volkov 28

29 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination The Gauss elimination is the approach that reduces a SLE with the square matrix of coefficients and det 0 to an equivalent SLE with the upper triangular matrix in the form of Eq. (2.4.5). Two SLEs are called equivalent if they have the same solution. In order to transform a SLE to an equivalent SLE with the upper triangular matrix, we will use three rules: 1. Multiplying any equation of the SLE by a non zero constant does not change the solution. : Equivalent SLE if 0 2. Subtraction of one equation multiplied by a constant from another equation does not change the solution. : Equivalent SLE 3. Swapping any pair of equations (changing the order of equations) does not change the solution. : Equivalent SLE ME 349, Engineering Analysis, Alexey Volkov 29

30 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Now let's see how we can use these operation in order to transform the SLE of two equations to the SLE with the upper triangular matrix, where all elements of the main diagonal are equal to Check that If 0then swap equations. If both and are equal to zero, then det 0 and the Gauss elimination can not be applied. 3. Divide the first equation by : 4. Subtract the first equation multiplied by from the second equation:,, This is the equivalent SLE with the upper triangular matrix that can be easily solved by the back substitution. ME 349, Engineering Analysis, Alexey Volkov 30

31 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Now let's consider the general algorithm of the Gauss elimination applied to a SLE of equations. The Gauss elimination algorithm includes two sequential stages: 1. Forward sweep:reduction of the SLE to an equivalent SLE with the upper triangular matrix. 2. Back substitution given by Eqs. (2.4.6). Forward sweep of the Gauss elimination Consider all equations of the SLE equation by equation. For equation : 1. Check that current 0. If 0, find equation with 0() and swap equations and. 2. Divide equation by. 3. Subtract equation multiplied by from all subsequent equations with. 4. Go to the next equation 1. Equation 1 Equation ME 349, Engineering Analysis, Alexey Volkov 31

32 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination Implementation of the forward sweep in the MATLAB (simplified version without swapping equations) function [ Am, Bm ] = GaussElimForwardSweep ( A, B ) [ m n ] = size ( A ); Am = A; Bm = B; for i= 1 : n Bm(i) = Bm(i) / Am(i,i); Am(i,i+1:n) = Am(i,i+1:n) / Am(i,i); Am(i,i) = 1.0; for j = i+ 1 : n % Bm(j) = Bm(j) Bm(i) * Am(j,i); Am(j,i+1:n) = Am(j,i+1:n) Am(i,i+1:n) * Am(j,i); Am(j,i) = 0.0; end end end i= ME 349, Engineering Analysis, Alexey Volkov 32

33 2.4. Systems of linear equations (SLEs). Solution of a SLE by the Gauss elimination The Gauss elimination requires ~ arithmetic operations. Usually the Gauss elimination is used to solve SLEs with dense matrices of coefficients, i.e. the matrices where the majority of elements (entries) are not equal to zero. For SLEs with sparse matrices, where the majority of coefficients are 0, the Gauss elimination is computationally inefficient. For sparse matrices, iterative methods of solution of SLE are used, e.g. Gauss Seidel method, see. Seidel_method. Example: A sparse matrix of coefficients obtained when solving a finite element problem in two dimensions. The non zero elements are shown in black. The Gauss elimination can be used in order to find the matrix inverse. The basic property of the inverse matrix,,or is equivalent to individual equations with respect to unknown elements of matrix. The Gauss elimination for finding the inverse matrix is called the Gauss Jordan method. ME 349, Engineering Analysis, Alexey Volkov 33

34 2.5. Systems of linear equations with the tridiagonal matrix. The Thomas algorithm SLEs with band matrices of coefficients SLEs with the tridiagonal matrices of coefficients Thomas algorithm Implementation in the MATLAB Reading assignment ME 349, Engineering Analysis, Alexey Volkov 34

35 2.5. Systems of linear equations with the tridiagonal matrix. The Thomas algorithm In science and engineering, SLEs often have band matrix of coefficients. Example: Numerical solution of one dimensional heat conduction equation (we willconsider thisexample inpart3). A band (banded) matrix is a matrix whose non zero entries are confined to a diagonal band, comprising the main diagonal and zero or more diagonals on either side. The bandwidth of the matrix is the smallest number of adjacent diagonals to which the nonzero elements are confined. : Band matrix with the bandwidth equal to 4 It is very computationally inefficient to apply the general Gauss elimination method in order to solve a SLE with a band matrix of coefficients of size and bandwidth, since the absolute majority of arithmetic operations will be performed with zeros and will result in zero values. There are a lot of special algorithms of solving SLEs with band matrices that are derived from the Gauss elimination procedure and account for the special form of the band matrix of coefficients. ME 349, Engineering Analysis, Alexey Volkov 35

36 2.5. Systems of linear equations with the tridiagonal matrix. The Thomas algorithm A practically important case of a band matrix is the tridiagonal matrix, i.e. the band matrix with the bandwidth equal to 3, where all non zero elements are placed on the main diagonal and two additional diagonals above and below the main diagonal. The majority of elements in the tridiagonal matrix are equal to zero, so it is convenient to use new notation for coefficients and RHSs of a SLE with the tridiagonal matrix of coefficients: or where 0and 0 ME 349, Engineering Analysis, Alexey Volkov 36

37 2.5. Systems of linear equations with the tridiagonal matrix. The Thomas algorithm Now all non zero elements of the matrix of coefficients can be stored in three 1D arrays,,,,,,and,,. In order to solve the a SLE with the tridiagonal matrix of coefficients we also need the 1D array of RHSs,, Thomas Alg The Thomas algorithm (or tridiagonal matrix algorithm) is the modification of the Gauss elimination procedure for a SLE with the tridiagonal matrix. The Thomas algorithm consists of Forward sweep Back substitution ME 349, Engineering Analysis, Alexey Volkov 37

38 2.5. Systems of linear equations with the tridiagonal matrix. The Thomas algorithm Implementation of the Thomas algorithm in the MATLAB function [ x ] = ThomasAlg ( a, b, c, d ) [ m n ] = size ( b ) ; x = b; Forward sweep cc = c; dd = d; % Forward sweep cc(1) = c(1) / b(1); dd(1) = d(1) / b(1); for i= 2 : n coeff = b(i) a(i)* cc(i 1); cc(i) = c(i) / coeff; dd(i) = ( d(i) a(i)* dd(i 1) ) / coeff; end % Back substitution Back substitution x(n) = dd(n); for i= n 1 : 1 : 1 x(i) = dd(i) cc(i)* x(i+1); end end See another implementation of the Thomas algorithm at tridiag m/content/tridiag.m ME 349, Engineering Analysis, Alexey Volkov 38

39 2.6. Solution of SLE in the MATLAB. Problems Different approaches for solving SLE in the MATLAB Problem 1 Problem 2 Problem 3 Reading assignment Gilat, 3.3 ME 349, Engineering Analysis, Alexey Volkov 39

40 2.6. Solution of SLE in the MATLAB. Problems Consider a SLE where Different approaches for solving SLE in the MATLAB,, Assume we programmed as a 2D array A, as a column vector B We can solve the SLE in MATLAB 1. Via the inverse matrix 2. Via the matrix division X = inv ( A ) * B = A^ 1 * B X = A \B = ( B' / A' )' 3. Via the build in MATLAB function linsolve X = linsolve ( A, B ) ME 349, Engineering Analysis, Alexey Volkov 40

41 2.6. Solution of SLE in the MATLAB. Problems 4. Via the build in MATLAB function mldivide Notes: X = mldivide ( A, B ) mldivide is completely equivalent to the left matrix division: mldivide ( A, B ) = A \ B. mldivide analyzes the type of the matrix of coefficients and employs different solvers to handle different kinds of coefficient matrices. linsolve has an optional parameter opts: linsolve ( A, B, opts ). This parameter allows one to specify the type of the matrix ( upper triangular, etc. ) and to speed up calculations for a specific type of matrices. See mldivide and linsolve can be used for systems with non square matrices or for system with square matrix with zero determinants. In this case they return not actual, but some "generalized" solution. Anyway, its is a good practice to check that X is an actual solution, i.e., calculate A * X Band see that it is the zero vector. Multithreaded (parallelized) versions of mldivide and linsolve are available for the use on modern CPUs. mldivide and linsolve show significant increase in speed on large doubleprecision arrays (on order of 10,000 elements or more) when multithreading is enabled. ME 349, Engineering Analysis, Alexey Volkov 41

42 2.6. Solution of SLE in the MATLAB. Problems 5. Via multiple iterative methods Iterative methods are effective if the matrix of coefficients is large and sparse. Different methods are optimized for SLE with some particular matrices of coefficients Iterative methods are numerical methods, so they are able to find solution only with some finite error, which is usually controlled by the tolerance. The following iterative methods are available: pcg bicg bicgstab bicgstabl cgs gmres lsqr minres qmr symmlq tfqmr Preconditioned conjugate gradients method Biconjugate gradients method Biconjugate gradients stabilized method BiCGStab(l) Method Conjugate gradients squared method Generalized minimum residual method LSQR method Minimum residual method Quasi minimal residual method Symmetric LQ method Transpose free QMR method Iterative methods have a lot of adjustable parameters ( tolerance, etc ), but all these parameters can be set up by default: X = bicg ( A, B ) ME 349, Engineering Analysis, Alexey Volkov 42

43 2.7. Summary For the exam we must know how To make basic matrix operations (scalar multiplication, addition, matrix multiplication, and matrix transpose) by hand and in the MATLAB. To define special matrixes (column vector, row vector, square, zero, identity, symmetric, skew symmetric, upper and low triangular) in the MATLAB To calculated the determinants of matrices 2 x 2 and 3 x 3 by hand and determinants of arbitrary square matrices with the det MATLAB function. Tocalculatedtheinverseofmatrices2x2and3x3byhandwithCramer'sruleand inverse of arbitrary square matrices with the inv MATLAB function. Formulate and use major properties of determinants and inverse matrices. To write a system of linear equations (SLE) in the matrix notation. Formulate the idea of the Gauss elimination algorithm. To implement the back substitution step of the Gauss elimination in the MATLAB. To solve SLE in the MATLAB by utilizing left and right matrix division, calculation of the matrix inverse, and functions linsolve and mldivide. To implement the Tomas algorithm for solving the SLE with tridiagonal matrix of coefficients in the MATLAB ME 349, Engineering Analysis, Alexey Volkov 43

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Operation Count; Numerical Linear Algebra

Operation Count; Numerical Linear Algebra 10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floating-point

More information

General Framework for an Iterative Solution of Ax b. Jacobi s Method

General Framework for an Iterative Solution of Ax b. Jacobi s Method 2.6 Iterative Solutions of Linear Systems 143 2.6 Iterative Solutions of Linear Systems Consistent linear systems in real life are solved in one of two ways: by direct calculation (using a matrix factorization,

More information

The Characteristic Polynomial

The Characteristic Polynomial Physics 116A Winter 2011 The Characteristic Polynomial 1 Coefficients of the characteristic polynomial Consider the eigenvalue problem for an n n matrix A, A v = λ v, v 0 (1) The solution to this problem

More information

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1. MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

More information

SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis

More information

8 Square matrices continued: Determinants

8 Square matrices continued: Determinants 8 Square matrices continued: Determinants 8. Introduction Determinants give us important information about square matrices, and, as we ll soon see, are essential for the computation of eigenvalues. You

More information

Solution of Linear Systems

Solution of Linear Systems Chapter 3 Solution of Linear Systems In this chapter we study algorithms for possibly the most commonly occurring problem in scientific computing, the solution of linear systems of equations. We start

More information

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation

More information

Notes on Determinant

Notes on Determinant ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without

More information

Solving Systems of Linear Equations

Solving Systems of Linear Equations LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

More information

by the matrix A results in a vector which is a reflection of the given

by the matrix A results in a vector which is a reflection of the given Eigenvalues & Eigenvectors Example Suppose Then So, geometrically, multiplying a vector in by the matrix A results in a vector which is a reflection of the given vector about the y-axis We observe that

More information

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions. 3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in three-space, we write a vector in terms

More information

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

More information

1 VECTOR SPACES AND SUBSPACES

1 VECTOR SPACES AND SUBSPACES 1 VECTOR SPACES AND SUBSPACES What is a vector? Many are familiar with the concept of a vector as: Something which has magnitude and direction. an ordered pair or triple. a description for quantities such

More information

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Linear Algebra Notes for Marsden and Tromba Vector Calculus Linear Algebra Notes for Marsden and Tromba Vector Calculus n-dimensional Euclidean Space and Matrices Definition of n space As was learned in Math b, a point in Euclidean three space can be thought of

More information

Similar matrices and Jordan form

Similar matrices and Jordan form Similar matrices and Jordan form We ve nearly covered the entire heart of linear algebra once we ve finished singular value decompositions we ll have seen all the most central topics. A T A is positive

More information

CS3220 Lecture Notes: QR factorization and orthogonal transformations

CS3220 Lecture Notes: QR factorization and orthogonal transformations CS3220 Lecture Notes: QR factorization and orthogonal transformations Steve Marschner Cornell University 11 March 2009 In this lecture I ll talk about orthogonal matrices and their properties, discuss

More information

Systems of Linear Equations

Systems of Linear Equations Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and

More information

Solving Systems of Linear Equations

Solving Systems of Linear Equations LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

More information

1 Introduction to Matrices

1 Introduction to Matrices 1 Introduction to Matrices In this section, important definitions and results from matrix algebra that are useful in regression analysis are introduced. While all statements below regarding the columns

More information

Linear Algebra Review. Vectors

Linear Algebra Review. Vectors Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka kosecka@cs.gmu.edu http://cs.gmu.edu/~kosecka/cs682.html Virginia de Sa Cogsci 8F Linear Algebra review UCSD Vectors The length

More information

LINEAR ALGEBRA. September 23, 2010

LINEAR ALGEBRA. September 23, 2010 LINEAR ALGEBRA September 3, 00 Contents 0. LU-decomposition.................................... 0. Inverses and Transposes................................. 0.3 Column Spaces and NullSpaces.............................

More information

Applied Linear Algebra I Review page 1

Applied Linear Algebra I Review page 1 Applied Linear Algebra Review 1 I. Determinants A. Definition of a determinant 1. Using sum a. Permutations i. Sign of a permutation ii. Cycle 2. Uniqueness of the determinant function in terms of properties

More information

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method 578 CHAPTER 1 NUMERICAL METHODS 1. ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS As a numerical technique, Gaussian elimination is rather unusual because it is direct. That is, a solution is obtained after

More information

The Determinant: a Means to Calculate Volume

The Determinant: a Means to Calculate Volume The Determinant: a Means to Calculate Volume Bo Peng August 20, 2007 Abstract This paper gives a definition of the determinant and lists many of its well-known properties Volumes of parallelepipeds are

More information

Introduction to Matrix Algebra

Introduction to Matrix Algebra Psychology 7291: Multivariate Statistics (Carey) 8/27/98 Matrix Algebra - 1 Introduction to Matrix Algebra Definitions: A matrix is a collection of numbers ordered by rows and columns. It is customary

More information

Name: Section Registered In:

Name: Section Registered In: Name: Section Registered In: Math 125 Exam 3 Version 1 April 24, 2006 60 total points possible 1. (5pts) Use Cramer s Rule to solve 3x + 4y = 30 x 2y = 8. Be sure to show enough detail that shows you are

More information

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks Welcome to Thinkwell s Homeschool Precalculus! We re thrilled that you ve decided to make us part of your homeschool curriculum. This lesson

More information

Typical Linear Equation Set and Corresponding Matrices

Typical Linear Equation Set and Corresponding Matrices EWE: Engineering With Excel Larsen Page 1 4. Matrix Operations in Excel. Matrix Manipulations: Vectors, Matrices, and Arrays. How Excel Handles Matrix Math. Basic Matrix Operations. Solving Systems of

More information

6. Cholesky factorization

6. Cholesky factorization 6. Cholesky factorization EE103 (Fall 2011-12) triangular matrices forward and backward substitution the Cholesky factorization solving Ax = b with A positive definite inverse of a positive definite matrix

More information

Linear Algebra: Determinants, Inverses, Rank

Linear Algebra: Determinants, Inverses, Rank D Linear Algebra: Determinants, Inverses, Rank D 1 Appendix D: LINEAR ALGEBRA: DETERMINANTS, INVERSES, RANK TABLE OF CONTENTS Page D.1. Introduction D 3 D.2. Determinants D 3 D.2.1. Some Properties of

More information

Linearly Independent Sets and Linearly Dependent Sets

Linearly Independent Sets and Linearly Dependent Sets These notes closely follow the presentation of the material given in David C. Lay s textbook Linear Algebra and its Applications (3rd edition). These notes are intended primarily for in-class presentation

More information

7 Gaussian Elimination and LU Factorization

7 Gaussian Elimination and LU Factorization 7 Gaussian Elimination and LU Factorization In this final section on matrix factorization methods for solving Ax = b we want to take a closer look at Gaussian elimination (probably the best known method

More information

Orthogonal Diagonalization of Symmetric Matrices

Orthogonal Diagonalization of Symmetric Matrices MATH10212 Linear Algebra Brief lecture notes 57 Gram Schmidt Process enables us to find an orthogonal basis of a subspace. Let u 1,..., u k be a basis of a subspace V of R n. We begin the process of finding

More information

How To Understand And Solve Algebraic Equations

How To Understand And Solve Algebraic Equations College Algebra Course Text Barnett, Raymond A., Michael R. Ziegler, and Karl E. Byleen. College Algebra, 8th edition, McGraw-Hill, 2008, ISBN: 978-0-07-286738-1 Course Description This course provides

More information

Using row reduction to calculate the inverse and the determinant of a square matrix

Using row reduction to calculate the inverse and the determinant of a square matrix Using row reduction to calculate the inverse and the determinant of a square matrix Notes for MATH 0290 Honors by Prof. Anna Vainchtein 1 Inverse of a square matrix An n n square matrix A is called invertible

More information

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set. MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set. Vector space A vector space is a set V equipped with two operations, addition V V (x,y) x + y V and scalar

More information

Lecture 3: Finding integer solutions to systems of linear equations

Lecture 3: Finding integer solutions to systems of linear equations Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture

More information

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices Solving square systems of linear equations; inverse matrices. Linear algebra is essentially about solving systems of linear equations,

More information

Numerical Methods I Solving Linear Systems: Sparse Matrices, Iterative Methods and Non-Square Systems

Numerical Methods I Solving Linear Systems: Sparse Matrices, Iterative Methods and Non-Square Systems Numerical Methods I Solving Linear Systems: Sparse Matrices, Iterative Methods and Non-Square Systems Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course G63.2010.001 / G22.2420-001,

More information

15.062 Data Mining: Algorithms and Applications Matrix Math Review

15.062 Data Mining: Algorithms and Applications Matrix Math Review .6 Data Mining: Algorithms and Applications Matrix Math Review The purpose of this document is to give a brief review of selected linear algebra concepts that will be useful for the course and to develop

More information

Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

More information

Unit 18 Determinants

Unit 18 Determinants Unit 18 Determinants Every square matrix has a number associated with it, called its determinant. In this section, we determine how to calculate this number, and also look at some of the properties of

More information

5.3 The Cross Product in R 3

5.3 The Cross Product in R 3 53 The Cross Product in R 3 Definition 531 Let u = [u 1, u 2, u 3 ] and v = [v 1, v 2, v 3 ] Then the vector given by [u 2 v 3 u 3 v 2, u 3 v 1 u 1 v 3, u 1 v 2 u 2 v 1 ] is called the cross product (or

More information

Factorization Theorems

Factorization Theorems Chapter 7 Factorization Theorems This chapter highlights a few of the many factorization theorems for matrices While some factorization results are relatively direct, others are iterative While some factorization

More information

LS.6 Solution Matrices

LS.6 Solution Matrices LS.6 Solution Matrices In the literature, solutions to linear systems often are expressed using square matrices rather than vectors. You need to get used to the terminology. As before, we state the definitions

More information

University of Lille I PC first year list of exercises n 7. Review

University of Lille I PC first year list of exercises n 7. Review University of Lille I PC first year list of exercises n 7 Review Exercise Solve the following systems in 4 different ways (by substitution, by the Gauss method, by inverting the matrix of coefficients

More information

Solving simultaneous equations using the inverse matrix

Solving simultaneous equations using the inverse matrix Solving simultaneous equations using the inverse matrix 8.2 Introduction The power of matrix algebra is seen in the representation of a system of simultaneous linear equations as a matrix equation. Matrix

More information

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Mathematics Course 111: Algebra I Part IV: Vector Spaces Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are

More information

Similarity and Diagonalization. Similar Matrices

Similarity and Diagonalization. Similar Matrices MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that

More information

Zeros of a Polynomial Function

Zeros of a Polynomial Function Zeros of a Polynomial Function An important consequence of the Factor Theorem is that finding the zeros of a polynomial is really the same thing as factoring it into linear factors. In this section we

More information

Linear Equations ! 25 30 35$ & " 350 150% & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development

Linear Equations ! 25 30 35$ &  350 150% &  11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development MathsTrack (NOTE Feb 2013: This is the old version of MathsTrack. New books will be created during 2013 and 2014) Topic 4 Module 9 Introduction Systems of to Matrices Linear Equations Income = Tickets!

More information

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes Solution by Inverse Matrix Method 8.2 Introduction The power of matrix algebra is seen in the representation of a system of simultaneous linear equations as a matrix equation. Matrix algebra allows us

More information

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively. Chapter 7 Eigenvalues and Eigenvectors In this last chapter of our exploration of Linear Algebra we will revisit eigenvalues and eigenvectors of matrices, concepts that were already introduced in Geometry

More information

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS TEST DESIGN AND FRAMEWORK September 2014 Authorized for Distribution by the New York State Education Department This test design and framework document

More information

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors. 3. Cross product Definition 3.1. Let v and w be two vectors in R 3. The cross product of v and w, denoted v w, is the vector defined as follows: the length of v w is the area of the parallelogram with

More information

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2 MATHEMATICS FO ENGINEES BASIC MATIX THEOY TUTOIAL This is the second of two tutorials on matrix theory. On completion you should be able to do the following. Explain the general method for solving simultaneous

More information

A note on companion matrices

A note on companion matrices Linear Algebra and its Applications 372 (2003) 325 33 www.elsevier.com/locate/laa A note on companion matrices Miroslav Fiedler Academy of Sciences of the Czech Republic Institute of Computer Science Pod

More information

Chapter 2 Determinants, and Linear Independence

Chapter 2 Determinants, and Linear Independence Chapter 2 Determinants, and Linear Independence 2.1 Introduction to Determinants and Systems of Equations Determinants can be defined and studied independently of matrices, though when square matrices

More information

Lecture 5: Singular Value Decomposition SVD (1)

Lecture 5: Singular Value Decomposition SVD (1) EEM3L1: Numerical and Analytical Techniques Lecture 5: Singular Value Decomposition SVD (1) EE3L1, slide 1, Version 4: 25-Sep-02 Motivation for SVD (1) SVD = Singular Value Decomposition Consider the system

More information

1 Determinants and the Solvability of Linear Systems

1 Determinants and the Solvability of Linear Systems 1 Determinants and the Solvability of Linear Systems In the last section we learned how to use Gaussian elimination to solve linear systems of n equations in n unknowns The section completely side-stepped

More information

DATA ANALYSIS II. Matrix Algorithms

DATA ANALYSIS II. Matrix Algorithms DATA ANALYSIS II Matrix Algorithms Similarity Matrix Given a dataset D = {x i }, i=1,..,n consisting of n points in R d, let A denote the n n symmetric similarity matrix between the points, given as where

More information

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication). MAT 2 (Badger, Spring 202) LU Factorization Selected Notes September 2, 202 Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix

More information

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i.

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i. Math 5A HW4 Solutions September 5, 202 University of California, Los Angeles Problem 4..3b Calculate the determinant, 5 2i 6 + 4i 3 + i 7i Solution: The textbook s instructions give us, (5 2i)7i (6 + 4i)(

More information

MAT188H1S Lec0101 Burbulla

MAT188H1S Lec0101 Burbulla Winter 206 Linear Transformations A linear transformation T : R m R n is a function that takes vectors in R m to vectors in R n such that and T (u + v) T (u) + T (v) T (k v) k T (v), for all vectors u

More information

Algebra Unpacked Content For the new Common Core standards that will be effective in all North Carolina schools in the 2012-13 school year.

Algebra Unpacked Content For the new Common Core standards that will be effective in all North Carolina schools in the 2012-13 school year. This document is designed to help North Carolina educators teach the Common Core (Standard Course of Study). NCDPI staff are continually updating and improving these tools to better serve teachers. Algebra

More information

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS Revised Edition James Epperson Mathematical Reviews BICENTENNIAL 0, 1 8 0 7 z ewiley wu 2007 r71 BICENTENNIAL WILEY-INTERSCIENCE A John Wiley & Sons, Inc.,

More information

Introduction to Matrices for Engineers

Introduction to Matrices for Engineers Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

More information

26. Determinants I. 1. Prehistory

26. Determinants I. 1. Prehistory 26. Determinants I 26.1 Prehistory 26.2 Definitions 26.3 Uniqueness and other properties 26.4 Existence Both as a careful review of a more pedestrian viewpoint, and as a transition to a coordinate-independent

More information

CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES. From Exploratory Factor Analysis Ledyard R Tucker and Robert C.

CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES. From Exploratory Factor Analysis Ledyard R Tucker and Robert C. CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES From Exploratory Factor Analysis Ledyard R Tucker and Robert C MacCallum 1997 180 CHAPTER 8 FACTOR EXTRACTION BY MATRIX FACTORING TECHNIQUES In

More information

Solving Systems of Linear Equations Using Matrices

Solving Systems of Linear Equations Using Matrices Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.

More information

THREE DIMENSIONAL GEOMETRY

THREE DIMENSIONAL GEOMETRY Chapter 8 THREE DIMENSIONAL GEOMETRY 8.1 Introduction In this chapter we present a vector algebra approach to three dimensional geometry. The aim is to present standard properties of lines and planes,

More information

Solving Linear Systems of Equations. Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.

Solving Linear Systems of Equations. Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx. Solving Linear Systems of Equations Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

More information

1 Sets and Set Notation.

1 Sets and Set Notation. LINEAR ALGEBRA MATH 27.6 SPRING 23 (COHEN) LECTURE NOTES Sets and Set Notation. Definition (Naive Definition of a Set). A set is any collection of objects, called the elements of that set. We will most

More information

Linear Programming. March 14, 2014

Linear Programming. March 14, 2014 Linear Programming March 1, 01 Parts of this introduction to linear programming were adapted from Chapter 9 of Introduction to Algorithms, Second Edition, by Cormen, Leiserson, Rivest and Stein [1]. 1

More information

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes The Inverse of a Matrix 7.4 Introduction In number arithmetic every number a 0 has a reciprocal b written as a or such that a ba = ab =. Similarly a square matrix A may have an inverse B = A where AB =

More information

Indiana State Core Curriculum Standards updated 2009 Algebra I

Indiana State Core Curriculum Standards updated 2009 Algebra I Indiana State Core Curriculum Standards updated 2009 Algebra I Strand Description Boardworks High School Algebra presentations Operations With Real Numbers Linear Equations and A1.1 Students simplify and

More information

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system 1. Systems of linear equations We are interested in the solutions to systems of linear equations. A linear equation is of the form 3x 5y + 2z + w = 3. The key thing is that we don t multiply the variables

More information

1.5 SOLUTION SETS OF LINEAR SYSTEMS

1.5 SOLUTION SETS OF LINEAR SYSTEMS 1-2 CHAPTER 1 Linear Equations in Linear Algebra 1.5 SOLUTION SETS OF LINEAR SYSTEMS Many of the concepts and computations in linear algebra involve sets of vectors which are visualized geometrically as

More information

α = u v. In other words, Orthogonal Projection

α = u v. In other words, Orthogonal Projection Orthogonal Projection Given any nonzero vector v, it is possible to decompose an arbitrary vector u into a component that points in the direction of v and one that points in a direction orthogonal to v

More information

Prerequisites: TSI Math Complete and high school Algebra II and geometry or MATH 0303.

Prerequisites: TSI Math Complete and high school Algebra II and geometry or MATH 0303. Course Syllabus Math 1314 College Algebra Revision Date: 8-21-15 Catalog Description: In-depth study and applications of polynomial, rational, radical, exponential and logarithmic functions, and systems

More information

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0.

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0. Cross product 1 Chapter 7 Cross product We are getting ready to study integration in several variables. Until now we have been doing only differential calculus. One outcome of this study will be our ability

More information

Mean value theorem, Taylors Theorem, Maxima and Minima.

Mean value theorem, Taylors Theorem, Maxima and Minima. MA 001 Preparatory Mathematics I. Complex numbers as ordered pairs. Argand s diagram. Triangle inequality. De Moivre s Theorem. Algebra: Quadratic equations and express-ions. Permutations and Combinations.

More information

Nonlinear Iterative Partial Least Squares Method

Nonlinear Iterative Partial Least Squares Method Numerical Methods for Determining Principal Component Analysis Abstract Factors Béchu, S., Richard-Plouet, M., Fernandez, V., Walton, J., and Fairley, N. (2016) Developments in numerical treatments for

More information

Solution to Homework 2

Solution to Homework 2 Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if

More information

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A = MAT 200, Midterm Exam Solution. (0 points total) a. (5 points) Compute the determinant of the matrix 2 2 0 A = 0 3 0 3 0 Answer: det A = 3. The most efficient way is to develop the determinant along the

More information

Question 2: How do you solve a matrix equation using the matrix inverse?

Question 2: How do you solve a matrix equation using the matrix inverse? Question : How do you solve a matrix equation using the matrix inverse? In the previous question, we wrote systems of equations as a matrix equation AX B. In this format, the matrix A contains the coefficients

More information

( ) which must be a vector

( ) which must be a vector MATH 37 Linear Transformations from Rn to Rm Dr. Neal, WKU Let T : R n R m be a function which maps vectors from R n to R m. Then T is called a linear transformation if the following two properties are

More information

THE DIMENSION OF A VECTOR SPACE

THE DIMENSION OF A VECTOR SPACE THE DIMENSION OF A VECTOR SPACE KEITH CONRAD This handout is a supplementary discussion leading up to the definition of dimension and some of its basic properties. Let V be a vector space over a field

More information

Excel supplement: Chapter 7 Matrix and vector algebra

Excel supplement: Chapter 7 Matrix and vector algebra Excel supplement: Chapter 7 atrix and vector algebra any models in economics lead to large systems of linear equations. These problems are particularly suited for computers. The main purpose of this chapter

More information

Linear Codes. Chapter 3. 3.1 Basics

Linear Codes. Chapter 3. 3.1 Basics Chapter 3 Linear Codes In order to define codes that we can encode and decode efficiently, we add more structure to the codespace. We shall be mainly interested in linear codes. A linear code of length

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI Solving a System of Linear Algebraic Equations (last updated 5/19/05 by GGB) Objectives:

More information

3 Orthogonal Vectors and Matrices

3 Orthogonal Vectors and Matrices 3 Orthogonal Vectors and Matrices The linear algebra portion of this course focuses on three matrix factorizations: QR factorization, singular valued decomposition (SVD), and LU factorization The first

More information

Linear Algebra I. Ronald van Luijk, 2012

Linear Algebra I. Ronald van Luijk, 2012 Linear Algebra I Ronald van Luijk, 2012 With many parts from Linear Algebra I by Michael Stoll, 2007 Contents 1. Vector spaces 3 1.1. Examples 3 1.2. Fields 4 1.3. The field of complex numbers. 6 1.4.

More information

Solving Linear Systems, Continued and The Inverse of a Matrix

Solving Linear Systems, Continued and The Inverse of a Matrix , Continued and The of a Matrix Calculus III Summer 2013, Session II Monday, July 15, 2013 Agenda 1. The rank of a matrix 2. The inverse of a square matrix Gaussian Gaussian solves a linear system by reducing

More information

WORK SCHEDULE: MATHEMATICS 2007

WORK SCHEDULE: MATHEMATICS 2007 , K WORK SCHEDULE: MATHEMATICS 00 GRADE MODULE TERM... LO NUMBERS, OPERATIONS AND RELATIONSHIPS able to recognise, represent numbers and their relationships, and to count, estimate, calculate and check

More information

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws. Matrix Algebra A. Doerr Before reading the text or the following notes glance at the following list of basic matrix algebra laws. Some Basic Matrix Laws Assume the orders of the matrices are such that

More information

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors 1 Chapter 13. VECTORS IN THREE DIMENSIONAL SPACE Let s begin with some names and notation for things: R is the set (collection) of real numbers. We write x R to mean that x is a real number. A real number

More information