Chapter 2: Numeric, Cell, and Structure Arrays

Size: px
Start display at page:

Download "Chapter 2: Numeric, Cell, and Structure Arrays"

Transcription

1 Chapter 2: Numeric, Cell, and Structure Arrays Topics Covered: Vectors Definition Addition Multiplication Scalar, Dot, Cross Matrices Row, Column, Square Transpose Addition Multiplication Scalar-Matrix, Matrix-Matrix Element-by-Element Operations Multiplication, Division, Exponentiation, Vectorized Functions Array Addressing

2 Vectors A Scalar is a number that has magnitude but no direction (Temperature reading on a thermometer, pressure reading on a pressure gage) A Vector has both magnitude and direction. Vectors are used by engineers to represent position, velocity, acceleration, force, torque, angular velocity, angular acceleration, linear momentum, angular momentum, heat flux, magnetic flux, etc.

3 The Vector a is composed of three Cartesian Components: a = a x i + a y j + a z k i, j, and k are Unit Vectors in the x, y, z directions. The Length of a Unit Vector is one. The Length of the Vector a is called its Magnitude: a = a 2 x + a 2 y + a2 z Vectors are represented in MATLAB as: a = a x, a y, a z or a x a y a z

4 Open up a new MATLAB Script File:

5 Vector Addition: Add the corresponding Components of the two Vectors: a + b = a x, a y, a z + b x, b y, b z a + b = (a x +b x ), (a y + b y ), (a z + b z ) a b = (a x b x ), (a y b y ), (a z b z ) Modify and run the Script File as follows:

6 Vector Multiplication Scalar Vector: Distribute the Scalar to each Component of the Vector: c a = ca x, ca y, ca z Modify and run the Script File as follows:

7 Vector Dot Product Vector Vector: Sum of the products of the corresponding Components of the two Vectors. a b = a b cos θ = Scalar a b = b a = a x b x + a y b y + a z b z Modify and run the Script File as follows:

8 Vector Cross Product Vector Vector: Results in a Vector Normal (Perpendicular) to the plane defined by the two vectors being crossed. a b = ( a b sin θ) n = Vector n is the Unit Vector Normal to the Plane. a b = b a = i j k a x a y a z b x b y b z Determinant Method a b = a y b z a z b y i a x b z a z b x j + a x b y a y b x k

9 Modify and run the Script File as follows:

10 Matrices A Matrix is a rectangular Array of numbers arranged in Rows and Columns. The individual numbers in a Matrix are called Elements. A = A 11 A 12 A 13 A 21 A 22 A 23 A 31 A 32 A 33 Row 1 Column 1 A Row Column : A 23 = Number in the Second Row, Third Column In MATLAB, use a Comma to separate Columns; use a Semi-Colon to separate Rows: A = [A 11, A 12, A 13 ; A 21, A 22, A 23 ; A 31, A 32, A 33 ]

11 Modify and run the Script File as follows:

12 Row Vector: A Matrix with one Row, multiple Columns B = B 11, B 12, B 13 Column Vector: A Matrix with one Column, multiple Rows C = C 11 C 21 C 31 In MATLAB, create a Column Vector by using Semi-Colons to separate Rows C = C 11 ; C 12 ; C 13 Square Matrix: Number of Rows = Number of Columns D = D 11 D 12 D 21 D 22

13 A Vector can be Transposed by switching the Rows and Columns. A = A 11 A 12 A 13 A 21 A 22 A 23 A T = A 31 A 32 A 33 A 11 A 21 A 31 A 12 A 22 A 32 A 13 A 23 A 33 Modify and run the Script File as follows:

14 Matrix Addition: The Size of the two Matrices must be the same: = (2 2) (Two Rows Two Columns) D + F = D 11 D 12 D 21 D 22 + F 11 F 12 F 21 F 22 D + F = (D 11+F 11 ) (D 12 +F 12 ) (D 21 +F 21 ) (D 22 +F 22 ) Modify and run the Script File as follows:

15 Scalar Matrix Multiplication: The Scalar is Distributed to all of the Elements of the Matrix: ca = ca 11 ca 12 ca 13 ca 21 ca 22 ca 23 ca 31 ca 32 ca 33 Modify and run the Script File as follows:

16 Matrix Matrix Multiplication: The Size of the two Matrices Can Be the Same: = (2 2) Modify and run the Script File as follows: D F = D 11 D 12 D 21 D 22 F 11 F 12 F 21 F 22 D F = (D 11F 11 + D 12 F 21 ) (D 11 F 12 + D 12 F 22 ) (D 21 F 21 + D 22 F 11 ) (D 21 F 12 + D 22 F 22 )

17 Matrix Matrix Multiplication: The Sizes of the two Matrices Can Be Different: The Inner Sizes Must be the Same; the Outer Sizes Can be Different. Inner Sizes = (3 3) Outer Sizes K L = K 11 K 12 K 21 K 22 K 31 K 32 L 11 L 12 L 13 L 21 L 22 L 23 = K 11 L 11 + K 12 L 21 K 11 L 12 + K 12 L 22 K 11 L 13 + K 12 L 23 K 21 L 11 + K 22 L 21 K 21 L 12 + K 22 L 22 K 21 L 13 + K 22 L 23 K 31 L 11 + K 32 L 21 K 31 L 12 + K 32 L 22 K 31 L 13 + K 32 L 23

18 Modify and run the Script File as follows: What Happens when you Reverse the Order of Multiplication? Try it!

19 = (2 2) L K = L 11 L 12 L 13 L 21 L 22 L 23 K 11 K 12 K 21 K 22 K 31 K 32 = L 11K 11 + L 12 K 21 + L 13 K 31 L 11 K 12 + L 12 K 22 + L 13 K 32 L 21 K 11 + L 22 K 21 + L 23 K 31 L 21 K 12 + L 22 K 22 + L 23 K 32 In General, Inner Sizes Must be Equal n m m p = (n p) Outer Sizes Can Be Different

20 Another method to calculate the Dot Product of two vectors is to use Matrix Multiplication: B = B 11, B 12, B 13 C = C 11, C 12, C 13 B C = B 11 B 12 B 13 Verify this using MATLAB! C 11 C 21 C 31 Let: B = 1, 2, 3 C = 4, 5, 6

21 Element Element Multiplication: Element-by-Element Multiplication is often used in engineering calculations. It is defined only for arrays that have the same size. D. F = D 11 D 12 D 21 D 22. F 11 F 12 F 21 F 22 D. F = (D 11F 11 ) (D 12 F 12 ) (D 21 F 21 ) (D 22 F 22 )

22 Element Element Division: Element-by-Element Division is also defined only for arrays that have the same size. D./F = D 11 D 12 D 21 D 22./ F 11 F 12 F 21 F 22 D./F = (D 11/F 11 ) (D 12 /F 12 ) (D 21 /F 21 ) (D 22 /F 22 )

23 Element Element Exponentiation: Element-by-Element Exponentiation is also defined only for arrays that have the same size. D. ^F = D 11 D 12 D 21 D 22. ^ F11 F 12 F 21 F 22 D. ^F = (D 11^F 11 ) (D 12^F 12 ) (D 21^F 21 ) (D 22^F 22 )

24 Vectorized Functions: When you use functions like sin(x), atan(x) and exp(x) on vectors, the results of the functions become vectors also. These are called Vectorized Functions. When multiplying or dividing these functions, you must use Element-by-Element Operations.

25 Vectorized Functions:

26 Vectorized Functions:

27 Vectorized Functions:

28 Vectorized Functions:

29 Vectorized Functions:

30 Array Addressing Now that you know how to create arrays, you need to be able to use specific elements, or rows, or columns in calculations. This is called Array Addressing. The Colon operator allows us to select individual elements, rows, columns, or parts of arrays.

31 Problem 2.1: a. Use two methods to create the vector x having 100 regularly spaced values starting at 5 and ending at 28. b. Use two methods to create the vector x having a regular spacing of 0.2 starting at 2 and ending at 14. Start by looking at a simpler scenario, where three regularly spaced values are desired (n = 3): 5 28 Δx x = = = = 28 In General, x = x max x min n 1

32

33

34 Problem 2.1: a. Use two methods to create the vector x having 100 regularly spaced values starting at 5 and ending at 28. b. Use two methods to create the vector x having a regular spacing of 0.2 starting at 2 and ending at 14.

35

36

37

38

Vectors. J.R. Wilson. September 27, 2018

Vectors. J.R. Wilson. September 27, 2018 Vectors J.R. Wilson September 27, 2018 This chapter introduces vectors that are used in many areas of physics (needed for classical physics this year). One complication is that a number of different forms

More information

Chapter 6: Vector Analysis

Chapter 6: Vector Analysis Chapter 6: Vector Analysis We use derivatives and various products of vectors in all areas of physics. For example, Newton s 2nd law is F = m d2 r. In electricity dt 2 and magnetism, we need surface and

More information

CITS2401 Computer Analysis & Visualisation

CITS2401 Computer Analysis & Visualisation FACULTY OF ENGINEERING, COMPUTING AND MATHEMATICS CITS2401 Computer Analysis & Visualisation SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING Topic 7 Matrix Algebra Material from MATLAB for Engineers,

More information

MATH.2720 Introduction to Programming with MATLAB Vector and Matrix Algebra

MATH.2720 Introduction to Programming with MATLAB Vector and Matrix Algebra MATH.2720 Introduction to Programming with MATLAB Vector and Matrix Algebra A. Vectors A vector is a quantity that has both magnitude and direction, like velocity. The location of a vector is irrelevant;

More information

CITS2401 Computer Analysis & Visualisation

CITS2401 Computer Analysis & Visualisation FACULTY OF ENGINEERING, COMPUTING AND MATHEMATICS CITS2401 Computer Analysis & Visualisation SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING Topic 7 Matrix Algebra Material from MATLAB for Engineers,

More information

Linear Algebra V = T = ( 4 3 ).

Linear Algebra V = T = ( 4 3 ). Linear Algebra Vectors A column vector is a list of numbers stored vertically The dimension of a column vector is the number of values in the vector W is a -dimensional column vector and V is a 5-dimensional

More information

Vector/Matrix operations. *Remember: All parts of HW 1 are due on 1/31 or 2/1

Vector/Matrix operations. *Remember: All parts of HW 1 are due on 1/31 or 2/1 Lecture 4: Topics: Linear Algebra II Vector/Matrix operations Homework: HW, Part *Remember: All parts of HW are due on / or / Solving Axb Row reduction method can be used Simple operations on equations

More information

Review of Linear Algebra

Review of Linear Algebra Review of Linear Algebra Definitions An m n (read "m by n") matrix, is a rectangular array of entries, where m is the number of rows and n the number of columns. 2 Definitions (Con t) A is square if m=

More information

Matrix Basic Concepts

Matrix Basic Concepts Matrix Basic Concepts Topics: What is a matrix? Matrix terminology Elements or entries Diagonal entries Address/location of entries Rows and columns Size of a matrix A column matrix; vectors Special types

More information

CSCI 239 Discrete Structures of Computer Science Lab 6 Vectors and Matrices

CSCI 239 Discrete Structures of Computer Science Lab 6 Vectors and Matrices CSCI 239 Discrete Structures of Computer Science Lab 6 Vectors and Matrices This lab consists of exercises on real-valued vectors and matrices. Most of the exercises will required pencil and paper. Put

More information

Computational Foundations of Cognitive Science

Computational Foundations of Cognitive Science Computational Foundations of Cognitive Science Lecture 11: Matrices in Matlab Frank Keller School of Informatics University of Edinburgh keller@inf.ed.ac.uk February 23, 2010 Frank Keller Computational

More information

I&C 6N. Computational Linear Algebra

I&C 6N. Computational Linear Algebra I&C 6N Computational Linear Algebra 1 Lecture 1: Scalars and Vectors What is a scalar? Computer representation of a scalar Scalar Equality Scalar Operations Addition and Multiplication What is a vector?

More information

1 Tensors and relativity

1 Tensors and relativity Physics 705 1 Tensors and relativity 1.1 History Physical laws should not depend on the reference frame used to describe them. This idea dates back to Galileo, who recognized projectile motion as free

More information

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Part I: Basics MATLAB Environment Getting Help Variables Vectors, Matrices, and

More information

Lecture 3: Matrix and Matrix Operations

Lecture 3: Matrix and Matrix Operations Lecture 3: Matrix and Matrix Operations Representation, row vector, column vector, element of a matrix. Examples of matrix representations Tables and spreadsheets Scalar-Matrix operation: Scaling a matrix

More information

An Introduction to Matrix Algebra

An Introduction to Matrix Algebra An Introduction to Matrix Algebra EPSY 905: Fundamentals of Multivariate Modeling Online Lecture #8 EPSY 905: Matrix Algebra In This Lecture An introduction to matrix algebra Ø Scalars, vectors, and matrices

More information

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1 1 Rows first, columns second. Remember that. R then C. 1 A matrix is a set of real or complex numbers arranged in a rectangular array. They can be any size and shape (provided they are rectangular). A

More information

CHAPTER 8 CONSERVATION LAWS

CHAPTER 8 CONSERVATION LAWS CHAPTER 8 CONSERVATION LAWS Outlines 1. Charge and Energy 2. The Poynting s Theorem 3. Momentum 4. Angular Momentum 2 Conservation of charge and energy The net amount of charges in a volume V is given

More information

L3: Review of linear algebra and MATLAB

L3: Review of linear algebra and MATLAB L3: Review of linear algebra and MATLAB Vector and matrix notation Vectors Matrices Vector spaces Linear transformations Eigenvalues and eigenvectors MATLAB primer CSCE 666 Pattern Analysis Ricardo Gutierrez-Osuna

More information

Matlab Exercise 0 Due 1/25/06

Matlab Exercise 0 Due 1/25/06 Matlab Exercise 0 Due 1/25/06 Geop 523 Theoretical Seismology January 18, 2006 Much of our work in this class will be done using Matlab. The goal of this exercise is to get you familiar with using Matlab

More information

Linear Algebra (Review) Volker Tresp 2017

Linear Algebra (Review) Volker Tresp 2017 Linear Algebra (Review) Volker Tresp 2017 1 Vectors k is a scalar (a number) c is a column vector. Thus in two dimensions, c = ( c1 c 2 ) (Advanced: More precisely, a vector is defined in a vector space.

More information

Determinant: 3.2 Evaluation of Determinant with Elementary

Determinant: 3.2 Evaluation of Determinant with Elementary Determinant: 3.2 Evaluation of Determinant with Elementary Operations September 18 As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not

More information

Linear Algebra (Review) Volker Tresp 2018

Linear Algebra (Review) Volker Tresp 2018 Linear Algebra (Review) Volker Tresp 2018 1 Vectors k, M, N are scalars A one-dimensional array c is a column vector. Thus in two dimensions, ( ) c1 c = c 2 c i is the i-th component of c c T = (c 1, c

More information

MET 4301 LECTURE SEP17

MET 4301 LECTURE SEP17 ------------------------------------------------------------------------------------------------------------------------------------ Objectives: To review essential mathematics for Meteorological Dynamics

More information

Lecture 3 Linear Algebra Background

Lecture 3 Linear Algebra Background Lecture 3 Linear Algebra Background Dan Sheldon September 17, 2012 Motivation Preview of next class: y (1) w 0 + w 1 x (1) 1 + w 2 x (1) 2 +... + w d x (1) d y (2) w 0 + w 1 x (2) 1 + w 2 x (2) 2 +...

More information

Elementary Row Operations on Matrices

Elementary Row Operations on Matrices King Saud University September 17, 018 Table of contents 1 Definition A real matrix is a rectangular array whose entries are real numbers. These numbers are organized on rows and columns. An m n matrix

More information

Identity Matrix: EDU> eye(3) ans = Matrix of Ones: EDU> ones(2,3) ans =

Identity Matrix: EDU> eye(3) ans = Matrix of Ones: EDU> ones(2,3) ans = Very Basic MATLAB Peter J. Olver October, 2003 Matrices: Type your matrix as follows: Use, or space to separate entries, and ; or return after each row. EDU> [;5 0-3 6;; - 5 ] or EDU> [,5,6,-9;5,0,-3,6;7,8,5,0;-,,5,]

More information

Moment of a force (scalar, vector ) Cross product Principle of Moments Couples Force and Couple Systems Simple Distributed Loading

Moment of a force (scalar, vector ) Cross product Principle of Moments Couples Force and Couple Systems Simple Distributed Loading Chapter 4 Moment of a force (scalar, vector ) Cross product Principle of Moments Couples Force and Couple Systems Simple Distributed Loading The moment of a force about a point provides a measure of the

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations CGN 42 - Computer Methods Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations Matrix operations: Adding / subtracting Transpose Multiplication Adding

More information

Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

TOPIC 2 Computer application for manipulating matrix using MATLAB

TOPIC 2 Computer application for manipulating matrix using MATLAB YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 2 Computer application for manipulating matrix using MATLAB Definition of Matrices in MATLAB

More information

Matrices. Chapter Definitions and Notations

Matrices. Chapter Definitions and Notations Chapter 3 Matrices 3. Definitions and Notations Matrices are yet another mathematical object. Learning about matrices means learning what they are, how they are represented, the types of operations which

More information

For those who want to skip this chapter and carry on, that s fine, all you really need to know is that for the scalar expression: 2 H

For those who want to skip this chapter and carry on, that s fine, all you really need to know is that for the scalar expression: 2 H 1 Matrices are rectangular arrays of numbers. hey are usually written in terms of a capital bold letter, for example A. In previous chapters we ve looed at matrix algebra and matrix arithmetic. Where things

More information

(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB

(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB (Mathematical Operations with Arrays) Contents Getting Started Matrices Creating Arrays Linear equations Mathematical Operations with Arrays Using Script

More information

Linear Algebra Review. Fei-Fei Li

Linear Algebra Review. Fei-Fei Li Linear Algebra Review Fei-Fei Li 1 / 51 Vectors Vectors and matrices are just collections of ordered numbers that represent something: movements in space, scaling factors, pixel brightnesses, etc. A vector

More information

Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via.

Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via. Matrix Arithmetic There is an arithmetic for matrices that can be viewed as extending the arithmetic we have developed for vectors to the more general setting of rectangular arrays: if A and B are m n

More information

Lesson 1: Inverses of Functions Lesson 2: Graphs of Polynomial Functions Lesson 3: 3-Dimensional Space

Lesson 1: Inverses of Functions Lesson 2: Graphs of Polynomial Functions Lesson 3: 3-Dimensional Space Table of Contents Introduction.............................................................. v Unit 1: Modeling with Matrices... 1 Lesson 2: Solving Problems Using Matrices.................................

More information

Vectors for Physics. AP Physics C

Vectors for Physics. AP Physics C Vectors for Physics AP Physics C A Vector is a quantity that has a magnitude (size) AND a direction. can be in one-dimension, two-dimensions, or even three-dimensions can be represented using a magnitude

More information

Vectors. J.R. Wilson. September 28, 2017

Vectors. J.R. Wilson. September 28, 2017 Vectors J.R. Wilson September 28, 2017 This chapter introduces vectors that are used in many areas of physics (needed for classical physics this year). One complication is that a number of different forms

More information

Vectors in Physics. Topics to review:

Vectors in Physics. Topics to review: Vectors in Physics Topics to review: Scalars Versus Vectors The Components of a Vector Adding and Subtracting Vectors Unit Vectors Position, Displacement, Velocity, and Acceleration Vectors Relative Motion

More information

Matrices and Vectors

Matrices and Vectors Matrices and Vectors James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 11, 2013 Outline 1 Matrices and Vectors 2 Vector Details 3 Matrix

More information

SECTION 2: VECTORS AND MATRICES. ENGR 112 Introduction to Engineering Computing

SECTION 2: VECTORS AND MATRICES. ENGR 112 Introduction to Engineering Computing SECTION 2: VECTORS AND MATRICES ENGR 112 Introduction to Engineering Computing 2 Vectors and Matrices The MAT in MATLAB 3 MATLAB The MATrix (not MAThematics) LABoratory MATLAB assumes all numeric variables

More information

Vectors and Matrices Lecture 2

Vectors and Matrices Lecture 2 Vectors and Matrices Lecture 2 Dr Mark Kambites School of Mathematics 13/03/2014 Dr Mark Kambites (School of Mathematics) COMP11120 13/03/2014 1 / 20 How do we recover the magnitude of a vector from its

More information

Chapter 1. Units, Physical Quantities, and Vectors

Chapter 1. Units, Physical Quantities, and Vectors Chapter 1 Units, Physical Quantities, and Vectors 1.3 Standards and Units The metric system is also known as the S I system of units. (S I! Syst me International). A. Length The unit of length in the metric

More information

This appendix provides a very basic introduction to linear algebra concepts.

This appendix provides a very basic introduction to linear algebra concepts. APPENDIX Basic Linear Algebra Concepts This appendix provides a very basic introduction to linear algebra concepts. Some of these concepts are intentionally presented here in a somewhat simplified (not

More information

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu MATLAB BASICS Instructor: Prof. Shahrouk Ahmadi 1. What are M-files TA: Kartik Bulusu M-files are files that contain a collection of MATLAB commands or are used to define new MATLAB functions. For the

More information

PHYS102 - Gauss s Law.

PHYS102 - Gauss s Law. PHYS102 - Gauss s Law. Dr. Suess February 2, 2007 PRS Questions 2 Question #1.............................................................................. 2 Answer to Question #1......................................................................

More information

A Introduction to Matrix Algebra and the Multivariate Normal Distribution

A Introduction to Matrix Algebra and the Multivariate Normal Distribution A Introduction to Matrix Algebra and the Multivariate Normal Distribution PRE 905: Multivariate Analysis Spring 2014 Lecture 6 PRE 905: Lecture 7 Matrix Algebra and the MVN Distribution Today s Class An

More information

MA 102 (Multivariable Calculus)

MA 102 (Multivariable Calculus) MA 102 (Multivariable Calculus) Rupam Barman and Shreemayee Bora Department of Mathematics IIT Guwahati Outline of the Course Two Topics: Multivariable Calculus Will be taught as the first part of the

More information

Elementary Linear Algebra

Elementary Linear Algebra Matrices J MUSCAT Elementary Linear Algebra Matrices Definition Dr J Muscat 2002 A matrix is a rectangular array of numbers, arranged in rows and columns a a 2 a 3 a n a 2 a 22 a 23 a 2n A = a m a mn We

More information

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3].

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3]. Appendix : A Very Brief Linear ALgebra Review Introduction Linear Algebra, also known as matrix theory, is an important element of all branches of mathematics Very often in this course we study the shapes

More information

Remark 3.2. The cross product only makes sense in R 3.

Remark 3.2. The cross product only makes sense in R 3. 3. Cross product Definition 3.1. Let v and w be two vectors in R 3. The cross product of v and w, denoted v w, is the vector defined as follows: the length of v w is the area of the parallelogram with

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations pages 58-62 are a repeat of matrix notes. New material begins on page 63. Matrix operations: Mathcad

More information

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010 A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 00 Introduction Linear Algebra, also known as matrix theory, is an important element of all branches of mathematics

More information

Math 276, Spring 2007 Additional Notes on Vectors

Math 276, Spring 2007 Additional Notes on Vectors Math 276, Spring 2007 Additional Notes on Vectors 1.1. Real Vectors. 1. Scalar Products If x = (x 1,..., x n ) is a vector in R n then the length of x is x = x 2 1 + + x2 n. We sometimes use the notation

More information

Arrays: Vectors and Matrices

Arrays: Vectors and Matrices Arrays: Vectors and Matrices Vectors Vectors are an efficient notational method for representing lists of numbers. They are equivalent to the arrays in the programming language "C. A typical vector might

More information

F A C U L T Y O F E D U C A T I O N. Physics Electromagnetism: Induced Currents Science and Mathematics Education Research Group

F A C U L T Y O F E D U C A T I O N. Physics Electromagnetism: Induced Currents Science and Mathematics Education Research Group F A C U L T Y O F E D U C A T I O N Department of Curriculum and Pedagogy Physics Electromagnetism: Induced Currents Science and Mathematics Education Research Group Supported by UBC Teaching and Learning

More information

Two matrices of the same size are added by adding their corresponding entries =.

Two matrices of the same size are added by adding their corresponding entries =. 2 Matrix algebra 2.1 Addition and scalar multiplication Two matrices of the same size are added by adding their corresponding entries. For instance, 1 2 3 2 5 6 3 7 9 +. 4 0 9 4 1 3 0 1 6 Addition of two

More information

Dr. Allen Back. Sep. 8, 2014

Dr. Allen Back. Sep. 8, 2014 in R 3 Dr. Allen Back Sep. 8, 2014 in R 3 in R 3 Def: For f (x, y), the partial derivative with respect to x at p 0 = (x 0, y 0 ) is f x = lim f (x 0 + h, y 0 ) f (x 0, y 0 ) h 0 h or f x = lim f (p 0

More information

Vector Algebra II: Scalar and Vector Products

Vector Algebra II: Scalar and Vector Products Chapter 2 Vector Algebra II: Scalar and Vector Products We saw in the previous chapter how vector quantities may be added and subtracted. In this chapter we consider the products of vectors and define

More information

Rotational motion of a rigid body spinning around a rotational axis ˆn;

Rotational motion of a rigid body spinning around a rotational axis ˆn; Physics 106a, Caltech 15 November, 2018 Lecture 14: Rotations The motion of solid bodies So far, we have been studying the motion of point particles, which are essentially just translational. Bodies with

More information

Mechanics, Heat, Oscillations and Waves Prof. V. Balakrishnan Department of Physics Indian Institute of Technology, Madras

Mechanics, Heat, Oscillations and Waves Prof. V. Balakrishnan Department of Physics Indian Institute of Technology, Madras Mechanics, Heat, Oscillations and Waves Prof. V. Balakrishnan Department of Physics Indian Institute of Technology, Madras Lecture 08 Vectors in a Plane, Scalars & Pseudoscalers Let us continue today with

More information

MATH 2030: MATRICES ,, a m1 a m2 a mn If the columns of A are the vectors a 1, a 2,...,a n ; A is represented as A 1. .

MATH 2030: MATRICES ,, a m1 a m2 a mn If the columns of A are the vectors a 1, a 2,...,a n ; A is represented as A 1. . MATH 030: MATRICES Matrix Operations We have seen how matrices and the operations on them originated from our study of linear equations In this chapter we study matrices explicitely Definition 01 A matrix

More information

Relationships Between Planes

Relationships Between Planes Relationships Between Planes Definition: consistent (system of equations) A system of equations is consistent if there exists one (or more than one) solution that satisfies the system. System 1: {, System

More information

Chapter 2 - Vector Algebra

Chapter 2 - Vector Algebra A spatial vector, or simply vector, is a concept characterized by a magnitude and a direction, and which sums with other vectors according to the Parallelogram Law. A vector can be thought of as an arrow

More information

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2 CSC 47 Introduction to Computer Graphics Mathematical Foundations Part 2 Vector Magnitude and Unit Vectors The magnitude (length, size) of n-vector w is written w 2 2 2 w = w + w2 + + w n Example: the

More information

Mathematics Revision Questions for the University of Bristol School of Physics

Mathematics Revision Questions for the University of Bristol School of Physics Mathematics Revision Questions for the University of Bristol School of Physics You will not be surprised to find you have to use a lot of maths in your stu of physics at university! You need to be completely

More information

Mathematics and Signal Processing for Biomechanics

Mathematics and Signal Processing for Biomechanics KAAP686 Mathematics and Signal Processing for Biomechanics More on Matrices Now we discuss the topic of matrix division and apply this idea to solve a system of linear equations. We will define the inverse*

More information

Introduction to Computational Neuroscience

Introduction to Computational Neuroscience CSE2330 Introduction to Computational Neuroscience Basic computational tools and concepts Tutorial 1 Duration: two weeks 1.1 About this tutorial The objective of this tutorial is to introduce you to: the

More information

Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 3 VECTORS

Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 3 VECTORS CS131 Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 3 VECTRS Vectors in two and three dimensional space are defined to be members of the sets R 2 and R 3 defined by: R 2 = {(x,

More information

Linear Algebra March 16, 2019

Linear Algebra March 16, 2019 Linear Algebra March 16, 2019 2 Contents 0.1 Notation................................ 4 1 Systems of linear equations, and matrices 5 1.1 Systems of linear equations..................... 5 1.2 Augmented

More information

Tute UV2 : VECTORS 1

Tute UV2 : VECTORS 1 Tute UV2 : VECTORS 1 a b = ab cos θ a b = ab sin θ 1. A vector s is 4.2 m long and is directed at an angle of 132 anticlockwise relative to the x-axis as drawn below. Express s in i, j, k components. [

More information

VECTORS AND MATRICES

VECTORS AND MATRICES VECTORS AND MATRICES COMPUTER SESSION C1 BACKGROUND PREPARATIONS The session is divided into two parts. The first part involves experimenting in the Mathematics Laboratory and the second part involves

More information

CS 246 Review of Linear Algebra 01/17/19

CS 246 Review of Linear Algebra 01/17/19 1 Linear algebra In this section we will discuss vectors and matrices. We denote the (i, j)th entry of a matrix A as A ij, and the ith entry of a vector as v i. 1.1 Vectors and vector operations A vector

More information

We are already familiar with the concept of a scalar and vector. are unit vectors in the x and y directions respectively with

We are already familiar with the concept of a scalar and vector. are unit vectors in the x and y directions respectively with Math Review We are already familiar with the concept of a scalar and vector. Example: Position (x, y) in two dimensions 1 2 2 2 s ( x y ) where s is the length of x ( xy, ) xi yj And i, j ii 1 j j 1 i

More information

Matrices. A matrix is a method of writing a set of numbers using rows and columns. Cells in a matrix can be referenced in the form.

Matrices. A matrix is a method of writing a set of numbers using rows and columns. Cells in a matrix can be referenced in the form. Matrices A matrix is a method of writing a set of numbers using rows and columns. 1 2 3 4 3 2 1 5 7 2 5 4 2 0 5 10 12 8 4 9 25 30 1 1 Reading Information from a Matrix Cells in a matrix can be referenced

More information

Math 302 Outcome Statements Winter 2013

Math 302 Outcome Statements Winter 2013 Math 302 Outcome Statements Winter 2013 1 Rectangular Space Coordinates; Vectors in the Three-Dimensional Space (a) Cartesian coordinates of a point (b) sphere (c) symmetry about a point, a line, and a

More information

1. Vectors.

1. Vectors. 1. Vectors 1.1 Vectors and Matrices Linear algebra is concerned with two basic kinds of quantities: vectors and matrices. 1.1 Vectors and Matrices Scalars and Vectors - Scalar: a numerical value denoted

More information

MATH1012 Mathematics for Civil and Environmental Engineering Prof. Janne Ruostekoski School of Mathematics University of Southampton

MATH1012 Mathematics for Civil and Environmental Engineering Prof. Janne Ruostekoski School of Mathematics University of Southampton MATH02 Mathematics for Civil and Environmental Engineering 20 Prof. Janne Ruostekoski School of Mathematics University of Southampton September 25, 20 2 CONTENTS Contents Matrices. Why matrices?..................................2

More information

Overview. Motivation for the inner product. Question. Definition

Overview. Motivation for the inner product. Question. Definition Overview Last time we studied the evolution of a discrete linear dynamical system, and today we begin the final topic of the course (loosely speaking) Today we ll recall the definition and properties of

More information

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of . Matrices A matrix is any rectangular array of numbers. For example 3 5 6 4 8 3 3 is 3 4 matrix, i.e. a rectangular array of numbers with three rows four columns. We usually use capital letters for matrices,

More information

POLI270 - Linear Algebra

POLI270 - Linear Algebra POLI7 - Linear Algebra Septemer 8th Basics a x + a x +... + a n x n b () is the linear form where a, b are parameters and x n are variables. For a given equation such as x +x you only need a variable and

More information

Basic Math Review for CS4830

Basic Math Review for CS4830 Basic Math Review for CS4830 Dr. Mihail August 18, 2016 (Dr. Mihail) Math Review for CS4830 August 18, 2016 1 / 35 Sets Definition of a set A set is a collection of distinct objects, considered as an object

More information

Q.1. Which one of the following is scalar quantity? Displacement Option Electric field Acceleration Work Correct Answer 4 w = F.ds; it does not have any direction, it s a scalar quantity. Q.. Which one

More information

Engineering Mechanics Statics

Engineering Mechanics Statics Mechanical Systems Engineering -2016 Engineering Mechanics Statics 3. Force Vectors; Position Vector & Dot product Position Vector A position vector is a fixed vector that locates a point in space relative

More information

Lecture 6: Geometry of OLS Estimation of Linear Regession

Lecture 6: Geometry of OLS Estimation of Linear Regession Lecture 6: Geometry of OLS Estimation of Linear Regession Xuexin Wang WISE Oct 2013 1 / 22 Matrix Algebra An n m matrix A is a rectangular array that consists of nm elements arranged in n rows and m columns

More information

ECE 102 Engineering Computation

ECE 102 Engineering Computation ECE 102 Engineering Computation Phillip Wong MATLAB Vector Operations Vector Math Strings Vector Operations A vector is a list of values placed in a single row or column. Each value is called an element.

More information

Lecture 35: The Inertia Tensor

Lecture 35: The Inertia Tensor Lecture 35: The Inertia Tensor We found last time that the kinetic energy of a rotating obect was: 1 Trot = ωω i Ii where i, ( I m δ x x x i i, k, i, k So the nine numbers represented by the I i tell us

More information

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 Announcements Monday October 3: Discussion Assignment

More information

Please Visit us at:

Please Visit us at: IMPORTANT QUESTIONS WITH ANSWERS Q # 1. Differentiate among scalars and vectors. Scalars Vectors (i) The physical quantities that are completely (i) The physical quantities that are completely described

More information

Matrices. Math 240 Calculus III. Wednesday, July 10, Summer 2013, Session II. Matrices. Math 240. Definitions and Notation.

Matrices. Math 240 Calculus III. Wednesday, July 10, Summer 2013, Session II. Matrices. Math 240. Definitions and Notation. function Matrices Calculus III Summer 2013, Session II Wednesday, July 10, 2013 Agenda function 1. 2. function function Definition An m n matrix is a rectangular array of numbers arranged in m horizontal

More information

Matrices BUSINESS MATHEMATICS

Matrices BUSINESS MATHEMATICS Matrices BUSINESS MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question

More information

The Cross Product. MATH 311, Calculus III. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan The Cross Product

The Cross Product. MATH 311, Calculus III. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan The Cross Product The Cross Product MATH 311, Calculus III J. Robert Buchanan Department of Mathematics Fall 2011 Introduction Recall: the dot product of two vectors is a scalar. There is another binary operation on vectors

More information

CHAPTER 7 ELECTRODYNAMICS

CHAPTER 7 ELECTRODYNAMICS CHAPTER 7 ELECTRODYNAMICS Outlines 1. Electromotive Force 2. Electromagnetic Induction 3. Maxwell s Equations Michael Faraday James C. Maxwell 2 Summary of Electrostatics and Magnetostatics ρ/ε This semester,

More information

FF505 Computational Science. Matrix Calculus. Marco Chiarandini

FF505 Computational Science. Matrix Calculus. Marco Chiarandini FF505 Computational Science Matrix Calculus Marco Chiarandini (marco@imada.sdu.dk) Department of Mathematics and Computer Science (IMADA) University of Southern Denmark Resume MATLAB, numerical computing

More information

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a Math 360 Linear Algebra Fall 2008 9-10-08 Class Notes Matrices As we have already seen, a matrix is a rectangular array of numbers. If a matrix A has m columns and n rows, we say that its dimensions are

More information

Review from Bootcamp: Linear Algebra

Review from Bootcamp: Linear Algebra Review from Bootcamp: Linear Algebra D. Alex Hughes October 27, 2014 1 Properties of Estimators 2 Linear Algebra Addition and Subtraction Transpose Multiplication Cross Product Trace 3 Special Matrices

More information

22.3. Repeated Eigenvalues and Symmetric Matrices. Introduction. Prerequisites. Learning Outcomes

22.3. Repeated Eigenvalues and Symmetric Matrices. Introduction. Prerequisites. Learning Outcomes Repeated Eigenvalues and Symmetric Matrices. Introduction In this Section we further develop the theory of eigenvalues and eigenvectors in two distinct directions. Firstly we look at matrices where one

More information

x n -2.5 Definition A list is a list of objects, where multiplicity is allowed, and order matters. For example, as lists

x n -2.5 Definition A list is a list of objects, where multiplicity is allowed, and order matters. For example, as lists Vectors, Linear Combinations, and Matrix-Vector Mulitiplication In this section, we introduce vectors, linear combinations, and matrix-vector multiplication The rest of the class will involve vectors,

More information

Fluid Mechanics Prof. S. K. Som Department of Mechanical Engineering Indian Institute of Technology, Kharagpur

Fluid Mechanics Prof. S. K. Som Department of Mechanical Engineering Indian Institute of Technology, Kharagpur Fluid Mechanics Prof. S. K. Som Department of Mechanical Engineering Indian Institute of Technology, Kharagpur Lecture - 15 Conservation Equations in Fluid Flow Part III Good afternoon. I welcome you all

More information