Graduate → Differential Equations ↓
Ordinary Differential Equations
Ordinary differential equations (ODEs) are equations that involve one or more functions of an independent variable and its derivatives. The term "ordinary" is used in contrast to the term "partial", which is used to refer to partial differential equations (PDEs). ODEs are important in a variety of scientific fields because they often describe changes in a system over time. Solutions to these equations can reveal the behavior and properties of the system being studied.
Basic concepts and definitions
An ordinary differential equation is an equation that contains one or more derivatives of a function. The primary purpose is to determine the unknown function, often represented as y(x)
. For ODEs, only derivatives with respect to one variable, usually time or space, are included. ODEs can often be expressed as:
F(x, y, y', y'', ..., y (n) ) = 0
where y'
, y''
, ..., y (n)
denote the derivatives of y
with respect to the independent variable x
.
Order of differential equation
The order of a differential equation is the highest order of the derivative present in the equation. For example:
y' + y = 0
is a first-order differential equation.y'' + y' - y = x
is a second-order differential equation.
Linear versus nonlinear ODEs
An ODE is called linear if it can be expressed as a linear polynomial in the unknown function and its derivatives. A linear ODE looks like this:
a n (x)y (n) + a n-1 (x)y (n-1) + ... + a 1 (x)y' + a 0 (x)y = g(x)
where a i (x)
and g(x)
are functions of x
only. If the ODE cannot be expressed in this form, it is nonlinear.
Solving ordinary differential equations
There are various methods to solve ordinary differential equations, and the method chosen depends on the type and order of the ODE. Let us discuss some basic methods:
Separable equation
An equation is said to be separable if it can be rearranged in a form that allows the variables to be separated on both sides of the equation. For example:
dy/dx = g(y)h(x)
can be rearranged:
(1/g(y)) dy = h(x) dx
Now the two sides can be integrated separately.
Example:
dy/dx = yx
This can be rewritten as:
(1/y) dy = x dx
Integrating both sides:
ln|y| = (1/2)x 2 + C
Solving for y
, we get:
y = ± e (1/2)x 2 + C
First-order linear equations
The first-order linear differential equation has the form:
dy/dx + P(x)y = Q(x)
The integrating factor method is commonly used here:
IF = e ∫P(x) dx
Multiplying by the integrating factor converts the equation into a form that can be integrated directly.
Example:
dy/dx + y = e x
First, determine the integrating factor, IF = e ∫1 dx = e x
.
Multiply both sides by e x
:
e x dy/dx + e x y = e 2x
It becomes:
d/dx(e x y) = e 2x
Integrate both sides:
e x y = (1/2)e 2x + C
Thus, y = (1/2)e x + Ce -x
.
Higher-order linear differential equations
Higher-order linear differential equations are very important in mathematical modeling and analysis. They can often be expressed as:
a n (x)y (n) + a n-1 (x)y (n-1) + ... + a 1 (x)y' + a 0 (x)y = g(x)
Example:
The commonly discussed second-order linear ODE is:
y'' + p(x)y' + q(x)y = g(x)
If g(x) = 0
, then the equation is homogeneous.
Solution methods
Characteristic equation
If g(x) = 0
, assume a solution in the form y = e rx
. Substituting into the ODE gives the characteristic equation, which is usually a polynomial in r
:
ar 2 + br + c = 0
Solve for r
to find the general solution based on distinct, repeated, or complex roots. The solutions are often of the form:
- Different roots
r 1 , r 2
:y = c 1 e r 1 x + c 2 e r 2 x
- Iterated root
r
:y = (c 1 + c 2 x)e rx
- Complex roots
α ± βi
:y = e αx (c 1 cos(βx) + c 2 sin(βx))
Special solutions
When considering an inhomogeneous equation where g(x) ≠ 0
, the solution consists of a homogeneous solution y h
and a particular solution y p
obtained through methods such as undetermined coefficients or variation of parameters.
Applications of ordinary differential equations
ODEs are used extensively in real-world applications to model physical systems and phenomena. Some common examples include:
Population dynamics
Population growth can often be modeled by an ODE. The simplest model assumes that the rate of growth is proportional to the current population size:
dy/dt = ry
where r
is the growth rate.
Electrical circuits
Kirchhoff's laws lead to ODEs when applied to circuits containing resistors, capacitors, and inductors. For example, an RLC circuit can be described as:
L(di/dt) + Ri + (1/C)∫i dt = E(t)
Newton's law of cooling
The rate of heat loss of a body is proportional to the temperature difference between the body and the surrounding environment:
dT/dt = k(T - T env )
Mass-spring-damper system
These systems can be modeled by second-order ODEs. The basic equation for a damped harmonic oscillator is:
m(d 2 x/dt 2 ) + c(dx/dt) + kx = 0
where m
is the mass, c
is the damping coefficient, and k
is the stiffness of the spring.
Understanding through examples
Example of separation of variables
Consider:
dy/dx = xy
Separating the variables, we get:
dy/y = x dx
Integrating both sides:
ln|y| = (1/2)x 2 + C
Solving for y
, we get:
y = Ce (1/2)x 2
Example of a first-order linear equation
Consider:
dy/dx + 2y = e x
The integrating factor is:
IF = e ∫2 dx = e 2x
Multiply by this factor:
e 2x dy/dx + 2e 2x y = e 3x
This makes it simpler:
d/dx(e 2x y) = e 3x
Integrating the right side, we get:
e 2x y = (1/3)e 3x + C
So y = (1/3)e x + Ce -2x
.
Understanding ordinary differential equations is crucial for analyzing the behavior of various systems in physics, engineering, and beyond. The diversity in methods and types of equations provides a robust framework for modeling a vast array of phenomena.