- #1
I_laff
- 41
- 2
If I have a vector field say ## v = e^{z}(y\hat{i}+x\hat{j}) ##, and I want to calculate the divergence. Do I only take partial derivatives with respect to x and y (like so, ## \frac{\partial A_x}{\partial x} + \frac{\partial A_y}{\partial y} ##) or should I take partial derivatives with respect to x, y and z (like so, ## \frac{\partial A_x}{\partial x} + \frac{\partial A_y}{\partial y} + \frac{\partial A_z}{\partial z} ##). I'm confused as to which one because there is no ## \hat{k} ## unit vector, but z is changing and the graph should therefore be three dimensional.
Last edited: