MATHEMATICS FOR COMPUTER VISION WEEK 2 LINEAR SYSTEMS. Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year

Similar documents
12/1/2015 LINEAR ALGEBRA PRE-MID ASSIGNMENT ASSIGNED BY: PROF. SULEMAN SUBMITTED BY: M. REHAN ASGHAR BSSE 4 ROLL NO: 15126

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

Review of matrices. Let m, n IN. A rectangle of numbers written like A =

Next topics: Solving systems of linear equations

Relationships Between Planes

Computational Methods. Systems of Linear Equations

EBG # 3 Using Gaussian Elimination (Echelon Form) Gaussian Elimination: 0s below the main diagonal

Math 2331 Linear Algebra

Chapter 4. Solving Systems of Equations. Chapter 4

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

30.3. LU Decomposition. Introduction. Prerequisites. Learning Outcomes

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Numerical Linear Algebra

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

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

Solving Linear Systems Using Gaussian Elimination

Elementary maths for GMT

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini

Solving Ax = b w/ different b s: LU-Factorization

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

Linear Equations in Linear Algebra

Matrix decompositions

A New Algorithm for Solution of System of Linear Equations

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Practical Linear Algebra: A Geometry Toolbox

Linear Algebra Linear Algebra : Matrix decompositions Monday, February 11th Math 365 Week #4

Section 1.1: Systems of Linear Equations

Ack: 1. LD Garcia, MTH 199, Sam Houston State University 2. Linear Algebra and Its Applications - Gilbert Strang

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

Linear Equations in Linear Algebra

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Lecture 1 Systems of Linear Equations and Matrices

This can be accomplished by left matrix multiplication as follows: I

The Solution of Linear Systems AX = B

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics. The Basics of Linear Algebra

MTH501- Linear Algebra MCQS MIDTERM EXAMINATION ~ LIBRIANSMINE ~

Chapter 1: Systems of Linear Equations and Matrices

2.1 Gaussian Elimination

B553 Lecture 5: Matrix Algebra Review

LU Factorization. A m x n matrix A admits an LU factorization if it can be written in the form of A = LU

MAT 343 Laboratory 3 The LU factorization

Matrix decompositions

Numerical Linear Algebra

Paul Heckbert. Computer Science Department Carnegie Mellon University. 26 Sept B - Introduction to Scientific Computing 1

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix

Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems

y b where U. matrix inverse A 1 ( L. 1 U 1. L 1 U 13 U 23 U 33 U 13 2 U 12 1

9. Numerical linear algebra background

Section Gaussian Elimination

Review Questions REVIEW QUESTIONS 71

Solving Systems of Linear Equations

Numerical Methods - Numerical Linear Algebra

9.1 - Systems of Linear Equations: Two Variables

1 - Systems of Linear Equations

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

9. Numerical linear algebra background

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

Matrices and systems of linear equations

TMA4125 Matematikk 4N Spring 2017

MTH 464: Computational Linear Algebra

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

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

Y = ax + b. Numerical Applications Least-squares. Start with Self-test 10-1/459. Linear equation. Error function: E = D 2 = (Y - (ax+b)) 2

System of Linear Equations. Slide for MA1203 Business Mathematics II Week 1 & 2

Solution of Linear Equations

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

MIDTERM 1 - SOLUTIONS

Introduction to Mathematical Programming

Math 1314 Week #14 Notes

Scientific Computing

Methods for Solving Linear Systems Part 2

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

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

Chapter 1: Systems of Linear Equations

Midterm 1 Review. Written by Victoria Kala SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015

Math 4377/6308 Advanced Linear Algebra

Chapter 6 Page 1 of 10. Lecture Guide. Math College Algebra Chapter 6. to accompany. College Algebra by Julie Miller

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra

LU Factorization. Marco Chiarandini. DM559 Linear and Integer Programming. Department of Mathematics & Computer Science University of Southern Denmark

MH1200 Final 2014/2015

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Linear Methods (Math 211) - Lecture 2

Math 4377/6308 Advanced Linear Algebra

4 Elementary matrices, continued

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

POLI270 - Linear Algebra

Solving Systems of Linear Equations Using Matrices

LINEAR SYSTEMS (11) Intensive Computation

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix

MATH 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve:

Linear Algebraic Equations

MATH 3511 Lecture 1. Solving Linear Systems 1

Extra Problems: Chapter 1

Matrix Factorization Reading: Lay 2.5

(17) (18)

Matrices and RRE Form

Applied Linear Algebra

Review of Matrices and Block Structures

Section 6.2 Larger Systems of Linear Equations

Transcription:

1 MATHEMATICS FOR COMPUTER VISION WEEK 2 LINEAR SYSTEMS Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year 2013-14

OUTLINE OF WEEK 2 Linear Systems and solutions Systems of linear equations Solution sets Properties, under- and over-constrained systems Solving a linear system Variable elimination Row reduction Cramer s rule Matrix solution Systems with special structure Using LU, Cholenski and QR decomposition 2

3 SYSTEMS OF LINEAR EQUATIONS Week 2 Linear Systems

SYSTEM OF LINEAR EQUATIONS collection of linear equations on the same set of variables linear equation: each term is constant or product of a constant and a single variable example: solution: assignment of numbers to the variables there exist systems of nonlinear equations as well can be approximated by linear systems 4

GENERAL FORM AND MATRIX FORM system of m linear equations in n unknowns each unknown is a coefficient of a linear combination: so that the system can be expressed in matrix form: 5

SOLUTION SET solution set: set of all assignments to the variables such that the system is satisfied three possible cases: the system has no solution the system has one solution the system has infinitely many solutions why no 2 or 5 solutions?? a geometric representation can help show why 6

GEOMETRIC INTERPRETATION consider a system in two variables: x and y each equation determines a line in the plane of all possible values of (x,y) solution = intersection of the lines example: two equations what are the possible configurations? they can be parallel: no intersection (solution) they can intersect in one point (one solution) they can coincide: infinitely many solutions 7

GEOMETRIC INTERPRETATION - CONTINUED for three variables, each equation determines a plane in a three-dimensional space example: two equations in three variables, solution is generally a line general case: each linear equation determines a hyperplane in n-dimensional space 8

UNDER/OVERDETERMINED SYSTEMS fewer equations than unknown: infinitely many solutions system is said underdetermined same number of equations and unknowns: single unique solution system with more unknowns than equations: overdetermined this just most common behaviour: actual behaviour is determined by whether the equations are linearly dependent or inconsistent 9

INDEPENDENCE independence -> no equation can be derived from the others by algebraic means that means by multiplying them for a scalar and or adding them very related to linear independence of vectors (Week 1) example: are these independent? if not, how do you prove it? 10

CONSISTENCY (EXISTENCE OF SOLUTION) a linear system is consistent if there exists a solution inconsistent otherwise case of two equations in two variables: more interesting case: three equations can be inconsistent, even when each pair of them is consistent! example: 11

12 SOLVING A LINEAR SYSTEM Week 2 Linear Systems

SOLVING A LINEAR SYSTEM many different algorithms for solving a linear system we are going to describe the most common ones here this section: general purpose algorithm variable elimination row reduction Cramer s rule matrix solution next section: solution of systems with special structure by LU decomposition by Choleski decomposition by QR decomposition 13

VARIABLE ELIMINATION recursive algorithm: solve for one of the variables in the first equation (in terms of the other) plug resuling expression into other equations do the same for the result system with n - 1 unknowns and m - 1 equations example solving for x = 5 + 2z 3y in the first equation of the first system Solving for y = 2 + 3z in the first eq of the second system 14

ROW REDUCTION (GAUSSIAN ELIMINATION) the linear system is represented by an augmented matrix example: same system as before matrix is modified by elementary row operations 1. swap two rows 2. multiply row by a nonzero scalr 3. add to one row a scalar multiple of another at each step the new system is equivalent to original (same solution set) 15

CRAMER S RULE 16

MATRIX SOLUTION AND PSEUDOINVERSE 17

18 SYSTEMS WITH SPECIAL STRUCTURE Week 2 Linear Systems

SYSTEMS WITH SPECIAL STRUCTURES if A has some special structure, this can be exploited get faster or more accurate algorithms we consider a number of cases here: 4. if A is symmetric and definite positive Cholesky decomposition 5. if A is a Toeplitz matrix Levinson recursion if the matrix is sparse (very few non-zero entries) or..if the matrix if very large iterative methods, e.g. Jacobi 19

BY LU FACTORISATION applies to square systems only LUP factorisation: PA = LU where L and U are lower and upper triangular, respectively (Week 1) used to solve linear systems by decomposing the problem into two simpler ones Ly = Pb and Ux = y we get two systems with triangular matrices can be solved by forward substitution 20

BY CHOLENSKI DECOMPOSITION applies to systems with symmetric, definite positive matrix decomposes such a matrix A into A = L T L L is lower triangular, with positive diagonal entries (we only consider real numbers here) Problem is decomposed into two steps: Solving Ly = b by forward substitution Solving L T x = y by back substitution for linear systems that can be put in symmetric form, Cholesky factorisation has best performance in terms of efficiency and numerical stability 21

ITERATIVE METHODS: JACOBI 22

JACOBI SOLUTION: EXAMPLE 23

24 SUMMARY Week 2 Linear Systems

SUMMARY OF WEEK 2 LINEAR SYSTEMS systems of linear equations and solutions matrix form number of solutions geometric interpretation independence and consistency solution methods variable elimination Gaussian elimination Cramer s rule matrix solution and pseudoinverse systems with special structure Choleski and LU factorisation iterative methods (Jacobi) for large and/or sparse matrices 25