system of two linear ordinary differential equations
2 次查看(过去 30 天)
显示 更早的评论
Hello Everyone
I had a very difficult question, that we are required to solve it using either Matlab or Math-cad:
The question has been posted 5 hours ago, but the question was not clear nor the answer, the question is a system of two linear ordinary differential equations with symbolic constants, this is a picture of the question:
I already tried "Dsolve" and it did not work.
Can I solve this using Matlab ??!
0 个评论
采纳的回答
Kai Gehrs
2012-3-5
Hi,
I think the system should be solvable without any issues. Here is the MATLAB code to solve the system and to verify the solutions using the Symbolic Math Toolbox:
syms a b c d;
S= dsolve('Dx + y/(b*c) + (x*(a + b))/(a*b*c) = 0',...
'Dy + x/(b*d) + y/(b*d) = 0',...
'x(0)=1','y(0)=-1');
% verify solution for x
simplify(diff(S.x) + S.y/(b*c) + (S.x*(a + b))/(a*b*c))
% verify x(0)=1
simplify(subs(S.x,0))
% verify solution for y
simplify(diff(S.y) + S.x/(b*d) + S.y/(b*d))
% verify y(0)=-1
simplify(subs(S.y,0))
Hope this helps and best regards,
-- Kai
1 个评论
Valentina
2012-3-16
Hello Kai,
I've the same problem of Abdullah, but my system is much more complex. Please read my question at:
http://www.mathworks.it/matlabcentral/answers/32477-solve-a-differential-equations-system-with-dsolve
My system is composed by 5 differential equations plus a simple linear one without derivatives. Now I'm attempting to solve a simplifyed system with only 3 derivatives.
I wrote in Matlab (after having called my coefficients with letters from a to o):
syms x y z w
S = dsolve('Dx - y*c/e - x^3*y*b/e + x*b*Tamb^3/e - x^4*a/e + x^3*b/e + a/e*Tamb^4 + b/e*Tamb^3 + d/e=0',...
'Dy - z*f/m + y*a*Tamb^3/m + y*f/m + y/(m*g) - Y*i*l/m + x^3*y*a/m + x*a*Tamb^3/m - x^4*a/m + Tamb/(m*g) + h/m - i/m - i*l/m*T_ref=0',...
'Dz + w *n/o + z*f/o - y*f/o + n*Tf0/o=0',...
'w -z*2 +Tf0=0');
It doesn't work.
Thank you for your help.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!