Vectors and Matrices Class 17.1 E: Ch. 5.

Slides:



Advertisements
Similar presentations
CS 450: COMPUTER GRAPHICS LINEAR ALGEBRA REVIEW SPRING 2015 DR. MICHAEL J. REALE.
Advertisements

Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
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.
Chapter 2 Matrices Definition of a matrix.
1 Neural Nets Applications Vectors and Matrices. 2/27 Outline 1. Definition of Vectors 2. Operations on Vectors 3. Linear Dependence of Vectors 4. Definition.
Solution of Simultaneous Linear Equations (AX=B)
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Chapter 2 Section 3 Arithmetic Operations on Matrices.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Lesson 4 Review of Vectors and Matrices. Vectors A vector is normally expressed as or in terms of unit vectors likewise.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Vectors and Scalars Vector and scalar quantities Adding vectors geometrically Components Unit Vectors Dot Products Cross Products pps by C Gliniewicz.
Chapter 3: VECTORS 3-2 Vectors and Scalars 3-2 Vectors and Scalars
Matrix Mathematics in MATLAB and Excel
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered.
Matrices The Basics Vocabulary and basic concepts.
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
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Solving Systems of Equations and Inequalities
Compiled By Raj G. Tiwari
Chapter 2 Solving Linear Systems Matrix Definitions –Matrix--- Rectangular array/ block of numbers. –The size/order/dimension of a matrix: (The numbers.
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
Solving Systems of Equations and Inequalities Section 3.1A-B Two variable linear equations Section 3.1C Matrices Resolution of linear systems Section 3.1D.
Chapter 4.1 Mathematical Concepts
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Review for Chapter 4 Important Terms, Symbols, Concepts 4.1. Systems of Linear Equations in Two Variables.
3-2 Vectors and Scalars  Is a number with units. It can be positive or negative. Example: distance, mass, speed, Temperature… Chapter 3 Vectors  Scalar.
4.4 & 4.5 Notes Remember: Identity Matrices: If the product of two matrices equal the identity matrix then they are inverses.
1 Math Review Coordinate systems 2-D, 3-D Vectors Matrices Matrix operations.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Unit 6 : Matrices.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
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.
Chun-Yuan Lin Mathematics for Computer Graphics 2015/12/15 1 CG.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
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.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Linear Algebra Review Tuesday, September 7, 2010.
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.
Vectors in the Plane 8.3 Part 1. 2  Write vectors as linear combinations of unit vectors.  Find the direction angles of vectors.  Use vectors to model.
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, Vectors, Determinants.
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.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
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.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
Matrices and Vector Concepts
Linear Algebraic Equations and Matrices
Chapter 7 Matrix Mathematics
Matrix Operations SpringSemester 2017.
Warm-up a. Solve for k: 13 −5
MATRICES MATRIX OPERATIONS.
Review of Matrix Algebra
CSE 541 – Numerical Methods
2.2 Introduction to Matrices
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
Presentation transcript:

Vectors and Matrices Class 17.1 E: Ch. 5

Objectives Know what a Cartesian coordinate system is. Know the difference between a scalar and a vector. Review/learn how to interpret, add, subtract, and find the magnitude of vectors Know how to use the right hand rule.

Objectives Be able to calculate the determinant of a matrix. Be able to calculate the dot and cross products of vectors Be able to represent a system of linear equations as matrices and vectors. Be able to solve systems of linear equations using matrices.

Cartesian Coordinates The Cartesian coordinate system is a system of orthogonal axes which is the basis for describing body and force systems in mechanics. The coordinate system is always right handed (obeys the right hand rule. We will focus on 2D systems. x y z

Scalars and Vectors A scalar is a physical quantity having magnitude but not direction Length, mass, time A vector is a physical quantity having both magnitude and direction Force, velocity, acceleration

Vectors Vectors have components along axes of the Cartesian system x, y, and z axes are denoted by unit vectors carat often used to imply unit vector Unit vectors have a magnitude (length) of one. x y z a b c

Vectors Consider the 2D vector magnitude (length) angle w/ horizontal 5 4 3 2 1 -1 -2 q

Dot Product Dot product is a vector operation. The result is a scalar. Dot product of matrices does not exist. The result is a scalar. Using tools: TI-83,86: dot TI-89: dotp Maple: dotprod Matlab: dot

Dot Product: Consider the 2D case: Plot these vectors.

Vector Addition & Subtraction 5 4 3 2 1 -1 -2 q When adding, treat each direction separately To add, place vectors head to tail The negative of a vector is simply pointing in the opposite direction The sum of vectors is called the resultant.

Matrix and Vector A matrix is an n x m array of numbers n rows, m columns The ij-th element, aij, is the element in row i and column j A vector is a matrix that has only one row or only one column

Basic Functions The transpose is obtained by swapping columns and rows In Matlab: apostrophe The addition operation requires dimensional agreement. i.e. to add a m x n matrix and a q x r matrix, must have m = q and n = r Matrix addition is done by corresponding element

Matrix Multiplication Matrix multiplication requires inner-dimensional agreement i.e. to multiply a m x n matrix and a q x r matrix, must have n = q Matrix multiplication is done by summing elementwise multiplication of row i in the first matrix with column j of the second matrix to get the ij-th element of the product.

Matrix Multiplication

Determinant The determinant operation applies to a square matrix (# rows = # columns) Denoted with bars 2x2 case:

Determinant alternate sign For the 3x3 case:

Determinant For higher order cases uses tools. TI-86,89: det Maple: > with(linalg); > det([[1,5,7],[2,4,8],[3,6,9]]); Matlab: det

Cross Product The cross product is a vector operation yields a vector according to the right-hand-rule Also have:

Cross Product Example: Using your tools. TI-89: crossp([1,5,7],[2,4,8]) Maple: > with(linalg); > crossprod([[1,5,7],[2,4,8]); Matlab: cross([1 5 7],[2 4 8])

Inverse A matrix times its inverse equals the identity matrix Identity: All elements on the main diagonal are 1, all others are 0; matrix version of the scalar 1. Matrix division is undefined Using TI-89: ([[1,5,7][2,4,8][3,6,9]])^-1 Matlab: inv([1,5,7; 2,4,8; 3,6,9]); Using Maple: inverse([[1,5,7],[2,4,8],[3,6,9]]); A-1 =

Linear Equations A linear equation is of the form: where the ai’s are constants (coefficients) In order to solve for n unknowns (xn), n independent equations are needed.

2 Equations, 2 Unknowns Consider the system of equations: 3 things can happen: Exactly one solution (lines intersect)  independent No solution (lines are parallel) Infinite number of solutions (same line)

Solving Systems of Equations Consider a system of 3 eqns, 3 unknowns: This can be written as: Using inverses can only be used if there is a single, unique solution; If multiple or no solutions exist, the inverse does not exist x =

Solving Systems of Equations Using your tools: Using Maple: multiply(inverse([[2,4,4],[1,2,1],[3,4,-2]]),[[12],[4],[1]]); Using TI-89 (([[1,5,7],[2,4,8],[3,6,9]])^-1)*([12;4;1]) Or use ‘solve’ Using Matlab: inv ([2,4,4; 1,2,1; 3,4,-2])*[12; 4; 1]);

Homework WebAssign Your documentation of your homework is 20% of your webassign assignment grade. Homework documentation is due at the beginning of class when the webassign homework is due. If webassign is not due at the beginning of a class, your documentation is due at the beginning of the immediate next class or lab. If you need a refresher on problem presentation, read Ch. 2 in Eide