OR MSc Maths Revision Course

Similar documents
6.1 Matrices. Definition: A Matrix A is a rectangular array of the form. A 11 A 12 A 1n A 21. A 2n. A m1 A m2 A mn A 22.

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column

Review of Linear Algebra

Basics of Calculus and Algebra

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

MATH2210 Notebook 2 Spring 2018

Introduction. Vectors and Matrices. Vectors [1] Vectors [2]

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

Math 313 Chapter 1 Review

Elementary maths for GMT

CHAPTER 8: Matrices and Determinants

A Review of Matrix Analysis

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

REVIEW OF DIFFERENTIAL CALCULUS

Graduate Mathematical Economics Lecture 1

TOPIC III LINEAR ALGEBRA

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Linear Systems and Matrices

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Properties of the Determinant Function

Introduction to Matrix Algebra

Chapter 9: Systems of Equations and Inequalities

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Introduction to Matrices

Calculus 2502A - Advanced Calculus I Fall : Local minima and maxima

Section 9.2: Matrices.. a m1 a m2 a mn

Undergraduate Mathematical Economics Lecture 1

MATH 323 Linear Algebra Lecture 6: Matrix algebra (continued). Determinants.

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

Fundamentals of Engineering Analysis (650163)

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder

Components and change of basis

Math RE - Calculus II Antiderivatives and the Indefinite Integral Page 1 of 5

Chapter 4. Determinants

MSc Mas6002, Introductory Material Mathematical Methods Exercises

Section 9.2: Matrices. Definition: A matrix A consists of a rectangular array of numbers, or elements, arranged in m rows and n columns.

Outline. Recall... Limits. Problem Solving Sessions. MA211 Lecture 4: Limits and Derivatives Wednesday 17 September Definition (Limit)

3 (Maths) Linear Algebra

Matrices and Determinants

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz

EE731 Lecture Notes: Matrix Computations for Signal Processing

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra

Chapter 2: Unconstrained Extrema

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

Lecture Notes in Linear Algebra

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

Presentation by: H. Sarper. Chapter 2 - Learning Objectives

Review Questions REVIEW QUESTIONS 71

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

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

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

System of Linear Equations

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

MATH 304 Linear Algebra Lecture 10: Linear independence. Wronskian.

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

Linear Equations and Matrix

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Maren Bennewitz, Diego Tipaldi, Luciano Spinello

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

Math 1314 Week #14 Notes

Introduction to Matrices and Linear Systems Ch. 3

Digital Workbook for GRA 6035 Mathematics

A matrix over a field F is a rectangular array of elements from F. The symbol

G H. Extended Unit Tests A L L. Higher Still Advanced Higher Mathematics. (more demanding tests covering all levels) Contents. 3 Extended Unit Tests

3 Applications of partial differentiation

Determinants Chapter 3 of Lay

ELEMENTARY LINEAR ALGEBRA

ECON 186 Class Notes: Linear Algebra

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Matrix operations Linear Algebra with Computer Science Application

MTH4101 CALCULUS II REVISION NOTES. 1. COMPLEX NUMBERS (Thomas Appendix 7 + lecture notes) ax 2 + bx + c = 0. x = b ± b 2 4ac 2a. i = 1.

LINEAR SYSTEMS AND MATRICES

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Outcomes

7.6 The Inverse of a Square Matrix

MATH 106 LINEAR ALGEBRA LECTURE NOTES

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

Extra Problems for Math 2050 Linear Algebra I

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

6-1 Study Guide and Intervention Multivariable Linear Systems and Row Operations

Linear Algebra and Vector Analysis MATH 1120

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

Gaussian Elimination -(3.1) b 1. b 2., b. b n

Math 302 Outcome Statements Winter 2013

Matrices and Linear Algebra

Properties of Linear Transformations from R n to R m

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian

Math 1060 Linear Algebra Homework Exercises 1 1. Find the complete solutions (if any!) to each of the following systems of simultaneous equations:

HOMEWORK PROBLEMS FROM STRANG S LINEAR ALGEBRA AND ITS APPLICATIONS (4TH EDITION)

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

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

Chapter 2: Matrices and Linear Systems

Matrix & Linear Algebra

Fundamentals of Linear Algebra. Marcel B. Finan Arkansas Tech University c All Rights Reserved

Evaluating Determinants by Row Reduction

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

Transcription:

OR MSc Maths Revision Course Tom Byrne School of Mathematics University of Edinburgh t.m.byrne@sms.ed.ac.uk 15 September 2017

General Information Today JCMB Lecture Theatre A, 09:30-12:30 Mathematics revision class: A revision class on fundamental mathematics skills T. Byrne OR MSc Maths Revision Course 2 / 38

General Information Today JCMB Lecture Theatre A, 09:30-12:30 Mathematics revision class: A revision class on fundamental mathematics skills JCMB 1501/5326, 13:30-14:30 Mathematics assessment test: A test of fundamental mathematics skills to identify students who should attend the revision course and tutorials T. Byrne OR MSc Maths Revision Course 2 / 38

General Information Today JCMB Lecture Theatre A, 09:30-12:30 Mathematics revision class: A revision class on fundamental mathematics skills JCMB 1501/5326, 13:30-14:30 Mathematics assessment test: A test of fundamental mathematics skills to identify students who should attend the revision course and tutorials Weeks 1 and 2 JCMB 1501 Follow-up tutorials (MRev) Mathematics assessment test T. Byrne OR MSc Maths Revision Course 2 / 38

Functions

Functions: Logarithms The logarithm log a x for a base a and a number x is defined to be the inverse function of taking a to the power x, i.e., a x. Therefore, for any x and a, x = log a (a x ), or equivalently, x = a (log a x) T. Byrne OR MSc Maths Revision Course 4 / 38

Functions: Logarithms The logarithm log a x for a base a and a number x is defined to be the inverse function of taking a to the power x, i.e., a x. Therefore, for any x and a, x = log a (a x ), or equivalently, x = a (log a x) Multiplication and division identities include log a (xy) = log a x + log a y log a (x/y) = log a x log a y log a x n = n log a x T. Byrne OR MSc Maths Revision Course 4 / 38

Functions: Logarithms The logarithm log a x for a base a and a number x is defined to be the inverse function of taking a to the power x, i.e., a x. Therefore, for any x and a, x = log a (a x ), or equivalently, x = a (log a x) Multiplication and division identities include log a (xy) = log a x + log a y log a (x/y) = log a x log a y log a x n = n log a x Natural logarithms are where the base a = e log e x = ln x T. Byrne OR MSc Maths Revision Course 4 / 38

Functions: Logarithms The logarithm log a x for a base a and a number x is defined to be the inverse function of taking a to the power x, i.e., a x. Therefore, for any x and a, x = log a (a x ), or equivalently, x = a (log a x) Multiplication and division identities include log a (xy) = log a x + log a y log a (x/y) = log a x log a y log a x n = n log a x Natural logarithms are where the base a = e log e x = ln x Exercise Given ln y = 4 ln 2 1 2 ln 25, what is y? T. Byrne OR MSc Maths Revision Course 4 / 38

Functions: Linear, Quadratic and Roots Linear functions are in the form f (x) = mx + c, where m and c are constants Quadratic functions take the form f (x) = ax 2 + bx + c, where a 0, b and c are constants The roots are the solutions to f (x) = 0 Three techniques are commonly used: Factorize into two brackets by inspection Find the roots using x = b ± b 2 4ac 2a ( Complete the square, so f (x) = a x + b ) 2 4ac b2 + 2a 4a 2 T. Byrne OR MSc Maths Revision Course 5 / 38

Functions: Linear, Quadratic and Roots Linear functions are in the form f (x) = mx + c, where m and c are constants Quadratic functions take the form f (x) = ax 2 + bx + c, where a 0, b and c are constants The roots are the solutions to f (x) = 0 Three techniques are commonly used: Factorize into two brackets by inspection Find the roots using x = b ± b 2 4ac 2a ( Complete the square, so f (x) = a x + b ) 2 4ac b2 + 2a 4a 2 Exercises Find the roots of x 2 + 7x 8 = 0 Find the solution set for x 2 3x 4 0 T. Byrne OR MSc Maths Revision Course 5 / 38

Calculus

Calculus: Derivatives Derivative A function f (x) is said to have derivative at x, written f (x), if the f (x + h) f (x) limit of exists as h 0. f (x) is defined as h Derivatives of common functions f (x) = lim h 0 f (x + h) f (x) h f (x) a x x n e x a x ln x sin x cos x f (x) 0 1 nx n 1 e x a x ln a 1/x cos x sin x T. Byrne OR MSc Maths Revision Course 7 / 38

Calculus: Derivative rules Constant Factor Rule: If f (x) = cu(x), where c constant, then f (x) = cu (x) Sum rule: If f (x) = u(x) + v(x), then f (x) = u (x) + v (x) Product rule: If f (x) = u(x)v(x), then f (x) = u (x)v(x) + u(x)v (x) Quotient rule: If f (x) = u(x) v(x), then f (x) = u (x)v(x) u(x)v (x) [v(x)] 2 Chain rule: If f (x) = g(u(x)), then f (x) = g (u) u (x) T. Byrne OR MSc Maths Revision Course 8 / 38

Calculus: Derivatives Exercises Find f (x): f (x) = cos x ln(cos x) f (x) = (1 + ex ) 3 1 e x T. Byrne OR MSc Maths Revision Course 9 / 38

Calculus: Derivatives Exercises Find f (x): f (x) = cos x ln(cos x) f (x) = (1 + ex ) 3 1 e x Application Given a curve defined by y = f (x), the tangent line of the curve at point (a, f (a)) is y f (a) = f (a)(x a) T. Byrne OR MSc Maths Revision Course 9 / 38

Calculus: Derivatives Exercises Find f (x): f (x) = cos x ln(cos x) f (x) = (1 + ex ) 3 1 e x Application Given a curve defined by y = f (x), the tangent line of the curve at point (a, f (a)) is y f (a) = f (a)(x a) Exercise Find the tangent line of f (x) = x 3 x 2 + 1 at points x = 1 and x = 0 T. Byrne OR MSc Maths Revision Course 9 / 38

Calculus: Higher Order Derivatives Higher order derivatives Since f (x) is a function, we can find its derivative: the second derivative of f (x), written as f (x) Similarly, third, fourth, higher derivatives are written f (x), f (4) (x),..., f (n) (x) T. Byrne OR MSc Maths Revision Course 10 / 38

Calculus: Higher Order Derivatives Higher order derivatives Since f (x) is a function, we can find its derivative: the second derivative of f (x), written as f (x) Similarly, third, fourth, higher derivatives are written f (x), f (4) (x),..., f (n) (x) Taylor Series An approximation of a function, local to a point a is f (x) = f (a)+f (a)(x a)+ f (a) 2! (x a) 2 + f (3) (a) 3! (x a) 3 + + f (n) (a) (x a) n +... n! First p + 1 terms are the Taylor polynomial of degree p If a = 0 the expansion is a Maclaurin series T. Byrne OR MSc Maths Revision Course 10 / 38

Calculus: Higher Order Derivatives Higher order derivatives Since f (x) is a function, we can find its derivative: the second derivative of f (x), written as f (x) Similarly, third, fourth, higher derivatives are written f (x), f (4) (x),..., f (n) (x) Taylor Series An approximation of a function, local to a point a is f (x) = f (a)+f (a)(x a)+ f (a) 2! (x a) 2 + f (3) (a) 3! (x a) 3 + + f (n) (a) (x a) n +... n! First p + 1 terms are the Taylor polynomial of degree p If a = 0 the expansion is a Maclaurin series Exercise Determine the degree 3 polynomial for f (x) = e 2x about x = 0 T. Byrne OR MSc Maths Revision Course 10 / 38

Calculus: Application A point a is a critical point if f (a) = 0 T. Byrne OR MSc Maths Revision Course 11 / 38

Calculus: Application A point a is a critical point if f (a) = 0 A point a is called a (local) maximizer of function f (x) if f (x) f (a) for all x near a T. Byrne OR MSc Maths Revision Course 11 / 38

Calculus: Application A point a is a critical point if f (a) = 0 A point a is called a (local) maximizer of function f (x) if f (x) f (a) for all x near a A point a is called a (local) minimizer of function f (x) if f (x) f (a) for all x near a T. Byrne OR MSc Maths Revision Course 11 / 38

Calculus: Application A point a is a critical point if f (a) = 0 A point a is called a (local) maximizer of function f (x) if f (x) f (a) for all x near a A point a is called a (local) minimizer of function f (x) if f (x) f (a) for all x near a Necessary condition: If a is a maximizer (or minimizer) of function f (x) then a is a critical point. If f (x) has derivative at a, then f (a) = 0 T. Byrne OR MSc Maths Revision Course 11 / 38

Calculus: Application A point a is a critical point if f (a) = 0 A point a is called a (local) maximizer of function f (x) if f (x) f (a) for all x near a A point a is called a (local) minimizer of function f (x) if f (x) f (a) for all x near a Necessary condition: If a is a maximizer (or minimizer) of function f (x) then a is a critical point. If f (x) has derivative at a, then f (a) = 0 Sufficient condition: Suppose a is a critical point If f (a) < 0 then a is a maximizer If f (a) > 0 then a is a minimizer If f (a) = 0 then no conclusion can be drawn T. Byrne OR MSc Maths Revision Course 11 / 38

Calculus: Application Exercise A point a is a critical point if f (a) = 0 A point a is called a (local) maximizer of function f (x) if f (x) f (a) for all x near a A point a is called a (local) minimizer of function f (x) if f (x) f (a) for all x near a Necessary condition: If a is a maximizer (or minimizer) of function f (x) then a is a critical point. If f (x) has derivative at a, then f (a) = 0 Sufficient condition: Suppose a is a critical point If f (a) < 0 then a is a maximizer If f (a) > 0 then a is a minimizer If f (a) = 0 then no conclusion can be drawn Find the critical points of f (x) = 4x 3 21x 2 + 18x + 6 T. Byrne OR MSc Maths Revision Course 11 / 38

Calculus: Partial Derivatives First partial derivatives Let z = f (x, y) be a function of x and y. Partial derivatives of z wrt x and y, respectively, are defined as f x (x, y) = z x f y (x, y) = z y f (x + h, y) f (x, y) = lim h 0 h f (x, y + k) f (x, y) = lim k 0 k T. Byrne OR MSc Maths Revision Course 12 / 38

Calculus: Partial Derivatives Second partial derivatives Second-order partial derivatives can also be written in either notation: f xx (x, y) = 2 z x 2 = ( ) z x x f xy (x, y) = 2 z x y = x ( z y ) T. Byrne OR MSc Maths Revision Course 13 / 38

Calculus: Partial Derivatives Second partial derivatives Second-order partial derivatives can also be written in either notation: f xx (x, y) = 2 z x 2 = ( ) z x x Exercise f xy (x, y) = 2 z x y = x ( z y Find f xx, f yy, f xy, f yx given that f (x, y) = x 3 + 2xy y 2 ) T. Byrne OR MSc Maths Revision Course 13 / 38

Calculus: Hessian matrix Hessian matrix The Hessian H is a square matrix containing all the second partial derivatives. Note that for smooth functions, f xy = f yx, so the matrix is symmetric. In this example with two variables, [ ] fxx f H = xy The Hessian can be used to test the nature of critical points f yx f yy T. Byrne OR MSc Maths Revision Course 14 / 38

Calculus: Integrals Integrals Consider two functions f (x) and F (x) If F (x) = f (x) then F (x) is the indefinite integral of f (x) This is written as F (x) = f (x) dx T. Byrne OR MSc Maths Revision Course 15 / 38

Calculus: Integrals Integration examples and rules (1) dx = x + C x n dx = x n+1 + C (n 1) n + 1 x 1 = ln x + C e x dx = e x + C a x dx = ax + C (a > 0, a 1) ln a af (x) dx = a f (x) dx [f (x) + g(x)] dx = f (x) dx + g(x) dx [f (x)] n f [f (x)]n+1 (x) dx = + C (n 1) n + 1 f (x) 1 f (x) dx = ln f (x) + C e f (x) f (x) dx = e f (x) + C a f (x) f (x) dx = af (x) ln a + C (a > 0, a 1) T. Byrne OR MSc Maths Revision Course 16 / 38

Calculus: Integrals Integration by parts For two functions u(x) and v(x) u(x)v (x) dx = u(x)v(x) v(x)u (x) dx T. Byrne OR MSc Maths Revision Course 17 / 38

Calculus: Integrals Fundamental Theorem of Calculus If f (x) is continuous for all x satisfying a x b, then b a f (x) dx = F (b) F (a) where F (x) is any indefinite integral of f (x) F (b) F (a) is often written as [F (x)] b a T. Byrne OR MSc Maths Revision Course 18 / 38

Calculus: Integrals Fundamental Theorem of Calculus If f (x) is continuous for all x satisfying a x b, then b a f (x) dx = F (b) F (a) where F (x) is any indefinite integral of f (x) F (b) F (a) is often written as [F (x)] b a Exercises Find the following integrals: (2x + 5) 3 dx 2 1 ln x x 2 dx T. Byrne OR MSc Maths Revision Course 18 / 38

Linear Algebra

Linear Algebra: Matrices Matrices A matrix is any rectangular array of numbers The ijth element of A, written as a ij, is the number in the ith row and jth column of A Two matrices A and B are equal if a ij = b ij for all i and j T. Byrne OR MSc Maths Revision Course 20 / 38

Linear Algebra: Vectors Vectors Column vector is a matrix with only one column Row vector is a matrix with only one row Vector is a column vector or row vector Dimension of a vector is the number of elements in it Zero vector is vector with all elements equal 0 Scalar Product If u is row vector and v is column vector with the same dimension n, then the scalar product of u and v, written uv, is the number u 1 v 1 + + u n v n For two column vectors u and v, the scalar product is u T v T. Byrne OR MSc Maths Revision Course 21 / 38

Linear Algebra: Vector norms Norm The norm of a vector is a quantity that describes in some way length or size of the vector. The p-norm x p for p = 1, 2,... is defined as x p = ( i x i p ) 1/p Commonly used versions of the p-norm are p = 1 x 1 = x i i ( ) p = 2 x 2 = x i 2 p = x = max x i. i i T. Byrne OR MSc Maths Revision Course 22 / 38

Linear Algebra: Norm properties Norm properties Some useful properties, which are true for all norms, are x > 0 when x 0 and x = 0 iff x = 0 kx = k x for any scalar k x + y x + y T. Byrne OR MSc Maths Revision Course 23 / 38

Linear Algebra: Matrices Special Matrices For an m n matrix A, the n m matrix A T which has elements [A T ] ij = a ji is called the transpose of A A square matrix has equal numbers of rows and columns A matrix A for which A = A T is symmetric A diagonal matrix is one where only the elements a ii are non-zero The identity matrix is diagonal with a ii = 1 An orthogonal matrix has the property AA T = I T. Byrne OR MSc Maths Revision Course 24 / 38

Linear Algebra: Matrices Positive definiteness A real symmetric matrix is positive definite iff x T Ax > 0 for all x 0 All the leading submatrices of A have positive determinants All the eigenvalues of A satisfy λ i > 0 There exists a non-singular matrix W such that A = W T W If one of these conditions is true, it implies that the others are also true T. Byrne OR MSc Maths Revision Course 25 / 38

Linear Algebra: Critical points Critical point test for functions of two variables f (x, y) For critical [ point ] (x, y) [where f x = 0, f y = 0] and Hessian matrix fxx f H = xy f yx f yy det H 1 = f xx det H = f xx f yy f 2 xy Conclusion > 0 > 0 H is positive definite, so a (local) minimizer < 0 > 0 H is negative definite, so a (local) maximizer 0 < 0 H is indefinite, so a saddle point The test is inconclusive if either of the determinants is 0 T. Byrne OR MSc Maths Revision Course 26 / 38

Linear Algebra: Critical points Critical point test for functions of two variables f (x, y) For critical [ point ] (x, y) [where f x = 0, f y = 0] and Hessian matrix fxx f H = xy f yx f yy det H 1 = f xx det H = f xx f yy f 2 xy Conclusion > 0 > 0 H is positive definite, so a (local) minimizer < 0 > 0 H is negative definite, so a (local) maximizer 0 < 0 H is indefinite, so a saddle point The test is inconclusive if either of the determinants is 0 Exercise Find and classify the stationary points of f (x, y) = 2x 2 4xy + y 4 + 2 T. Byrne OR MSc Maths Revision Course 26 / 38

Linear Algebra: Matrix operations Matrix operations Scalar multiple of a matrix: If A is a matrix, c is a number, then matrix ca is obtained by multiplying each element of A by c Addition of two matrices: If A and B are two matrices with same order (that is, m n), then matrix C = A + B is obtained by defining c ij = a ij + b ij Matrix multiplication: The matrix product of two matrices A and B, written AB, is defined if and only if number of columns in A = number of rows in B Suppose A is m r matrix and B is r n matrix, then the matrix product C = AB is a m n matrix whose ijth element c ij is the scalar product of ith row of A and j column of B T. Byrne OR MSc Maths Revision Course 27 / 38

Linear Algebra: Matrix operations Inversion and Transposition Matrix inversion: Some n n square matrices are invertible and it is possible to find A 1 such that AA 1 = I Inverse of matrix product: Let A and B both be n n square invertible matrices. Then (AB) 1 = B 1 A 1 Transpose matrices: from the definition of a transpose matrix above, it is not too hard to see these properties (A T ) T = A (A + B) T = A T + B T (ca) T = ca T (AB) T = B T A T (A T ) 1 = (A 1 ) T T. Byrne OR MSc Maths Revision Course 28 / 38

Linear Algebra: Matrix operations Exercises Given the matrices A = evaluate AB, BA T [ 1 1 3 1 2 1 ], B = 1 2 0 1 1 0 3 0 1 Considering C and D as matrices of dimension n n, simplify C(CD) 1 D(C 1 D) 1, T. Byrne OR MSc Maths Revision Course 29 / 38

Linear Algebra: Matrix operations Determinant The determinant of a 2 2 matrix can be calculated [ ] a b det c d a b c d ad bc For larger matrices, the determinant may be found by calculating the determinants of minor matrices M ij recursively k det(a) = a ij ( 1) i+j M ij i=1 T. Byrne OR MSc Maths Revision Course 30 / 38

Linear Algebra: Matrix operations Exercises Given A = [ 1 2 1 1 calculate det(a) and det(b) ], B = 1 2 0 1 1 0 3 0 1, T. Byrne OR MSc Maths Revision Course 31 / 38

Linear Algebra: Matrix operations Methods for inverting matrices The formula for a 2 2 matrix: [ ] 1 a b = c d 1 ad bc [ d b c a ] Augment the matrix A to [A below) Cramer s rule (in theory) I ] and use Gauss method (see T. Byrne OR MSc Maths Revision Course 32 / 38

Linear Algebra: Matrix operations Elementary row operations (ero) If matrix A is obtained by a set of eros from matrix A, then A and A are equivalent Type 1 ero: A is obtained by multiplying any row of A by a nonzero number Type 2 ero: A is obtained by first multiplying any row of A (say, row i) by a nonzero number, then adding it to another row of A (say, row j), that is, row j of A = c(row i of A) + row j of A Type 3 ero: interchange any two rows of A T. Byrne OR MSc Maths Revision Course 33 / 38

Linear Algebra: Matrix operations Exercises Given A = [ 1 2 1 1 ], B = 1 2 0 1 1 0 3 0 1 determine A 1 and B 1 and verify your results, T. Byrne OR MSc Maths Revision Course 34 / 38

Linear Algebra: Solving systems Systems of linear equations Suppose A is m n matrix and b is a vector of dimension m A system of linear equations is Ax = b with unknown column vector x of dimension n A column vector x is solution of a system of linear equations if it satisfies Ax = b Find a solution by Gauss method: For the system Ax = b, construct the augmented matrix [A b] and use type 1, type 2 and type 3 eros Special cases: No solution or infinite number of solutions T. Byrne OR MSc Maths Revision Course 35 / 38

Linear Algebra: Solving systems Exercise Solve by Gaussian elimination: x y + z = 1 2x y 3z = 0 x + y + 2z = 2 T. Byrne OR MSc Maths Revision Course 36 / 38

Linear Algebra: Differentiation Differentiating linear algebra expressions The symbol denotes the vector derivative or gradient operator f (x) = f x 1. f x n Here is a brief summary of how to apply this operator to expressions involving vectors and matrices. τ is a scalar, c, x are vectors, while A, Q are matrices, all of suitable dimensions f (x) c T x τc T x A T x 1 2 x T Qx f (x) c τ c A Qx T. Byrne OR MSc Maths Revision Course 37 / 38

Further exercises Express {x : x + 3 < 2} as intervals Solve by Gaussian elimination 4x y = 3 2x + 5y = 21 Assume c, s, x, y are vectors, while A, Q are matrices, all of suitable dimensions. Find x L(x) for the following expressions L(x) = c T x x T s L(x) = y T (Ax b) L(x) = c T x + 1 2 x T Qx T. Byrne OR MSc Maths Revision Course 38 / 38