Calculating Gradient of ln(r) in 3D Space

  • Thread starter Thread starter brentd49
  • Start date Start date
  • Tags Tags
    Derivative
Click For Summary
The discussion focuses on calculating the gradient of the function f=ln(r), where r=sqrt(x^2+y^2+z^2). The initial attempt to find the partial derivative with respect to x using the chain rule leads to an incorrect result of df/dx = x/r. The correct approach requires applying the chain rule properly, which reveals that df/dx actually equals x/r^2. Participants emphasize the importance of careful application of the chain rule in multivariable calculus. The conversation highlights common pitfalls in gradient calculations in 3D space.
brentd49
Messages
73
Reaction score
0
So, the question is: find the gradient of f=ln(r), where r=sqrt(x^2+y^2+z^2)^(1/2).

For the partial with respect to x, I use the chain rule: df/dr*dr/dx.

df/dr=1/r
dr/dx=(1/2)*(2x)=x

Which would give df/dx = x/r.

But the book gets x/r^2

Where does the extra 1/r come from?
 
Physics news on Phys.org
brentd49 said:
So, the question is: find the gradient of f=ln(r), where r=sqrt(x^2+y^2+z^2)^(1/2).
...
dr/dx=(1/2)*(2x)=x
...
This isn't right. Remember to use the chain rule here as well.
 
hah. of course. thanks
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
26
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
886