In the one-variable case we can take a $\mathrm{log}$ transform of the function $f(x)\to \mathrm{log}(f(x))$ and know that the same value maximizes both because log is increasing. The log turns products into sums which facilitates taking derivatives. Can the same argument be applied for multivariable cases? The question is: for a function $f(x,y)$ if I wish to find the ${x}^{\star},{y}^{\star}$ that maximize $f(x,y)$ are these the same ${x}^{\star \star},{y}^{\star \star}$ that maximize $\mathrm{log}(f(x,y))$? My intuition is yes, nothing should be different in this multivariable case, but I desire a quick sanity check before setting off with computations. I would appreciate a rigorous proof or a counterexample.