Jump to content

find the gradient of 0=(sin sqrt(x^2 + z^2))/(x^2 + z^2)-y

Featured Replies

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

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

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.