Differential equations are important equations both for mathematics and physics. Many process in real world can be described by differential equations, such as that of vibration and wave. Especially waves, they (sound/light) help human to transfer more than 90% of informations. Here we will mainly focus on the Ordinary Differential Equations (ODEs) that can be solved analytically.
Basic concepts of ODEs
Characteristics of ODEs
What is order?
The order of an ODE means the highest differential order of the unknown solution function. eg. is a 2 order ODE. is an order ODE.
Ordinary/Partial?
Ordinary means in this differential equation the unknown function only has one variable eg. . If the unknown function have more than one variables, it will be called as Partial Differential Equation (PDE). eg. .
Homogeneous/inhomogeneous?
A homogeneous equation means the ODE do not contain variable/function residue, like this form [1]: , where the is the differential operator. While an inhomogeneous ODE contains variable residue, like this form: .
Constant/variable coefficient
Constant coefficient means the coefficient before the unknown function are constants, eg: , while variable coefficient means the coefficient before the unknown function are variables/functions. eg:
Linear/nonlinear?
As the name indicates, linear mean the relation like the function of a line: terms are the linear terms, higher order and other function relation are nonlinear terms. The linear ODEs are those without nonlinear terms in the unknown function and its derivatives . In particular the nonlinear terms like: are not presented in a linear ODE [2]. Otherwise, it is nonlinear ODEs. It must be noted that the variable coefficient for the ODEs are not considered as nonlinear, eg: is a linear equation, it just have function as variable coefficients.
Singular/nonsingular(=regular) point?
Singular or nonsingular refers to the solution of ODE as a particular point with the solution space. Suppose we have a linear variable coefficient ODE as: , we rewritten it as: . If , we say the point is a singular point of equation , otherwise we say it is a nonsingular/regular point [3].
Solution to typical ODEs
Here we will discuss several particular ODEs that can be solved analytically. Lets start from the most commonly used 2nd order ODE and then extend it to higher orders.
2nd linear constant coefficient homogeneous ODE
This type of ODE have the general form as: , we can guess one of its particular solution as: , put this solution in the ODE we can get what we have learned in middle school: , a unitary quadratic equation. Haha, we have turned an ODE to what we have learned long ago as a kid. The solution of this equation depend on the value of . It has three cases:
2 real roots
When , the 2 real roots are:
Then the general solution to the ODE is: , the actual value of the two coefficients can be obtained by considering the particular boundary conditions.
1 real root
When , there is only one real root r, then one of the solution is: . We can guess the second solution as: , then we put in the ODE. After some calculation we can get: , it is obvious the is a possible solution. (During the derivation, should be used). Then the second solution is: , then the general solution is: .
2 complex roots
When , there are 2 conjuncture complex solution: (where ). Then the related 2 solutions are: . However, for the real ODE, its solution should also be real valued functions. With the help of Ruler’s equation, we can construct 2 real roots from the 2 conjecture complex roots.
Thus the general real solution is: . However, if the solution of the ODE is indeed complex functions, like the case of Schrodinger equation, you can directly use the complex roots format without converting them.
2nd linear constant coefficient inhomogeneous ODE
The general form of the non-homogeneous ODE is:
This is actually an extension to the previous homogeneous 2nd *** ODE by adding some function terms. With the theory of solution composition, the non-homogeneous ODE’s solution is a linear combination of the homogeneous ODE’s general solution plus a particular solution: . For the non-homogeneous ODE, not all type in the equation can be solved. Here we just discuss two cases which can be solved.
f(x) is exponential function
Where the ODE has the form:
For this kind of equation, we can guess the particular solution as: , where is the root of the related homogeneous equation, and for the cases: . Put this solution into the non-homogeneous ODE and get the related coefficient, we can get this particular solution .
f(x) is trigonometric function
Where the ODE has the form:
For this case, we can guess the particular solution has the form: . Where . Then put this particular solution into the ODE we can solve it.
Higher order linear constant coefficient homogeneous ODE
The higher order here means the order of the ODE n could take values bigger than 2. However, is also a special case of this general form. The general form of this n th order ODE is: . If we guess a particular solution as: , the ODE is converted to an n th order normal equation, which relates to n roots. Similar to the case of the 2nd ODE, there are 4 kinds of roots, each relates to a type of particular solution. In the end, the general solution is a linear combination of the 4 types of solutions [4].
real root
real root r related solution is:
k th order complex root
order complex root related solution is:
A pair of single complex root
This pair of complex roots related solutions are:
A pair of k th complex root
This pair of complex roots related solutions are:
High order … inhomogeneous ODE
Similar to the 2D case, its solution is also the combination of the general solution of the related homogeneous ODE and particular solution. The difference is that the number of term for different orders are much massive than the 2nd case [4].
Ruler’s equation
The general form of Ruler’s equation is:
For the Ruler’s equation, we can make a smart transformation by let: , thus we can turn the variable coefficient ODE to a constant coefficient ODE. Then the ODE structure is very similar to the inhomogeneous ODE. If we get the solution , making a reverse transformation we can get the solution of .
Infinite series solution to general ODEs
There are conditions where the solution of the ODE could not be presented by elementary functions or integration functions. Then we can using a new method, the infinite series solution to solve it. What’s more the infinite series solution is type of general solution that could also solve the normal ODEs that we have discussed previously. Pay attention, because the solution is an infinite series, it may brought errors if we make cut off at finite order [5].
Power series solution
For an ODE, we can guess its solution as a power series function. To solve this equation, we only need to determine the value of the coefficients.
eg. , with boundary condition as: , suppose the solution is: .
{width=300px}
After some simplification, we can find the solution to this ODE is an infinite series: .
ODE groups
Sometime we will face more than one ODE, for example the MHD equations are a group of equations. The general procedure to solve these equations is this:
- Reduce the number of unknown functions to 1.
- Solve this reduced ODE get y1.
- Put y1 into original equation and solve y2.
For a simple case, see this ODE group:
If we take the derivation of x for eq(1) we can get , then use eq(2) we can remove the term and get: , solve this equation and get , then put it into (1) we can get .
Reference
[1] https://en.wikipedia.org/wiki/Homogeneous_differential_equation
[2] https://www.differencebetween.com/difference-between-linear-and-vs-nonlinear-differential-equations/
[3] A.C. King, J. Billingham and S.R. Otto, Differential Equations Linear, Nonlinear, Ordinary, Partial, Cambridge university press. 2003.
[4]同济大学应用数学系,高等数学,第五版,高等教育出版社
[5]中科大高数教研室,高等数学导论,第三版,中科大出版社