I have two functions $f(r,\phi)$, and $g(r,\phi)$.
What is the best way to find the curve in the plane $(x,y)$ or $(r,\phi)$, over which $f(r,\phi)=g(r,\phi)$?
I know how to plot it, using ContourPlot, but it seems that both Solve and FindRoot aren't suited to solve my problem. Any help?
Edit
My functions are:
Q00=1; a=1; k=0.01;
dQ1[r_, ϕ_] = Q00/2 (BesselK[0, k r]/BesselK[0, k a] + BesselK[1, k r]/BesselK[1, k a] Cos[ϕ]);
f[r_, ϕ_] := -(Q00/2) + dQ1[r, ϕ];
g[r_, ϕ_] = Q00 /2 Sin[ϕ] (a/r);
The range I am interested in is $a<r<L$, with $L=10$, and $0\leq\phi\leq 2\pi$




Plot[Evaluate[ Interpolation@ Flatten[Cases[ ContourPlot[x^2 - x y == x^2 + y^2 - 1, {x, -1, 3}, {y, 0, 3}] // Normal, Line[x__] :> x, Infinity], 1]][ x], {x, -1, 3}]– Dr. belisarius Nov 19 '15 at 15:40{-10,10}then you get two curves. This will work:Plot[Evaluate[ Through[Map[Interpolation, Cases[Normal[ ContourPlot[ x^2 - x y == x^2 + y^2 - 1, {x, -10, 10}, {y, -10, 10}]], Line[x__] :> x, Infinity]][x]]], {x, -10, 10}]but it doesn't work for every set of two functions. – Jason B. Nov 19 '15 at 15:58Q00do you use? What numerical range of r and phi values do you want to solve over? – Jason B. Nov 19 '15 at 16:01a,k,Las well. – george2079 Nov 19 '15 at 17:23FindMinimum[ (f[r, p] - g[r, p])^2, {{r, 2}, {p, 4}}]. Really if you want nicely connected curves, extracting the data fromContourPlotis the way to go though. (see links in other comments) – george2079 Nov 19 '15 at 18:50