Analyzing the Hessian. Premise Determinants Eigenvalues Meaning

Similar documents
Lecture 5 Principal Minors and the Hessian

[1] Diagonal factorization

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

Figure 1.1 Vector A and Vector F

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n.

Determine If An Equation Represents a Function

5.7 Maximum and Minimum Values

Chapter 17. Orthogonal Matrices and Symmetries of Space

LS.6 Solution Matrices

Section 9.5: Equations of Lines and Planes

Cross product and determinants (Sect. 12.4) Two main ways to introduce the cross product

Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013

Introduction to Matrix Algebra

Review Jeopardy. Blue vs. Orange. Review Jeopardy

Linear algebra and the geometry of quadratic equations. Similarity transformations and orthogonal matrices

Multi-variable Calculus and Optimization

Lecture 2 Matrix Operations

Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components

Section V.3: Dot Product

SECOND DERIVATIVE TEST FOR CONSTRAINED EXTREMA

Similarity and Diagonalization. Similar Matrices

Linear Algebra Notes for Marsden and Tromba Vector Calculus

by the matrix A results in a vector which is a reflection of the given

ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123

Eigenvalues and Eigenvectors

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

5. Orthogonal matrices

MATH APPLIED MATRIX THEORY

a cos x + b sin x = R cos(x α)

8 Square matrices continued: Determinants

F Matrix Calculus F 1

2. Select Point B and rotate it by 15 degrees. A new Point B' appears. 3. Drag each of the three points in turn.

Beginner s Matlab Tutorial

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1

6. LECTURE 6. Objectives

Chapter 6. Orthogonality

Similar matrices and Jordan form

Question 2: How do you solve a matrix equation using the matrix inverse?

Lecture 5: Singular Value Decomposition SVD (1)

Math 1050 Khan Academy Extra Credit Algebra Assignment

1 Shapes of Cubic Functions

Linear Algebra and TI 89

DERIVATIVES AS MATRICES; CHAIN RULE

3.2 Sources, Sinks, Saddles, and Spirals

CHAPTER 2. Eigenvalue Problems (EVP s) for ODE s

Linear Algebra Review. Vectors

Vector and Matrix Norms

The Vector or Cross Product

Lectures notes on orthogonal matrices (with exercises) Linear Algebra II - Spring 2004 by D. Klain

Physics 235 Chapter 1. Chapter 1 Matrices, Vectors, and Vector Calculus

October 3rd, Linear Algebra & Properties of the Covariance Matrix

Notes on Determinant

Elementary Linear Algebra

Math Common Core Sampler Test

Unified Lecture # 4 Vectors

The Dot and Cross Products

Computing Euler angles from a rotation matrix

x = + x 2 + x

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Excel Basics By Tom Peters & Laura Spielman

Linear Programming. March 14, 2014

Excel supplement: Chapter 7 Matrix and vector algebra

u = [ 2 4 5] has one row with three components (a 3 v = [2 4 5] has three rows separated by semicolons (a 3 w = 2:5 generates the row vector w = [ 2 3

The Matrix Elements of a 3 3 Orthogonal Matrix Revisited

5: Magnitude 6: Convert to Polar 7: Convert to Rectangular

Precalculus REVERSE CORRELATION. Content Expectations for. Precalculus. Michigan CONTENT EXPECTATIONS FOR PRECALCULUS CHAPTER/LESSON TITLES

One advantage of this algebraic approach is that we can write down

DRAFT. Further mathematics. GCE AS and A level subject content

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

Increasing for all. Convex for all. ( ) Increasing for all (remember that the log function is only defined for ). ( ) Concave for all.

constraint. Let us penalize ourselves for making the constraint too big. We end up with a

2.1 Increasing, Decreasing, and Piecewise Functions; Applications

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

Linear Algebraic Equations, SVD, and the Pseudo-Inverse

Math 241, Exam 1 Information.

Vectors. Objectives. Assessment. Assessment. Equations. Physics terms 5/15/14. State the definition and give examples of vector and scalar variables.

Geometric description of the cross product of the vectors u and v. The cross product of two vectors is a vector! u x v is perpendicular to u and v

Dear Accelerated Pre-Calculus Student:

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

LINEAR ALGEBRA. September 23, 2010

Vectors VECTOR PRODUCT. Graham S McDonald. A Tutorial Module for learning about the vector product of two vectors. Table of contents Begin Tutorial

v 1 v 3 u v = (( 1)4 (3)2, [1(4) ( 2)2], 1(3) ( 2)( 1)) = ( 10, 8, 1) (d) u (v w) = (u w)v (u v)w (Relationship between dot and cross product)

Data Mining: Algorithms and Applications Matrix Math Review

What does the number m in y = mx + b measure? To find out, suppose (x 1, y 1 ) and (x 2, y 2 ) are two points on the graph of y = mx + b.

Inner Product Spaces

Lecture notes on linear algebra

Math Placement Test Practice Problems

The Method of Partial Fractions Math 121 Calculus II Spring 2015

Lecture 3 : The Natural Exponential Function: f(x) = exp(x) = e x. y = exp(x) if and only if x = ln(y)

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

ASEN Structures. MDOF Dynamic Systems. ASEN 3112 Lecture 1 Slide 1

MAC Learning Objectives. Module 10. Polar Form of Complex Numbers. There are two major topics in this module:

3.1 Solving Systems Using Tables and Graphs

Definition of derivative

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

Transcription:

Analyzing the Hessian Premise Determinants Eigenvalues Meaning

The Problem In 1-variable calculus, you can just look at the second derivative at a point and tell what is happening with the concavity of a function: positive implies concave up, negative implies concave down. But because the Hessian (which is equivalent to the second derivative) is a matrix of values rather than a single value, there is extra work to be done. This lesson forms the background you will need to do that work.

Finding a Determinant Given a matrix a b, the determinant, symbolized c d a b, is equal to a d - b c. So, the determinant of c d 3 4 1 2 is 6 - -4 = 10 The determinant has applications in many fields. For us, it s just a useful concept. Determinants of larger matrices are possible to find, but more difficult and beyond the scope of this class.

Practice Problem 1 Find the determinant. Check your work using det(a) in Julia. 3 1 a. 2 0 b. 4 1 1 5 c. 1 0 0 1

Eigenvectors and Eigenvalues One of the biggest applications of matrices is in performing geometric transformations like rotation, translation, reflection, and dilation. In Julia, type in the vector X = [3; -1] Then, multiply [2 0; 0 2]*X You should get [6; -2], which is a multiplication of X by a factor of 2, in other words a dilation. Next, try pi cos( 6 sin( pi 6 ) sin( pi 6 ) ) cos( pi 6 ) *X Although this one isn t immediately clear, you have accomplished a rotation of vector X by /6 radians.

Eigenvectors and Eigenvalues In the last slide, we were looking at a constant X and a changing A, but you can also get interesting results for a constant A and a changing X. For example, the matrix 2 3 doesn t look very 5 4 special, and it doesn t do anything special for most values of X. But if you multiply it by 3 21, you get 5 35, which is a scalar multiplication by 7.

Eigenvectors and Eigenvalues When a random matrix A acts as a scalar multiplier on a vector X, then that vector is called an eigenvector of X. The value of the multiplier is known as an eigenvalue. For the purpose of analyzing Hessians, the eigenvectors are not important, but the eigenvalues are.

Finding Eigenvalues The simplest way to find eigenvalues is to open Julia and type in: eig(a) This will give you the eigenvalue(s) of A as well as a matrix composed of the associated eigenvectors. However, it s also useful to know how to do it by hand.

Finding Eigenvalues To find eigenvalues by hand, you will be solving this equation a b c d x 0 0 x = 0 original matrix which turns into the following determinant: a x b c d x = 0 determinant symbol variable matrix, will solve for x

Finding Eigenvalues So, if you were trying to find the eigenvalues for the matrix 2 3, you would need to solve the 5 4 determinant 2 x 3 5 4 x = 0. Cross-multiplying, you would get (2 x)(4 x) 15 = 0 8 6x + x 2 15 = 0 x 2 6x 7 = 0 (x 7) (x + 1) = 0 so x = 7 or -1. eigenvalues!

Practice Problem 2 Find the eigenvalues of the following matrices by hand, then check using Julia: a. 3 8 4 1 2 6 b. 1 3 Find the eigenvalues using Julia: 2 1 4 c. 2 3 1 0 1 2

Meaning of Eigenvalues Because the Hessian of an equation is a square matrix, its eigenvalues can be found (by hand or with computers we ll be using computers from here on out). Because Hessians are also symmetric (the original and the transpose are the same), they have a special property that their eigenvalues will always be real numbers. So the only thing of concern is whether the eigenvalues are positive or negative.

Meaning of Eigenvalues If all of the eigenvalues are negative, it is said to be a negative-definite matrix. This is like concave down. If the Hessian at a given point has all positive eigenvalues, it is said to be a positive-definite matrix. This is the multivariable equivalent of concave up.

Meaning of Eigenvalues If either eigenvalue is 0, then you will need more information (possibly a graph or table) to see what is going on. And, if the eigenvalues are mixed (one positive, one negative), you have a saddle point: Here, the graph is concave up in one direction and concave down in the other.

Practice Problem 3 Use Julia to find the eigenvalues of the given Hessian at the given point. Tell whether the function at the point is concave up, concave down, or at a saddle point, or whether the evidence is inconclusive. a. 12x2 1 1 2 b. 6x 0 0 6y c. 2y 2 4xy 4xy 2x 2 at (3, 1) at (-1, -2) at (1, -1) and (1, 0)

Practice Problem 4 Determine the concavity of f(x, y) = x 3 + 2y 3 xy at the following points: a) (0, 0) b) (3, 3) c) (3, -3) d) (-3, 3) e) (-3, -3)

Practice Problem 5 For f(x, y) = 4x + 2y - x 2 3y 2 a) Find the gradient. Use that to find a critical point (x, y) that makes the gradient 0. b) Use the eigenvalues of the Hessian at that point to determine whether the critical point in a) is a maximum, minimum, or neither.

Practice Problem 6 For f(x, y) = x 4 + y 2 xy, a) Find the critical point(s) b) Test the critical point(s) to see if they are maxima or minima.