Surface integral examples
Example 1
For the cylinder of radius 3 and height 5 given by and , let the charge density be proportional to the distance from the -plane. Find the total charge on the cylinder.
Solution: Since the distance from the point to the -plane is , let the charge density be for some constant . The total charge on the cylinder is the surface integral of over the cylinder : .
Parameterize the cylinder by
for and . The total charge on the cylinder is
Calculate the components of the above integral as follows.
Therefore, the total charge is
Example 2
Let be the same cylinder as above ( for ).
Let be the vector field .
Find the integral of over . Use outward pointing normal.

What is the sign of integral? Since the vector field and unit normal point outward, the integral better be positive.
As above, parameterize the cylinder by
for and . We calculated above that
Is an outward pointing normal? It is a normal at the point . As shown in the below figure, it is an outward pointing normal.

Calculate total flux:
There are two orientations for the cylinder. If we had instead chose the orientation given by the inward point normal, what must be?