engineering analysis eng 3420 fall 2009
play

Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: - PowerPoint PPT Presentation

Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00 Lecture 17 Reading assignment Chapters 10 and 11, Linear Algebra ClassNotes Last time: Symmetric matrices; Hermitian matrices.


  1. Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00

  2. Lecture 17 � Reading assignment Chapters 10 and 11, Linear Algebra ClassNotes � Last time: � Symmetric matrices; Hermitian matrices. � Matrix multiplication � Today: � Linear algebra functions in Matlab � The inverse of a matrix � Vector products � Tensor algebra � Characteristic equation, eigenvectors, eigenvalues � Norm � Matrix condition number � Next Time � More on � LU Factorization � Cholesky decomposition Lecture 17 2

  3. Matrix analysis in MATLAB � Matrix or vector norm Norm � Estimate the matrix 2-norm normest � Matrix rank rank � Determinant det � Sum of diagonal elements trace � Null space null � Orthogonalization orth � Reduced row echelon form rref � Angle between two subspaces subspace

  4. Eigenvalues and singular values � Eigenvalues and eigenvectors eig � Singular value decomposition svd � A few eigenvalues eigs � A few singular values svds � Characteristic polynomial poly � Polynomial eigenvalue problem polyeig � Condition number for eigenvalues condeig � Hessenberg form hess � QZ factorization qz � Schur decomposition schur

  5. Matrix functions � Matrix exponential Expm � Matrix logarithm Logm � Matrix square root Sqrtm � Evaluate general matrix function Funm

  6. Linear systems of equations � Linear equation solution \ and / � Matrix inverse inv � Condition number for inversion cond � 1-norm condition number estimate condest � Cholesky factorization chol � Incomplete Cholesky factorization cholinc � Solve a system of linear equations linsolve � LU factorization lu � Incomplete LU factorization ilu � Incomplete LU factorization luinc � Orthogonal-triangular decomposition qr lsqnonneg � Nonnegative least-squares � Pseudoinverse pinv � Least squares with known covariance lscov

  7. Distance and norms � Metric space � a set where the ”distance” between elements of the set is defined, e.g., the 3-dimensional Euclidean space. The Euclidean metric defines the distance between two points as the length of the straight line connecting them. � A norm � real-valued function that provides a measure of the size or “length” of an element of a vector space.

  8. Vector Norms ⎛ ⎞ 1/ p n ∑ p � The p -norm of a vector X is: p = X ⎜ x i ⎟ ⎝ ⎠ i = 1 � Important examples of vector p -norms include: n ∑ p = 1:sum of the absolute values X 1 = x i i = 1 n ∑ p = 2 :Euclidian norm (length) X 2 = X e = 2 x i i = 1 p = ∞ :maximum − magnitude X ∞ = max x i 1 ≤ i ≤ n

  9. Matrix Norms � Common matrix norms for a matrix [ A ] include: n ∑ 1 = column - sum norm A a ij max 1 ≤ j ≤ n i = 1 n n ∑ ∑ f = 2 Frobenius norm A a ij i = 1 j = 1 n ∑ ∞ = row - sum norm A a ij max 1 ≤ i ≤ n j = 1 ( ) 1 / 2 2 = μ max spectral norm (2 norm) A � Note - μ max is the largest eigenvalue of [ A ] T [ A ].

  10. Matrix Condition Number � The matrix condition number Cond[ A ] is obtained by calculating Cond[ A ]=|| A ||·|| A -1 || � In can be shown that: Δ X [ ] Δ A ≤ Cond A X A � The relative error of the norm of the computed solution can be as large as the relative error of the norm of the coefficients of [ A ] multiplied by the condition number. � If the coefficients of [ A ] are known to t digit precision, the solution [ X ] may be valid to only t -log 10 (Cond[ A ]) digits.

  11. Built-in functions to compute norms and condition numbers � norm( X , p ) � Compute the p norm of vector X , where p can be any number, inf , or ‘fro’ (for the Euclidean norm) � norm( A , p ) � Compute a norm of matrix A , where p can be 1, 2, inf, or ‘fro’ (for the Frobenius norm) � cond( X , p ) or cond( A , p ) � Calculate the condition number of vector X or matrix A using the norm specified by p .

Recommend


More recommend