Calculating the gradient of a surface

In summary, we have a function z(x,y,t) that represents a dynamic surface with various parameters such as amplitude (a), frequency (ω), and lengths in the x and y directions (Lx and Ly). We can find the slope of the surface at any given point using the equations dz/dx and dz/dy, and combine them using the downhill equation (∂z/∂x,∂z/∂y). This can be useful in calculating the weight of a particle on the surface, with the component W|| being W times the sine of the tangent of the gradient. With the use of software such as Mathematica, we can automatically calculate the gradient of the z function for easier analysis.
  • #1
kakarot1905
18
0
Hi

z(x,y,t)=a sin(ωt) sin(k/Lx*pi*x) sin(l/Ly*pi*y)

a = Amplitude
ω = Frequency
k and l are constants
Lx = Length in x direction
Ly = Length in y direction


How can I find [using an equation] the slope of the surface [ie the gradient] at any given point on the surface?

I know how to do it in the x direction and y direction independently:
dz/dx for x direction and dz/dy for y direction
But how do I combine these two things?

Thanks in Advance
 
Physics news on Phys.org
  • #3
tiny-tim said:
hi kakarot1905! :smile:

the downhill https://www.physicsforums.com/library.php?do=view_item&itemid=11" (∂z/∂x,∂z/∂y) is what you need :wink:

Thanks tiny-tim

I can calculate:

(dz/dx) = (k[itex]\pi[/itex]a)/Lx sin([itex]\omega[/itex]t) cos (k[itex]\pi[/itex]x)/Lx
and
(dz/dy) = (l[itex]\pi[/itex]b)/Ly sin([itex]\omega[/itex]t) cos (l[itex]\pi[/itex]y)/Ly

But what is dz/dt?


This is why I need to calculate the slope of the surface (z):

I am trying to calculate the weight [W] of a particle on the dynamic surface (z)
Because of the slope'ness' of the surface z, the acceleration of particle (parallel to the surface) is affected
So in order to calculate the surface parallel Weight, I need to W*(Gradient of the slope)

attachment.php?attachmentid=37705&stc=1&d=1312304788.png


The above link by tiny-tim, helps me calculate the gradient in vector form, but how do convert it into a value to multiply it with W? Do I take the abs?


Please Help, Thanks
 

Attachments

  • Screen shot 2011-08-02 at 10.36.01 PM.png
    Screen shot 2011-08-02 at 10.36.01 PM.png
    1.5 KB · Views: 613
Last edited by a moderator:
  • #4
hi kakarot1905! :smile:
kakarot1905 said:
This is why I need to calculate the slope of the surface (z):

I am trying to calculate the weight [W] of a particle on the dynamic surface (z)

i really don't understand what you're trying to do :confused:

i don't see the relevance of the component W||, but it would be W times the sin of tan-1 of the gradient
 
  • #5
tiny-tim said:
hi kakarot1905! :smile:


i really don't understand what you're trying to do :confused:

i don't see the relevance of the component W||, but it would be W times the sin of tan-1 of the gradient


Thanks for the suggestion tiny tim.

I got my plotting software [mathematica] to automatically calculate the gradient of the z function so I don't have to worry about taking dz/dx...

This is the code i used: [mathematica]
Code:
(gradf[x_, y_, t_] = {D[z[x, y, t], x], D[z[x, y, t], y], 
   D[z[x, y, t], t]})
 

FAQ: Calculating the gradient of a surface

What is the gradient of a surface?

The gradient of a surface is a vector that represents the direction and magnitude of the steepest increase of a function at a specific point on the surface.

How is the gradient of a surface calculated?

The gradient of a surface is calculated by taking the partial derivatives of the function with respect to each variable and combining them into a vector.

What is the significance of the gradient of a surface?

The gradient of a surface is important because it can help us understand the rate of change of a function and identify the direction in which it is changing the fastest.

Can the gradient of a surface be negative?

Yes, the gradient of a surface can be negative. This indicates a decreasing rate of change in the function in the direction of the negative gradient vector.

How is the gradient of a surface used in real-world applications?

The gradient of a surface is used in various fields such as physics, engineering, and computer graphics to analyze and optimize functions and surfaces. It is also used in machine learning and data analysis to find the optimal solution to a problem.

Similar threads

Replies
8
Views
1K
Replies
4
Views
2K
Replies
1
Views
1K
Replies
1
Views
1K
Replies
2
Views
2K
Replies
3
Views
2K
Back
Top