Professional Documents
Culture Documents
Derivativas
Vector and Matrix of partial derivatives
Gradient of a function
• Let f(x,y,z) be a function of three variables.
• Definition:
• The gradient of 𝑓(𝑥, 𝑦, 𝑧) at point 𝑥0 , 𝑦0 , 𝑧0 , denoted by
∇𝑓 𝑥0 , 𝑦0 , 𝑧0 , is a vector of first partial derivatives of 𝑓(𝑥, 𝑦, 𝑧)
valued or calculated at point 𝑥0 , 𝑦0 , 𝑧0 .
• Its formal definition is:
𝜕𝑓(𝑥0 ,𝑦0 ,𝑧0 ) 𝜕𝑓(𝑥0 ,𝑦0 ,𝑧0 ) 𝜕𝑓(𝑥0 ,𝑦0 ,𝑧0 )
• ∇𝑓 𝑥0 , 𝑦𝑜 , 𝑧0 = 𝜕𝑥
,
𝜕𝑦
,
𝜕𝑧
Eamples of Gradient
• Example 1:
• Find the vector gradient of 𝑓 𝑥, 𝑦 = 𝑥 2 𝑦, find the gradient of 𝑓(𝑥, 𝑦)
at point (1,1)
• Answer:
𝜕𝑓 𝜕𝑓 𝜕𝑓 𝜕𝑓
• = 2𝑥𝑦 = 𝑥2 and ∇𝑓 𝑥, 𝑦 = , = 2𝑥𝑦, 𝑥 2
𝜕𝑥 𝜕𝑦 𝜕𝑥 𝜕𝑦
• ∇𝑓 1,1 = 2,1
Eamples of Gradient
• Example 2:
• Find the vector gradient of 𝑓 𝑥, 𝑦 = 𝑥 2 𝑦 4 + 𝑥 3 𝑦 − 𝑥, find the
gradient of 𝑓(𝑥, 𝑦) at point (0,1)
• Answer:
𝜕𝑓 𝜕𝑓
• = 2𝑥𝑦 4 + 3𝑥 2 𝑦 −1 = 4𝑥 2 𝑦 3 + 𝑥 3 and ∇𝑓 𝑥, 𝑦 =
𝜕𝑥 𝜕𝑦
𝜕𝑓 𝜕𝑓
, = 2𝑥𝑦 4 + 3𝑥 2 𝑦 − 1, 4𝑥 2 𝑦 3 + 𝑥 3
𝜕𝑥 𝜕𝑦
• ∇𝑓 0,1 = −1,0
Properties of the gradient
• 1. The gradient of a function allows to calculate the first derivative of
𝑓(𝑥, 𝑦, 𝑧) along the direction of a vector.
• Given 𝑓(𝑥, 𝑦, 𝑧) and a vector 𝑣 = 𝑣1 , 𝑣2 , 𝑣3 we say that
• 𝑓 ′ 𝑣 𝑥0 , 𝑦0 , 𝑧0 = ∇𝑓 𝑥0 , 𝑦0 , 𝑧0 . 𝑣 𝑡
• Important: as the gradient is defined as a row vector, we consider the
transpose of the vector v to satisfy the condition of product of two
vectors.
• 2. The gradient of a function at point P shows the direction of a
greatest increasing direction at point P.
Examples: finding the slope of f(x,y) in a
direction of a vector.
• Example 1: Find the slope of the following functions in the direction
of the vector
2𝑦 4 + 6𝑥𝑦 8𝑥𝑦 3 + 3𝑥 2
• H𝑓 =
8𝑥𝑦 3 + 3𝑥 2 12𝑥 2 𝑦 2
• We can compute real values of the Hessian matrix at point (1,1).