Multi
Multi
Department of Mathematics,
Indian Institute of Technology Hyderabad,
email: [email protected], [email protected]
Directional derivative
Gradient
Lagrange Multipliers
Directional Derivative
Definition
The derivative of a function f : R2 → R at P(x0 , y0 ) in the
direction of the unit vector u = u1 i + u2 j is defined as follows:
df f (x0 + su1 , y0 + su2 ) − f (x0 , y0 )
= lim ,
ds u,P s→0 s
if the limit exists.
▶ Notation : (Du f )P = df
ds .
u,P
▶ Remark: The partial derivatives fx and fy are the directional
derivatives of f at P in the directions of x-axis and y -axis,
respectively.
Illustration
Formula for Directional derivative
∂f ∂f
∇f = i+ j
∂x ∂y
obtained by evaluating the partial derivatives of f at P0 .
Theorem
If f (x, y ) is differentiable in an open region containing P(x0 , y0 ),
then df
= (∇f )P · u
ds u,P
In brief, Du f = ∇f · u.
Problem
Find the directional derivative of f (x, y ) = xe y + cos(xy ) at the
point (2, 0) in the direction of v = 3i − 4j.
Two dimensional Cauchy-Schwarz
▶ Note that,
Du f = ∇f · u = |∇f ||u| cos θ,
where θ is the angle between the vectors u and ∇f .
Gradient Ascent/Descent
Theorem
d d
f (g (t), h(t)) = (c)
dt dt
∂f dg ∂f dh
+ =0
∂x dt ∂y dt
∂f ∂f dg dh
i+ j · i+ j =0
∂x ∂y dt dt
Gradient and Tangent to Level curves
▶ If a differentiable function f (x, y ) has a constant value c along
a smooth curve r (t) = g (t)i + h(t)j, then f (g (t), h(t)) = c.
▶ Differentiating both sides, we get
d d
f (g (t), h(t)) = (c)
dt dt
∂f dg ∂f dh
+ =0
∂x dt ∂y dt
∂f ∂f dg dh
i+ j · i+ j =0
∂x ∂y dt dt
Problem
Find an equation for the tangent to the ellipse
x2
+ y2 = 2
4
at the point (−2, 1).
Gradient and Tangent to Level curves
Problem
Find an equation for the tangent to the ellipse
x2
+ y2 = 2
4
at the point (−2, 1).
Algebra of Gradients
Theorem
▶ ∇(f + g ) = ∇f + ∇g
▶ ∇(f − g ) = ∇f − ∇g
▶ ∇(kf ) = k∇f for any real number k.
▶ ∇(fg ) = f ∇g + g ∇f
▶ ∇ gf = g ∇f −f ∇g
g2
Algebra of Gradients
Theorem
▶ ∇(f + g ) = ∇f + ∇g
▶ ∇(f − g ) = ∇f − ∇g
▶ ∇(kf ) = k∇f for any real number k.
▶ ∇(fg ) = f ∇g + g ∇f
▶ ∇ gf = g ∇f −f ∇g
g2
proof: Exercise!
Constrained Maxima and Minima
2x + y − z − 5 = 0
Solution
x 2 + y 2 + z 2 − a2 = 0
and
x 2 − z 2 − 1 = 0,
then the gradients ∇f and ∇g will be parallel where the
surfaces touch.
▶ That is, ∇f = λ∇g . Thus
Theorem
Suppose that f (x, y , z) is differentiable in a region whose interior
contains a smooth curve
Theorem
Suppose that f (x, y , z) and g (x, y , z) are differentiable and
∇g ̸= 0 when g (x, y , z) = 0. To find the local maximum and
minimum values of f subject to the constraint g (x, y , z) = 0 (if
these exist), find the values of x, y , z, and λ that simultaneously
satisfy the equations
∇f = λ∇g g (x, y , z) = 0.
f (x, y ) = xy
Theorem
Suppose that f (x, y , z), g1 (x, y , z) = 0 and g2 (x, y , z) are
differentiable and ∇g1 is not parallel to ∇g2 . To find the local
maximum and minimum values of f subject to the constraint
g1 (x, y , z) = 0 and g2 (x, y , z) = 0 (if these exist), find the values
of x, y , z, µ, and λ that simultaneously satisfy the equations