Numerical solutions of sixth order differential equationsAn object moving in three dimensions is described by six variables: $x$, $y$, $z$, $v_x$, $v_y$, and $v_z$. If the force on the object is known, then the motion can be described by six first order differential equations, $\large \frac{dx}{dt}=v_x$ $\large \frac{dv_x}{dt}=F_x(x,y,z,v_x,v_y,v_z,t)/m$ $\large \frac{dy}{dt}=v_y$ $\large \frac{dv_y}{dt}=F_y(x,y,z,v_x,v_y,v_z,t)/m$ $\large \frac{dz}{dt}=v_z$ $\large \frac{dv_z}{dt}=F_z(x,y,z,v_x,v_y,v_z,t)/m$ Here $F_x$, $F_y$, and $F_z$ are the three components of the force, $m$ is the mass, and $t$ is the time. The form below can be used to numerically integrate these equations for a total number of $N_{steps}$ steps using a step size of $\Delta t$. The force can be specified as a function of $x$, $y$, $z$, $v_x$, $v_y$, $v_z$ and $t$. If $a=0$ and $b=0$, the ball will follow a parabolic trajectory and analytic solutions to the differential equation are possible. If $a>0$ and $b=0$, there is linear damping and it is also possible to find an analytic solution. Example 2: A charged particle in constant electric and magnetic fieldsA charged particle moves in a constant electric field $\vec{E}$ and a constant magnetic field $\vec{B}$. The force on the electron is, $\large \vec{F} = q(\vec{E} + \vec{v}\times \vec{B}),$ where $q$ is the charge of the particle and $m$ is the mass. When the electric field is perpendicular to the magnetic field, the average velocity of the charged particle will be in a direction perpendicular to both the electric field and the magnetic field. Example 3: SatelliteA satellite orbits the earth. The graviational force on the satellite is, $\large \vec{F} = -\frac{Gm_e m_s}{r^2} \hat{r}$,where $G= 6.6726 \times 10^{-11}$ N m²/kg² is the graviational constant, $m_e = 5.97219 \times 10^{24}$ kg is the mass of the earth, $m_s$ is the mass of the satellite, and $\vec{r}$ is the position of the satellite measured from the center of the earth. If the orbit falls below about 6400000 m, the satellite will crash into the earth. There are various kinds of orbits such as geosynchronous orbits, geostationary orbits, low earth orbits, elliptical orbits, and graveyard orbits. The difference just depends on the initial conditions of the satellite. |