Richard Fateman CS 282 Lecture 111 Determinants Lecture 11.

Slides:



Advertisements
Similar presentations
5.1 Real Vector Spaces.
Advertisements

Elementary Linear Algebra Anton & Rorres, 9th Edition
Applied Informatics Štefan BEREŽNÝ
Discussion #33 Adjacency Matrices. Topics Adjacency matrix for a directed graph Reachability Algorithmic Complexity and Correctness –Big Oh –Proofs of.
Lecture 17 Path Algebra Matrix multiplication of adjacency matrices of directed graphs give important information about the graphs. Manipulating these.
Matrices: Inverse Matrix
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
Linear Inequalities and Linear Programming Chapter 5
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Calculating Spectral Coefficients for Walsh Transform using Butterflies Marek Perkowski September 21, 2005.
Lecture 15 Recursive and Iterative Formula for Determinants Shang-Hua Teng.
4.I. Definition 4.II. Geometry of Determinants 4.III. Other Formulas Topics: Cramer’s Rule Speed of Calculating Determinants Projective Geometry Chapter.
Chapter 2 Section 1 Solving a System of Linear Equations (using Matrices)
Matrices and Systems of Equations
Chapter 3 Determinants and Matrices
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
New Approach to Quantum Calculation of Spectral Coefficients Marek Perkowski Department of Electrical Engineering, 2005.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 86 Chapter 2 Matrices.
Chapter 5 Determinants.
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
LIAL HORNSBY SCHNEIDER
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems: College Algebra.
Linear Algebra With Applications by Otto Bretscher. Page The Determinant of any diagonal nxn matrix is the product of its diagonal entries. True.
SYSTEMS OF LINEAR EQUATIONS
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Chapter 10 Review: Matrix Algebra
Efficiant polynomial interpolation algorithms
Eigenvalue Problems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. The second main.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
 Row and Reduced Row Echelon  Elementary Matrices.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Chapter 2 Determinants. The Determinant Function –The 2  2 matrix is invertible if ad-bc  0. The expression ad- bc occurs so frequently that it has.
Systems of Linear Equation and Matrices
Linear Systems Gaussian Elimination CSE 541 Roger Crawfis.
1 Chapter 6 – Determinant Outline 6.1 Introduction to Determinants 6.2 Properties of the Determinant 6.3 Geometrical Interpretations of the Determinant;
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 9 Matrices and Determinants.
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
Prerequisites: Fundamental Concepts of Algebra
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 3 Polynomial and Rational Functions Copyright © 2013, 2009, 2005 Pearson Education, Inc.
 6.2 Pivoting Strategies 1/17 Chapter 6 Direct Methods for Solving Linear Systems -- Pivoting Strategies Example: Solve the linear system using 4-digit.
Great Theoretical Ideas in Computer Science.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Solving Linear Systems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. Solving linear.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
4.5 Inverse of a Square Matrix
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
L 7: Linear Systems and Metabolic Networks. Linear Equations Form System.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
RECOGNIZING INCONSISTENT LINEAR SYSTEMS. What is an Inconsistent Linear System?  An inconsistent linear system is a system of equations that has no solutions.
Linear Algebra Chapter 2 Matrices.
H.Melikian/12101 System of Linear Equations and Augmented Matrices Dr.Hayk Melikyan Departmen of Mathematics and CS
Prof. Amr Goneid, AUC1 Analysis & Design of Algorithms (CSCE 321) Prof. Amr Goneid Department of Computer Science, AUC Part 3. Time Complexity Calculations.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
1 Numerical Methods Solution of Systems of Linear Equations.
Linear Algebra With Applications by Otto Bretscher.
Copyright © Cengage Learning. All rights reserved.
September 4, 1997 Applied Symbolic Computation (CS 300) Dixon’s Algorithm for Solving Rational Linear Systems Jeremy R. Johnson.
Chapter 2 Determinants Basil Hamed
Chapter 2 Determinants.
Numerical Analysis Lecture11.
Presentation transcript:

Richard Fateman CS 282 Lecture 111 Determinants Lecture 11

Richard Fateman CS 282 Lecture 112 Computing Determinants comes up frequently Numerous calculations can be phrased as matrix determinant calculations Eigenvalues Resultants Solution of linear systems This doesn’t mean you SHOULD compute these by determinants necessarily...

Richard Fateman CS 282 Lecture 113 Sparse Matrices A numerical matrix of size n X m is sparse if it has k << mn non-zero terms. A symbolic matrix could either be numerically sparse or could have many terms where each term is a sparse polynomial. The most extreme sparse matrix in this second sense would be one in which each entry is a distinct term that combines with nothing else. e.g.

Richard Fateman CS 282 Lecture 114 Sparse Matrices A numerical matrix of size n X m is sparse if it has k << mn non-zero terms. A symbolic matrix could either be numerically sparse or could have many terms where each term is a sparse polynomial. The most extreme sparse matrix in this second sense would be one in which each entry is a distinct term that combines with nothing else. e.g. 3X4

Richard Fateman CS 282 Lecture 115 How large is a sparse NxN determinant? N! terms. Each term is size N. For example, the generic 3x3 matrix has determinant a 1,1 a 2,2 a 3,3 -a 1,2 a 2,1 a 3,3 - a 1,1 a 2,3 a 3,2 +a 1,3 a 2,1 a 3,2 +a 1,2 a 2,3 a 3,1 -a 1,3 a 2,2 a 3,1. with, as expected, six terms

Richard Fateman CS 282 Lecture 116 How large is a sparse NxN determinant? and since we are using a computer to generate this, we can show you the 24 terms of the 4x4 determinant: a 1,1 a 2,2 a 3,3 a 4,4 -a 1,2 a 2,1 a 3,3 a 4,4 -a 1,1 a 2,3 a 3,2 a 4,4 +a 1,3 a 2,1 a 3,2 a 4,4 +a 1,2 a 2,3 a 3,1 a 4,4 - a 1,3 a 2,2 a 3,1 a 4,4 -a 1,1 a 2,2 a 3,4 a 4,3 +a 1,2 a 2,1 a 3,4 a 4,3 +a 1,1 a 2,4 a 3,2 a 4,3 -a 1,4 a 2,1 a 3,2 a 4,3 - a 1,2 a 2,4 a 3,1 a 4,3 +a 1,4 a 2,2 a 3,1 a 4,3 +a 1,1 a 2,3 a 3,4 a 4,2 -a 1,3 a 2,1 a 3,4 a 4,2 - a 1,1 a 2,4 a 3,3 a 4,2 +a 1,4 a 2,1 a 3,3 a 4,2 +a 1,3 a 2,4 a 3,1 a 4,2 -a 1,4 a 2,3 a 3,1 a 4,2 - a 1,2 a 2,3 a 3,4 a 4,1 +a 1,3 a 2,2 a 3,4 a 4,1 +a 1,2 a 2,4 a 3,3 a 4,1 -a 1,4 a 2,2 a 3,3 a 4,1 - a 1,3 a 2,4 a 3,2 a 4,1 +a 1,4 a 2,3 a 3,2 a 4,1 typeset kind of peculiarly, but not too bad. This is actually a sum over all permutations of the indices X a coefficient which is the “sign” of the permutation As happens with many facts about determinants, you should be able to prove that this determinant has N! terms a few different ways. Here’s another...

Richard Fateman CS 282 Lecture 117 How large is a sparse NxN determinant? Here are the 24 terms of the 4x4 determinant expanded in minors around the first row : a 1,1 (a 2,2 (a 3,3 a 4,4 -a 3,4 a 4,3 )-a 2,3 (a 3,2 a 4,4 -a 3,4 a 4,2 )+a 2,4 (a 3,2 a 4,3 -a 3,3 a 4,2 ))-a 1,2 (a 2,1 (a 3,3 a 4,4 -a 3,4 a 4,3 )-a 2,3 (a 3,1 a 4,4 -a 3,4 a 4,1 )+a 2,4 (a 3,1 a 4,3 -a 3,3 a 4,1 ))+a 1,3 (a 2,1 (a 3,2 a 4,4 -a 3,4 a 4,2 )-a 2,2 (a 3,1 a 4,4 -a 3,4 a 4,1 )+a 2,4 (a 3,1 a 4,2 -a 3,2 a 4,1 ))-a 1,4 (a 2,1 (a 3,2 a 4,3 -a 3,3 a 4,2 )- a 2,2 (a 3,1 a 4,3 -a 3,3 a 4,1 )+a 2,3 (a 3,1 a 4,2 -a 3,2 a 4,1 )) Which also gives us another proof there are N! terms. Looking around for on-line summaries of the many useful and elementary properties of the determinant, I found this:

Richard Fateman CS 282 Lecture 118 N*N! vs O(1). The size of any numerical (floating point) determinant of any size is a constant (one fp number). Are there intermediate positions and complexities? How best to compute symbolic determinants? Note that SOME symbolic determinants will be small (even zero!) One of my favorite papers is M. Gentleman and S. Johnson, Analysis of Algorithms, A Case Study: Determinants of Matrices with Polynomial Entries ACM Transactions on Mathematical Software (TOMS) Volume 2, Issue 3 (September 1976) [DOI] gentleman.pdf

Richard Fateman CS 282 Lecture 119 Two models All elements distinct symbols (the model already discussed). All elements are univariate polynomials dense to the same degree.

Richard Fateman CS 282 Lecture 1110 Two distinct algorithms: Gaussian elimination The Gaussian elimination method, using exact division, is appropriate for computations over the integers; If we ignore pivoting, the algorithm consists of n -1 steps, indexed by a variable k running from 1 to n - 1. The k th step involves the computation of an n -k +1 by n -k +1 matrix, which we shall call A (k+l) ; the entries will be denoted a ij (k+1) with k · i, j · n. The original matrix is identified with A (1). For each k, the entry a ij (k+1) is computed by the formula a ij (k+1) = (a kk (k) a ij (k) - a ik (k) a kj (k) )/a k-1,k-1 (k-1) for k +l · i, j · n, where A (0) is taken to be 1. The division is always exact, so each a ij k is a polynomial and a nn (n) is the determinant of A (n)

Richard Fateman CS 282 Lecture 1111 Cost of Gaussian elimination / I An analysis of this algorithm shows that each a (k) is a determinant (minor) of some k-by-k submatrix of the original matrix. Since we assumed all entries in the original matrix to be of the same size, we may expect that all elements in A (k), for a given i, are the same size.

Richard Fateman CS 282 Lecture 1112 Cost of Gaussian elimination / II

Richard Fateman CS 282 Lecture 1113 Cost of Gaussian elimination / II

Richard Fateman CS 282 Lecture 1114 Cost of Expansion by Minors this goes a long way toward explaining why numerical analysts don’t do this.