Calculating time derivative of Magnetic force

Click For Summary

Discussion Overview

The discussion revolves around calculating the time derivative of the magnetic force, specifically focusing on the time derivative of acceleration (jerk) in the context of particle interactions. Participants explore the mathematical challenges involved in differentiating the magnetic force for use in an n-body simulation, emphasizing the need for higher-order integrations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Exploratory

Main Points Raised

  • One participant describes the magnetic force in detail and expresses uncertainty about how to differentiate it, particularly in relation to jerk.
  • Another participant suggests that applying the chain rule will involve derivatives of both the position vector and the unit vector, providing the expressions for these vectors.
  • A further contribution discusses the differentiation of the unit vector and raises a specific question about how to properly differentiate the magnitude of the vector difference between two particles.
  • Another participant attempts to derive the differentiation of the magnitude of the vector, providing a step-by-step approach and arriving at a formula for the time derivative of the unit vector.
  • One participant acknowledges their difficulty with differentiating the norm of a vector and expresses gratitude for the assistance received.

Areas of Agreement / Disagreement

Participants appear to be collaboratively exploring the differentiation process, with no clear consensus reached on the best approach or final results. Multiple viewpoints and methods are presented without resolution of the underlying mathematical challenges.

Contextual Notes

The discussion includes unresolved mathematical steps, particularly regarding the differentiation of vector magnitudes and the application of the chain rule. Participants are working through these complexities without definitive conclusions.

Sagekilla
Messages
18
Reaction score
0
Hi all, I ran into a bit of an issue trying to figure out how to properly differentiate the magnetic force due to particle interactions. To be specific, I'm actually looking for the time derivative of acceleration (jerk) due to the magnetic force, but it's essentially the same problem.

For the record, this is not homework at all. It's something I require for a n-body simulation I'm doing, and I need to calculate jerk to do higher order integrations.

I know that the magnetic force is, in expanded form:
\vec{F} = \frac{\mu_{0} q_{1} q_{2}}{4\pi r^{2}} \vec{v_{1}} \times (\vec{v_{2}} \times \hat{r}) = \frac{\mu_{0} q_{1} q_{2}}{4\pi r^{2}}((\vec{v_{1}} \cdot \hat{r}) \vec{v_{2}} - (\vec{v_{1}} \cdot \vec{v_{2}}) \hat{r})

Where r-hat is the unit vector pointing from particle 2 to particle 1, and r is the distance between the two particles.


I don't even know where to begin to do this. I understand I need the chain rule but when I tried doing the same for a simpler vector (gravitational acceleration), the actual result ended up having a bunch of dot products in there that I had no idea how to get.

Can anyone guide me in the right way?
 
Physics news on Phys.org
When you do the chain rule you will get, in addition to the derivative of velocity, derivatives of r and r_hat. I suppose you are asking what those will be. You start by writing them out as the particle position vector:

\vec{r} = \vec{r_1} - \vec{r_2}

\hat{r} = \frac{\vec{r_1} - \vec{r_2}}{|\vec{r_1} - \vec{r_2}|}

when you take the time derivative of these you get derivatives of the position vectors, which is also the velocity of the particle.
 
Well, if I start with something simple like the position unit vector:

\frac{d}{dt}\hat{r} = \frac{d}{dt}\frac{\vec{r_{1}} - \vec{r_{2}}} {| \vec{r_{1}} - \vec{r_{2}} |}

\frac{d}{dt}\hat{r} = \frac{|\vec{r_{1}} - \vec{r_{2}}| (\vec{v_{1}} - \vec{v_{2}}) - |\vec{r_{1}} - \vec{r_{2}}|'(\vec{r_{1}} - \vec{r_{2}}) } {|\vec{r_{1}} - \vec{r_{2}}|^{2}}

My problem here is: How do I differentiate the |r1 - r2| properly?
 
sorry, i will try to derive it here

if

r^2 = \vec{r}\cdot\vec{r}

then

\frac{dr^2}{dt} = \frac{d\vec{r}}{dt}\cdot\vec{r} + \vec{r}\cdot\frac{d\vec{r}}{dt} = 2\frac{d\vec{r}}{dt}\cdot\vec{r}

r = \sqrt{r^2}

so,

\frac{dr}{dt} = \frac{1}{2\sqrt{r^2}}\frac{dr^2}{dt} = \frac{1}{r}\frac{d\vec{r}}{dt}\cdot\vec{r} = \frac{d\vec{r}}{dt}\cdot\hat{r}

where

\hat{r} = \frac{\vec{r}}{r}

\frac{d\hat{r}}{dt} = \frac{d\vec{r}}{dt}\frac{1}{r} - \frac{\vec{r}}{r^2}\frac{dr}{dt}

finally

\frac{d\hat{r}}{dt} = \frac{1}{r}(\frac{d\vec{r}}{dt} - (\frac{d\vec{r}}{dt}\cdot\hat{r})\hat{r})

and substitute in the vector r_1 - r_2 for r.
 
Ah, thank you. My biggest issue with differentiating the above equations was trying to figure out how the the norm of a vector would differentiate with respect to a variable.

I'll work these out and post my results.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K