WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Curves of Steepest Descent for 3D Functions

(x, y)
0
0
length
0.001
f(x, y) =
5 cos(x - 2) + 5 sin(x - 2y)
The curve of steepest descent is determined by the negative of the gradient vector, which gives the direction of maximum increase. A numerical solution of the differential equations
x'(t)=-f(x(t),y(t))
and
y'(t)=-f(x(t),y(t))
with variable initial values gives the direction of steepest descent. As you increase the length slider, the value of the parameter
t
is increased and a curve
(x(s),y(s))
for
s[0,t]
is traced out on the surface that follows the direction of the negative gradient at each point. Neglecting the mass of the object and friction, this plot gives the path a marble would follow as it rolled down a hill. Note that the trace of the curve of steepest descent is perpendicular to each of the contour curves, as shown in the contour plot.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.