How Do You Calculate the Gradient of Multivariable Functions?

  • Thread starter Thread starter vorcil
  • Start date Start date
  • Tags Tags
    Gradient
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
vorcil
Messages
395
Reaction score
0

Homework Statement



Find the gradients of the following functions:

When I say gradient, I'm not just differentiating the functions, apparently I have to do it this way (because it's in my physics book)

f(x,y,z) = x^2 + y^3 + z^4
f(x,y,z) = x^2 y^3 z^4
f(x,y,z) = e^x sin(y) ln(z)

Homework Equations



[tex]\nabla {\bf r} = \frac{\partial r}{\partial x} \hat{x} + \frac{\partial r}{\partial y} \hat{y} + \frac{\partial r}{\partial z} \hat{z}[/tex]

I'm not just differentiating the functions

where [tex]\frac{r}{|r|}[/tex] = gradient

The Attempt at a Solution



for the first question, finding the gradient of
f(x,y,z) = x^2 + y^3 + z^4

[tex]\nabla {\bf f(x,y,z) } = \frac{\partial r}{\partial x} \hat{x} + \frac{\partial r}{\partial y} \hat{y} + \frac{\partial r}{\partial z} \hat{z}[/tex]

differentiating partially,[tex]\nabla[/tex]
[tex]\nabla<br /> (x^2 + y^3 + z^4) = 2x \hat{x} + 3y^2 \hat{y} + 4z^3 \hat{z}[/tex]

finding the magnitude of the function
[tex]\sqrt{(x^2)^2 + (y^3)^2 + (z^4)^2} = \sqrt{x^4 + y^6 + z^8}[/tex]

using the formula to find the gradient,
[tex]\frac{r}{|r|} = \frac{\nabla (x^2 + y^3 + z^4) }{\sqrt{x^4 + y^6 + z^8}} = \frac{2x \hat{x} + 3y^2 \hat{y} + 4z^3 \hat{z}}{\sqrt{x^4 + y^6 + z^8}}[/tex]

not sure if this is right or not, also I don't know if I can simplifier it further and if this satisfies as an answer,
my book has no answers in the back to check, and solutions manuals are impossible to get to students, and the only way to find out if I'm right is to either post it here, or ask my lecturer, and I feel that this is a question that most people should be able to do, so it's embarrassing for me to ask my lecturer at tutorials
 
Last edited:
Physics news on Phys.org
[edit] fixed the latex
 
Last edited:
i may be missing something, but why not just use the cartesian form of the gradient

[tex]\nabla = \begin{pmatrix} <br /> \frac{\partial }{\partial x} \\ <br /> \frac{\partial }{\partial y} \\ <br /> \frac{\partial }{\partial z} <br /> \end{pmatrix}[/tex]