Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown.

Similar documents
Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Conceptual Questions for Review

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Elementary maths for GMT

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Math 1553, Introduction to Linear Algebra

1 Determinants. 1.1 Determinant

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Linear Algebra Practice Problems

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

LINEAR ALGEBRA REVIEW

Review of Linear Algebra

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder

Examples and MatLab. Vector and Matrix Material. Matrix Addition R = A + B. Matrix Equality A = B. Matrix Multiplication R = A * B.

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient.

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Lecture Summaries for Linear Algebra M51A

Chapter 3. Determinants and Eigenvalues

2. Every linear system with the same number of equations as unknowns has a unique solution.

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

POLI270 - Linear Algebra

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

CS 246 Review of Linear Algebra 01/17/19

Review problems for MA 54, Fall 2004.

Lecture 1 Systems of Linear Equations and Matrices

Graduate Mathematical Economics Lecture 1

Undergraduate Mathematical Economics Lecture 1

CHAPTER 8: Matrices and Determinants

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Matrices and systems of linear equations

1 9/5 Matrices, vectors, and their applications

Practical Linear Algebra: A Geometry Toolbox

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Mathematics. EC / EE / IN / ME / CE. for

ANSWERS. E k E 2 E 1 A = B

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

Linear Algebra Primer

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

Linear Algebra and Matrices

Foundations of Matrix Analysis

ECON 186 Class Notes: Linear Algebra

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Maren Bennewitz, Diego Tipaldi, Luciano Spinello

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra

Introduction to Matrices

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

Review Questions REVIEW QUESTIONS 71

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

Math 250B Midterm I Information Fall 2018

Lecture Notes in Linear Algebra

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

Linear Algebra Highlights

Digital Workbook for GRA 6035 Mathematics

Topic 15 Notes Jeremy Orloff

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

Matrix & Linear Algebra

Linear Systems and Matrices

MATRICES AND MATRIX OPERATIONS

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

and let s calculate the image of some vectors under the transformation T.

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Matrices. In this chapter: matrices, determinants. inverse matrix

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

MATH2210 Notebook 2 Spring 2018

Background Mathematics (2/2) 1. David Barber

Introduction to Matrix Algebra

(a) If A is a 3 by 4 matrix, what does this tell us about its nullspace? Solution: dim N(A) 1, since rank(a) 3. Ax =

Linear Algebra 1 Exam 1 Solutions 6/12/3

Methods for Solving Linear Systems Part 2

Math Linear Algebra Final Exam Review Sheet

Linear Algebra I for Science (NYC)

CSL361 Problem set 4: Basic linear algebra

4. Determinants.

SUMMARY OF MATH 1600

Knowledge Discovery and Data Mining 1 (VO) ( )

Linear Algebra Review. Vectors

1 Matrices and Systems of Linear Equations. a 1n a 2n

Dependent ( ) Independent (1 or Ø) These lines coincide so they are a.k.a coincident.

NOTES on LINEAR ALGEBRA 1

Linear Algebra. Min Yan

3 Matrix Algebra. 3.1 Operations on matrices

Study Guide for Linear Algebra Exam 2

MAT Linear Algebra Collection of sample exams

Eigenvalues and Eigenvectors

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

MAT 2037 LINEAR ALGEBRA I web:

Transcription:

Quiz 1) Simplify 9999 999 9999 998 9999 998 2) Locate your 1 st order neighbors Name Hometown Me Name Hometown Name Hometown Name Hometown

Solving Linear Algebraic Equa3ons

Basic Concepts Here only real vector and matrices are considered. Column vector Row vector Scalar product Norm (length)

Basic Concepts Matrix of order Matrix A is square if m = n Matrix A consists of columns of vectors a j

Basic Concepts Transpose of A: (becomes matrix of order n m) Diagonal matrix:

Basic Concepts Identity matrix Inverse of matrix A is A -1 satisfying A is symmetric if A is orthogonal if A is square and

Basic Concepts Lower triangular matrix Upper triangular matrix goes analogously Exponential (A is square matrix, I is identity matrix)

(1) Addition Matrix Algebra (2) Subtraction For (1) and (2), A, B, and C of the same order (3) Multiplication by a number (4) Product of two matrices (in general)

Exponential relations Matrix Algebra

Trace If A is square matrix of order n n, then Trace is the sum of the diagonal elements. for order The trace of a matrix A is the sum of its eigenvalues

Determinants A determinant is a real number associated with every square matrix. The determinant of a square matrix A is denoted by "det A" or A. The Leibniz formula for the determinant of an n n matrix A is

Determinants If A is a square matrix, then the minor of the entry in the i-th row and j-th column is the determinant of the sub-matrix formed by deleting the i-th row and j-th column. The (i,j) cofactor is obtained by multiplying the minor by (-1) i+j.

Determinants For n = 2: For n = 3 (example, operation along the 1 st row):

Determinants For n = 4 (example, operation along the 2 nd column):

Triangular determinant Determinants

Determinants (7) If all elements of a row (or a column) are multiplied by a constant c, the determinant is multiplied by c. (8) Exchange of two rows (or columns) changes the sign of the determinant.

Determinants (9) A determinant does not change if one row (column) multiplied by a constant is added to another row (column). (10) A determinant equals zero if (i) all elements of a row (column) are zero, or (ii) two rows (columns) coincide. (11) Sub-determinant D ij of order (n-1) (n-1) is formed by deleting the i th row and the j th column of D. Cofactor

Matrix Inversion The inverse of a square matrix A (also called reciprocal matrix), is a matrix A 1, such that where I is the identity matrix. If matrix A has an inverse, then it is called nonsingular or, also invertible. If linearly independent. columns (rows) are

Matrix Inversion There are many methods to calculate A 1 : (1) Cofactor method where C is the matrix cofactors. So

Matrix Inversion (2) Elementary row operations from which (3) Newton s method (4) Eigendecomposition (5) Cholesky decomposition (6) etc

Inversion of 2 2 matrices Inversion of 3 3 matrices

MATLAB Implementa3ons MATLAB has built-in functions/commands for matrix operations: >> det(a) - computes matrix determinant >> inv(a) - computes matrix inverse >> trace(a) - computes matrix trace >> eig(a) - computes eigenvalues >> rank(a) - computes matrix rank >> eye(a) - generates identity matrix >> diag(a) - returns matrix diagonal elements >> sum(diag(a)) - computes matrix trace etc.

MATLAB Implementa3ons Creating a simple solver/function that calculates the determinant of 3 3 matrices function [d] = Det3by3(a) % Function to calculate determinant matrices size 3x3 % Operation based on the 1st row row1 = a(1,:); dd1 = a(2,2)*a(3,3) - a(2,3)*a(3,2); dd2 = a(2,1)*a(3,3) - a(2,3)*a(3,1); dd3 = a(2,1)*a(3,2) - a(2,2)*a(3,1); d = (-1)^2*row1(1,1)*dd1 + (-1)^3*row1(1,2)*dd2 +... (-1)^4*row1(1,3)*dd3;

MATLAB Implementa3ons To use the solver, on the Command Window: >> u=[1,1,0;4,5,9;0,2,8] u = 1 1 0 4 5 9 0 2 8 >> Det3by3(u) ans -10

Systems of Linear Equa3ons The general form of systems of linear equations (3.1) where a s are constant coefficients, b s are constants, m is the number of equations, and n is the number of variables or unknowns. The system (3.1) is homogeneous if all otherwise inhomogeneous.

Systems of Linear Equa3ons Arranging in matrix and vector notation or (3.2) The matrix A is called the coefficient matrix and has size (m rows and n columns).

Systems of Linear Equa3ons Solutions of general linear systems with m equations in n unknowns may be classified into exactly three possibilities: (1) No solution (2) Infinitely many solutions (3) A unique solution

Solving Equa3ons with Geometry If n = 2 (plane) or n = 3 (space), the system of equations (3.1) has a geometric interpretation that can give us valuable intuition about possible solutions. Plane Geometry - represented by line equations (3.3) Solving the system above is the geometrical equivalent of finding all possible (x,y)-intersections of the lines.

Solving Equa3ons with Geometry Parallel lines, no solution Identical lines, infinitely many solutions Non-parallel distinct lines, one solution at the unique intersection

Solving Equa3ons with Geometry Space Geometry - A plane in xyz-space is given by plane equation The vector is normal to the plane. (3.4) Solving the system above is the geometrical equivalent of finding all possible (x,y,z)-intersections of the planes.

Solving Equa3ons with Geometry A B C A=B Triple-decker. Planes A, B, and C are parallel. No intersection point. Double-decker. Planes A and B are equal and parallel to plane C. No intersection. C C A B Book shelf. Planes A and B are distinct and parallel. No intersection point.

Solving Equa3ons with Matrix Op. A system of m linear equations and n unknowns can be written in matrix notation as: or solving it: (3.5) (3.6)

Solving Equa3ons with Matrix Op. If m=n in Eq. (3.1) and if det A 0, the unique solution can be expressed explicitly by either: where det A is the determinant of matrix A, det A j is the determinant that arises when the j-th column of det A is replaced by the column elements b 1,, b n (Cramer s rule).

MATLAB Implementa3ons Solve the following system of equations using MATLAB: >> A = [0.3,0.52,1;0.5,1,1.9;0.1,0.3,0.5]; >> b = [-0.01, 0.67, -0.44] ; >> x = A\b x = -14.9000-29.5000 19.8000

Solving of Equa3ons by Gaussian Elimina3on If m n in Eq. (3.1), Gaussian elimination can be employed to solve the system of equations (3.1). By elementary row operations (i.e., (i) exchange of equations, (ii) multiplication of an equation by a constant, (iii) adding one equation to another), the system (3.1) can be transformed into echelon form. From the echelon form, the unknowns n are determined by backward substitution. Of these there are 2 groups: 1) Basic variables: corresponding to pivots 2) Free variables: the others

Solving of Equa3ons by Example: Gaussian Elimina3on x,y,z are basic variables, u is free variable.

Eigenvalues The number λ is called an eigenvalue of a square matrix A and g 0 is a corresponding eigenvector if (3.7) Characteristic equation is the equation which is solved to find a matrix s eigenvalues. The characteristic equation in variable λ is defined by

Eigenvalues (product of all eigenvalues) (sum of eigenvalues) (Real square) matrix A is symmetric if If matrix A is symmetric: (1) all eigenvalues are real (2) eigenvectors corresponding to different eigenvalues are orthogonal (3)

Eigenvalues The characteristic equation of a 2x2 matrix: or can be written in the particular form: Similarly, the characteristic equation of a 3x3 matrix:

Eigenvalues or, can be written as well as where tr(a) is the matrix trace of A and det(a) is its determinant.

Spectral Theorem Assume that: (1) Matrix A is symmetric (2) are its eigenvalues Then there exist corresponding eigenvectors g 1,, g n such that: (1) (pairwise orthogonal and normed) Set, then (2) P is an orthogonal matrix (3) (4) (5)

Eigenvalues & Eigenvectors Example: Find eigenvalues and eigenvectors of matrix Solution The characteristic equation of matrix A is with roots

Eigenvalues & Eigenvectors Using Eq. (3.3), which states and we get If we choose the general solutions

Eigenvalues & Eigenvectors then the unknown vector is given by Since eigenvectors are normalized, then From

Eigenvalues & Eigenvectors we get If we choose the general solutions then the second unknown vector is given by

Eigenvalues & Eigenvectors From Choosing the general solutions the third eigenvector is given by

MATLAB Implementa3ons Matlab commands for matrix operations: >> A=[8,1,6;3,5,7;4,9,2] >> B = A >> trace(a) >> rank(a) >> det(a) >> inv(a)

MATLAB Implementa3ons Creating a diagonal matrix from a vector: >> A=[1,2,4,5,7,9]; >> B=diag(A) B = 1 0 0 0 0 0 0 2 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 7 0 0 0 0 0 0 9

MATLAB Implementa3ons Generating a vector: >> A=zeros(1,2) A = 0 0 Transpose of a vector: >> B=A B = 0 0 Creating a 2 3 matrix: >> D=[1,2,4;5,7,9] D = 1 2 4 5 7 9 Multiplication of matrices/vectors: >> C=A.*B; Suppress output

MATLAB Implementa3ons Generating a 5 5 matrix whose elements are all zeros: Generating a 5 3 matrix whose elements are all ones >> A=zeros(5) A = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> B=ones(5,3) B = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

MATLAB Implementa3ons Concatenating matrices A and B horizontally : >> C=[A,B] C = 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 (Same length of rows) Concatenating matrices vertically: >> C=[A;B] (Same length of columns)