I have two simple coupled equations
eqn1 = 0 == -x + P - G x (y + 1);
eqn2 = 0 == -y + G x (y + 1);
If I use Solve[eqn1 && eqn2, y]
I get no result. But I can force Mathematica to give me the result by solving eqn1
for x
and then substituting that into eqn2
and solving for y
Simplify[Solve[eqn2, y] /. Solve[eqn1, x]]
which gives the result y -> (G P)/(1 + G (1 - P + y))
.
Why does the single pass of Solve
not work; and can I make it work?
Solve[{0 == -x + P - G x (y + 1), 0 == -y + G x (y + 1)}, y, x]
$\endgroup$List
bracket around the eliminate variable, you can avoid aSolve::bdomv
warning. That is,Solve[{0 == -x + P - G x (y + 1), 0 == -y + G x (y + 1)}, y, {x}]
$\endgroup$