Difficult partial derivative of a log

Click For Summary
SUMMARY

The discussion centers on calculating the partial derivative 'P' of the function defined by the logarithm of the distance 'R' between two points, specifically in the context of an example from a textbook on real-time obstacle avoidance. The user, Ken, is attempting to derive 'P' using the gradient of the function f(x,y) = ln(R), where R = sqrt((x-c)^2 + (y-d)^2). The calculations provided yield a result of P = -0.7148, but Ken seeks confirmation of the validity of this solution and its alignment with the textbook's answer.

PREREQUISITES
  • Understanding of partial derivatives and gradient calculations
  • Familiarity with logarithmic functions and their properties
  • Knowledge of vector calculus, specifically normal vectors
  • Basic proficiency in using chain rule for differentiation
NEXT STEPS
  • Review the concept of normal derivatives in vector calculus
  • Study the application of the chain rule in multivariable calculus
  • Explore examples of gradient calculations in logarithmic functions
  • Investigate the context of harmonic potential functions in obstacle avoidance
USEFUL FOR

Students and professionals in mathematics, physics, and engineering fields, particularly those focused on calculus, optimization problems, and real-time systems.

dorikin
Messages
7
Reaction score
0
Hello!

I am trying to solve the partial derivative 'P' http://www.flickr.com/photos/61865210@N07/5757168138/ ,

which is part of a larger equation:
http://www.flickr.com/photos/61865210@N07/5757300018/
(Sorry, can't seem to display to pictures, using insert image)

Someone told me that solving P isn't possible but it's from a book with answers to an example (no worked solution).

I've tried to solve 'q' but I don't get the same answer as the book. Can someone tell me if it is possible or not? and if it is, check my working out.

If you need more context about the equation I have attached some pages of the book (PFM.pdf) that I got the equation from. The equation is on page 109, eq.4.54 and I'm trying to do example 4.4 on page 111.

Also, this book got the equations from: Real-Time Obstacle Avoidance Using Harmonic Potential Functions.pdf

Thank you for your help in advance!

ken

Homework Statement



x=0.5
y=0.86397
c=1
d=4

Homework Equations



P=
http://www.flickr.com/photos/61865210@N07/5757168138/

where R=sqrt((x-c)^2+(y-d)^2)
and n is the normal unit vector, ( -sqrt(3)/2 , 1/2)

The Attempt at a Solution



P=d/dn f(x,y)= n . grad f

f(x,y)=ln(R)=ln( [ (x-c)^2+(y-d)^2 ]^0.5 )

Using chain rule:

grad ln(R) = 1/R * 0.5*[ (x-c)^2+(y-d)^2 ]^-0.5 *(2x-2c) i + 1/R * 0.5*[ (x-c)^2+(y-d)^2 ]^-0.5 *(2y-2d) j

cancel down and sub in variables:
grad ln(R) = -0.3149 i - 1.975 j

P=d/dn f(x,y)= n . grad f

P=-sqrt(3)/2*-0.3149 +0.5*-1.975
P= -0.7148
 

Attachments

Last edited:
Physics news on Phys.org
In order to find a normal derivative you will need to use a surface of some kind, as the normal in question will be the normal to that you that the normal derivative from.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
26
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K