I need to solve a relatively simple system of 4 non-linear equations with 4 variables (a, b, p, q
) and 2 parameters (λ, μ
).
If I give numerical values to the 2 parameters, I easily get a numerical solution. However, it would be much better for my model if I could find an analytical solution where each of the four variables is expressed as a function of the two parameters.
I tried looking at answers to similar questions, but often the systems considered there were much more complicated and involved mathematical concepts I have not mastered. So I decided to post another question. If anyone would be so kind to help me, it would be very much appreciated!
Here is the system:
exp1 = a ==
1/3 (2 + 2 q - λ - Sqrt[
4 + 3 b^2 - 12 p + 9 p^2 + 8 q - 6 b q - 12 p q + 7 q^2 +
2 λ + 2 q λ + λ^2]);
exp2 = p ==
1/6 (4 + 3 a + 2 q + λ - Sqrt[
4 + 9 a^2 + 4 q - 12 a q + 4 q^2 - 4 λ +
6 a λ - 8 q λ + λ^2]);
exp3 = b ==
1/6 (2 + 2 a + 3 q - 2 μ - Sqrt[
4 + 8 a + 4 a^2 - 12 q - 12 a q + 9 q^2 + 4 μ +
4 a μ + 4 μ^2]);
exp4 = q ==
1/3 (4 + 2 a - Sqrt[
10 + 16 a + 7 a^2 - 12 b - 12 a b + 9 b^2 - 6 p - 6 a p +
3 p^2 - 6 μ - 6 a μ + 6 b μ]);
I know that all variables and parameters are positive, that p>a and q>b, and that if λ == μ
, then p = a + λ = q = b + μ
. Perhaps these facts can be used to get a solution.
I already tried:
Solve[{exp1, exp2, exp3, exp4}, {a, p, b, q}, Reals]
and (following an answer to a similar post)
v = Total[{exp1, exp2, exp3, exp4} /. Equal[l_, r_] -> Norm[l - (r)]];
NMinimize[v, {a, p, b, q}, MaxIterations -> 10^3]
but neither worked.
(I also tried to solve it myself by rearranging terms to get rid of the square roots and replacing expressions here and there, but could not get anywhere.)
NSolve[]
. $\endgroup$\[Mu] == \[Lambda]
your assumptionsp=a+\[Lambda]
andq=b+\[Lambda]
doesn't fullfill the four equations! $\endgroup$