Solving First Order Differential Equation

Click For Summary
The discussion revolves around solving the first-order differential equation dy/dt - (1/2)y = 2cos(t). The user attempts to solve it using an integrating factor, leading to a complex integration by parts process. Despite arriving at a solution, the user finds a discrepancy with the book's answer, which is y = (4/5)(2sin(t) - cos(t)) + ce^(t/2). A participant points out a potential error in the user's application of the integrating factor, suggesting a misstep in the integration process. The conversation emphasizes the importance of careful application of integration techniques in solving differential equations.
jellicorse
Messages
40
Reaction score
0

Homework Statement



I have been trying to solve this equation but keep coming to the same solution, which according to my book is not the correct one. Is anyone able to point out what I am doing wrong?

\frac{dy}{dt}-\frac{1}{2}y=2cos(t)




The Attempt at a Solution



To solve, use the integrating factor e^{\int\frac{1}{2}dt}; Integrating factor=e^{-\frac{t}{2}}

ye^{-\frac{t}{2}} = 2\int e^{-\frac{t}{2}}cos(t)dt




Integrating the RHS by parts:

= 2\left[e^{-\frac{t}{2}}sin(t)+\frac{1}{2}\int sin(t)e^{-\frac{t}{2}}dt\right]

= 2\left[e^{-\frac{t}{2}}sin(t)+\frac{1}{2}\left[e^{-\frac{t}{2}}\cdot(-cos(t)-\frac{1}{2}\int cos(t)e^{-\frac{t}{2}}dt\right]\right]




And using a reduction formula:

= 2\left[e^{-\frac{t}{2}}sin(t)-\frac{e^{-\frac{t}{2}}cos(t)}{2}-\frac{1}{4}I\right]

I =2e^{-\frac{t}{2}}sin(t)-e^{-\frac{t}{2}}cos(t)-\frac{1}{2}I

\frac{3}{2}I=2e^{-\frac{t}{2}}sin(t)-e^{-\frac{t}{2}}cos(t)

I = \frac{2}{3}(2e^{-\frac{t}{2}}sin(t)-e^{-\frac{t}{2}}cos(t))

ye^{-\frac{t}{2}}=\frac{4e^{-\frac{t}{2}}sin(t)-e^{-\frac{t}{2}}cos(t)}{3}

y = \frac{4 sin(t)-cos(t)}{3}+ce^{\frac{t}{2}}




After all this, the book gives a solution of y=\frac{4}{5}(2sin(t)-cos(t))+ce^{\frac{t}{2}}
 
Physics news on Phys.org
hi jellicorse! welcome to pf! :smile:

good method, but i think you've used ye-t/2 = 2I in one place and = I in another place :wink:
 
  • Like
Likes 1 person
Ah, thanks tiny-tim... I will look into that!
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
8
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
Replies
3
Views
1K
  • · Replies 105 ·
4
Replies
105
Views
6K