system of algebraic equations

2 views (last 30 days)
VU
VU on 26 Jun 2013
Hey, I have a system of algebraic equation with alot of variables, and one equation is highly non-linear so it causes some problems. I did try two different approaches:
1/ Use solve to solve the system but I think because of that highly non-linear (1) it can not be solvable. I heard some suggestion to separate that equation as another file and then solve all together but I dont know how to solve it that way...Please help
2/ Use fsolve to find approximate solutions, but it requires me to pick the right initial guess to converge the system to real solutions. Therefore, a solution to that is to run several initial guesses for each of the variable. As a result it will need so many loops of different guesses of different variables..and takes forever to run....
here is a file for my fsolve...if some one can help me with solve function, it would be nice too:
function f=vu2(x)
%RNA to a fixed concentration of extracellular cCF10 and
% donor density
%http://www.pnas.org/content/suppl/2011/05/19/1101569108.DCSupplemental/pnas.201101569SI.pdf#nameddest=ST2
%global A B;
global A B;
N=5;
muD=2.58*10^-4;
muR=3.35*10^-4;
kPqloop=7.23*10^-3;
kPqunloop=8.87*10^-2;
kXarloop=1.02*10^-2;
kXarunloop=1.2*10^-3;
kxloop=8.23*10^-3;
kxunloop=1.21*10^-2;
kQarloop=1.8*10^-3;
kQarunloop=1.08*10^-2;
kconj=2*10^-4;
ki=10^-2;
p=10^-12;
kTi=10^-4;
kTc=10^-3;
kc=0.12;
kar=10^-3;
Kq=4.43;
Kb=10^6;
kdown=10^-3;
lamQs=10^-4;
lamQl=0.1;
lamXar=3.851*10^-4;
lamQar=10^-3;
lamX=10^-4;
lameI=10^-6;
lameC=10^-6;
lamiI=10^-6;
lamiC=10^-6;
lamPrgB=10^-3;
f(1)=x(1)-N*x(8)^4/(x(8)^4+Kb*x(10)^4);
f(2)=(kPqloop*x(1)+kPqunloop*(N-x(1)))*Kq*x(3)./(1+Kq*x(3))-(lamQs+muD)*x(2);
f(3)=kXarloop*x(1)+kXarunloop*(N-x(1))-(kPqloop*x(1)+kPqunloop*(N-x(1)))*Kq*x(3)./(1+Kq*x(3))-kar*x(3)*x(6)-(lamXar+muD)*x(3);
f(4)=(kPqloop*x(1)+kPqunloop*(N-x(1)))./(1+Kq*x(3))-(lamQl+muD)*x(4);
f(5)=kxloop*x(1)+kxunloop*(N-x(1))-kar*x(5)*x(6)-(lamX+muD)*x(5);
f(6)=(kQarloop*x(1)+kQarunloop*(N-x(1)))-kar*x(6)*x(5)-kar*x(3)*x(6)-(lamQar+muD)*x(6);
f(7)=ki*(x(2)+x(4))*p*x(11)-kTi*(x(7)-x(8))*p*x(11)-lameI*x(7);
f(8)=kTi*(x(7)-x(8))-(lamiI+muD)*x(8);
f(9)=kTc*(x(9)-x(10))-(lamiC+muD)*x(10);
f(10)=x(11)-A*10^4;
f(11)=x(9)-B;
end
If some one can help me with "solve" it works too

Answers (1)

Walter Roberson
Walter Roberson on 27 Jun 2013
You are not going to be able to find a closed form algebraic solution for this.
If you take the first 6 equations and solve them for the first 6 variables, then you will find that some of the values become framed in terms of the roots of a quintic polynomial; the roots of such polynomials are not expressible in closed form solutions.
If you take the first 6 equations and solve for x(1) to x(5) and x(8) (rather than x(6)) then you will get repeated subexpressions involving the square root of an expression in x6. This immediately puts a constraint on x6, that the subexpression must be non-negative (unless you are hoping that imaginary-valued expressions will exactly cancel out to give real values) The interior expression is of the form
x6^2 * (x6 + c) * f(x6)
where c is a numeric constant and f(x6) is a quartic. Solving for the boundary condition that this expression becomes 0, x6 must be 0, or x6 must be -c, or the quartic must be 0. Fortunately there are exact solutions to quartics. The bad news is that the coefficients for the quartic are all on the order of 10^37, so you will not be able to find correct-enough numeric solutions with double precision numbers as those are only precise for integers up to about 10^16 . Therefore you will need to switch to the Symbolic Toolbox and push up the number of working digits.
The excluded zone for x6 (where the interior expression goes negative) is from approximately -33 to -20. For one of the solution paths, at least.
Can you place additional constraints on the variables beyond that they must be real-valued? For example if you were to tell me that x6 is going to be -25 +/- 5 then I could eliminate a large solution branch.
  2 Comments
VU
VU on 27 Jun 2013
Yes I forgot to say that I only accept positive real solns for all of them
VU
VU on 27 Jun 2013
I also have a plot of what Im supposed to produce. Do u have any email so that I can send it to you

Sign in to comment.

Categories

Find more on Systems of Nonlinear Equations 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!