The following are ordinary differential equations.
-
\(\displaystyle \displaystyle y' = x\)
-
\(\displaystyle y' = \sin x\text{.}\)
-
\(\displaystyle \displaystyle \frac{dy}{dx} = y^2\)
-
\(\displaystyle y'' + 3y' + y = 0 \text{.}\)
Equations 1,2, and 4 are linear and 3 is nonlinear. Note that even though
\(\sin x\) is not a linear function, in order for a differential equation to be linear, it needs only be linear in its dependent variables (in all of these examples,
\(y\) is dependent). Equations 1 and 2 are nonhomogeneous and equation 4 is homogeneous. Also, the first three are first-order equations and the 4th equation is 2nd order. The following are partial differential equations:
-
\(\displaystyle \displaystyle \frac{\partial u}{\partial x} + \frac{\partial u}{\partial y} = 0\)
-
\(\displaystyle u_{t} -u u_x = 0\text{.}\)
-
\(\displaystyle \displaystyle \frac{\partial u}{\partial x} + \biggl(\frac{\partial^2 u}{\partial {t}^2} \biggr)^2 = 0 \)
-
\(\displaystyle u_{t} +u_y - u_{xxx} = 0\text{.}\)
And the first and fourth equations are linear with the other two being nonlinear. The first and second equations above are first order, the 3rd equation is 2nd order and the fourth is a third-order PDE.