Section 2.3 · Topic 3 of 11

2.3.3 Cartesian coordinates

Interactive: Coordinate Systems in 3-D

In Cartesian coordinates , each ranging over . The coordinate surfaces , , are planes parallel to the coordinate planes, and a point is their intersection (Figure 2.3.4).

A point \mathrm P(x,y,z) in Cartesian coordinates, its position vector \vec r, and the unit vectors at \mathrm P. The Cartesian unit vectors are the same at every point.
Figure 2.3.4. A point in Cartesian coordinates, its position vector , and the unit vectors at . The Cartesian unit vectors are the same at every point.

The position vector is , so

All scale factors are one (the coordinates themselves are lengths), and Eqs. (2.3.6), (2.3.7), (2.3.8) become (Figure 2.3.5)

Differential elements in Cartesian coordinates

The unit vectors do not depend on position, which is what makes Cartesian coordinates so simple: they can be taken outside every derivative and every integral.

The differential volume dV=dx\,dy\,dz in Cartesian coordinates and its three visible faces as oriented areas. Each face lies on a coordinate plane (x, y or z constant), its normal is the corresponding unit vector, and its area is the product of the two edges that lie in it.
Figure 2.3.5. The differential volume in Cartesian coordinates and its three visible faces as oriented areas. Each face lies on a coordinate plane (, or constant), its normal is the corresponding unit vector, and its area is the product of the two edges that lie in it.

Move the point in the explorer below and watch the three coordinate planes , , that meet at it, while the unit vectors , , stay the same at every point.

InteractiveLoading simulation…

Areas and volumes as integrals

The area of a surface is the sum of the areas of the small patches that make it up, , and the volume of a region is . The next two examples apply this with the Cartesian elements. The same idea, with the cylindrical elements, is used in Examples 2.3.12 to 2.3.14.

Example 2.3.4Area of a rectangle Example 2.3.5Volume of a rectangular box

Line integrals

Let be a path from a point to a point and a vector field. Divide into small steps , each pointing along the path in the direction of travel. At each step form the dot product (the tangential component of the field times the step length), add, and let the steps become infinitesimal (Figure 2.3.6):

The result is a scalar. If is a force it is the work done along the path, and if is an electric field, will be the potential difference (Section 3.3). When is closed, the integral is written and called the circulation (Section 2.2.4).

The line integral as a sum. The path C from \mathrm A to \mathrm B is divided into small steps \Delta\vec\ell_k (green) in the direction of travel, and at each step the field \vec A (orange) is projected onto the step. Steps on which the field helps contribute positively, steps on which it opposes contribute negatively, and steps across the field contribute nothing.
Figure 2.3.6. The line integral as a sum. The path from to is divided into small steps (green) in the direction of travel, and at each step the field (orange) is projected onto the step. Steps on which the field helps contribute positively, steps on which it opposes contribute negatively, and steps across the field contribute nothing.

How to evaluate it

In Cartesian coordinates, by Eq. (2.3.10),

On the path, the coordinates are not independent: we use the equations of the path to express everything in terms of a single variable, and that variable's start and end values are the limits. Along a straight line parallel to an axis only one differential survives (e.g. along a line parallel to ). The direction of travel is taken care of by the limits alone: we always write with plus signs, and a path travelled towards decreasing simply has a lower limit larger than the upper one.

Recipe · Evaluating a line integral
  1. Describe the path: the equations that hold along it, its start point and its end point.
  2. Write (always with plus signs).
  3. Use the path equations to remove all but one variable (differentials of fixed coordinates are zero).
  4. Integrate from the start value of that variable (lower limit) to its end value (upper limit), even if the lower limit is the larger number.
Common mistake

Counting the direction of travel twice. For a path that runs from down to , writing and integrating from to reverses the sign twice and gives the wrong answer. Either keep and the limits (the method of this book), or use with limits and the tangent , but never both.

The four examples below use the paths of Figure 2.3.7.

The four integration paths of the line-integral examples. C_1: from (3,0,0) to (3,4,0), parallel to the y-axis. C_2: along the z-axis from the origin to (0,0,2). C_3: along the y-axis from y=3 *down* to y=1. C_4: along the line y=x in the xy-plane from \mathrm O to \mathrm P(2,2,0). The arrows give the direction of travel.
Figure 2.3.7. The four integration paths of the line-integral examples. : from to , parallel to the -axis. : along the -axis from the origin to . : along the -axis from *down* to . : along the line in the -plane from to . The arrows give the direction of travel.
Example 2.3.6Line integral along a line parallel to the -axis Example 2.3.7Line integral along the -axis Example 2.3.8Direction of travel Example 2.3.9Line integral along an oblique line

Surface integrals and flux

The flux of a vector field through an open surface is obtained in the same way as a line integral: divide into small patches , take the normal component of the field on each (Figure 2.2.5), add, and refine:

An open surface has two sides, and the choice of (the orientation) must be stated, because reversing it changes the sign of the flux. (For a closed surface the outward normal is the standard choice, as in the definition of divergence.) On the planes , , the oriented area elements are those of Eq. (2.3.11), possibly with a minus sign if the opposite orientation is chosen.

Recipe · Evaluating a flux integral
  1. Identify the surface (which coordinate is constant on it, and the ranges of the other two) and its orientation .
  2. Write with the area element of that coordinate surface, e.g. on .
  3. Keep only the normal component , and insert the constant coordinate of the surface.
  4. Integrate over the two remaining coordinates between the limits that describe the surface.
Example 2.3.10Flux through a rectangle in the -plane

← Back to Section 2.3 contents

Electromagnetic Fields and Waves · Prof. Gökhan Çınar© 2026 Gökhan Çınar. All rights reserved. Copyright