Hexa Scholar

Which direction climbs fastest?

A cream pawn stands on the near slope of a smooth ochre clay hill on a navy base.
A pawn on a clay hill represents a walker choosing a direction.

The question

At P = (−1, −0.5) on a contour map, which direction gives the greatest initial rise per unit distance?

Place an arrow before opening the calculation.

  1. 1 SeePlace an uphill arrow on a map.
  2. 2 TryTest a step and meet three goals.
  3. 3 ProveBuild the maximum-rate argument.
  4. 4 ApplySolve five problems.
Before you start · 3 quick checks on partial derivatives, dot products, and length

Two ideas before you start

2 ideas

Collect the coordinate slopes

The slice x² + 1 and its tangent at the selected x-coordinate.

For f(x, y) = x² + y², hold y = 1 and move along the slice. The gradient collects both coordinate slopes.

Exact definition

For a differentiable real-valued function of two variables, its gradient at a point P is \(\nabla f(P)=(f_x(P),f_y(P))\). The symbol \(\nabla\), read “nabla,” packages the partial derivatives into a vector. Its entries depend on where P is. The partial derivatives lesson explains how each entry measures the slope of a coordinate slice.

Compare directions at the same speed

A vector v and the unit vector pointing the same way.

Divide a nonzero vector by its length to keep its direction and give it unit length. Otherwise a faster walker can appear to have a better direction.

Exact definition

Use perpendicular Cartesian axes with the same distance unit. For a vector v, \(\|v\|=\sqrt{v_x^2+v_y^2}\). A unit direction u has \(\|u\|=1\). Starting at P, the path \(P+tu\) travels one unit of distance in the coordinate plane per unit of t. The directional derivative is

\[D_u f(P)=\lim_{t\to0}\frac{f(P+tu)-f(P)}{t}.\]

It measures the initial rate along that straight path. For \(v\ne0\), normalize with \(u=v/\|v\|\). The dot product lesson supplies the vector arithmetic used below.

Fine print: what distance means here

Throughout the lesson, f is differentiable at the interior point under discussion, and every nearby direction is allowed. Distance means Euclidean distance in the input plane. On a terrain map, it is horizontal map distance, not distance along the sloping ground. The two map axes have equal scales. If coordinates represent different quantities, such as temperature and pressure, choose meaningful scales before comparing unit directions. Changing those scales changes the optimization question.

1 See

Place your direction on the map

Reading the map and score
2 Try

What happens after a step?

The next question compares an initial rate with a completed move. Choose before opening the calculation.

3 Prove

Why no unit direction does better

The gradient theorem

Let f be differentiable at an interior point P of an open region in the plane. Use Euclidean length and allow every unit direction. Write \(g=\nabla f(P)\). Then \(D_u f(P)=g\cdot u\). If \(g\ne0\), the greatest rate is \(\|g\|\), attained only at \(u=g/\|g\|\). The least is \(-\|g\|\), attained only at the opposite direction. If \(g=0\), every unit direction has rate zero.

Bridge from the tangent plane to the directional derivative

Differentiability is stronger than just having partial derivatives. It means

\[\begin{aligned}f(P+h)&=f(P)+g\cdot h+R(h),\\ \frac{R(h)}{\|h\|}&\to0.\end{aligned}\]

The last limit is over all nonzero small displacement vectors h. Put \(h=tu\), where u is fixed and unit length. Dividing by t leaves \(g\cdot u+R(tu)/t\). The remainder tends to zero, since its absolute value is \(|R(tu)|/|t|\). That proves the directional formula, including when t approaches zero from either side. Continuous partial derivatives near P are a sufficient condition for this argument, as proved in the partial derivatives lesson.

Build the nonzero-gradient case. In every line assume \(g\ne0\) and \(\|u\|=1\). Put \(m=\|g\|\) and \(w=g/m\). These conditions apply to every option, including the wrong ones.

What if the gradient vanishes?

At a zero gradient, the directional formula gives zero in every direction. Normalizing the gradient is then impossible, and no direction is singled out by first-order information. A peak, a valley, or a saddle can have this same property. The lesson on critical points explains how curvature and higher-order terms distinguish them.

For a nonzero gradient, apply the upper bound to \(-u\): \(D_u f(P)=-D_{-u}f(P)\ge-m\). Equality requires \(-u=w\), so the opposite direction uniquely attains the least rate. A positive directional derivative guarantees an increase for sufficiently small positive steps in that fixed direction. It supplies no universal step length and no promise about a distant endpoint. Recompute the gradient as the point changes if you want to keep following the locally best direction.

4 Apply

Compute a rate, then interpret it

Enter one number per problem. Hints and full solutions are available. Each box states an absolute tolerance for checking arithmetic; the formulas and conclusions remain exact unless marked as approximations.

Key point Evaluate the partial derivatives at the point, normalize the proposed direction, and take the dot product. Check the coordinate units before comparing rates. Keep an initial rate separate from an actual change over a finite distance.
Level Intro (multivariable calculus)Prerequisites Partial derivatives and dot productsTime About half an hour

Further reading