Lecture 10
Lecture 10
• Di↵erentiating both sides of this equation with respect to t leads to the equations
d d
f (g(t), h(t)) = (c)
dt dt
@f dg @f dh
+ = 0 Chain Rule
@x dt @y dt
✓ ◆ ✓ ◆
@f @f dg dh
i+ j · i + j = 0.
@x @y dt dt
| {z } | {z }
rf dr
dt
If N is the gradient rf |(x0 ,y0 ) = fx (x0 , y0 ) i + fy (x0 , y0 ) j, and this gradient is not the zero
vector, then this equation gives the following formula for tangent line to a level curve
fx (x0 , y0 ) (x x0 ) + fy (x0 , y0 ) (y y0 ) = 0
x2
+ y2 = 2
4
at the point ( 2, 1).
Solution:
x2
• The ellipse is a level curve of the function f (x, y) = 4
+ y2.
• The gradient of f at ( 2, 1) is rf |( 2,1) = x
2
i + 2yj ( 2,1)
= i + 2j
• Because this gradient vector is nonzero, the tangent to the ellipse at ( 2, 1) is the line
( 1)(x + 2) + (2)(y 1) = 0
x 2y = 4.
Directional Derivatives and Gradient Vectors
If r(t) = x(t)i + y(t)j + z(t)k is a smooth path C, and w = f (r(t)) is a scalar function evaluated
along C, then according to the Chain Rule
dw @w dx @w dy @w dz
= + +
dt @x dt @y dt @z dt
This implies the derivative along a smooth path C can be obtained by following formula:
d
f (r(t)) = rf (r(t)) · r0 (t).
dt
Directional Derivatives and Gradient Vectors
• If r(t) = x(t)i + y(t)j + z(t)k is a smooth curve on the level surface f (x, y, z) = c of a
di↵erentiable function f , then
d
f (r(t)) = rf (r(t)) · r0 (t) = 0 (as f is constant along the curve r(t))
dt
=) gradient rf is orthogonal to the curve’s velocity vector r0 .
The normal line of the surface at P0 is the line through P0 parallel to rf |P0 . And an equation
of Normal Line to f (x, y, z) = c at P0 (x0 , y0 , z0 ) is given by
Solution
• The tangent plane is the plane through P0 perpendicular to the gradient of f at P0 . The
gradient is
rf |P0 = (2xi + 2yj + k)|(1,2,4) = 2i + 4j + k.
x = 1 + 2t, y = 2 + 4t, z = 4 + t.
Example Find the equations of the tangent plane and normal line at the point ( 2, 1, 3) to
the ellipsoid
x2 2 z2
+y + =3
4 9
Directional Derivatives and Gradient Vectors
• The surface z = f (x, y) is therefore the zero level surface of the function F (x, y, z) = f (x, y)
z.
• The formula
Fx (P0 ) (x x0 ) + Fy (P0 ) (y y0 ) + Fz (P0 ) (z z0 ) = 0
for the plane tangent to the level surface at P0 therefore reduces to
fx (x0 , y0 ) (x x0 ) + fy (x0 , y0 ) (y y0 ) (z z0 ) = 0
fx (x0 , y0 ) (x x0 ) + fy (x0 , y0 ) (y y0 ) (z z0 ) = 0.
Example: Find the plane tangent to the surface z = x cos y yex at (0, 0, 0).
Solution:
1 · (x 0) 1 · (y 0) (z 0) = 0,
or
x y z=0
Directional Derivatives and Gradient Vectors
and
g(x, y, z) = x + z 4=0 (A plane )
meet in an ellipse E. Find parametric equations for the line tangent to E at the point P0 (1, 1, 3).
Solution:
Every differentiable curve behaves locally like its tangent line, therefore
tangent line locally provide a linear approximation of the differentiable
curves.
• Let y = f (x) be a di↵erentiable function, then the equation of the tangent line passing
through (a, f (a)) is
y = f (a) + f 0 (a)(x a)
f (x) ⇡ L(x)
Solution: Since
1
f 0 (x) = (1 + x) 1/2
2
we have f (0) = 1 and f 0 (0) = 1/2, giving the linearization
1 x
L(x) = f (a) + f 0 (a)(x a) = 1 + (x 0) = 1 +
2 2
p
The data shows how accurate the approximation 1 + x ⇡ 1 + (x/2) is for some values of x
near 0. As we move away from zero,
p we lose accuracy. For example, for x = 2, the linearization
gives 2 as the approximation for 3, which is not even accurate to one decimal place.
Function of Several Variables
Example:
The approximation
f (x, y) ⇡ L(x, y)
is the standard linear approximation of f at (x0 , y0 ).
Function of Several Variables
Solution:
• Giving
L(x, y) = f (x0 , y0 ) + fx (x0 , y0 ) (x x0 ) + fy (x0 , y0 ) (y y0 )
= 8 + (4)(x 3) + ( 1)(y 2) = 4x y 2.
The approximation
f (x, y) ⇡ L(x, y)
is the standard linear approximation of f at (x0 , y0 ).
Linearization:
f (x, y, z) = x2 xy + 3 sin z
at the point (x0 , y0 , z0 ) = (2, 1, 0). Find an upper bound for the error incurred in replacing f by L
on the rectangular region
Solution:
• Thus,
L(x, y, z) = 2 + 3(x 2) + ( 2)(y 1) + 3(z 0) = 3x 2y + 3z 2
• Since
fxx = 2, fyy = 0, fzz = 3 sin z, fxy = 1, fxz = 0, fyz = 0,
and | 3 sin z| 3 sin 0.01 ⇡ 0.03, we may take M = 2 as a bound on the second partials.