# Thread: 2nd Order Linear O.D.E. Help

1. ## 2nd Order Linear O.D.E. Help

Hi guys, I've got this differential equation:

$\ddot{y}+y=4sin{\alpha{x}}$

And I've worked out the general solution when it is set equal to zero to be:

$Acos{x}+Bsin{x}$

I need help finding the equation to set y(x) to so that i can solve the rest of it. Any clues?

Hi guys, I've got this differential equation:

$\ddot{y}+y=4sin{\alpha{x}}$

And I've worked out the general solution when it is set equal to zero to be:

$Acos{x}+Bsin{x}$

I need help finding the equation to set y(x) to so that i can solve the rest of it. Any clues?

no, your particular solution must be of the form $A \sin \alpha x + B \cos \alpha x$

3. Originally Posted by Jhevon
no, your particular solution must be of the form $A \sin \alpha x + B \cos \alpha x$
Unless $\alpha = 1$ ........

4. Originally Posted by mr fantastic
Unless $\alpha = 1$ ........
it should work even if $\alpha = 1$, shouldn't it?

5. Originally Posted by Jhevon
it should work even if $\alpha = 1$, shouldn't it?
Have you tried it ......

6. Originally Posted by mr fantastic
Have you tried it ......
haha, no. but that wink makes me want to take your word for it

7. Originally Posted by Jhevon
haha, no. but that wink makes me want to take your word for it
lol! Quite wise. When $\alpha = 1$ the proposed form of particular solution is actually the homogenous solution, that is, the solution to $\ddot{y}+y = 0$.

8. So when $\alpha = 1$ what form would you have to take to solve the equation?

Furthermore, do you have to solve the equation with two different forms depending on whether or not alpha equals one, or is there a form that will work regardless of alpha's value?

Cheers.

9. Originally Posted by U-God
So when $\alpha = 1$ what form would you have to take to solve the equation?

[snip]
When $\alpha = 1$, use the form $(x + Cx^2) (A \cos x + B \sin x)$ to construct a particular solution.

Originally Posted by U-God
[snip]
Furthermore, do you have to solve the equation with two different forms depending on whether or not alpha equals one,
[snip]
Yes.

Originally Posted by U-God
[snip]
or is there a form that will work regardless of alpha's value?

Cheers.
No.

10. Thanks mr fantastic, you certainly live up to your name!!

If I may ask just one more question, where did you get the form: $(x + Cx^2) (A \cos x + B \sin x)$ from?

Is there a way I can derive it myself? Or is it just a rule of thumb.

Thanks again!

11. Originally Posted by U-God
Thanks mr fantastic, you certainly live up to your name!!

If I may ask just one more question, where did you get the form: $(x + Cx^2) (A \cos x + B \sin x)$ from?

Is there a way I can derive it myself? Or is it just a rule of thumb.

Thanks again!
The informal answer is that it's the simplest form that works .....

$(A \cos x + B \sin x)$ obviously is no good so try the next simplest: $x (A \cos x + B \sin x)$.

That doesn't work so try the next simplest: $(x + C x^2) (A \cos x + B \sin x)$. That works so it's all you need. Consider it a rule of thumb.

There is a way of getting it formally but I don't have the time to type out the details right now. Chris likes D.E.'s ... he might get a kick out of doing it.

12. You have helped soooo much. Thanks again.

13. Originally Posted by mr fantastic
Chris likes D.E.'s ... he might get a kick out of doing it.
Haha

But like you, I don't have the time right now...

I'll take a look at it later.

--Chris

14. Originally Posted by mr fantastic
The informal answer is that it's the simplest form that works .....

$(A \cos x + B \sin x)$ obviously is no good so try the next simplest: $x (A \cos x + B \sin x)$.

That doesn't work so try the next simplest: $(x + C x^2) (A \cos x + B \sin x)$. That works so it's all you need. Consider it a rule of thumb.

There is a way of getting it formally but I don't have the time to type out the details right now. Chris likes D.E.'s ... he might get a kick out of doing it.
Thanks again,

I handed my work in and it all looks good, however some of my friends said that they did it by using the form $x (A \cos x + B \sin x)$.
You said here that that form wouldn't work and to move on to the next form up, so out of interest when I got home I tried it with form: $x (A \cos x + B \sin x)$ and lo and behold I got the same answer as with form: $(x + C x^2) (A \cos x + B \sin x)$.

Does that mean I did something wrong?
Cheers,

Page 1 of 2 12 Last