I have the function $f=\{x,-y,0\}$, and each of the derivatives together result in $\{1,-1,0\}$. To calculate the divergence $\nabla\cdot$ of $f$ I'd have to do the dot (scalar) product of partial derivatives with $f$, while for the curl $\nabla\times$ I have to do the cross product. I
I know that the curl is $\{0,0,2\}$ but I do not really understand how this result comes up: the cross product of the partial derivatives with $f$ results in something like $\{0,0,x+y\}$.
Please bear in mind I'm very new to this topic and no one has taught me this, so it would help if someone could point out what has to be multiplied by what exactly. Thanks.
So what I understand is that you have trouble calculating the curl of a given vector field $$ F_x = x\qquad F_y=-y \qquad F_z = 0 $$ In Wikipedia, for example, you can find the quite straightforward formula for the curl: $$ \nabla\times F = \left( \frac{\partial F_z}{\partial y} - \frac{\partial F_y}{\partial z}\ \right) \hat{i} +\left( \frac{\partial F_x}{\partial z} - \frac{\partial F_z}{\partial x}\ \right) \hat{j} + \left( \frac{\partial F_y}{\partial x} - \frac{\partial F_x}{\partial y}\ \right) \hat{k} $$ As you see, there are no terms $\frac{\partial F_x}{\partial x}$ or $\frac{\partial F_y}{\partial y}$, so therefore the curl is zero.