Ordinary vs Partial Differential Equations

Ordinary Differential Equations: ODEs

If there is only one independent variable then we are talking about an Ordinary Differential Equation (ODE). For example, one dimensional motion of a particle with mass \(m\) under the influence of a force field \(F(x,t)\) with initial position \(x_0\) and initial velocity \(v_0\) can be obtained as a solution to the following differential equation. $$ F(x,t) = m a(t) = m x''(t)= m \frac{d^2 x(t)}{dt^2} $$ $$ x(0) = x_0 $$ $$ v(0) = x'(0) = \frac{dx}{dt}(0) = v_0 $$ What we mean by solving is to obtain the position as a function of time: $$x(t)$$ Where \(x\) is the dependent variable, \(t\) is the independent variable.

Example 1

Free falling mass under the influence of gravity can be modelled by the following ODE $$ m y''(t) = F = m g $$ with initial conditions $$ y(0) = 0 $$ $$ y'(0) = 0 $$ where initial position and velocity is zero. The solution of this problem is $$ y(t) = \frac{1}{2} g t^2 $$ Please note that the solution satisfies both the equation and the initial conditions.
m y

Partial Differential Equations: PDEs

If there are more than one independent variable then we are talking about a Partial Differential Equation (PDE). $$ \frac{\partial^2 u(x,y)}{\partial x^2} + \frac{\partial^2 u(x,y)}{\partial y^2} = u_{xx}(x,y) + u_{yy}(x,y) = 0 $$ Where \(u\) is the dependent variable, \(x\) and \(y\) are the independent variables. Sometimes we can use a shorthand notation and ommit independent variables: $$ \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = u_{xx} + u_{yy} = 0 $$ This equation alone is not enough to determine the function \(u(x,y)\). We also need additional conditions just like the ODEs.

Example 1

The following PDE can model 2 dimensional heat conduction in a unit square: $$ T_{xx} + T_{yy} = 0 $$ with boundary conditions $$ T(0,y) = 0 $$ $$ T(1,y) = y $$ $$ T(x,0) = 0 $$ $$ T(x,1) = x $$ given temperature distribution at the boundaries.

T(x,y) T = x T = 0 T = 0 T = y (1,1) (0,0) (1,0) (0,1)

If we can solve this problem, we can find the temperature distribution in the square: $$ T(x, y) = x y $$ It is easy to check that the solution satisfies the PDE and the boundary conditions.