Sketching the Gradient of a Scalar Field: How to Implement and Interpret?

CSNabeel
Messages
12
Reaction score
0

Homework Statement


Calculate the gradient of the scalar field f(x,y) = x^{2} - y^{2} . Sketch the gradient for a few point on two straight lines y = x and y = -x on the plane and comment on the properties of the sketch.



Homework Equations





The Attempt at a Solution


So I worked out the gradient to be:

f = 2xi - 2yj

and then I did this for the point

x y x -y
-2 -2 -2 2
-1 -1 -1 1
0 0 0 0
1 1 1 -1
2 2 2 -2

but then I got confused on how to implement the gradient to this to do the sketch! Help would be much appreciated
 
Physics news on Phys.org
The sketch would be something like this:

In each point on the plane, (x,y), there is a gradient vector as you said, 2xi - 2yj . these vectors point to the direction in the function's domain, which the main function has the greatest increase in its value.
 
At each (x,y) draw a vector having x-component 2x and y-component -2y. That is, go to the right 2x and down 2y (assuming x and y are positive, of course).
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top