I have an issue with NSolve, and I think it's because of the logarithms :
f[x_, a_, b_] = x*Log[x] + (1 - x)*Log[1 - x] - a*x^2 + b*x^4
h[x_, a_, b_] = D[f[x, a, b], x, x]
mu[x_, a_, b_] = D[f[x, a, b], x]
p[x_, a_, b_] = f[x, a, b] - x*mu[x, a, b]
a = 3
b = 0
solution = NSolve[mu[x1, a, b] == mu[1 - x1, a, b], {x1}]
And I'm just getting :
NSolve::nsmet: This system cannot be solved with the methods available to NSolve.
So I assume I miswrote something.... I noticed it does't change anything if I write ',' or '&&'.
Or it could be because of the logarithm ? I see that NSolve works for polynomials. Is there a difference ?
You can convince yourself that there are solutions, because $x_1=0.5$ is an obvious solution.



NSolveis first and foremost for polynomial problems (the Details section mentions this in a somewhat off-hand manner). For general non-linear numerical equation solving,FindRootis what you need. $\endgroup$