필터 지우기
필터 지우기

system of two linear ordinary differential equations

조회 수: 2 (최근 30일)
Abdullah
Abdullah 2012년 3월 1일
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 ??!

채택된 답변

Kai Gehrs
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
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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by