General Solution of 2nd Order Differential Equaiton

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)$$
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top