Solve ODE: y' = -y + sin(t) | Mike

  • Context: Undergrad 
  • Thread starter Thread starter bsodmike
  • Start date Start date
  • Tags Tags
    Ode
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 2K views
bsodmike
Messages
82
Reaction score
0
Can someone please solve this:

y' = -y + sin(t)

The solution should be [tex]y(t)= \dfrac{3}{2}e^{-t}+\dfrac{1}{2}\left({sin(t)-cos(t)}\right)[/tex]

Thanks
Mike

P.S. this is not a homework question (i.e. I no longer go to school/uni in the first place) but this is stated in 'Adv. Numerical Methods and Analysis'. They simply state that the solution is such and such as obtained from any undergrad ODE course.
 
Last edited:
Physics news on Phys.org
No, we're still not allowed to solve it for you even if it's not homework. To start you off here, bring over the -y to the left side. Do you recognise the form of the ODE?
 
Not really. I know for examples like,

[tex]\dfrac{dx}{dt}=tx[/tex]

Can be analytically solved by going,

[tex]\dfrac{dx}{x}=tdt[/tex]

And integrating both sides, to yield (for example), [tex]x = e^{\dfrac{t^2}{2}}[/tex]. Thanks for your help, I guess I'm going to remain stuck on this :(
 
Can you give me an idea on how to manipulate this form of Ode. I'll check stroud when I get home and see if I can figure it out. Cheers

Ps this is in my adv numerical book as the analytical solution to an example of euler's method. Would be great if I can figure of out.
 
You can always plug the solution back into the DE to demonstrate it is, in fact, a solution.

The general method would be
1) Think hard/do numerics
2) Guess solution
3) Check that it works

(-:
 
Actually, I managed to solve it here with Dick's help.

It was great practice, thanks :)