How to Solve Coupled Differential Equations?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
mkrems
Messages
7
Reaction score
0
Hi all,

I want to solve equations of the form:
[tex]\dot x + x + y = sin(\omega t)[/tex]
[tex]\dot y = \dot x - y[/tex]

This is not a standard type of form for Runge-Kutta or linear systems of equations because
[tex]\dot y = f(\dot x, y, t)[/tex]
instead of
[tex]\dot y = f(x, y, t)[/tex].
Any hints or links to place for help would be appreciated! Thanks!
 
Physics news on Phys.org
Use your first equation to isolate y, namely,

[tex]y = \sin{\omega t} - x^{\prime} - x[/tex]

Now, differentiate this to get y prime,

[tex]y^{\prime} = \omega \cos{\omega t} - x^{\prime \prime} - x^{\prime}[/tex]

and substitute these into your second equation to get...

[tex]\omega \cos{\omega t} - x^{\prime \prime} - x^{\prime} =<br /> x^{\prime} - \sin{\omega t} + x^{\prime} + x[/tex]

which may be rearranged to give you a (soluble) second-order equation in x only.

[tex]x^{\prime \prime} + 3 x^{\prime} + x = \omega \cos{\omega t} + \sin{\omega t}[/tex]