Ordinary Differential Equations for Engineers
§1 Introduction to Differential Equations
Differential equations, mathematical models, order, solutions, linearity, systems, and autonomous equations.
A differential equation, or DE, is an equation involving an unknown function and one or more of its derivatives. Instead of solving for a number, we are looking for a function whose derivatives satisfy the equation.
For example, let be the independent variable, let be the unknown function, and let be a constant. The prime means differentiation with respect to :
Now consider the differential equation
It says that the rate of change is proportional to the current value .
Differential equations as models
Differential equations are useful because many physical rules describe how something changes rather than giving its value directly.
Example: a falling object
Let be the downward velocity of an object at time . Let be the object's mass, the acceleration due to gravity, and the drag coefficient. Newton's second law says
Since acceleration is , the left side is . If downward is positive, gravity contributes , while drag acts upward with magnitude . Therefore,
The equation balances two effects: gravity speeds up the fall, while drag opposes the motion.
Example: population growth
Let be the size of a population at time . In an idealized environment with unlimited resources, assume that the population's rate of change is proportional to its current size. If is the proportionality constant, then
For a positive population, divide by and use the chain rule. Here, is the natural logarithm:
Integrating with respect to introduces a constant of integration, which we call :
Exponentiating both sides,
If we write , then
The constant is the initial population because
Different values of give different solutions. For a population model, . The sign of determines what happens over time:
- : exponential growth;
- : constant population;
- : exponential decay.
The unlimited-resource assumption is only an idealization. It is useful over limited time periods, but real populations cannot grow exponentially forever.
Ordinary and partial differential equations
An ordinary differential equation, or ODE, uses derivatives with respect to one independent variable. These are all ODEs:
A partial differential equation, or PDE, involves partial derivatives of a function that depends on more than one independent variable. A partial derivative uses the symbol and measures change with respect to one variable while the others are held fixed.
For example, let represent temperature at position and time . The one-dimensional heat equation can be written as
The unknown function depends on two independent variables, and .
The order of an ODE
The order of an ODE is the number of times the unknown function is differentiated in the highest derivative that appears.
| ODE | Highest derivative | Order |
|---|---|---|
| first | ||
| first | ||
| second | ||
| fourth |
The exponent on does not determine the order. For example, the term in the last equation makes the equation nonlinear, but it does not make it second order. The fourth derivative determines the order.
The independent variable is often omitted when it is clear from context. For example,
is shorthand for an equation involving , , and .
For any positive integer , the notation
means the th derivative of with respect to .
A general form for an ODE
Let be a function that combines the independent variable, the unknown function, and its derivatives up to order . An th-order ODE can be written implicitly as
The function returns a real number. The symbol means the set of real numbers. In symbols,
There are inputs because they are
Example: building an ODE from
Suppose
Substituting , , and gives
Therefore,
is an implicit first-order ODE. It is first order because is the highest derivative present, even though is cubed.
What counts as a solution?
Let be the open interval of values strictly between and . The notation says that takes an input from and returns a real number. The symbol means “is an element of,” so means that belongs to the interval .
A solution of
on is a function that has all the derivatives needed by the equation and makes the equation true for every .
Example: checking a proposed solution
Consider
To check whether is a solution, differentiate it:
Now substitute into the ODE:
The equation is true for every real , so is a solution on .
Linear and nonlinear ODEs
An th-order ODE is linear when and its derivatives appear only to the first power, are not multiplied together, and are not placed inside nonlinear functions. Its coefficients may depend on the independent variable .
Let be coefficient functions, and let be the right-hand side. A general th-order linear ODE has the form
The coefficients and the right-hand side may all depend on without making the equation nonlinear.
Example: a linear ODE
is a second-order linear ODE. Matching it to the general form gives
Example: a nonlinear ODE
is nonlinear because is squared. The equation is still first order because is its highest derivative.
General solutions
A general solution is a family containing all the solutions of an ODE under consideration. The members of the family are distinguished by one or more arbitrary constants.
For example, the general real-valued solution of
is
Since is the set of real numbers, we write the arbitrary constant as
This says that may be any real number.
We can verify this directly:
Every real value of gives a solution:
- gives a positive exponential curve;
- gives the zero solution;
- gives a negative exponential curve.
Without an additional condition, such as a known value of at one time, the ODE therefore has infinitely many solutions.
Scalar equations and systems
A scalar ODE has one unknown scalar-valued function. A system of ODEs is a collection of differential equations that must be satisfied together, usually involving several unknown functions.
For example, let and be two unknown functions. Then
is a system for the two unknown functions and . The equations are coupled because each one depends on the other unknown function.
Autonomous and non-autonomous ODEs
An ODE is autonomous when the independent variable does not appear explicitly in the equation. For example,
are autonomous when , , , and are constants. Their solutions still depend on time; autonomous only means that time does not appear explicitly in the equation itself.
An ODE is non-autonomous when the independent variable does appear explicitly. For example,
is non-autonomous because appears in and .