Jump to content

Recommended Posts

Posted

I'm just messing around with some computer graphics and I got a little over my head in the math. I need to find the normal to this plane which I'm using to model water splashes.

 

0=(sin sqrt(x^2 + z^2))/(x^2 + z^2)-y

Posted

Do the partial derivatives one at a time. You wrote this as a quotient, but I like to rearrange complicated functions so that I never have to use the quotient rule, like so:

 

f(x,y,z)=(sin((x2+z2)1/2))(x2+z2-y)-1

 

fx=(cos((x2+z2)1/2))(1/2)(x2+z2)-1/2(2x)(x2+z2-y)-1+(sin((x2+z2)1/2))(-1)(x2+z2-y)-2(2x)

fx=xcos(((x2+z2)1/2))*(x2+z2)-1/2*(x2+z2-y)-1-2xsin(((x2+z2)1/2))*(x2+z2-y)-2

 

Happily, x and z occur symmetrically in this function, so you can find fz by simply swapping x<-->z in the above derivative.

 

Finally,

 

fy=sin((x2+z2)1/2)(x2+z2-y)-2

 

Tom

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.