Nonhomogeneous Differential Equation

In summary, the conversation is about finding a particular solution (y_p) for the differential equation y'' + 9y = 2cos3x + 3sin3x. The characteristic equation is solved and a first attempt at y_p is made, but it is not linearly independent. A second attempt is made using Acos3x + Bsin3x, and the derivatives are calculated. After substituting into the equation, a system of equations is formed and solved for A and B. However, the solution does not match the book's answer, but after further examination, the error is found and the correct answer is determined to be y_p(x) = 1/6(2xsin3x -
  • #1
Zem
33
0
I got a particular solution y_p(x) that is different from what the book has.

y'' + 9y = 2cos3x + 3sin3x

Characteristic equation: r^2 + 9 = 0
(r+3i)(r-3i) = 0
y_c = c_1cos3x + c_2sin3x
y_p = Acos3x + Bsin3x (not linearly independent, so I'll try another y_p)
y_p = Axcos3x + Bxsin3x
y'_p = Acos3x - 3Axsin3x + Bsin3x + 3Bxcos3x
y''_p = -3Asin3x - 3Asin3x - 9Axcos3x + 3Bcos3x + 3Bcos3x - 9Bxsin3x
x = 0
y(x) = Acos3x + Bsin3x - 6Asin3x + 6Bcos3x + Acos3x + Bsin3x - 6Asin3x + 6Bcos3x = 2cos3x + 3sin3x

Acos3x + 6Bcos3x = 2cos3x
A + 6B = 1
Bsin3x - 6Asin3x = 3sin3x
-12A + 2B = 3

My ti89 says A = -8/37 , B = 15/74
y_p = (15/37sin3x - 8/37xcos3x)
But the book's answer is y_p = 1/6(2xsin3x - 3xcos3x)

What have I missed?
 
Physics news on Phys.org
  • #2
Your derivatives look right but I don't think you substituted them well in the equation, where is the factor 9 of y_p? You need to do y''_p+9y_p = ...
 
  • #3
And I should not have included y'_p (oops).
Here is my new solution.
y(x) = 6Bcos3x - 6Asin3x + 9Acos3x + 9Bsin3x = 2cos3x + 3sin3x
9A + 6B = 2
-2A + 3B = 1
[ 9 6 2 ]
[ -2 3 1 ]~

[ 1 (2/3) (2/9) ](2)
[ -2 3 1 ]~

[ 1 (2/3) (2/9) ] (13)
[ 0 (13/3) (13/9) ](-2) ~

[1 0 0 ]
[ 0 3 1 ]
A = 0, B= 1/3
The book says A = 1/2, B = 1/3. So I'm still a little off here, but can't see how. Thanks!
 
  • #4
Actually, I did not include y_p is that x = 0, so y_p = A(0)cos3x + B(0)sin3x. I included my original try for y_p in my above answer. But you helped me find the solution. Thanks so much!

6Bcos3x = 2cos3x
3B = 1
-6Asin3x = 3sin3x
-2A = 1
y_p(x) = 1/6(2xsin3x - 3xcos3x)
 
  • #5
Nice :smile:
 

FAQ: Nonhomogeneous Differential Equation

What is a nonhomogeneous differential equation?

A nonhomogeneous differential equation is a type of mathematical equation that involves an unknown function and its derivatives, where the coefficients of the derivatives are not all constant. This means that the equation cannot be expressed in the form of a linear combination of the unknown function and its derivatives.

How is a nonhomogeneous differential equation different from a homogeneous differential equation?

A homogeneous differential equation has all constant coefficients, meaning that it can be expressed in the form of a linear combination of the unknown function and its derivatives. On the other hand, a nonhomogeneous differential equation has at least one non-constant coefficient, making it more complex to solve.

What are the methods for solving nonhomogeneous differential equations?

There are several methods for solving nonhomogeneous differential equations, including the method of undetermined coefficients, variation of parameters, and the Laplace transform method. Each method has its own advantages and is suitable for different types of nonhomogeneous differential equations.

Can a nonhomogeneous differential equation have multiple solutions?

Yes, a nonhomogeneous differential equation can have multiple solutions. However, in order to obtain a unique solution, additional initial or boundary conditions are required. This is because a nonhomogeneous differential equation involves an unknown function that can take on different values, leading to multiple possible solutions.

What are some real-life applications of nonhomogeneous differential equations?

Nonhomogeneous differential equations have many practical applications in fields such as physics, engineering, and economics. They can be used to model various real-world phenomena, including population growth, heat transfer, and electrical circuits. These equations allow scientists and engineers to make predictions and solve problems in these fields.

Back
Top