Solving First-Order ODEs: Tips & Strategies

  • Thread starter Thread starter tandoorichicken
  • Start date Start date
  • Tags Tags
    Odes Tips
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
tandoorichicken
Messages
245
Reaction score
0

Homework Statement



It's been a couple years since diff. eq.

Any tips/strategies on solving the first-order ODE:
[tex]K\frac{dp(t)}{dt} + \frac{p(t)}{R} = Q_0 \sin{(2\pi t)}[/tex]
where K, R and Q_0 are constants?
 
Physics news on Phys.org
TC, you know we can't help you unless you first show some effort on your part. What do you know about solving linear ODEs?
 
its been a really long time since I've had to solve ODEs for any class, so I'm just using the cookie cutter of an example in my old differential equation book to help. Please correct me if I am wrong in my work. (Note: I've disregarded the constants of integration for now).

The original equation is
[tex]K\frac{dp(t)}{dt} + \frac{p(t)}{R} = Q_0 \sin{(2\pi t)}[/tex]

I first solved the homogeneous equation
[tex]K\frac{dp(t)}{dt} + \frac{p(t)}{R} = 0[/tex]
[tex]K\frac{dp}{dt} = -\frac{1}{R} p[/tex]
[tex]p(t) = e^{-\frac{t}{RK}}[/tex]

Taking [itex]p_1 (t) = v(t)e^{-\frac{t}{RK}}[/itex], I substituted for p in the original inhomogeneous equation and simplified:

[tex]p_1' = v' e^{-\frac{t}{RK}} - \frac{1}{RK} ve^{-\frac{t}{RK}[/tex]
[tex]Kv' e^{-\frac{t}{RK} = Q_0 \sin{2\pi t}[/tex]
[tex]v' (t) = \frac{Q_0}{K}\frac{\sin{2\pi t}}{e^{-\frac{t}{RK}}}[/tex]

Upon integrating, one gets
[tex]v(t) = e^{\frac{t}{RK}} [\frac{Q_0 R\sin{2\pi t} - 2Q_0 R^2 K\pi\cos{2\pi t}}{4R^2 K^2\pi^2 + 1}][/tex]

Thus,
[tex]p(t) = v(t)e^{-\frac{t}{RK}} = \frac{Q_0 R\sin{2\pi t} - 2Q_0 R^2 K\pi\cos{2\pi t}}{4R^2 K^2\pi^2 + 1}[/tex]
 
Last edited: