Sundermeyer MAR 550 Spring 2013 1 Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.

Slides:



Advertisements
Similar presentations
CSNB143 – Discrete Structure
Advertisements

Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Mathematics. Matrices and Determinants-1 Session.
MF-852 Financial Econometrics
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
Review of Matrix 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.
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrices MSU CSE 260.
Matrices and Determinants
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
3.8 Matrices.
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
Compiled By Raj G. Tiwari
Linear Algebra Review 1 CS479/679 Pattern Recognition Dr. George Bebis.
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.
ECON 1150 Matrix Operations Special Matrices
MATLAB Basics With a brief review of linear algebra by Lanyi Xu modified by D.G.E. Robertson.
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.
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.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Multivariate Statistics Matrix Algebra I W. M. van der Veld University of Amsterdam.
Introduction to Matrices and Vectors Sebastian van Delden USC Upstate
Matrices Matrices A matrix (say MAY-trix) is a rectan- gular array of objects (usually numbers). An m  n (“m by n”) matrix has exactly m horizontal.
2009/9 1 Matrices(§3.8)  A matrix is a rectangular array of objects (usually numbers).  An m  n (“m by n”) matrix has exactly m horizontal rows, and.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
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.
For real numbers a and b,we always have ab = ba, which is called the commutative law for multiplication. For matrices, however, AB and BA need not be equal.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
Review of Matrix Operations Vector: a sequence of elements (the order is important) e.g., x = (2, 1) denotes a vector length = sqrt(2*2+1*1) orientation.
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
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.
Sec 4.1 Matrices.
Unit 3 Matrix Arithmetic IT Disicipline ITD 1111 Discrete Mathematics & Statistics STDTLP 1 Unit 3 Matrix Arithmetic.
Matrices and Determinants
MATRICES Operations with Matrices Properties of Matrix Operations
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.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
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.
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.
Matrices Introduction.
MTH108 Business Math I Lecture 20.
Boyce/DiPrima 10th ed, Ch 7.2: Review of Matrices Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
Matrices.
Christmas Packets are due on Friday!!!
Linear Algebra review (optional)
Review of Matrix Operations
1.4 Inverses; Rules of Matrix Arithmetic
Finding the Inverse of a Matrix
MATHEMATICS Matrix Multiplication
L6 matrix operations.
Matrix Operations.
Matrix Algebra.
Section 2.4 Matrices.
Matrices and Matrix Operations
Matrix Algebra.
Linear Algebra review (optional)
Laboratory in Oceanography: Data and Methods
Presentation transcript:

Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review

Sundermeyer MAR 550 Spring Nomenclature: scalar: A scalar is a variable that only has magnitude, e.g. a speed of 40 km/h, 10, a, (42 + 7), , log 10 (a) vector: A geometric entity with both length and direction; a quantity comprising both magnitude and direction, e.g. a velocity of 40 km/h north, velocity u, position x = (x, y, z) array: An indexed set or group of elements, also can be used to represent vectors, e.g., row vector/array:column vector/array: Linear Algebra and Calculus Review

Sundermeyer MAR 550 Spring matrix: A rectangular table of elements (or entries), which may be numbers or, more generally, any abstract quantities that can be added and multiplied; effectively a generalized array or vector - a collection of numbers ordered by rows and columns. [2 x 3] matrix: [m x n] matrix: Linear Algebra and Calculus Review

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Examples (special matrices): A square matrix has as many rows as it has columns. Matrix A is square but matrix B is not: A symmetric matrix is a square matrix in which x ij = x ji, for all i and j. A symmetric matrix is equal to its transpose. Matrix A is symmetric; matrix B is not.

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review A diagonal matrix is a symmetric matrix where all the off diagonal elements are 0. The matrix D is diagonal. An identity matrix is a diagonal matrix with only 1’s on the diagonal. For any square matrix, A, the product IA = AI = A. The identity matrix is generally denoted as I. IA = A:

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Example (system of equations): Suppose we have a series of measurements of stream discharge and stage, measured at n different times. time (day) = [ ] stage (m) = [ ] discharge (m 3 /s) = [ ] Suppose we now wish to fit a rating curve to these measurements. Let x = stage, y = discharge, then we can write this series of measurements as: y i = mx i + b, with i = 1:n. This in turn can be written as: y = X b, or:

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review y i = mx i + b y = X b

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Vectors: Addition/Subtraction: Two vectors can be added/subtracted if and only if they are of the same dimension. Example:

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Scalar Multiplication: If k is a scalar and A is a n-dimensional vector, then Example: Example: A + B – 3C, where

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Dot Product: Let be two vectors of length n. Then the dot product of the two vectors u and v is defined as A dot product is also an inner product. Example: Example (divergence of a vector):

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Dot Product and Scalar Product Rules:  u·v is a scalar  u·v = v·u  u·0 = 0 = 0·u  u·u = ||u|| 2  (ku)·v = (k)u·v = u·(kv) for k scalar  u·(v ± w) = u·v ± u·w

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Cross Product: Let be two vectors of length 3. Then the cross product of the two vectors u and v is defined as Example: Example (curl of a vector):

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Cross Product Rules: u × v is a vector u × v is orthogonal to both u and v u × 0 = 0 = 0 x u u × u = 0 u × v = -(v × u) (ku) × v = k(u × v) = u × (kv) for any scalar k u × (v + w) = (u × v) + (u × w) (v + w) × u = (v × u) + (w × u)

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review NOTE: In general, for a vector A and a scalar k, kA = Ak. However, when computing the gradient of a scalar, the scalar product is not commutative because  itself is not commutative, i.e.,

Sundermeyer MAR 550 Spring Matrix Algebra: Matrix Addition: To add two matrices, they both must have the same number of rows and the same number of columns. The elements of the two matrices are simply added together, element by element. Matrix subtraction works in the same way, except the elements are subtracted rather than added. A + B: Linear Algebra and Calculus Review

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Example: Matrix Addition Rules: Let A, B and C denote arbitrary [m x n] matrices where m and n are fixed. Let k and p denote arbitrary real numbers. A + B = B + A A + (B + C) = (A + B) + C There is an [m x n] matrix of 0’s such that 0 + A = A for each A For each A there is an [m x n] matrix –A such that A + (-A) = 0 k(A + B) = kA + kB (k+p)A = kA + pA (kp)A = k(pA)

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Matrix Transpose: Let A and B denote matrices of the same size, and let k denote a scalar. A T (also denoted A’): [m x n] [n x m] Example:

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Matrix Transpose Rules: If A is an [m x n] matrix, then A T is an [n x m] matrix. (A T ) T = A (kA) T = kA T (A + B) T = A T + B T

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Matrix Multiplication: There are several rules for matrix multiplication. The first concerns the multiplication between a matrix and a scalar. Here, each element in the product matrix is simply the element in the matrix multiplied by the scalar. Scalar Multiplication sA: Example:

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Matrix Product AB: This is multiplication of a matrix by another matrix. Here, the number of columns in the first matrix must equal the number of rows in the second matrix, e.g., [m × n][n × m] = [m × m]. = [m × m] matrix whose (i,j) entry is the dot product of the ith row of A and the jth column of B. Example (inner (dot) product): [1 x 3][3 x 1] = [1 x 1]

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Example (outer product): Example (general matrix product): [2 x 3] [3 x 2][2 x 2] [3 x 1][1 x 3] = [3 x 3]

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Matrix Multiplication Rules: Assume that k is an arbitrary scalar and that A, B, and C, are matrices of sizes such that the indicated operations can be performed. IA = A, BI = B A(BC) = (AB)C A(B + C) = AB + AC, A(B – C) = AB – AC (B + C)A = BA + CA, (B – C)A = BA – CA k(AB) = (kA)B = A(kB) (AB) T = B T A T NOTE: In general, matrix multiplication is not commutative: AB ≠ BA

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Matrix Division: There is no simple division operation, per se, for matrices. This is handled more generally by left and right multiplication by a matrix inverse. Matrix Inverse: The inverse of a matrix is defined by the following: AB = I = BA if and only if A is the inverse of B. We then write: AA -1 = A -1 A = 1 = BB -1 = B -1 B NOTE: Consider general matrix expression:: A X = B A -1 A X = A -1 B 1 X = A -1 B X = A -1 B Also note, not all matrices are invertible; e.g., the matrix has no inverse.

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Special Matrix Algebra Rules in Matlab: Matrix + Scalar Addition: A + s: Example:

Sundermeyer MAR 550 Spring Linear Algebra and Calculus Review Special Matrix Algebra Rules in Matlab: Matrix times matrix ‘dot’ multiplication, A.* B (similar for ‘dot’ division A./ B): Example: