The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Any way to get gradient lines as well as contour lines?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Christopher O. Young

Posts: 182
Registered: 2/13/11
Any way to get gradient lines as well as contour lines?
Posted: Feb 3, 2013 2:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'd like to be able to plot "gradient lines", i.e., lines of steepest
descent, on plots of functions of x and y, f(x, y). The contour lines
can be obtained via MeshFunctions, as in

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, MeshFunctions -> {#3 &},
Mesh -> 5].

I'd like all the lines at right angles to these contours.

There must be some way to use the gradient function and then integrate
to the get the gradient lines.

Maybe this is difficult to do, in general. Also, maybe in general the
"gradient lines" wouldn't be continuous.

But I wonder if it could be done for some simple examples.

Any suggestions appreciated.

Chris Young

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.