I know there are a lot of questions considering how to prove limits for two variable functions. But I didn't find any examples about what I am going to ask now.
So how do I proceed in situations when my function is in form like $f(x,y)=x^2+xy$ and I have to prove that $\lim f(x)=6$ when $(x,y) \to (2,1)$?
I have a lot of examples when functions also have a denominator (like this one here: includes also the definition of a limit) but how can I get from here $|x^2 + xy -4| < \epsilon$ to there $||(x,y)-(2,1)||=\sqrt{(x-2)^2 +(y-1)^2} < \delta$?
Thanks a lot!
I'm assuming you mean limit 6 instead of 4.
When $\left\| (x,y)-(2,1) \right\| < \delta$, you surely have $|x-2| < \delta$ and $|y-1| < \delta$. Rewrite:
$$\begin{align} \color{blue}{x^2}+\color{red}{xy}-6 & = \color{blue}{(x-2)^2+4x-4}+\color{red}{(x-2)(y-1)+x+2y-2}-6 \\ & = (x-2)^2+(x-2)(y-1)+5(x-2)+2(y-1) \end{align}$$
You then have, choosing $\delta < 1$: $$\begin{align} \left| x^2+xy-6\right| & \le |x-2|^2+|x-2||y-1|+5|x-2|+2|y-1| \\ & \le 2\delta^2+5\delta+2\delta \\ & \le 9\delta \end{align}$$
You want this under $\varepsilon$. Can you finish from here?
Side note:
You have it the wrong way, you need to get from "$\ldots < \delta$" to "$\ldots < \varepsilon$", not the other way around. Take a good look at the definition ("if $\ldots < \delta$, then $\ldots < \varepsilon$").