Source
Adapted from my own handwritten and hand-typed notes from Year 1 to Year 3 of my EEE degree
Since and are again functions of , we can differentiate them again. A function of two variables has four second partial derivatives.
Notation
The subscript order is the order of differentiation, read left to right. The notation is read right to left.
Hessian matrix
The second derivatives are collected in the Hessian:
A 3-variable function has nine second partial derivatives. The determinant of the 2 by 2 Hessian is used in the second derivative test.
Clairaut's theorem (mixed derivative theorem)
If are all defined near and continuous at , then
This is not true for every function, but it holds for all the nice functions in this course, so the Hessian is symmetric.
Worked example
Let . Then and .
The mixed derivatives agree, as Clairaut's theorem predicts.
Higher order example
For :