Vector Calculus and Quadratic function

Slides:



Advertisements
Similar presentations
Introducción a la Optimización de procesos químicos. Curso 2005/2006 BASIC CONCEPTS IN OPTIMIZATION: PART II: Continuous & Unconstrained Important concepts.
Advertisements

APPENDIX A: REVIEW OF LINEAR ALGEBRA APPENDIX B: CONVEX AND CONCAVE FUNCTIONS V. Sree Krishna Chaitanya 3 rd year PhD student Advisor: Professor Biswanath.
Lecture 8 – Nonlinear Programming Models Topics General formulations Local vs. global solutions Solution characteristics Convexity and convex programming.
Mathematics. Matrices and Determinants-1 Session.
MF-852 Financial Econometrics
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
Weak Formulation ( variational formulation)
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.
Economics 2301 Matrices Lecture 13.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
D Nagesh Kumar, IIScOptimization Methods: M2L3 1 Optimization using Calculus Optimization of Functions of Multiple Variables: Unconstrained Optimization.
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
資訊科學數學11 : Linear Equation and Matrices
Linear Functions.
5.1 Orthogonality.

ECON 1150 Matrix Operations Special Matrices
CHAP 0 MATHEMATICAL PRELIMINARY
A matrix equation has the same solution set as the vector equation which has the same solution set as the linear system whose augmented matrix is Therefore:
Matrix Differential Calculus By Dr. Md. Nurul Haque Mollah, Professor, Dept. of Statistics, University of Rajshahi, Bangladesh Dr. M. N. H. MOLLAH.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
A Review of Some Fundamental Mathematical and Statistical Concepts UnB Mestrado em Ciências Contábeis Prof. Otávio Medeiros, MSc, PhD.
3.1 Definition of the Derivative & Graphing the Derivative
Sec 15.6 Directional Derivatives and the Gradient Vector
What is the determinant of What is the determinant of
Section 15.6 Directional Derivatives and the Gradient Vector.
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.
Review of Matrix Operations Vector: a sequence of elements (the order is important) e.g., x = (2, 1) denotes a vector length = sqrt(2*2+1*1) orientation.
Multivariate Statistics Matrix Algebra I Exercises Alle proofs veranderen in show by example W. M. van der Veld University of Amsterdam.
Signal & Weight Vector Spaces
Performance Surfaces.
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.
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,
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
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 =
Chapter 2 Vector Calculus
2.3 Geometrical Application of Calculus
Matrices and Vector Concepts
MATRICES.
張智星 (Roger Jang) 台大資工系 多媒體檢索實驗室
Review of Linear Algebra
Review of Matrix Operations
Movable lines class activity.
FE Exam Tutorial
Systems of First Order Linear Equations
Lecture 8 – Nonlinear Programming Models
SPANNING.
+ Definite, + semi definite, - definite & - semi definite functions
Modern Control Systems (MCS)
Quadratic Forms and Objective functions with two or more variables
Derivative of scalar forms
Lecture 11 Matrices and Linear Algebra with MATLAB
Section 14.4 Gradients and the Directional Derivatives in the Plane
1.3 Vector Equations.
CSE 541 – Numerical Methods
Multivariate Statistical Analysis
Presented By Farheen Sultana Ist Year I SEM
Basic Concepts, Necessary and Sufficient conditions
Numerical Analysis Lecture 17.
Maths for Signals and Systems Linear Algebra in Engineering Lecture 6, Friday 21st October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Copyright © Cengage Learning. All rights reserved.
MAT 3238 Vector Calculus 15.4 Tangent Planes.
difference in the y-values
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE, HADAPSAR, PUNE
Performance Surfaces.
Gradient/Concavity 2.5 Geometrical Application of Calculus
Laboratory in Oceanography: Data and Methods
Outline Preface Fundamentals of Optimization
Linear Equations in Linear Algebra
Presentation transcript:

Vector Calculus and Quadratic function 10/13/2018 By Nafees Ahamad

Gradient of a function Consider a multivariable, scalar function f(x) f(x)=f(xnx1)=f(x1,x2…xn) where 𝑥=𝑥 𝑛×1 = 𝑥 1 𝑥 2 . . . 𝑥 𝑛 𝑖𝑠 𝑎 𝑣𝑒𝑐𝑡𝑜𝑟 Gradient of f(x) 𝛻𝑓 𝑥 = 𝑔𝑟𝑎𝑑 𝑓(𝑥) 𝑥=𝑥∗ = 𝜕𝑓(𝑥) 𝜕𝑥 𝑥=𝑥∗ where 𝑥=𝑥 𝑛×1 =𝑥 𝑛×1 ∗ = 𝑥 1 ∗ 𝑥 2 ∗ . . . 𝑥 𝑛 ∗ 𝑖𝑠 𝑎 𝑣𝑒𝑐𝑡𝑜𝑟 10/13/2018 By Nafees Ahamad

Gradient of a function… 𝛻𝑓 𝑥 = 𝜕𝑓(𝑥) 𝜕 𝑥 1 𝜕𝑓(𝑥) 𝜕 𝑥 2 . . . 𝜕𝑓(𝑥) 𝜕 𝑥 𝑛 𝑥=𝑥∗ = 𝜕𝑓(𝑥) 𝜕 𝑥 1 𝜕𝑓(𝑥) 𝜕 𝑥 2 . . . 𝜕𝑓(𝑥) 𝜕 𝑥 𝑛 𝑥=𝑥∗ 𝑇 So gradient of a scalar function is a column vector (Gradient=> derivative of a scalar function w.r.t vector) T→Transpose 10/13/2018 By Nafees Ahamad

Example 1: Calculate the gradient vector for the function 𝑓 𝑥 = 𝑥 1 2 +2 𝑥 1 𝑥 2 + 3𝑥 2 2 +4 𝑥 1 𝑥 2 𝑥 3 + 𝑥 3 3 at 𝑥 3×1 = 1 2 0 𝑇 Solution 𝜕𝑓(𝑥) 𝜕 𝑥 1 =2 𝑥 1 +2 𝑥 2 +4 𝑥 2 𝑥 3 𝜕𝑓(𝑥) 𝜕 𝑥 2 =2 𝑥 1 +6 𝑥 2 +4 𝑥 1 𝑥 3 𝜕𝑓(𝑥) 𝜕 𝑥 3 =4 𝑥 1 𝑥 2 +3 𝑥 3 2 10/13/2018 By Nafees Ahamad

Example 1… So gradient 𝛻𝑓 𝑥 = 𝜕𝑓(𝑥) 𝜕 𝑥 1 𝜕𝑓(𝑥) 𝜕 𝑥 2 𝜕𝑓(𝑥) 𝜕 𝑥 3 𝑥=𝑥∗ = 2 𝑥 1 +2 𝑥 2 +4 𝑥 2 𝑥 3 2 𝑥 1 +6 𝑥 2 +4 𝑥 1 𝑥 3 4 𝑥 1 𝑥 2 +3 𝑥 3 2 𝑥= 𝑥 ∗ = 1 2 0 = 6 14 8 Geometrically , the gradient of a function is normal to the tangent plane at the point x=x* 10/13/2018 By Nafees Ahamad

2nd derivative of a real valued function: First take the derivative of a function (scalar) that means gradient of a function. Which results into a vector. Now again take the derivate of this vector w.r.t vector which will result into a matrix. 𝛻 2 𝑓 𝑥 = 𝜕 𝜕𝑓(𝑥) 𝜕𝑥 𝜕𝑥 𝑥=𝑥∗ = 𝜕 2 𝑓(𝑥) 𝜕𝑥 2 𝑥=𝑥∗ 𝛻 2 𝑓 𝑥 = 𝜕 𝜕𝑥 𝜕𝑓(𝑥) 𝜕 𝑥 1 𝜕𝑓(𝑥) 𝜕 𝑥 2 . . . 𝜕𝑓(𝑥) 𝜕 𝑥 𝑛 𝑥=𝑥∗ 𝑇 10/13/2018 By Nafees Ahamad

2nd derivative of a real valued function… 𝛻 2 𝑓 𝑥 = 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 2 . . . 𝜕𝑓(𝑥) 𝜕 𝑥 1 𝑥 𝑛 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 2 . . . 𝜕𝑓(𝑥) 𝜕 𝑥 2 𝑥 𝑛 . . . 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 𝑛 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 𝑥 𝑛 . . . 𝜕 2 𝑓(𝑥) 𝜕 𝑥 𝑛 2 𝑥= 𝑥 ∗ It is a symmetrical nxn matrix (aij=aji i≠j ) and known Hessian Matrix 10/13/2018 By Nafees Ahamad

Example 2 Calculate 2nd derivative of function 𝑓 𝑥 = 𝑥 1 2 +2 𝑥 1 𝑥 2 + 3𝑥 2 2 +4 𝑥 1 𝑥 2 𝑥 3 + 𝑥 3 3 at 𝑥 3×1 = 1 2 0 𝑇 Solution: 𝜕𝑓(𝑥) 𝜕 𝑥 1 =2 𝑥 1 +2 𝑥 2 +4 𝑥 2 𝑥 3 𝜕𝑓(𝑥) 𝜕 𝑥 2 =2 𝑥 1 +6 𝑥 2 +4 𝑥 1 𝑥 3 𝜕𝑓(𝑥) 𝜕 𝑥 3 =4 𝑥 1 𝑥 2 +3 𝑥 3 2 10/13/2018 By Nafees Ahamad

Example 2… 𝛻 2 𝑓 𝑥 = 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 3 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 𝑥 3 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 3 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 𝑥 3 𝜕 2 𝑓(𝑥) 𝜕 𝑥 3 2 𝑥= 𝑥 ∗ 10/13/2018 By Nafees Ahamad

Example 2… 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 2 =2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 2 =2+4 𝑥 3 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 2 =2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 2 =2+4 𝑥 3 𝜕 2 𝑓(𝑥) 𝜕 𝑥 1 𝑥 3 =4 𝑥 2 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 2 =6 𝜕 2 𝑓(𝑥) 𝜕 𝑥 2 𝑥 3 =4 𝑥 1 𝜕 2 𝑓(𝑥) 𝜕 𝑥 3 2 =6 𝑥 3 𝛻 2 𝑓 𝑥 = 2 2+4 𝑥 3 4 𝑥 2 2+4 𝑥 3 6 4 𝑥 1 4 𝑥 2 4 𝑥 1 6 𝑥 3 𝑥= 𝑥 ∗ = 1 2 0 𝑇 𝛻 2 𝑓 𝑥 = 2 2 8 2 6 4 8 4 0 10/13/2018 By Nafees Ahamad

Quadratic functions Suppose we have a function of two variables x1 & x2 The quadratic function for these variables may be 𝑓 𝑥 1 , 𝑥 2 =𝑎 𝑥 1 2 +𝑏 𝑥 1 𝑥 2 +𝑐 𝑥 2 2 −−−(1) Above equation (1) may be written as 𝑓 𝑥 1 , 𝑥 2 = 𝑥 1 𝑥 2 𝑎 𝑏 0 𝑐 𝑥 1 𝑥 2 = 𝑥 𝑇 𝑃𝑥 Or 𝑓 𝑥 1 , 𝑥 2 = 𝑥 1 𝑥 2 𝑎 0 𝑏 𝑐 𝑥 1 𝑥 2 = 𝑥 𝑇 𝑃𝑥 We can change above diagonal elements and get many (infinite) solution Say Matrix P 10/13/2018 By Nafees Ahamad

Quadratic functions … 𝑓 𝑥 1 , 𝑥 2 = 𝑥 1 𝑥 2 𝑎 −𝑏 2𝑏 𝑐 𝑥 1 𝑥 2 = 𝑥 𝑇 𝑃𝑥 𝑓 𝑥 1 , 𝑥 2 = 𝑥 1 𝑥 2 𝑎 −𝑏 2𝑏 𝑐 𝑥 1 𝑥 2 = 𝑥 𝑇 𝑃𝑥 𝑓 𝑥 1 , 𝑥 2 = 𝑥 1 𝑥 2 𝑎 𝑏 2 𝑏 2 𝑐 𝑥 1 𝑥 2 = 𝑥 𝑇 𝑃𝑥 So Matrix P is not unique P=Symmetrical matrix 10/13/2018 By Nafees Ahamad

General Quadratic function A quadratic function of ‘n’ variables 𝑓 𝑥 1 , 𝑥 2 , 𝑥 3 ,… 𝑥 𝑛 =𝑓 𝑥 𝑛×1 = 𝑥 𝑇 𝑃𝑥 Where 𝑥= 𝑥 1 𝑥 2 . . . 𝑥 𝑛 𝑛×1 and Pnxn symmetric matrix 10/13/2018 By Nafees Ahamad

General Quadratic function… Suppose P is not a symmetric matrix then 𝑓 𝑥 = 𝑥 𝑇 𝑃𝑥= 1 2 𝑥 𝑇 𝑃𝑥+ 1 2 𝑥 𝑇 𝑃𝑥 𝑓 𝑥 = 𝑥 𝑇 𝑃𝑥= 1 2 𝑥 𝑇 𝑃𝑥+ 1 2 𝑥 𝑇 𝑃𝑥 𝑇 𝑓 𝑥 = 𝑥 𝑇 𝑃𝑥= 1 2 𝑥 𝑇 𝑃𝑥+ 1 2 𝑥 𝑇 𝑃 𝑇 𝑥 ∵ 𝐴𝐵𝐶 𝑇 = 𝐶 𝑇 𝐵 𝑇 𝐴 𝑇 & 𝑥 𝑇 𝑇 =𝑥 𝑓 𝑥 = 𝑥 𝑇 𝑃𝑥= 𝑥 𝑇 𝑃+ 𝑃 𝑇 2 𝑥= 𝑥 𝑇 Qx f(x) will be scalar function i.e f(x)=10 say, so it may be written as F(x)=5+5 1 2 𝑥 𝑇 𝑃𝑥 is scalar so we can take transpose of it Always Symmetrical matrix 10/13/2018 By Nafees Ahamad

Next: Now some other concepts like + definite, + semi definite, - definite & - sem definite. 10/13/2018 By Nafees Ahamad