The gradient ∇w = ⟨w_x, w_y, w_z⟩ packages the partial derivatives into a vector at each point, and the chain rule becomes dw/dt = ∇w · dr/dt. The gradient is perpendicular to the level curves and level surfaces, which gives tangent planes to surfaces like x² + y² − z² = 4. The directional derivative in the direction of a unit vector û is dw/ds = ∇w · û = |∇w| cos θ: largest along ∇w, the direction of fastest increase, with value |∇w|, and zero along the level.
For w=w(x,y,z) with x, y, z depending on t, the chain rule says dw/dt=wxdx/dt+wydy/dt+wzdz/dt. That is a dot product (transcript, p. 1; notes, p. 1):
The chain rule with the gradient
dtdw=∇w⋅dtdr,∇w=⟨wx,wy,wz⟩
In words
d w over d t equals del w times d vector r over d t, del w equals the average of w sub x, w sub y, w sub z
Proof. Take a curve r(t) that stays on the level surface w=c. Its velocityv=dr/dt is tangent to the curve, hence to the surface. By the chain rule (pp. 1–2; notes, p. 2):
So the gradient gives a normal vector to any surface given by an equation (transcript, p. 2; notes, p. 2). The lecture's example is the hyperboloid x2+y2−z2=4 at (2,1,1): the level w=4 of w=x2+y2−z2. Then ∇w=⟨2x,2y,−2z⟩=⟨4,2,−2⟩, and the tangent plane is 4x+2y−2z=8+2−2 (p. 2; notes, p. 2):
(Solving for z and using the linear approximation would also work here, but not in general; notes, p. 2.) Another way:dw=2xdx+2ydy−2zdz=4dx+2dy−2dz at the point, so Δw≈4Δx+2Δy−2Δz. Staying on the level means Δw=0; setting the linear approximation exactly to zero gives the tangent plane, 4(x−2)+2(y−1)−2(z−1)=0, the same plane (pp. 2–3; notes, p. 2).
wx and wy are rates of change along i^ and j^. What about any other direction, given by a unit vectoru^=⟨a,b⟩? Move along the straight line x(s)=x0+as, y(s)=y0+bs at unit speed, so that s is the distance travelled (transcript, p. 3; notes, p. 2). The directional derivative is the rate of change of w along it, written (dw/ds)u^. (The lecture writes dw/ds with a vertical bar and the subscript u^; it means the same.) Geometrically, it is the slope of the slice of the graph by the vertical plane in the direction u^, no longer parallel to the x or y axis (p. 3; notes, p. 2). By the chain rule, with dr/ds=u^ (p. 3; notes, p. 2):
Directional derivative
(dsdw)u^=∇w⋅dsdr=∇w⋅u^
In words
( d w over d s ) sub u hat equals del w times d vector r over d s equals del w times u hat
with θ the angle between ∇w and u^. At a given point (p. 4; notes, p. 2):
it is largest when cosθ=1, that is u^ along ∇w: the gradient points in the direction of fastest increase, and its length ∣∇w∣ is the rate of increase in that direction;
it is smallest when θ=180°, opposite to the gradient, the fastest decrease: facing up a mountain, the steepest way down is behind you;
it is zero when θ=90°, perpendicular to the gradient: that is the direction tangent to the level, where w does not change.
Let w=x2+2y2 and the point (1,1). (a) Find ∇w and the tangent line to the level curve through the point. (b) Find the directional derivative in the direction u^=⟨3/5,4/5⟩. (c) What is the largest rate of increase, and in which directions is the rate zero?
(a) Gradient and tangent line
∇w=⟨2x,4y⟩=⟨2,4⟩. The level curve is x2+2y2=3, an ellipse, and its tangent line has normal ⟨2,4⟩: 2x+4y=2+4=6, or x+2y=3.
(b) A directional derivative
u^ is a unit vector, since (3/5)2+(4/5)2=1. Then dw/ds=⟨2,4⟩⋅⟨3/5,4/5⟩=6/5+16/5=22/5=4.4.
(c) Fastest increase and the level directions
The largest rate is ∣∇w∣=4+16=20≈4.47, along ⟨2,4⟩/20; part (b), at an angle with cosθ=4.4/4.47≈0.98, is close to it. The rate is zero along ±⟨2,−1⟩/5, perpendicular to the gradient and along the tangent linex+2y=3.
The vector of a function's partial derivatives; it points the way the function increases fastest, and its length is that fastest rate. Explained in Graphs, straight lines and slope.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
A tiny change in a variable, such as dx, or the matching change in a function along its tangent line, dy = f′(x) dx. Explained in Differentials and antiderivatives.
Replacing a function near a point by the straight line, or flat plane, that best matches it there, using its first derivatives. Explained in Change of variables in double integrals.
How fast and in which direction something moves: a vector whose length is the speed and whose direction is the direction of motion. Explained in Velocity, acceleration and Kepler's second law.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
Following small departures from a smooth state by keeping only terms in the equations that are proportional to the departures, not their squares. Explained in How small ripples grow: linear perturbation theory.
An organised body of ideas, laws and methods about a subject: a tested explanation of nature, or a branch or method of mathematics.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).