How to solve a first and second order coupled differential equations
1 view (last 30 days)
Show older comments
Hi, I need to solve a coupled differential equations to model a modification of the Drude-Lorentz model. One of these equations is a first order, the other one a second order equation.
(dx/dt)+(x/a)=ay
(d^2y/dt^2)+(1/b)*dy/dt+cy/d=e*x
Where a, b, c, d, e are constants and x, y the wanted results.
I can't find the way to make it the easiest possible, any idea? Thanks
0 Comments
Answers (1)
Andrei Bobrov
on 5 Dec 2013
Edited: Andrei Bobrov
on 5 Dec 2013
Try this is code with use Symbolic Toolbox:
syms a b c d e x(t) y(t)
z = dsolve(diff(x) + x/a == a*y,diff(y,2) + 1/b*diff(y) + c*y/d == e*x)
0 Comments
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!