Directional Derivative Slicing Plane & Gradient Compass Lab
Rotate unit heading vector u through 360° and compare directional slope D_u f against ∇f.
Rotate a vertical slicing plane in any unit direction u, trace gradient ascent/descent curves orthogonal to contours, and inspect 3D level-surface normals ∇F.
Gradient descent optimization in machine learning, Fourier heat conduction q = -k∇T, electrostatic fields E = -∇V, and surface normals in CAD/ray-tracing.
How do we measure the instantaneous slope of or in any unit direction , and why does the gradient always point straight uphill?
Collecting every first partial derivative into one arrow forms the gradient vector (or in ). Stepping in any unit direction (always normalize so ) gives the directional derivative via a single dot product: .
Because ranges from to , steepest ascent runs along (at rate ), steepest descent runs along , and zero slope () occurs along level-curve tangents—proving stands strictly perpendicular to contours and level surfaces.
If you stand on a 3D hillside z = f(x,y) or inside a 3D potential field F(x,y,z) and move along unit heading u, what is your instantaneous rate of change—and why do steepest paths always cut level curves at 90°?
Rotate the vertical slicing plane through 360°, trace continuous RK4 gradient flow vs. discrete step-size η optimization on contour maps, and tilt 3D heading vectors against a 3D level-surface normal ∇F.
Because D_u f = 0 along a level curve or surface, ∇f is strictly perpendicular to contours—powering Lagrange Multipliers (Ch. 3.1.4) and Vector Calculus Gradient & Conservative Fields (Ch. 3.3.1–3.3.3).
Rotate unit heading vector u through 360° and compare directional slope D_u f against ∇f.
Trace steepest ascent/descent trajectories crossing contours orthogonally, test discrete step size η stability, and inspect 3D surface normals ∇F.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Walking along unit direction () applies the multivariable Chain Rule. By Cauchy–Schwarz, the directional slope is bounded strictly inside , peaking when ().
Moving along a level curve in or level surface in keeps height constant (). Hence every tangent vector makes a angle with —turning gradients into outward surface normals.
Never confuse the two: points in domain space (or ) where growth is fastest and spawns a conservative vector field, whereas is a single signed number measuring slice slope.
Thermal flux follows Fourier's law : heat always flows orthogonal to isotherms from hot to cold. In numerical optimization, discrete updates approximate continuous gradient flow; if exceeds , iterates zigzag across narrow canyons.
(1) Always normalize direction into before dotting with . (2) If is not differentiable at (e.g., sharp corner or saddle crease), partials may exist while .
For any unit compass direction , peaks at ( along ), hits ( along steepest descent ), and vanishes when moving orthogonally ().
Differentiating along any smooth trajectory embedded inside a contour or level surface proves the gradient is always perpendicular to every tangent vector .
The tangent plane to implicit surface at uses directly as its normal vector. When computing directional slopes from a non-unit vector , normalize by first!
Rotate unit heading vector u through 360° and compare directional slope D_u f against ∇f.
Trace steepest ascent/descent trajectories crossing contours orthogonally, test discrete step size η stability, and inspect 3D surface normals ∇F.
Because the hill is steeper in y than in x, ∇f does not point straight toward the origin (except on the axes)—instead, it points strictly perpendicular to the elliptical level curve.
Trace integral curves perpendicular to contours, test gradient-descent stability vs. overshoot, and rotate 3D directions against the normal .
Because curvature in y is 4.6× steeper than in x, continuous gradient flow curves smoothly while large discrete step sizes η oscillate across the narrow canyon.
The polar graph of always forms two tangent circles: maximum ascent diameter along and zero pinch-point along the contour tangent.