Second Degree Equations

We had a set of equations. Two second degree and two first degree differential equations with two unknowns.
$\displaystyle (3)~~~~~~ \frac{d^2x}{dt^2}= -\gamma\left( \sqrt{v_x^2+v_y^2}\right) v_x$ $\displaystyle ~~\&~~$ $\displaystyle (1)~ \frac{dx}{dt}= v_x$  
$\displaystyle (4)~ \frac{d^2y}{dt^2}=-g-\gamma\left( \sqrt{v_x^2+v_y^2}\right) v_y$ $\displaystyle ~~\&~~$ $\displaystyle (2)~ \frac{dy}{dt}= v_y$  

  • To solve these two 2$^{nd}$ degree equations (plus two 1$^{st}$ degree equations) given above, we first convert them to a system of 4 1$^{st}$ degree (linear) equations.
  • To this end, let's define the four unknowns as follows:
  • $x \rightarrow y_1$
  • $y \rightarrow y_2$
  • $v_x \rightarrow y_3$
  • $v_y \rightarrow y_4$
To calculate the effect of air friction, let's take the initial conditions ($t=0$) and constants ($g$ & $\gamma$):
$\displaystyle x_0=y_1(t=0)=0$ $\displaystyle \ $    
$\displaystyle v_{0x}=y_3(t=0)=6.0$ $\displaystyle \ $    
$\displaystyle g=10.0$ $\displaystyle \ $    

Figure 5.3: Numerical solution of projectile motion with and without air friction. (Example py-file: airfriction.py)
Image airfriction
We had a set of equations. Two second degree and two first degree differential equations with two unknowns.
$\displaystyle (3)~\frac{d^2x}{dt^2}=-G\frac{M}{r^3}x$ $\displaystyle ~~\&~~$ $\displaystyle (1)~ \frac{dx}{dt}= v_x$  
$\displaystyle (4)~\frac{d^2y}{dt^2}=-G\frac{M}{r^3}y$ $\displaystyle ~~\&~~$ $\displaystyle (2)~ \frac{dy}{dt}= v_y$  

  • To solve these two 2$^{nd}$ degree equations (plus two 1$^{st}$ degree equations) given above, we first convert them to a system of 4 1$^{st}$ degree (linear) equations.
  • To this end, let's define the four unknowns as follows:
  • $x \rightarrow y_1$
  • $y \rightarrow y_2$
  • $v_x \rightarrow y_3$
  • $v_y \rightarrow y_4$
Figure 5.4: Numerical solution of planetary motion. There can be closed orbits (ellipse), or solutions going to infinity (unbounded, hyperbola) for different velocities. (Example py-file: planetarymotion.py)
Image planetarymotion