# Numerically solving non-linear algebraic equations

**URL:** <https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299>\
**Category:** Questions\
**Tags:** algebra, equation-solving, numerical-computation\
**Created:** [June 19, 2021, 6:05pm UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299 "2021-06-19T18:05:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vserturk](https://avatars.discourse-cdn.com/v4/letter/v/c6cbf5/32.png) [@vserturk](https://community.wolfram.com/u/vserturk)\
**Post date:** [June 19, 2021, 6:05pm UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/1 "2021-06-19T18:05:00Z")

</div>

Hello, I can not solve the system. Can any one help me with that? Thanks.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/3f06c6cd-c07e-4236-b25e-c42d290c5587)

[equilibrium.nb](https://community.wolfram.com/uploads/short-url/hdyWCQTn7ukQrwi6GtjK80E0z86.nb) (8.83 KB)  
[equilibrium.pdf](https://community.wolfram.com/uploads/short-url/sS0ZxFtW5V3BfMXcSsk4CdvOvnB.pdf) (47.2 KB)

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [June 19, 2021, 8:04pm UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/2 "2021-06-19T20:04:27Z")

</div>

What kind of solution would you expect from `NSolve`?

---

<div class="post-metadata">

**Author:** ![vserturk](https://avatars.discourse-cdn.com/v4/letter/v/c6cbf5/32.png) [@vserturk](https://community.wolfram.com/u/vserturk)\
**Post date:** [June 19, 2021, 8:14pm UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/3 "2021-06-19T20:14:05Z")

</div>

Hello Daniel Lichtblau ,Thank you for your reply.I expect all solutions of the systems.In my system,  
S, e, I1, I2 and R are unknowns except the others.I can not see the results since the running of the code does not finish by NSolve and Solve.Thanks.

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [June 19, 2021, 8:18pm UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/4 "2021-06-19T20:18:41Z")

</div>

What I mean, as noted in comments to the MSE x-post, is that it is impossible to return a numeric solution because several parameters are symbolic.

---

<div class="post-metadata">

**Author:** ![vserturk](https://avatars.discourse-cdn.com/v4/letter/v/c6cbf5/32.png) [@vserturk](https://community.wolfram.com/u/vserturk)\
**Post date:** [June 19, 2021, 8:21pm UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/5 "2021-06-19T20:21:41Z")

</div>

Please ignore NSolve. Solve does not give any solution,too.

---

<div class="post-metadata">

**Author:** ![jbaldwinpsw](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jbaldwinpsw](https://community.wolfram.com/u/jbaldwinpsw)\
**Post date:** [June 20, 2021, 5:08am UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/6 "2021-06-20T05:08:13Z")

</div>

I wonder if there are no solutions because of the following:

```
eq = Expand[{f1[S, e, I1, I2, R] == 0,
    f2[S, e, I1, I2, R] == 0,
    f3[S, e, I1, I2, R] == 0,
    f4[S, e, I1, I2, R] == 0,
    f5[S, e, I1, I2, R] == 0}];

Solve[eq[[{1, 2}]], {I1, I2}]
(* {} *)

```

If there are no solutions for `I1` and `I2` using just the first two equations, then adding additional equations can’t help. Of course, the fact that in the first two equations are both functions of `I1+I2` might negate that conclusion.

---

<div class="post-metadata">

**Author:** ![vserturk](https://avatars.discourse-cdn.com/v4/letter/v/c6cbf5/32.png) [@vserturk](https://community.wolfram.com/u/vserturk)\
**Post date:** [June 20, 2021, 5:30am UTC](https://community.wolfram.com/t/numerically-solving-non-linear-algebraic-equations/18299/7 "2021-06-20T05:30:22Z")

</div>

Hello, Jim Baldwin;  
Thank you for your reply. I guess the idea in your mind is the substitution method.  
By the way, the followings give result:

```
Solve[eq[[{1, 3}]], {I1, I2}]
Solve[eq[[{1, 4}]], {I1, I2}]
Solve[eq[[{1, 5}]], {I1, I2}]
Solve[eq[[{2, 3}]], {I1, I2}]
Solve[eq[[{2, 4}]], {I1, I2}]
Solve[eq[[{2, 5}]], {I1, I2}]

```
