I have a parametric nonlinear function which is literally a nightmare. I know roots exist, they are real and the two parameters, p,e
are both positive. What I was expecting from mathematica was to get a solution (in form of a root, no closed form) but even letting the program working all night I surrendered. I can't understand if it's me framing the problem not in an efficient way, it's my pc which needs serious upgrades or the problem that is simply too hard for methods like Reduce or Solve. If the case is the latter, I guess I'm doomed... Any hint towards the other two? Thanks for the help.
My attempts and the equation:
f[x_]:=(1/(8 (p^2+x^2)^3))p^2 (-2 p^6+p^5 (4-8 x)+2 p^3 (3-8 x) x^2-6 p x^4+p^4 (80000+2 x-9 x^2)+2 p^2 x (40000+60000 x+x^2-5 x^3)-3 x^3 (-80000+40000 x+x^3)+(4 Sqrt[10] e x (p^2+x^2)^2 (2 p x^3+p^4 (-2+3 x)+2 p^3 x (-3+4 x)+x^2 (-80000+40000 x+x^3)+2 p^2 (40000-60000 x-x^2+2 x^3)))/Sqrt[-e p^2 (-1+x) x^2 (p^2+x^2)^2 (-40000+p^2+2 p x+x^2)])
Reduce[f[x]==0 && x>=0 &&p>=0 && e>=0,x,Reals] (*stuck running*)
Solve[f[x]==0 && x>=0 &&p>=0 && e>=0,x,Reals] (*stuck running*)
NMinimize[{Abs[f[x, p, e]]^2, x >= 0, p >= 0, e >= 0}, {x, p, e}]
. This gives{1.75528*10^-21, {x -> 1.99839, p -> 0.010061, e -> 0.0544189}}
$\endgroup$f[x_]:=...
asf[x_, p_, e_]:=...
. I don't think it's likely you'll get a nice symbolic solution out ofReduce
orSolve
, or a general solution for x for arbitraryp,e
because it's a difficult mixed radical high order polynomial equation. $\endgroup$arg = NMinimize[{Abs[f[x, p, e]]^2, x > 0, p > 0, e > 0}, {x, p, e}, WorkingPrecision -> 75][[2]] // N
evaluates to{x -> 5.07773, p -> 0.00319756, e -> 0.00363597}
and the function valuef[x, p, e] /. arg
evaluates to5.81432*10^-19
$\endgroup$f = f[x] // Simplify; Solve[f == 0 && e >= 0 && p >= 0, Reals, Method -> Reduce]
so it is not easy to solve x by e and p $\endgroup$InterpolatingFunction
approximation to the solution? If so, what domain of interest wouldp
ande
have? $\endgroup$