Logo
Differential Equations!

Differential Equations!

Chara Chara
January 6, 2026
2 min read
index

Def. 1 - Order

If y(n)y^{(n)} is the highest order derivative of yy that appears in (1), then we say (1) is the nnth order ODE.

In other words, an equation has order nn if this equation contains y(n)y^{(n)}, and doesn’t contain any higher order derivative of yy.

Example (Example 1)

y+2y=0y'' + 2y = 0 — this is a 2nd order ODE.

Example (Example 2)

yy+(y)2=x2y'''y + (y'')^2 = x^2 — this is a 3rd order ODE.


Def. 2 - Linear vs Nonlinear

If an equation has the form

an(x)y(n)(x)+an1(x)y(n1)(x)++a2(x)y(2)(x)+a1(x)y(x)+a0(x)y(x)+a(x)=0a_n(x)\cdot y^{(n)}(x) + a_{n-1}(x)\cdot y^{(n-1)}(x) + \cdots + a_2(x)\cdot y^{(2)}(x) + a_1(x)\cdot y'(x) + a_0(x)\cdot y(x) + a(x) = 0

here an(x),an1(x),,a1(x),a0(x)a_n(x), a_{n-1}(x), \ldots, a_1(x), a_0(x) are functions of xx (functions we already know), then we say this is a linear ODE. Otherwise, this is a non-linear ODE.

Example (Example 3)

x2y+sin(x)y+x3=0x^2\cdot y'' + \sin(x)\cdot y' + x^3 = 0 — this is a 2nd order linear ODE.

If we let a2(x)=x2a_2(x) = x^2, a1(x)=sin(x)a_1(x) = \sin(x), a0(x)=0a_0(x) = 0, a(x)=x3a(x) = x^3, then (2) has the form

a2(x)y(2)(x)+a1(x)y(1)(x)+a0(x)y(x)+a(x)=0.a_2(x)\cdot y^{(2)}(x) + a_1(x)\cdot y^{(1)}(x) + a_0(x)\cdot y(x) + a(x) = 0.
Example (Example 4)

y(x)+y2(x)=x2y'(x) + y^2(x) = x^2 — this is a 1st order non-linear ODE, because we can’t write it in the form of (2) due to the existence of y2y^2.

Example (Example 5)

y(x)y(x)+y(x)=xy''(x)\cdot y(x) + y'(x) = x — this is a 2nd order non-linear ODE due to the existence of y(x)y(x)y''(x)\cdot y(x).

In a linear equation, you can always separate y(x)y(x), y(x)y'(x), y(x)y''(x) (no products like y(x)y(x)y''(x)\cdot y(x)).


Def. 3 - Solution

If y=y(x)y=y(x) satisfies (solves)

F(x,y(x),y(x),y(x))=0(1)F\bigl(x, y(x), y'(x), y''(x)\bigr) = 0 \quad (1)

then we say y(x)y(x) is a solution of (1).

First-order linear ODE

dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)\cdot y = Q(x)

here P(x),Q(x)P(x), Q(x) are functions of xx. This is a 1st order linear ODE.

If a1(x)=1a_1(x) = 1, a0(x)=P(x)a_0(x) = P(x), and a(x)=Q(x)a(x) = -Q(x), then (3) can be written as

a1(x)y(1)(x)+a0(x)y(x)+a(x)=0.a_1(x)\cdot y^{(1)}(x) + a_0(x)\cdot y(x) + a(x) = 0.
dydx+2y(x)=0(4)\frac{dy}{dx} + 2\cdot y(x) = 0 \quad (4)

We times e2xe^{2x} on both sides of (4), then we have

e2xdydx+2e2xy(x)=0(5)e^{2x}\cdot \frac{dy}{dx} + 2\cdot e^{2x}\cdot y(x) = 0 \quad (5)

From (5), we obtain

(e2xy(x))=0.\bigl(e^{2x}\cdot y(x)\bigr)' = 0. (e2xy(x))=(e2x)y(x)+e2xy(x)=2e2xy(x)+e2xy(x).\bigl(e^{2x}\cdot y(x)\bigr)' = (e^{2x})'\cdot y(x) + e^{2x}\cdot y'(x) = 2\cdot e^{2x}\cdot y(x) + e^{2x}\cdot y'(x).

Since if f=0f' = 0, then f=Cf=C (a constant), from the above we have

e2xy(x)=C,y(x)=Ce2x=Ce2x,e^{2x}\cdot y(x) = C, \quad y(x) = \frac{C}{e^{2x}} = C\cdot e^{-2x},

here CC can be any constant.

Plotting one solution curve for y=Ce2xy = C\cdot e^{-2x} (take C=1C = 1):

Slope field for the differential equation y=yxy' = y - x:

3D surface for z=sin(x)cos(y)z = \sin(x)\cos(y):