Ordinary differential equaiton

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Differential
Click For Summary

Homework Help Overview

The discussion revolves around solving the ordinary differential equation (ODE) dy/dt = -y + cos(pi*t) with an initial condition y(2)=4. Participants are exploring methods to find the general solution and verifying their results against the differential equation.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the use of integrating factors and integration techniques. There are attempts to derive the general solution and check it against the original ODE and initial conditions. Questions arise regarding the correctness of the solutions and the steps taken to arrive at them.

Discussion Status

The discussion is active with multiple participants sharing their approaches and results. Some participants express uncertainty about their calculations and seek clarification on specific steps, indicating a collaborative effort to understand the problem better.

Contextual Notes

Participants are working under the constraints of homework rules, which may limit the amount of direct assistance they can provide to one another. There is an emphasis on verifying solutions against the original equation and initial conditions.

sara_87
Messages
748
Reaction score
0

Homework Statement



dy/dt = -y + cos(pi*t)

Homework Equations





The Attempt at a Solution



first, i took the y to the other side and then found an integraing factor to be e^t;
multiplied the ODE by e^t then integrated both sides wrt t. i have the initial condition
y(2)=4
so my general solution is:
y = {(pi*sin(pi*t) + (cos(pi*t))/[pi(pi+1)] } + {e^t(4-1/(pi(pi+1)))}

Is this correct?
 
Physics news on Phys.org
I end up getting c = 4e^2 and y = (1/(pi*e^t))sin(pi*t)+4e^(2-t) When you solve for c the sin term should become 0 and you just multiply over the e^2. This is my first post, but I hope it helps.
 
gey in a habit of checking your solution in the equation
if
y = {(pi*sin(pi*t) + (cos(pi*t))/[pi(pi+1)] } + {e^t(4-1/(pi(pi+1)))}
is
dy/dt = -y + cos(pi*t)
with
y(2)=4
 
SirOtis said:
I end up getting c = 4e^2 and y = (1/(pi*e^t))sin(pi*t)+4e^(2-t) When you solve for c the sin term should become 0 and you just multiply over the e^2. This is my first post, but I hope it helps.

how did you get to that?
For c, i got (4e^2)-(e^2/pi(pi+1))
 
I got

<br /> y(t) = \frac{(\cos \pi t + \pi \sin \pi t)}{\pi^2+1} + e^{2 - t}\left ( 4 - \frac{1}{\pi^2 + 1}} \right )<br />

And I checked it with the DE and IC and everything seems to be in order.
 
Oh, I'm sorry. I think David is right. I forgot to multiply the right side by the integrating factor before integrating.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K