This article is aimed at undergraduate students who are struggling with differential equations, or anyone interested in self-study.
A differential equation is a mathematical equation that describes the relationship between a function's derivatives and the function itself, as well as other variables.
Classification of Differential Equations
To master the computation of differential equations, one must first learn to classify differential equations in order to choose the correct method for solving them.
Partial differential equations and higher-order ordinary differential equations are not covered in this article, which focuses on ordinary differential equations that can be roughly classified into four categories:
Separable Variable Equations
- Form: Can be expressed in the form , where and M(x) are functions of y and x.
- Characteristic: The equation can be rearranged so that all terms involving y are on one side and all terms involving x are on the other side.
First-Order Linear Homogeneous Differential Equations
- Form:
Second-Order Linear Homogeneous Differential Equations
- Form: .
- Characteristic: The equation is linear and has no constant term (i.e., no "non-homogeneous" term). The coefficients of and its derivatives are functions of x only.
Second-Order Linear Non-Homogeneous Differential Equations
- Form:
- Characteristic: In addition to being linear, it includes a non-homogeneous term Q(x) that is not equal to zero.
Bernoulli's Equation
- Form: d**y/d**x+P(x)y=Q(x)y**n, where n is not equal to 0 or 1.
- Characteristic: This is a nonlinear equation. It is characterized by the presence of a term involving , where n is a real number.
Solution Methods
Separable Variable Equations
Move all terms involving y to one side of the equation and all terms involving to the other side, then integrate both sides.
First-Order Homogeneous Differential Equations
Simply remember the general solution formula:
First-Order Non-Homogeneous Differential Equations
Simply remember the general solution formula:
Memory tip: General solution of the homogeneous form + particular solution. The term is the integrating factor.
Second-Order Homogeneous Differential Equations
For this type of equation, there are two methods of solving.
We will explain using this equation as an example:
One method is the characteristic equation method. The steps are as follows:
-
Write the characteristic equation:
-
Solve the characteristic equation: Calculate it as a quadratic equation.
-
Write the general solution:
-
If the characteristic equation has two distinct roots, the general solution is
-
If the roots of the characteristic equation are repeated (i.e., ), the general solution is
-
If the roots of the characteristic equation are complex conjugates, the general solution is
You may wonder, what are complex conjugates? They refer to the case where the discriminant of the characteristic equation . Generally, we would say that this equation has no real solutions because the square root cannot be negative.
In this case, if we take the absolute value under the square root and then add the imaginary unit to the result after taking the square root, we can still obtain two roots. For example, for the characteristic equation:
Using the quadratic formula, we find the roots to be:
Here, the expression under the square root is -36, leading us to the complex conjugate roots:
Where .
Thus, the general solution for this equation is:
Second-Order Non-Homogeneous Differential Equations
For this type of equation, we first assume to be 0 to compute the general solution .
Next, we need to find a particular solution .
Based on the form of , we set a trial particular solution. For example, consider this equation:
Assume the trial solution to be , substituting it into the original equation:
After simplification, we get:
Solving gives:
Next, substituting the trial solution back into the original equation, the solution to the non-homogeneous differential equation is the general solution of the homogeneous equation plus the particular solution of the non-homogeneous equation:
Thus, the general solution of the original equation is:
For determining the trial particular solution, common forms include:
- or :
- :
Example Problem
Given that the function f(x) is a solution to the differential equation and that , , find .
Summary
The difficulty in solving differential equations lies in memorizing the general solution formulas, but overall, it is not too challenging.