0
$\begingroup$

I have a system of two equations which I would like to solve in terms of a third unknown variable $s$.

PP[s_, x_, y_] := (x + s y) (1 - (x + y)/100) 
QQ[x_]         := x
Solve[{PP == x, QQ == y}, {x, y, s}]

So I should get an equillibrium (x(s),y(s)) after solving the system. I've done this on paper for x = 0 and x>0, but I want to do this on Mathematica. However with my code I get the following error:

Solve::svars: Equations may not give solutions for all "solve" variables. >>

Any ideas why?

$\endgroup$

1 Answer 1

3
$\begingroup$

With two equations you can hardly Solve for three variables. If you want x and y to be a function of s don't write s as a variable to be solved:

PP[s_, x_, y_] := (x + s y) (1 - (x + y)/100)
QQ[x_] := x
Solve[{PP[s, x, y] == x, QQ[x] == y}, {x, y}]

(*{{x -> 0, y -> 0}, {x -> (50 s)/(1 + s), y -> (50 s)/(1 + s)}}*)
$\endgroup$
1
  • $\begingroup$ oh. of course. Thank you. $\endgroup$ Commented Mar 20, 2016 at 12:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.