# Vector calculus question

A vector field is defined by $$\vec{A}(\vec{r})} = \rho^2 \hat{\phi} + \rho \sin \phi \hat{z}$$

Verify Stokes' theorem by explicit calcluation where S is the circle of radius a in the z = 0 plane.

You may like to employ the ideas that $$\vec{dS} = \rho d\phi dz \hat{\rho} + dz d\rho \hat{\phi} + \rho d\rho d\phi \hat{z}$$ and $$\vec{dl} = d\rho \hat{\rho} + \rho d\phi \hat{\phi} + dz \hat{z}$$

Stokes' theorem: $$\int_{S} \vec{dS} \cdot (\nabla \times \vec{A}) = \int_{C} \vec{dl} \cdot \vec{A}$$

I found $$\nabla \times \vec{A} = \cos \phi \hat{\rho} - \sin \phi \hat{\phi} + 3\rho^2 \hat{z}$$

So, $$\vec{dS} \cdot (\nabla \times \vec{A}) = \cos \phi \rho d\phi dz - \sin \phi dz d\rho + 3\rho^2 d\rho d\phi$$

Now, I said dz = 0 because the circle is in the z = 0 plane, so z = constant and dz = 0. Is that right?

$$\int_{S} \vec{dS} \cdot (\nabla \times \vec{A}) = \int_0^{2\pi} d\phi \int_0^a 3\rho^2 d\rho = 2\pi a^3$$

Now, $$\vec{dl} \cdot \vec{A} = \rho^3 d\phi$$ (since there's no $\hat{\rho}$ component and again dz = 0)

$$\int_C \vec{dl} \cdot \vec{A} = \int_0^{2\pi} \rho^3 d\phi = [\rho^3 \phi]_{0}^{2\pi} = 2\pi \rho^3 = 2\pi a^3$$

This is what's supposed to happen, but I'm not sure if I've actually done the calculations right or got them right by luck. If someone could tell me where (if anywhere) I've gone wrong, thanks.

Galileo
Homework Helper
Nylex said:
$$\vec{dS} = \rho d\phi dz \hat{\rho} + dz d\rho \hat{\phi} + \rho d\rho d\phi \hat{z}$$ and $$\vec{dl} = d\rho \hat{\rho} + \rho d\phi \hat{\phi} + dz \hat{z}$$

I found $$\nabla \times \vec{A} = \cos \phi \hat{\rho} - \sin \phi \hat{\phi} + 3\rho^2 \hat{z}$$

So, $$\vec{dS} \cdot (\nabla \times \vec{A}) = \cos \phi \rho d\phi dz - \sin \phi dz d\rho + 3\rho^2 d\rho d\phi$$

Be careful here! You may only evaluate a dot product by means of multiplying like components if you use cartesian coordinates.
To illustrate this, consider the vectors:
$$\vec A = \hat x, \qquad \vec B=-\hat x$$
, but in cilinder coordinates both vectors are written:
$$\vec A = \hat r,\qquad \vec B = \hat r$$
The problem is that $\hat r$ depends on the particular point in question.

In your case, since the normal to the disk points in the z-direction, you have:

$$d\vec S = \hat{z}$$
and

$$(\nabla \times \vec A)\cdot d\vec S = 3\rho^2$$

You first wrote down the general expression, then used properties of your surface. Not how I'd do it, but I guess that works too.

Last edited:
Thanks Galileo. We were never told about not being able to do the dot product if you're not using Cartesian co-ordinates. Grr .

You can use the dot product, but you have to do it a different way.

OlderDan
Homework Helper
Galileo said:
Be careful here! You may only evaluate a dot product by means of multiplying like components if you use cartesian coordinates.
To illustrate this, consider the vectors:
$$\vec A = \hat x, \qquad \vec B=-\hat x$$
, but in cilinder coordinates both vectors are written:
$$\vec A = \hat r,\qquad \vec B = \hat r$$
The problem is that $\hat r$ depends on the particular point in question.

In your case, since the normal to the disk points in the z-direction, you have:

$$d\vec S = \hat{z}$$
and

$$(\nabla \times \vec A)\cdot d\vec S = 3\rho^2$$

You first wrote down the general expression, then used properties of your surface. Not how I'd do it, but I guess that works too.

I don't think your statement that the dot product can only be done by multiplying like components if you use Cartesian coordinates is correct. Your vectors $$\vec A$$ and $$\vec B$$ are position vectors to two different points in space, and you are correct that the unit vectors having the same label are not the same vectors at different points in space. But in this context you are forming the dot product of two vector functions of position that are expressed in terms of a unique orthonormal basis at each point in space. The dot product of two vectors at each point is therefore the sum of the products of corresponding components. If the product somehow involved vectors at different points in space, then there would be a problem, but that is not the case. It is the uniqueness of the unit vectors at each point in space that permits the representation of the $$\nabla$$ operator in cylindrical and spherical coordinates, as well as Cartesian coordinates, is it not?

I agree with OlderDan. Consider that regardless of whether you use cartesian or cylindrical coordinates, the vector gives a specific location in 3D space. Therefore, the name of the unit basis vectors is irrelevant when considering the dot product. The way each coordinate system relates to each other is based on our visual representation of them, but so long as each unit vector is orthogonal to the others, the dot product should be carried out in the same way.

Jelfish said:
I agree with OlderDan. Consider that regardless of whether you use cartesian or cylindrical coordinates, the vector gives a specific location in 3D space. Therefore, the name of the unit basis vectors is irrelevant when considering the dot product. The way each coordinate system relates to each other is based on our visual representation of them, but so long as each unit vector is orthogonal to the others, the dot product should be carried out in the same way.

Jelfish,

I agree with OlderDan too, but I think I disagree with you!

The vector does not "give a specific location in 3D space". Each specific location in 3D space gives a vector. But that's not the same thing.

The unit basis vectors in curvilinear coordinate systems are different in more than just name from those in cartesian coordinates. They're fundamentally different, because they're different at every point in space. OlderDan's point (if I understood correctly) was that in this case, the dot product of dl and A is formed from two vecors which by their definition are at the same point, so each has the same orthogonal basis set at that point. Thus the sum of the products of matching components is the dot product.

All this is confusing me.

Galileo
Homework Helper
Aw'right, small correction. You cannot perform the vector operations in spherical/cilindrical coordinates associated with different points. The general idea of the statement still holds though. Don't just naively add components in A+B or multiply like components in AB in cilindrical/spherical coordinates like in cartesian coordinates.

If you take $\vec A = \hat x$ and $\vec B = -\hat x$ at the points (1,0,0) and (-1,0,0) respectively, then in cilinder coordinates:
$\vec A = \hat r$ and $\vec B =\hat r$.
But $\vec A + \vec B =0$ and $\vec A \cdot \vec B = -1$.

If the vectors are evaluated at the same point however, all is well (which, I think, was what Olderdan meant).

In my exam today, there was a similar question but it was on the divergence theorem. When I had to work out $\vec{dS} \cdot \vec{A}$, I just did the dot product as I would in Cartesian and the answer still came out right .

OlderDan