General Solution of 2nd Order Differential Equaiton

Click For Summary
SUMMARY

The general solution to the second-order differential equation d²y/dx² + 4y = cos(2x) involves finding both the complementary function and the particular integral. The complementary function is correctly identified as C1sin(2x) + C2cos(2x) due to the roots being 2i. However, since cos(2x) and sin(2x) are solutions to the homogeneous equation, they cannot be used directly in the particular integral. Instead, the particular integral should be of the form y_p = Cxcos(2x) + Dxsin(2x) to account for the non-homogeneous part.

PREREQUISITES
  • Understanding of second-order differential equations
  • Familiarity with complementary and particular solutions
  • Knowledge of complex roots and their relation to trigonometric functions
  • Experience with the method of undetermined coefficients
NEXT STEPS
  • Study the method of undetermined coefficients in detail
  • Learn about the Wronskian and its application in differential equations
  • Explore the concept of non-homogeneous differential equations
  • Investigate the use of variation of parameters for finding particular solutions
USEFUL FOR

Students studying differential equations, mathematicians, and anyone seeking to solve second-order linear differential equations with non-homogeneous terms.

mm391
Messages
65
Reaction score
0

Homework Statement



Find the general solution to d2y/dx2 +4y=cos(2x)

Homework Equations





The Attempt at a Solution



I have woked out what I think is the Complementary function C1sin(2x)+C2cos(2x) the reason it is cos and sin is because the roots are 2i and therefore the exponential and imaginary number turn it into a cos or sin.

Particular Integral:
y = a cos(2x) + b sin(2x)
y' = -2a sin(2x) + 2b cos(2x)
y'' = 4a cos(2x) - 4b sin(2x)

∴ -4a cos(2x) + 4b sin(2x) + 4a cos(2x) - 4b sin(2x) = cos(2x)

but it all cancels out to give 0=cos(2x) which surely can't be right. Have I been staring at this so long that I cannot see the obvious answer?
 
Physics news on Phys.org
mm391 said:

Homework Statement



Find the general solution to d2y/dx2 +4y=cos(2x)

Homework Equations





The Attempt at a Solution



I have woked out what I think is the Complementary function C1sin(2x)+C2cos(2x) the reason it is cos and sin is because the roots are 2i and therefore the exponential and imaginary number turn it into a cos or sin.

Particular Integral:
y = a cos(2x) + b sin(2x)
y' = -2a sin(2x) + 2b cos(2x)
y'' = 4a cos(2x) - 4b sin(2x)

∴ -4a cos(2x) + 4b sin(2x) + 4a cos(2x) - 4b sin(2x) = cos(2x)

but it all cancels out to give 0=cos(2x) which surely can't be right. Have I been staring at this so long that I cannot see the obvious answer?

Since cos(2x) and sin(2x) satisfy the homogeneous equation, of course when you plug any linear combination of them into it you are going to get zero. So they can't make the solution of the non-homogeneous equation. Your text should have a section about what to do when the right hand side is a solution of the homogeneous equation. Try$$
y_p = Cx\cos(2x)+Dx\sin(2x)$$
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
8
Views
1K
Replies
1
Views
2K