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

Similar documents
Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB

CITS2401 Computer Analysis & Visualisation

CITS2401 Computer Analysis & Visualisation

1 Number Systems and Errors 1

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

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

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Introduction to Applied Linear Algebra with MATLAB

Cheat Sheet for MATH461

Total 170. Name. Final Examination M340L-CS

Linear Algebra and Matrices

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Linear Algebra Practice Problems

Chap 3. Linear Algebra

EXAM. Exam 1. Math 5316, Fall December 2, 2012

Conceptual Questions for Review

Math 307 Learning Goals. March 23, 2010

There are six more problems on the next two pages

Chapter 3 Transformations

LINEAR ALGEBRA: NUMERICAL METHODS. Version: August 12,

Econ Slides from Lecture 7

ANSWERS. E k E 2 E 1 A = B

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

LINEAR ALGEBRA KNOWLEDGE SURVEY

Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown.

Note: The command name is upper case in the description given by help, but must be lower case in actual use. And the backslash Anb is dierent when A i

Numerical Linear Algebra

MATH 304 Linear Algebra Lecture 34: Review for Test 2.

Linear Algebra- Final Exam Review

Review of Some Concepts from Linear Algebra: Part 2

1 Last time: least-squares problems

MAT Linear Algebra Collection of sample exams

NUMERICAL METHODS USING MATLAB

Review problems for MA 54, Fall 2004.

PRACTICE FINAL EXAM. why. If they are dependent, exhibit a linear dependence relation among them.

Linear Algebra Practice Problems

Mathematical Operations with Arrays

Math 307 Learning Goals

Linear Algebra, part 3 QR and SVD

Midterm for Introduction to Numerical Analysis I, AMSC/CMSC 466, on 10/29/2015

Notes on Eigenvalues, Singular Values and QR

Chapter 8: Linear Algebraic Equations

MATH 304 Linear Algebra Lecture 20: The Gram-Schmidt process (continued). Eigenvalues and eigenvectors.

Linear Systems of n equations for n unknowns

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

Review of Linear Algebra

Matrix decompositions

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Linear Algebra Primer

AM205: Assignment 2. i=1

Reduction to the associated homogeneous system via a particular solution

Example Linear Algebra Competency Test

SOLVING LINEAR SYSTEMS

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Solution of Linear Equations

Inverses. Stephen Boyd. EE103 Stanford University. October 28, 2017

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

Properties of Linear Transformations from R n to R m

Problem 1: Solving a linear equation

OR MSc Maths Revision Course

Applied Linear Algebra

Orthonormal Bases; Gram-Schmidt Process; QR-Decomposition

Matrix decompositions

FF505 Computational Science. Matrix Calculus. Marco Chiarandini

JUST THE MATHS SLIDES NUMBER 9.6. MATRICES 6 (Eigenvalues and eigenvectors) A.J.Hobson

Lecture 6. Numerical methods. Approximation of functions

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Using MATLAB. Linear Algebra

UNIT 6: The singular value decomposition.

Math 224, Fall 2007 Exam 3 Thursday, December 6, 2007

Linear least squares problem: Example

Introduction to Matrices

1. Diagonalize the matrix A if possible, that is, find an invertible matrix P and a diagonal

Matrix decompositions

COMP 558 lecture 18 Nov. 15, 2010

Linear Algebra. and

+ MATRIX VARIABLES AND TWO DIMENSIONAL ARRAYS

3. Array and Matrix Operations

Linear Algebra, part 3. Going back to least squares. Mathematical Models, Analysis and Simulation = 0. a T 1 e. a T n e. Anna-Karin Tornberg

Class notes: Approximation

A Review of Linear Algebra

AMS526: Numerical Analysis I (Numerical Linear Algebra)

CS 143 Linear Algebra Review

lecture 2 and 3: algorithms for linear algebra

Math 310 Final Exam Solutions

Linear Algebra Review

Chapter 9: Gaussian Elimination

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

LINEAR ALGEBRA 1, 2012-I PARTIAL EXAM 3 SOLUTIONS TO PRACTICE PROBLEMS

Math 265 Linear Algebra Sample Spring 2002., rref (A) =

5.) For each of the given sets of vectors, determine whether or not the set spans R 3. Give reasons for your answers.

SOLUTIONS: ASSIGNMENT Use Gaussian elimination to find the determinant of the matrix. = det. = det = 1 ( 2) 3 6 = 36. v 4.

lecture 3 and 4: algorithms for linear algebra

No books, no notes, no calculators. You must show work, unless the question is a true/false, yes/no, or fill-in-the-blank question.

EE5120 Linear Algebra: Tutorial 1, July-Dec Solve the following sets of linear equations using Gaussian elimination (a)

Transcription:

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 Files and Managing Data Two-Dimensional Plots Determinants Eigenvalues and eigenvectors Orthogonal vectors and matrices Vector and matrix norms Programming in MATLAB Gaussian elimination and the LU User-Defined Functions and Function Files dec. Polynomials, Curve Fitting, and Interpolation Linear system applications Gram-Schmidt decomposition Applications in Numerical Analysis The singular value decomposition Three-Dimensional Plots Least-squares problems Symbolic Math Implementing the QR factorization TheLinear algebraic problem Applied Algebraeigenvalue in Geoscience Using MATLAB

Addition and Subtraction The operations + and can be used to add (subtract) arrays of identical size and to add (subtract) a scalar to an array.

Array Multiplication The multiplication operation * is executed by MATLAB according to the rules of linear algebra. This means that if A and B are two matrices, the operation A*B can be carried out only if the number of columns in matrix A is equal to the number of rows in matrix B The power operation can be executed only with a square matrix The multiplication of a row vector by a column vector gives a scalar MATLAB also has a built-in function, dot(a,b)

Array Multiplication Linear algebra rules of array multiplication provide a convenient way for writing a system of linear equations. EX.1 the system of three equations with three unknowns

Array Division Inverse of a matrix: The matrix B is the inverse of the matrix A if, when the two matrices are multiplied, the product is the identity matrix. Both matrices must be square and the multiplication order can be The inverse of a matrix A is typically written as A-1. In MATLAB the inverse of a matrix can be obtained either by raising A to the power of 1, or with the inv(a) function. Not every matrix has an inverse. A matrix has an inverse only if it is square and its determinant is not equal to zero. det(a)

Array Division MATLAB has two types of array division, right division and left division. Left division, \ : Left division is used to solve the matrix equation AX = B. In this equation X and B are column vectors. So the solution of AX =B is: In MATLAB Right division, / : The right division is used to solve the matrix equation XC = D. In this equation X and D are row vectors. The solution In MATLAB

Array Division EX.1 Use matrix operations to solve the following system of linear equations.

Element-By-Element Operation The regular symbols for multiplication and division (*and/) The mathematical operations follow the rules of linear algebra Many situations that require element-byelement operations. Element-by-element calculations are very useful for calculating the value of a function at many values of its argument.

Built in Fun. For Analyzing Array

Random Numbers MATLAB has three commands rand, randn, and randi that can be used to assign random numbers to variables.

Example EX.2 The coefficient of friction,, can be determined in an experiment by measuring the force F required to move a mass m. When F is measured and m is known, the coefficient of friction can be calculated by: Results from measuring F in six tests are given in the table below. Determine the coefficient of friction in each test, and the average from all tests.