Differential equations are fundamental tools in various fields of science and engineering, used to model and analyze dynamic systems. Among the methods employed to solve these equations, the Method of Undetermined Coefficients stands out as a powerful and straightforward technique for finding particular solutions to non-homogeneous linear differential equations with constant coefficients. This method is particularly useful when the non-homogeneous term is a polynomial, exponential, sine, or cosine function, or a combination thereof.
Understanding the Method of Undetermined Coefficients
The Method of Undetermined Coefficients is based on the principle of superposition and the form of the non-homogeneous term. The key idea is to guess the form of the particular solution based on the form of the non-homogeneous term and then determine the coefficients by substituting the guessed solution into the differential equation. This method is most effective when the non-homogeneous term is a combination of polynomials, exponentials, sines, and cosines.
Steps to Apply the Method of Undetermined Coefficients
To apply the Method of Undetermined Coefficients, follow these steps:
- Identify the form of the non-homogeneous term.
- Guess the form of the particular solution based on the non-homogeneous term.
- Substitute the guessed solution into the differential equation.
- Solve for the undetermined coefficients.
- Write the particular solution and add it to the general solution of the homogeneous equation.
Examples of the Method of Undetermined Coefficients
Let's go through a few examples to illustrate the Method of Undetermined Coefficients.
Example 1: Polynomial Non-Homogeneous Term
Consider the differential equation:
y'' - 3y' + 2y = 4x + 5
Here, the non-homogeneous term is a polynomial 4x + 5. We guess a particular solution of the form:
yp = Ax + B
Taking the derivatives, we get:
y'p = A
y''p = 0
Substituting these into the differential equation, we have:
0 - 3A + 2(Ax + B) = 4x + 5
Simplifying, we get:
2Ax - 3A + 2B = 4x + 5
Equating the coefficients of like terms, we obtain the system of equations:
2A = 4
-3A + 2B = 5
Solving this system, we find:
A = 2
B = 7
Thus, the particular solution is:
yp = 2x + 7
To find the general solution, we also need the solution to the homogeneous equation y'' - 3y' + 2y = 0. The characteristic equation is:
r2 - 3r + 2 = 0
Factoring, we get:
(r - 1)(r - 2) = 0
So, the roots are r = 1 and r = 2. The general solution to the homogeneous equation is:
yh = C1ex + C2e2x
Therefore, the general solution to the non-homogeneous equation is:
y = yh + yp = C1ex + C2e2x + 2x + 7
๐ Note: If the non-homogeneous term is a polynomial of degree n, the guessed particular solution should be a polynomial of the same degree.
Example 2: Exponential Non-Homogeneous Term
Consider the differential equation:
y'' + y = e2x
Here, the non-homogeneous term is e2x. We guess a particular solution of the form:
yp = Ae2x
Taking the derivatives, we get:
y'p = 2Ae2x
y''p = 4Ae2x
Substituting these into the differential equation, we have:
4Ae2x + Ae2x = e2x
Simplifying, we get:
5Ae2x = e2x
Equating the coefficients, we find:
A = 1/5
Thus, the particular solution is:
yp = (1/5)e2x
To find the general solution, we also need the solution to the homogeneous equation y'' + y = 0. The characteristic equation is:
r2 + 1 = 0
The roots are r = ยฑi. The general solution to the homogeneous equation is:
yh = C1cos(x) + C2sin(x)
Therefore, the general solution to the non-homogeneous equation is:
y = yh + yp = C1cos(x) + C2sin(x) + (1/5)e2x
๐ Note: If the non-homogeneous term is eax, and a is not a root of the characteristic equation, the guessed particular solution should be Aeax. If a is a root of multiplicity k, the guessed particular solution should be xkAeax.
Example 3: Trigonometric Non-Homogeneous Term
Consider the differential equation:
y'' + y = sin(x)
Here, the non-homogeneous term is sin(x). We guess a particular solution of the form:
yp = Acos(x) + Bsin(x)
Taking the derivatives, we get:
y'p = -Asin(x) + Bcos(x)
y''p = -Acos(x) - Bsin(x)
Substituting these into the differential equation, we have:
-Acos(x) - Bsin(x) + Acos(x) + Bsin(x) = sin(x)
Simplifying, we get:
0 = sin(x)
This equation is always true, indicating that our guess was correct. However, we need to solve for the coefficients A and B. Since the equation is always true, we can choose any values for A and B that satisfy the initial conditions. For simplicity, let's choose A = 0 and B = 1. Thus, the particular solution is:
yp = sin(x)
To find the general solution, we also need the solution to the homogeneous equation y'' + y = 0. The characteristic equation is:
r2 + 1 = 0
The roots are r = ยฑi. The general solution to the homogeneous equation is:
yh = C1cos(x) + C2sin(x)
Therefore, the general solution to the non-homogeneous equation is:
y = yh + yp = C1cos(x) + C2sin(x) + sin(x)
๐ Note: If the non-homogeneous term is sin(ax) or cos(ax), and a is not a root of the characteristic equation, the guessed particular solution should be Acos(ax) + Bsin(ax). If a is a root of multiplicity k, the guessed particular solution should be xk(Acos(ax) + Bsin(ax)).
Example 4: Combination of Terms
Consider the differential equation:
y'' - y' - 2y = 3e2x + 4sin(x)
Here, the non-homogeneous term is a combination of 3e2x and 4sin(x). We guess a particular solution of the form:
yp = Ae2x + Bcos(x) + Csin(x)
Taking the derivatives, we get:
y'p = 2Ae2x - Bsin(x) + Ccos(x)
y''p = 4Ae2x - Bcos(x) - Csin(x)
Substituting these into the differential equation, we have:
4Ae2x - Bcos(x) - Csin(x) - (2Ae2x - Bsin(x) + Ccos(x)) - 2(Ae2x + Bcos(x) + Csin(x)) = 3e2x + 4sin(x)
Simplifying, we get:
0e2x - 2Bcos(x) + 2Csin(x) = 3e2x + 4sin(x)
Equating the coefficients of like terms, we obtain the system of equations:
0 = 3
-2B = 0
2C = 4
Solving this system, we find:
A = 3/2
B = 0
C = 2
Thus, the particular solution is:
yp = (3/2)e2x + 2sin(x)
To find the general solution, we also need the solution to the homogeneous equation y'' - y' - 2y = 0. The characteristic equation is:
r2 - r - 2 = 0
Factoring, we get:
(r - 2)(r + 1) = 0
So, the roots are r = 2 and r = -1. The general solution to the homogeneous equation is:
yh = C1e2x + C2e-x
Therefore, the general solution to the non-homogeneous equation is:
y = yh + yp = C1e2x + C2e-x + (3/2)e2x + 2sin(x)
๐ Note: If the non-homogeneous term is a combination of polynomials, exponentials, sines, and cosines, the guessed particular solution should be a combination of the corresponding forms.
Special Cases and Modifications
There are special cases where the Method of Undetermined Coefficients requires modifications. These cases arise when the non-homogeneous term or its derivatives are solutions to the homogeneous equation.
Case 1: Non-Homogeneous Term is a Solution to the Homogeneous Equation
If the non-homogeneous term g(x) is a solution to the homogeneous equation, the Method of Undetermined Coefficients may not work directly. In such cases, we need to modify the guessed particular solution by multiplying it by xk, where k is the smallest integer such that xkg(x) is not a solution to the homogeneous equation.
For example, consider the differential equation:
y'' + y = cos(x)
Here, cos(x) is a solution to the homogeneous equation y'' + y = 0. We modify the guessed particular solution by multiplying it by x:
yp = x(Acos(x) + Bsin(x))
Taking the derivatives, we get:
y'p = Acos(x) + Bsin(x) + x(-Asin(x) + Bcos(x))
y''p = -2Asin(x) + 2Bcos(x) + x(-Acos(x) - Bsin(x))
Substituting these into the differential equation, we have:
-2Asin(x) + 2Bcos(x) + x(-Acos(x) - Bsin(x)) + x(Acos(x) + Bsin(x)) = cos(x)
Simplifying, we get:
-2Asin(x) + 2Bcos(x) = cos(x)
Equating the coefficients of like terms, we obtain the system of equations:
-2A = 0
2B = 1
Solving this system, we find:
A = 0
B = 1/2
Thus, the particular solution is:
yp = (1/2)xsin(x)
To find the general solution, we also need the solution to the homogeneous equation y'' + y = 0. The characteristic equation is:
r2 + 1 = 0
The roots are r = ยฑi. The general solution to the homogeneous equation is:
yh = C1cos(x) + C2sin(x)
Therefore, the general solution to the non-homogeneous equation is:
y = yh + yp = C1cos(x) + C2sin(x) + (1/2)xsin(x)
๐ Note: If the non-homogeneous term or its derivatives are solutions to the homogeneous equation, multiply the guessed particular solution by xk, where k is the smallest integer such that xkg(x) is not a solution to the homogeneous equation.
Case 2: Non-Homogeneous Term is a Combination of Solutions to the Homogeneous Equation
If the non-homogeneous term is a combination of solutions to the homogeneous equation, we need to modify the guessed particular solution by multiplying it by xk, where k is the smallest integer such that xkg(x) is not a solution to the homogeneous equation for each term in the combination.
For example, consider the differential equation:
yโ + y = cos(x) +
Related Terms:
- homogeneous and particular solution
- variation of parameters
- complementary solution differential equations
- method of undetermined coefficients forms
- variation of parameters formula
- method of undetermined coefficient calculator