I am trying to see if there is any $x$ (real or complex) for which this equation can be solved.
$$e^{-xy} + e^{xy} = 2e^{-y}$$
Step 1. Multiplying both sides by y, $$ye^{-xy} + ye^{xy} = 2ye^{-y}$$
Step2. Partially differentiating the original equation (i.e. $e^{-xy} + e^{xy} = 2e^{-y}$ ) w.r.t. x, $$-ye^{-xy} + ye^{xy} = 0$$
Step3. Adding Steps 1 and 2, $$2ye^{xy} = 2ye^{-y}$$ this gives $x=-1$.
Obviously this is not a solution. Where am I going wrong? or is there a complex value of x for which Step 3 holds?
In general the solutions of the equations $f'(x)=g'(x)$ and $f(x)=g(x)$ are different.
For example, if $f(x)=x$ and $g(x)=x^3+x+1$ for real $x$, then $$f(x)=g(x)\iff x=-1$$ but $$f'(x)=g'(x)\iff x=0.$$