Introduction to Matrices and Vectors Sebastian van Delden USC Upstate

Slides:



Advertisements
Similar presentations
Chapter Matrices Matrix Arithmetic
Advertisements

Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Matrix Definition: An array of numbers in m rows and n colums is called an mxn matrix A square matrix of order n, is an (nxn) matrix.
Mathematics. Matrices and Determinants-1 Session.
MF-852 Financial Econometrics
Maths for Computer Graphics
Chapter 4.1 Mathematical Concepts
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Computer Graphics CSC 630 Lecture 2- Linear Algebra.
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
“No one can be told what the matrix is…
Matrices MSU CSE 260.
Matrices and Determinants
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
3.8 Matrices.
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Basics of Linear Algebra A review?. Matrix  Mathematical term essentially corresponding to an array  An arrangement of numbers into rows and columns.
Mathematical Fundamentals
Compiled By Raj G. Tiwari
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
Chapter 4.1 Mathematical Concepts
Vectors. Vectors and Direction Vectors are quantities that have a size and a direction. Vectors are quantities that have a size and a direction. A quantity.
Scalars and Vectors Scalars are quantities that are fully described by a magnitude (or numerical value) alone. Vectors are quantities that are fully described.
CSCE 552 Spring 2011 Math By Jijun Tang. Layered.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 : “shiv rpi” Linear Algebra A gentle introduction Linear Algebra has become as basic and as applicable.
A rectangular array of numbers (we will concentrate on real numbers). A nxm matrix has ‘n’ rows and ‘m’ columns What is a matrix? First column First row.
Chapter 4 Matrices By: Matt Raimondi.
Chapter 8 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
Statistics and Linear Algebra (the real thing). Vector A vector is a rectangular arrangement of number in several rows and one column. A vector is denoted.
Matrices. A matrix, A, is a rectangular collection of numbers. A matrix with “m” rows and “n” columns is said to have order m x n. Each entry, or element,
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
1.3 Matrices and Matrix Operations. A matrix is a rectangular array of numbers. The numbers in the arry are called the Entries in the matrix. The size.
Matrices and Determinants
MATRICES Operations with Matrices Properties of Matrix Operations
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry "Old Henry And His Old Aunt" Defined using right triangle  x y h.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
MTH108 Business Math I Lecture 20.
Properties and Applications of Matrices
MATRICES.
L6 matrix operations.
Matrix Algebra.
Section 2.4 Matrices.
MATRICES Operations with Matrices Properties of Matrix Operations
Matrix Algebra.
Laboratory in Oceanography: Data and Methods
Game Programming Algorithms and Techniques
Presentation transcript:

Introduction to Matrices and Vectors Sebastian van Delden USC Upstate

Introduction m rows n columns m  n matrix element in ith row, jth column When m = n, A is called a square matrix. Also written as A=  a ij  Definition: A matrix is a rectangular array of numbers.

Matrix Equality Definition: Let A and B be two matrices. These matrices are the same, that is, A = B if they have the same number of rows and columns, and every element at each position in A equals the element at corresponding position in B. * This is not trivial if elements are real numbers subject to digital approximation.

The Transpose of a Matrix Note that (X T ) T = X

5 Matrix Addition, Subtraction Let A =  a ij , B =  b ij  be m  n matrices. Then: –– A + B =  a ij + b ij , and A – B =  a ij – b ij 

Properties of Matrix Addition  Commutative:A + B = B + A  Associative:A + (B + C) = (A + B) + C

Inventories Makealot, Inc. manufactures widgets, nerfs, smores, and flots. It supplies three different warehouses (#1,#2,#3). Opening inventory: Sales:Closing inventory: – = w n s f #1 #2 #3

Scalar Multiplication Associative:c 1 (c 2 A) = (c 1 c 2 )A Distributive:(c 1 + c 2 ) A = c 1 A + c 2 A

Matrix Multiplication Let A be an m  k matrix, and B be a k  n matrix. Then their product is: AB=[c ij ]

Matrix Multiplication Let A be an m  k matrix, and B be a k  n matrix. Then their product is: AB=[c ij ] cbababa 

Matching Dimensions To multiply two matrices, the dimensions must match: 2  3 3  4 have to be equal 2  4 matrix 232334342424 8 dot products

Multiplicative Properties Note even if AB is defined, BA might not be. Example: If A is 3  4, B is 4  6, then AB is a 3  6 matrix, but BA is not defined. Even if both AB and BA are defined, they may not have the same dimensions. Even if they do, the result might not be equal. However, provided that the dimensions match, (AB)C = A(BC)

Chained Matrix Multiplication

Example

Ways of Parenthesizing a product of n matrices Let T(n) be the number of essentially distinct ways of parenthesizing a product of n matrices. The values of T(n) are known as Catalan numbers. Here are few values of T(n): n … 10 … 15 T(n) … 4862 … It can be shown that T(n) = Ω(2 2n /n 2 )

Identity Matrix The identity matrix is a square matrix with all 1’s along the diagonal and 0’s elsewhere. Example: For an m  n matrix A, I m A = A I n ( m  m) (m  n) = (m  n) (n  n)

Inverse Matrix Let A and B be n  n matrices. If AB=BA=I n then B is called the inverse of A, denoted B=A -1. Not all square matrices are invertible.

Symmetric Matrix If matrix A is such that A = A T then it is called a symmetric matrix. For example: Note also that I n is symmetric. Note, for A to be symmetric, is has to be square. Note also that I n is trivially symmetric.

Vectors An m element column vectorA q element row vector Transpose the column Transpose the row

Vectors A 1xN or Nx1 matrix  1xN is called a row vector  Nx1 is called a column vector  N is the dimension of the vector Vectors can be drawn as arrows and so have a direction and a magnitude. Magnitude:

Drawing Vectors x y a = (8,5) 8 5

Unit Vectors Magnitude is 1 A normalized vector is a unit vector that has be obtained by divided each dimension of a vector by its magnitude.  It has the same direction as the original vector.  Important because something direction is all that is important – magnitude is not needed… x a = (8,5) 8 5 y|a| = sqrt( ) =~ 9.4 Normalized a, a’ = (8/9.4, 5/9.4) = (.85,.53) a’ = (.85,.53)

Geometry of Vectors x y (a, b) a b If m is magnitude: a = m. cos, b = m. sin For unit vectors: a = cos, b = sin = tan -1 (b/a)

Addition - preserves direction and magnitude. - application: robot position translations - tip to tail method: x y v u u + v

Subtraction - application: can represent robot position error vector - u – v, a vector originating in v and ending in u x y v u u - v

Multiplication with a scalar - can change magnitude and direction (if multiplied with a negative number. x y v u ½ v -u

Cross Product Produces a vector perpendicular (normal) to the plane created by the 2 vectors. u x v v u

Cross product Direction is determined by the right hand rule  Put hand on first vector (left side of x) and curl fingers towards second vector. Magnitude of u x v is |u|. |v|. sin(theta) where theta is the angle between u and v So, cross product produces a vector

Dot product Length of the projection of one vector onto a another.  u. v Dot product is |u|. |v|. cos(theta) where theta is the angle between u and v So, dot product produces a scalar Note: is u and v and unit vectors, the dot product is simply: cos(theta) u v cos (theta) theta

Dot and cross products Dot product from unit vectors:  As angle approaches 0, dot product approaches 1  As angle approaches 90, dot product approaches 0 Cross product from unit vectors:  As angle approaches 0, dot product approaches 0  As angle approaches 90, dot product approaches 1

Finally…. Perpendicular vectors (dot product = 0) are called orthogonal vectors. Orthogonal unit vectors are called orthonormal vectors. Think: what do you need to represent a 3D coordinate system…? Three orthonormal vectors: X, Y, and Z….