Computing the Jacobian matrix for a solar system simulation

Click For Summary
To compute the Jacobian matrix for a solar system simulation, it is essential to understand that the matrix will be 1x3 rather than 9x9, as the gravitational force F is a scalar function of the three-dimensional position vector. The gravitational force is defined as F = Gm1m2/r^2, and the Jacobian represents the gradient of this force with respect to the position components (x, y, z). Each entry of the Jacobian matrix is derived by differentiating the gravitational force with respect to one of the position variables while treating the others as constants. This clarification indicates that the correct approach involves a simpler gradient calculation rather than a more complex matrix structure. Understanding this will streamline the modeling process for the simulation.
doonzy
Messages
2
Reaction score
0
Hello physicists!

I'm a comp sci student and I am trying to graphically model a simplified version of the solar system as part of a programming exercise. In order to apply the gravitational forces to the planets, I need to compute the Jacobian matrix as it relates to two particles (planetary objects). My (limited) understanding is that the resulting matrix will be 9x9, but I am unsure how it is constructed exactly. This is what I have come up with so far:

J = \begin{pmatrix}<br /> \frac{\partial F_1}{\partial r_1} &amp; \frac{\partial F_1}{\partial r_2} &amp; \frac{\partial F_1}{\partial r_3}\\ <br /> \frac{\partial F_2}{\partial r_1} &amp; \frac{\partial F_2}{\partial r_2} &amp; \frac{\partial F_2}{\partial r_3}\\ <br /> \frac{\partial F_3}{\partial r_1} &amp; \frac{\partial F_3}{\partial r_2} &amp; \frac{\partial F_3}{\partial r_3}<br /> \end{pmatrix}

where \frac{\partial F_i}{\partial r_i} is 3x3, F is the gravitational force F = \frac{Gm_1m_2}{r^2} and r is the respective dimension component (x, y, z).

Some clarification would be much appreciated :-)

Thanks.
 
Physics news on Phys.org
Well, ##r^2=\sqrt{r_1^2+r_2^2+r_3^2}##, hence ##F\, : \,\mathbb{R}^3 \longrightarrow \mathbb{R}## which means it has only one component and your Jacobian matrix is a gradient, i.e. of size ##1 \times 3##. The derivative is the same as at school: differentiate with only one variable ##r_i## and consider all other values as constant.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K