Partial derivative of angle with regards to vector

Click For Summary

Homework Help Overview

The discussion revolves around finding the partial derivative of an angle, theta, with respect to a vector, r1, in a 3D space context. The expression involves the dot product and the cosine function, indicating a relationship between the vectors r1, r2, and r3.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to differentiate the expression for theta and expresses confusion regarding discrepancies between analytical and numerical results. Some participants suggest considering the direction of movement of r1 for a well-defined derivative. Others inquire about the implications of differentiating with respect to individual components of r1.

Discussion Status

Participants are exploring different interpretations of the derivative with respect to a vector and its components. Some guidance has been offered regarding the need to rewrite expressions when differentiating with respect to individual elements of r1. There is an ongoing examination of the original problem setup and potential misinterpretations.

Contextual Notes

There is a suggestion that the original poster may have misinterpreted the problem. The discussion includes considerations of how to approach derivatives in the context of vector components and their relationships.

AlmostSwedish
Messages
7
Reaction score
0

Homework Statement


Find the partial derivative with regards to vector r1 for the expression:

theta = acos [tex]\frac{((r1-r2).(r3-r2))}{||r1-r2||*||r3-r2||}[/tex]

where "." is the dot product

r1,r2 and r3 are positions in 3D-space. The expression above comes from the definition of the dot product

Homework Equations



r0 = the vector (1,1,1)
r32 = r3-r2
r12 = r1-r2

The Attempt at a Solution


The expression can be rewritten by taking the cosinus of both sides.

Differentiating the left side gives -sin(theta) * [tex]\frac{d theta}{d r1}[/tex]

The right side can be written as f(r) = h(r)/k(r), and which gives the derivative of the form
(h' *k + h *k')/k^2 // Note that I use ' instead of d( )/d r1

h' becomes r0.r32
k' becomes ( || r32|| * (r0.r12) )/||r12||

This gives the right hand side of the equation according to

f ' (r) = [tex]\frac{(r0.r32)*||r12||*||r32||* - \frac{(r12.r32)*||r32||*(r0.r12)}{||r12||}}{(||r12||*||r32||)^2}[/tex]

Thus the original equation becomes

-sin(theta) * d theta/d r1 = f ' (r)

d theta/d r1 = f ' (r)/-sin(theta)

Or alternatively

[tex]\frac{d theta}{d r1}[/tex] = f ' (r)/sqrt(1-f(r)^2)
if we use the derivative of arcos directly. They give the same value.I've checked my expression for f ' (r) using numerical methods, and it is correct. However, the numerical methods give a different answer than the analytical expression for my final expression of [tex]\frac{d theta}{d r1}[/tex]

Can someone help me figure out what's wrong with my solution?

Thank you for your time!
 
Last edited:
Physics news on Phys.org
The derivative of a quantity like theta with respect to a vector r1 isn't a simple scalar. It depends on the direction r1 moves. Write r1(t)=(r1+t*n) where n is the direction r1 is moving and take the derivative with respect to t. Now you have a well defined derivative and the result will, of course, depend on n.
 
Dick said:
The derivative of a quantity like theta with respect to a vector r1 isn't a simple scalar. It depends on the direction r1 moves. Write r1(t)=(r1+t*n) where n is the direction r1 is moving and take the derivative with respect to t. Now you have a well defined derivative and the result will, of course, depend on n.

That makes a lot of sense, though I'm starting to suspect that I missinterpreted the problem to begin with.
Thanks a lot!
 
Last edited:
Quick question, if I take the derivative with respect to an element of r1, e.g x1, instead of r1, do I still have to rewrite the expression?
 
AlmostSwedish said:
Quick question, if I take the derivative with respect to an element of r1, e.g x1, instead of r1, do I still have to rewrite the expression?

That should be ok. Putting r1=(x1,y1) you should able to find expressions for dtheta/dx1 and dtheta/dy1. They are ordinary partial derivatives.
 
Dick said:
That should be ok. Putting r1=(x1,y1) you should able to find expressions for dtheta/dx1 and dtheta/dy1. They are ordinary partial derivatives.

Thanks man. If I knew were you live I'd send you a box of cookies.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
33
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K