PHY.K02UF Molecular and Solid State Physics

Numerical solutions of first order differential equations

A first order differential equation has the form,


where $f(x,t)$ is any function of $x$ and $t$. The form below can be used to numerically integrate this equation for a total number of $N_{steps}$ steps using a step size of $\Delta t$.

 Numerical 1st order differential equation solver 

$ \large \frac{dx}{dt}=$

Intitial conditions:


$\Delta t=$





 $t$       $x$