How would I solve this systems of non-linear equations symbolically:
$$ \mu N -\frac{\beta S I}{N} - \nu S = 0 \qquad (1)$$
$$\frac{\beta S I}{N} -\gamma I - \nu I = 0 \qquad (2)$$
$$\gamma I - \nu R = 0 \qquad (3) $$
where $S+I+R=N$ and $\mu, \beta, \nu,\gamma >0$
EDIT:
Solve[u*n - (b/n)*p*s - v*s =
0 && (b/n)*p*s - g*p - v*p = 0 && g*p - v*r = 0 {s, p, r},
n = s + p + r]
EDIT II:
How would I find the solution to this system:
$$ -\frac{\beta S I}{N} =0 \qquad (1)$$
$$\frac{\beta S I}{N} -\gamma I=0 \qquad (2)$$
$$\gamma I=0 \qquad (3) $$
where $S+I+R=N$ and $\beta,\gamma >0$.
I have these as the solutions;
$$(S^*,I^*,R^*) = (K, 0, N-K),$$ for any $0\leq K \leq N$.
N
andI
as variable names $\endgroup$Solve
andNSolve
, withFindRoot
as a numerical backup plan in case those don't work. $\endgroup$Solve
? $\endgroup$Solve[{n == s + p + r, u*n - (b/n)*p*s - v*s == 0, (b/n)*p*s - g*p - v*p == 0, g*p - v*r == 0}, {s, p, r}, MaxExtraConditions -> All]
works fine for me. $\endgroup$Equal
in infix is==
, not=
. That latter is infix forSet
(as in "set lhs to value on rhs"). $\endgroup$