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

  • Thread starter bsodmike
  • Start date
  • Tags
    Ode
In summary, the given differential equation is y' = -y + sin(t) and the solution is y(t) = (3/2)e^(-t) + (1/2)(sin(t) - cos(t)). This solution can be obtained from any undergraduate ODE course and can be verified by plugging it back into the equation. To solve this type of equation, an integrating factor can be used. The general method for solving ODEs is to think, guess, and check.
  • #1
bsodmike
82
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:
Mathematics news on Phys.org
  • #2
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?
 
  • #3
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 :(
 
  • #4
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.
 
  • #5
Sorry I forgot about this thread. This DE is of the form which is solvable by multiplying it with an integrating factor.
 
  • #6
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

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

It was great practice, thanks :)
 

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

How do I solve the given ODE?

To solve this ODE, you can use the method of integrating factors. First, multiply both sides of the equation by the integrating factor e^-t. Then, integrate both sides and solve for y.

What is the integrating factor for this ODE?

The integrating factor for this ODE is e^-t.

Can this ODE be solved analytically?

Yes, this ODE can be solved analytically using the method of integrating factors.

What is the general solution for this ODE?

The general solution for this ODE is y = C*e^-t - e^-t*cos(t) + e^-t*sin(t), where C is a constant.

How can I verify my solution is correct?

You can verify your solution by substituting it back into the original ODE and ensuring it satisfies the equation. You can also plot the solution and see if it matches the behavior of the ODE.

Similar threads

Replies
2
Views
983
Replies
4
Views
3K
Replies
3
Views
2K
Replies
4
Views
417
Replies
3
Views
904
Replies
3
Views
1K
Replies
3
Views
2K
Back
Top