Ordinary differential equations
Ordinary Differential Equations
Often in Physics, Chemistry, Biology, Geometry, etc there arise equations that relate a function with its derivative, or successive derivatives.
Definition - Ordinary differential equation. An ordinary differential equation (O.D.E.) is a equation that relates an independent variable
The order of a differential equation is the greatest order of the derivatives in the equation.
Example. The equation
Deducing a differential equation
To deduce a differential equation that explains a natural phenomenon is essential to understand what a derivative is and how to interpret it.
Example. Newton’s law of cooling states
“The rate of change of the temperature of a body in a surrounding medium is proportional to the difference between the temperature of the body
and the temperature of the medium .”
The rate of change of the temperature is the derivative of temperature with respect to time
where
Solution of an ordinary differential equation
Definition - Solution of an ordinary differential equation. Given an ordinary differential equation
The graph of a solution of the ordinary differential equation is known as integral curve.
Solving an ordinary differential equations consists on finding all its solutions in a given domain. For that integral calculus is required.
The same manner than the indefinite integral is a family of antiderivatives, that differ in a constant term, after integrating an ordinary differential equation we get a family of solutions that differ in a constant. We can get particular solutions giving values to this constant.
General solution of an ordinary differential equation
Definition - General solution of an ordinary differential equation. Given an ordinary differential equation
depending on
For every value of the constant we get particular solution of the differential equation. Thus, when a differential equation can be solved, it has infinite solutions.
Geometrically, the general solution of a differential equation corresponds to a family of integral curves of the differential equation.
Often, it is common to impose conditions to the solutions of a differential equation to reduce the number of solutions. In many cases, these conditions allow to determine the values of the constants in the general solution to get a particular solution.
First order differential equations
In this chapter we are going to study first order differential equations
The general solution of a first order differential equation is
so to get a particular solution from the general one, it is enough to set the value of the constant
Definition - Initial value problem. The group consisting of a first order differential equation and an initial condition is known as initial value problem:
Solving an initial value problem consists in finding a solution of the first order differential equation that satisfies the initial condition.
Example. Recall the first order differential equation of the Newton’s law of cooling,
It is easy to check that the general solution of this equation is
If we impose the initial condition that the temperature of the body at the initial instant is
from where we get
Integral curve of an initial value problem
Example. If we assume in the previous example that the temperature of the surrounding medium is
Existence and uniqueness of solutions
Theorem - Existence and uniqueness of solutions of a first order ODE. Given an initial value problem
if
Although this theorem guarantees the existence and uniqueness of a solution of a first order differential equation, it does not provide a method to compute it. In fact, there is not a general method to solve first order differential equations, but we will see how to solve some types:
Separable differential equations
Definition - Separable differential equation. A separable differential equation is a first order differential equation that can be written as
or what is the same,
so the different variables are on different sides of the equality (the variables are separated).
The general solution for a separable differential equation comes after integrating both sides of the equation
Example. The differential equation of the Newton’s law of cooling
is a separable differential equation since it can be written as
Integrating both sides of the equation we have
and solving for
rewriting
Homogeneous differential equations
Definition - Homogeneous function. A function
for any value
In particular, a homogeneous function of degree
Setting
This way, a homogeneous function of degree
Definition - Homogeneous differential equation. A homogeneous differential equation is a first order differential equation that can be written as
where
We can solve a homogeneous differential equation by making the substitution
so the equation becomes
that is a separable differential equation.
Once solved the separable differential equation, the substitution must be undone.
Example. Let us consider the following differential equation
Rewriting the equation in this way
we can easily check that it is a homogeneous differential equation.
To solve this equation we have to do the substitution
that is a separable differential equation.
Separating the variables we have
Now, integrating both sides of the equation we have
then, applying the exponential function to both sides and simplifying we get the general solution
rewriting the constant
Finally, undoing the initial substitution
Linear differential equations
Definition - Linear differential equation A linear differential equation is a first order differential equation that can be written as
To solve a linear differential equation we try to write the left side of the equation as the derivative of a product. For that we multiply both sides by the function
Thus, we get
Integrating both sides of the previous equation we get the solution
On the other hand, the unique function that satisfies
so, substituting this function in the previous solution we arrive at the solution of the linear differential equation
or what is the same
Solution of a linear differential equation.
Example. If in the differential equation of the Newton’s law of cooling the temperature of the surrounding medium is a function of time
is a linear differential equation since it can be written as
where the independent term is
Substituting in the formula of the general solution of a linear differential equation we have
In the particular case that
If, in addition, we know that the temperature of the body at time