I would like the solutions of FindRoot (using NIntegrate under it) to be drawn in different colours by Plot, like in the last plot but without defining a separate function for each element in the solution list of FindRoot:
Clear[w, x, y, z, plt1, plt2, plt3, w1, w2]
w[x_?NumericQ] := {y, z} /.
FindRoot[{x*Exp[y] - y,
x*(Exp[z] - z)}, {{y, 0.45, 0, 1}, {z, 0.52, 0, 1}}];
plt1 = Plot[w[x], {x, 0, 1}, Evaluated -> True];
plt2 = Plot[Evaluate[w[x]], {x, 0, 1}];
w1[x_?NumericQ] := w[x][[1]]
w2[x_?NumericQ] := w[x][[2]]
plt3 = Plot[{w1[x], w2[x]}, {x, 0, 1}];
GraphicsRow[{plt1, plt2, plt3}]
Is there some simple plot option that does this? Evaluate as in this question does not seem to work for me.
Mathematica 11.3 on Ubuntu 18.04.


x*(Exp[z] - z)==0? it seems that we can solve it directly. – cvgmt Dec 22 '20 at 08:42Plot[{f[a][[1]], f[a][[2]]}, {a,0,1}]is simple enough. @cvgmt yes, but the point is to illustrate plottingFindRootresults or some other vector valued function. – Sander Heinsalu Dec 22 '20 at 09:17Evaluated– Αλέξανδρος Ζεγγ Dec 22 '20 at 13:04