Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

[parent] Vector and Coordinate Geometry Problems

(Example)

ED02E1: Vector and Coordinate Geometry Problems with Complete Solutions

ED02 developed the geometric language used throughout electrodynamics. This companion article turns that language into calculation practice.

The problems are arranged so that each new layer depends on the previous one:

vectors →products and projections→source-field geometry
→curvilinear coordinates→differential elements→symmetry.

The goal is not merely to obtain correct numbers. Each solution emphasizes which geometric object is being computed and why that object will matter later in electrostatics, magnetostatics, or field integration.

1 Problems

Problem 1: components, magnitude, and unit direction

Let

A =  3ˆx − 4ˆy + 12 ˆz.
(1)

Find:

Problem 2: dot product, angle, and projection

Let

A =  (2, − 1, 2),   B =  (1,2,2).
(2)

Find:

PIC

Figure 1. Projection geometry for Problem 2. The vector A is decomposed into a part parallel to B and a residual perpendicular to B.

Problem 3: cross product, direction, and area

Let

A =  (1, 2,0),    B  = (2,− 1,3).
(3)

Compute A × B. Find the area of the parallelogram and triangle formed by the two vectors.

Problem 4: scalar triple product and oriented volume

Let

A =  (1,0,2),    B  = (0,3,1),     C =  (2,1,0).
(4)

Compute

A  ⋅ (B × C ).
(5)

What is the physical volume of the parallelepiped? What information is contained in the sign?

Problem 5: source point to field point

A source element is at

r′ = (1,− 2,0.5) m,
(6)

and the field is required at

r = (4, 2,3.5 ) m.
(7)

Find

R =  r − r ′,    R = |R |,     ˆR.
(8)

Explain why this geometry appears repeatedly in Coulomb-law and Biot-Savart integrals.

PIC

Figure 2. The relative displacement R points from the source location r′ toward the field point r.

Problem 6: evaluating a vector field

Consider

                    2
F (x,y,z) = xy ˆx + z  ˆy + (x − z)ˆz.
(9)

Evaluate F at (2,−1, 3) and find its magnitude there.

Problem 7: Cartesian to cylindrical coordinates

Convert the Cartesian point

                 √ --
(x, y,z) = (− 3, 3 3,4)
(10)

to cylindrical coordinates (s,ϕ,z), using

0 ≤ ϕ < 2π.
(11)

Then convert back to Cartesian coordinates as a check.

PIC

Figure 3. Cylindrical coordinates separate the distance s from the axis, azimuth ϕ, and height z. The quadrant of the Cartesian point matters when determining ϕ.

Problem 8: cylindrical basis components

At azimuth

      ∘
ϕ = 60 ,
(12)

write s and ϕ in the Cartesian basis. Then express

A =  4ˆx + 2ˆy + 3ˆz
(13)

in the local cylindrical basis.

PIC

Figure 4. The cylindrical basis is local. The directions s and ϕ rotate as the azimuth changes.

Problem 9: a physical differential displacement in cylindrical coordinates

At

s = 0.20 m,
(14)

a coordinate increment is

                          ∘
ds = 2.0 mm,      dϕ = 3.0 ,    dz =  − 1.0 mm.
(15)

Find the three physical components of dr and estimate |dr|.

Problem 10: recover the volume of a cylinder from the cylindrical volume element

Using

dτ = s dsd ϕdz,
(16)

derive the volume of a cylinder of radius a and height h.

Then evaluate the result for

a = 4.0 cm,     h =  12.0 cm.
(17)

Problem 11: Cartesian to spherical coordinates

Convert

                 √ --
(x, y,z) = (2,2,2  2)
(18)

to spherical coordinates (r,𝜃,ϕ) using the convention in ED02:

𝜃 = polar angle from  +  z,    ϕ =  azimuth  from  + x.
(19)

Problem 12: components of a vector in the spherical basis

At

    π          π
𝜃 = -,     ϕ = --,
    3           6
(20)

express

A  = ˆx + 2yˆ+  3ˆz
(21)

in the local spherical basis

ˆr,    ˆ𝜃,     ˆϕ.
(22)

Problem 13: area of a spherical patch

On a sphere of radius

r = 0.30 m,
(23)

find the area of the patch bounded by

40∘ ≤ 𝜃 ≤ 50 ∘,     10∘ ≤ ϕ ≤ 30 ∘.
(24)

Use the exact spherical surface element rather than a flat-area approximation.

PIC

Figure 5. A spherical patch has physical side lengths rd𝜃 and r sin𝜃dϕ, so its area element is r2 sin𝜃d𝜃dϕ.

Problem 14: volume of a spherical wedge

Find the volume in the region

0.10 ≤ r ≤  0.20 m,
(25)

0 ≤ 𝜃 ≤  π,     0 ≤ ϕ ≤  π.
         3               2
(26)

Use

       2
dτ =  r sin 𝜃 drd𝜃 dϕ.
(27)

Problem 15: basis variation under a small azimuthal change

The cylindrical basis is

ˆs = cosϕ ˆx + sin ϕ ˆy,
(28)

ˆ
ϕ =  − sin ϕ ˆx + cosϕ ˆy.
(29)

Show that for a small change dϕ,

      ˆ
d ˆs ≈ ϕ dϕ,
(30)

and

 ˆ
dϕ ≈ − ˆs dϕ.
(31)

Why is this important for later differentiation of vector fields?

PIC

Figure 6. A small azimuthal displacement rotates the cylindrical basis. Even if vector components remain numerically unchanged, the physical vector can change because its basis vectors have changed.

Problem 16: choose coordinates from symmetry

For each source configuration, state the most natural coordinate system, the coordinate on which the field magnitude can depend, and the most likely field direction before any detailed calculation:

  • an isolated point charge,
  • an infinite line charge along the z axis,
  • a very large uniformly charged plane in the xy plane,
  • and a long straight current along the z axis.

Explain the symmetry argument in each case.

2 Complete solutions

Solution 1: components, magnitude, and unit direction

The magnitude follows from the orthonormal Cartesian basis:

A = ∘  -2-------2-----2-
   3 + (− 4) +  12
= √ -------------
  9 + 16 + 144
= √ ----
  169
= 13.

Therefore

      A     3     4      12
Aˆ =  --=  --xˆ−  --ˆy +  --ˆz.
      A    13     13     13
(32)

Its magnitude is

|A|2 = (  3)
  ---
  132 + (− 4 )
 ---
  132 + ( 12)
  ---
  132
= 169-
169 = 1.

Hence

|Aˆ| = 1.
(33)

Solution 2: dot product, angle, and projection

First compute the dot product:

A ⋅ B = (2)(1) + (−1)(2) + (2)(2)
= 2 − 2 + 4
= 4.

The magnitudes are

     √---------               √ ---------
A =   4 + 1 + 4 = 3,     B =    1 + 4 + 4 = 3.
(34)

Using

A ⋅ B = AB  cos 𝜃,
(35)

we obtain

       4-
cos𝜃 = 9 ,
(36)

so

          (  )
       −1   4-        ∘
𝜃 = cos     9  ≈  63.6 .
(37)

The vector projection of A onto B is

           A  ⋅ B
projB A =  ------B.
           B ⋅ B
(38)

Since B ⋅ B = 9,

                      (        )
           4-           4- 8-8-
projB A =  9(1,2,2) =   9 ,9,9   .
(39)

The perpendicular remainder is

A⊥ = A − proj BA
= (2,− 1,2) −(        )
  4-, 8, 8
  9  9 9
= ( 14    17 10 )
  ---,− --,---
   9    9   9.

Check orthogonality:

A⊥⋅ B = 14
---
 9 −34
---
9 + 20
---
 9
= 0.

That zero is the defining geometric property of the residual.

Solution 3: cross product, direction, and area

Using the determinant form,

A × B = |         |
||xˆ  yˆ  ˆz ||
|1   2  0 |
||2  − 1 3 ||
= 6x − 3y − 5z.

Its magnitude is

           √ ------------  √ ---
|A  × B | =   36 + 9 + 25 =   70.
(40)

Therefore the parallelogram area is

        √ ---
A     =   70,
  para
(41)

while the triangle area is

      √ ---
      --70-
Atri =  2  .
(42)

The direction of the cross product is Normal to the plane containing A and B, with its sign fixed by the right-hand rule.

Solution 4: scalar triple product and oriented volume

First calculate

B × C = |       |
||ˆx  ˆy  ˆz||
||0  3  1||
|2  1  0|
= (−1, 2,−6).

Then

A ⋅ (B × C) = (1)(−1) + (0)(2) + (2)(−6)
= −13.

The physical volume is the absolute value:

V =  13.
(43)

The negative sign indicates that the ordered set (A,B,C) has the opposite orientation from a right-handed ordered basis. The sign is orientation information; the geometric volume itself is positive.

Solution 5: source point to field point

Subtract the source position from the field position:

R = r − r′
= (4 − 1, 2 − (−2), 3.5 − 0.5)
= (3, 4, 3) m.

Its magnitude is

R  = √32-+--42 +-32 = √34-m.
(44)

Therefore

     3 ˆx + 4ˆy + 3ˆz
Rˆ = -----√-------.
            34
(45)

In source integrals, each source element at r′ contributes to the field at r. The separation magnitude controls how strongly the contribution is weighted, while R supplies the relevant source-to-field direction.

Solution 6: evaluating a vector field

Substitute

(x,y,z) = (2,− 1,3).
(46)

The components become

Fx =  xy = (2)(− 1) = − 2,
(47)

Fy = z2 = 9,
(48)

and

Fz = x − z =  2 − 3 = − 1.
(49)

Thus

F(2,− 1,3) = − 2ˆx + 9yˆ−  ˆz.
(50)

Its magnitude is

      √ ----------   √ ---
|F | =   4 + 81 + 1 =   86.
(51)

A vector field assigns a different vector to each point. Evaluating the field at one point produces one ordinary vector.

Solution 7: Cartesian to cylindrical coordinates

The cylindrical radius is

s = ∘  -2----2-
   x +  y
= √ -------
  9 + 27
= 6.

The point lies in Cartesian quadrant II because

x < 0,     y > 0.
(52)

Since

              √ --
tan ϕ =  y-= −   3,
        x
(53)

the correct quadrant-II angle is

        ∘   2π-
ϕ = 120  =   3 .
(54)

The vertical coordinate is unchanged:

z = 4.
(55)

Therefore

          (   2π   )
(s,ϕ,z) =   6,---,4  .
               3
(56)

Check by converting back:

                  (    )
x = s cosϕ = 6 cos  2π-  =  − 3,
                     3
(57)

                 (    )     √ --
y = ssinϕ =  6sin  2π-  =  3  3.
                    3
(58)

The original point is recovered.

Solution 8: cylindrical basis components

The local cylindrical basis vectors are

ˆs = cosϕ ˆx + sin ϕ ˆy,
(59)

and

ˆ
ϕ =  − sin ϕ ˆx + cosϕ ˆy.
(60)

At ϕ = 60∘,

    1     √3--
ˆs = --ˆx + ---ˆy,
    2      2
(61)

      √ --
ˆ     --3-    1-
ϕ = −  2  ˆx + 2yˆ.
(62)

Because the basis is orthonormal, the local components are obtained by projection:

As = A ⋅s
= 4(   )
  1-
  2 + 2( √ -)
  --3-
   2
= 2 + √ --
  3,

Aϕ = A ⋅ϕ
= 4(      )
   √3--
 − ----
    2 + 2( 1)
  --
  2
= 1 − 2√ --
  3,

and

A  =  3.
  z
(63)

Therefore

A  = (2 + √3-)ˆs + (1 − 2√3-)ˆϕ + 3ˆz.
(64)

The physical vector did not change. Only its basis and component values changed.

Solution 9: a physical differential displacement in cylindrical coordinates

The cylindrical differential displacement is

dr = ds ˆs + sdϕ ˆϕ +  dzˆz.
(65)

Convert the angle to radians:

dϕ =  3∘-π---=  π--≈ 0.05236.
        180∘    60
(66)

The three physical edge lengths are therefore

ds = 0.0020 m,
(67)

sdϕ = (0.20)( π-)
  60
≈ 0.01047 m,

and

dz =  − 0.0010 m.
(68)

Since the local basis is orthonormal,

|dr| ≈∘  --------2-----------2-------------2
   (0.0020 ) + (0.01047 ) + (− 0.0010 )
≈ 0.0107 m.

The important point is that dϕ itself is not a length. The corresponding physical tangential distance is sdϕ.

Solution 10: recover the cylinder volume

Integrate over the full cylinder:

0 ≤ s ≤ a,     0 ≤ ϕ ≤ 2π,     0 ≤ z ≤  h.
(69)

Then

V = ∫ 0h ∫ 02π ∫ 0asdsdϕdz
= ( ∫ a    )
     s ds
   0( ∫ 2π   )
       dϕ
   0(∫ h   )
     dz
  0
= (   )
  a2
  ---
  2 (2π)h
= πa2h.

For

a = 0.040 m,     h = 0.120 m,
(70)

we obtain

V = π(0.040)2(0.120)
≈ 6.03 × 10−4 m3.

Equivalently,

V ≈  603 cm3.
(71)

The factor s in the cylindrical volume element is exactly what makes the integration reproduce the familiar geometric result.

Solution 11: Cartesian to spherical coordinates

The radial distance is

r =   ------------
∘ x2 + y2 + z2
= √ ---------
  4 + 4 + 8
= 4.

The polar angle satisfies

             √ --   √ --
cos𝜃 = z-=  2--2-=  --2.
       r      4      2
(72)

Thus

     π-
𝜃 =  4.
(73)

Since x = y > 0,

     π-
ϕ =  4.
(74)

Therefore

          (   π  π )
(r,𝜃,ϕ ) =  4,--,-- .
              4  4
(75)

Solution 12: components in the spherical basis

The spherical basis in Cartesian components is

ˆr = sin 𝜃cos ϕ ˆx + sin 𝜃sinϕ ˆy + cos𝜃 ˆz,
(76)

ˆ𝜃 =  cos𝜃cos ϕ ˆx + cos𝜃 sin ϕyˆ−  sin 𝜃ˆz,
(77)

and

ˆϕ =  − sin ϕ ˆx + cosϕ ˆy.
(78)

At

𝜃 = π,     ϕ = π-,
    3           6
(79)

these become

          √ --
     3      3     1
ˆr =  4ˆx + -4-yˆ+  2ˆz,
(80)

     √ --         √ --
ˆ    --3-   1-    --3-
𝜃 =   4 ˆx + 4 ˆy −  2 ˆz,
(81)

      1     √3--
ˆϕ = − --ˆx + ---yˆ.
      2      2
(82)

Project A onto each basis direction:

Ar = A ⋅r
= 3
4- +  √ --
2  3
--4-- + 3
2-
= 9-
4 + √ --
--3-
 2,

A𝜃 = A ⋅𝜃
= √ --
--3-
 4 + 1-
2 − √ --
3--3-
  2
= 1
--
2 −   --
5√ 3
-----
  4,

and

Aϕ = A ⋅ϕ
= −1
--
2 + √ --
  3.

Hence

A = (     √ -)
  9     3
  4-+ -2--r + (      √ --)
  1   5  3
  2-− --4--𝜃
+ (         )
   1   √ --
 − --+   3
   2ϕ.

Solution 13: area of a spherical patch

For a surface of constant radius,

       2
dA  = r  sin 𝜃d𝜃 dϕ.
(83)

Therefore

A = r2 ∫ ϕ1ϕ2 ∫ 𝜃1𝜃2 sin 𝜃 d𝜃 dϕ
= r2(ϕ 2 − ϕ1)(cos 𝜃1 − cos 𝜃2).

Using radians,

ϕ  − ϕ  = 20 ∘ = π.
  2    1         9
(84)

Thus

A = (0.30)2(  )
  π-
  9
×[cos(40∘) − cos(50 ∘)]
≈ 3.87 × 10−3 m2.

The factor sin 𝜃 accounts for the shrinking physical circumference of circles of latitude as the pole is approached.

Solution 14: volume of a spherical wedge

Integrate over the stated bounds:

V = ∫ 0π∕2 ∫ 0π∕3 ∫ 0.100.20r2 sin 𝜃 dr d𝜃 dϕ.

The radial integral is

∫
   0.20 2     0.203-−-0.103
      r dr =       3      .
  0.10
(85)

The polar integral is

∫  π∕3                 (  )
      sin 𝜃d 𝜃 = 1 − cos  π- =  1.
  0                      3     2
(86)

The azimuthal integral is

∫
  π∕2      π-
     dϕ =  2 .
 0
(87)

Therefore

V = 0.203-−-0.103-
     3(  )
  1-
  2(π-)
 2
≈ 1.83 × 10−3 m3.

Solution 15: basis variation under a small azimuthal change

Differentiate the radial basis vector with respect to ϕ:

 ∂ˆs
---
∂ ϕ = − sin ϕx + cos ϕy
= ϕ.

Therefore, to first order in dϕ,

      ∂ˆs
dˆs ≈  --d ϕ = ˆϕ dϕ.
      ∂ϕ
(88)

Similarly,

  ˆ
∂-ϕ
∂ ϕ = − cos ϕx − sin ϕy
= −s,

so

dˆϕ ≈ − ˆs dϕ.
(89)

This matters because differentiating a vector field in cylindrical or spherical coordinates requires differentiating not only its numerical components but also the basis vectors themselves. ED03 will build the differential operators from precisely this geometry.

Solution 16: choose coordinates from symmetry

Isolated point charge

The source is unchanged by any rotation about the charge. Distance from the source is the only scalar coordinate that can affect the field magnitude.

Therefore spherical coordinates are natural:

E =  E (r )ˆr.
(90)

Infinite line charge on the z axis

The source is unchanged by translation along z and rotation about the z axis. The field magnitude can therefore depend only on distance s from the axis.

Cylindrical coordinates are natural:

E =  E (s)ˆs.
(91)

Very large uniformly charged plane in the xy plane

The source is unchanged by translations in x and y and by rotations in the plane. The field cannot prefer any in-plane direction. It must point normal to the plane and can depend only on z.

Cartesian coordinates are natural:

E =  E (z )ˆz.
(92)

For an ideal infinite uniform plane, later symmetry arguments will show that the magnitude is actually constant on either side, but that result is not needed here.

Long straight current on the z axis

The source is unchanged by translation along z and rotation about the axis. The magnetic field magnitude can depend only on s.

The right-hand rule and rotational symmetry indicate the azimuthal direction:

         ˆ
B =  B(s)ϕ.
(93)

This final example is especially useful: symmetry determines not only which coordinate the magnitude can depend on, but also which basis direction is physically allowed.

3 What these problems are preparing us to do

ED02E1 is deliberately geometric. We have not yet differentiated fields with gradient, divergence, or curl. Nevertheless, the main ingredients for those operators are now in place:

  • local orthonormal bases,
  • coordinate-dependent basis vectors,
  • scale factors,
  • line elements,
  • area elements,
  • volume elements,
  • and symmetry-adapted descriptions of fields.

ED03 will turn these geometric ingredients into differential operators.

4 Summary

The most important habits from these problems are:

  • distinguish a vector from its component list,
  • use dot products to extract components along a chosen direction,
  • use cross products to encode oriented area and perpendicular direction,
  • form R = r − r′ from source to field point,
  • use sdϕ and r sin 𝜃 dϕ as physical lengths rather than treating angles as lengths,
  • remember that cylindrical and spherical basis vectors vary with position,
  • and choose coordinates that expose the source symmetry before doing algebra.

References

[1]   D. J. Griffiths, Introduction to Electrodynamics, 5th ed., Cambridge University Press, 2023.

[2]   E. M. Purcell and D. J. Morin, Electricity and Magnetism, 3rd ed., Cambridge University Press.

[3]   H. M. Schey, Div, Grad, Curl, and All That, W. W. Norton.

[4]   G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, Academic Press.


"Vector and Coordinate Geometry Problems" is owned by bloftin.
(view preamble)
View style:
Other names:  ED02E1
Also defines:  vector decomposition problem, vector projection problem, cross product geometry problem, source-field displacement problem, cylindrical coordinate conversion problem, cylindrical basis problem, spherical coordinate conversion problem, spherical basis problem, differential element problem, symmetry-adapted coordinate problem
Keywords:  vector problems, dot product, cross product, coordinate geometry, cylindrical coordinates, spherical coordinates, scale factors, differential elements, worked solutions, electrodynamics

This object's parent.

Cross-references: volume elements, scale factors, curl, divergence, gradient, magnetic field, scalar, operators, ED03, latitude, cylindrical volume element, position, Normal, cross product, determinant, dot product, charge, coordinate system, vector fields, spherical coordinates, Cartesian coordinates, cylindrical coordinates, displacement, volume, vector projection, vectors, unit vector, magnitude, magnetostatics, ED02

This is version 1 of Vector and Coordinate Geometry Problems, born on 2026-11-20.
Object id is 1585, canonical name is VectorAndCoordinateGeometryProblems.
Accessed 9 times total.

Classification:
Physics Classification: 02.30.Em (Potential theory)
 02.40.-k (Geometry, differential geometry, and topology )
 03.50.De (Classical electromagnetism, Maxwell equations )

Pending Errata and Addenda

None.

Discussion

No messages.

Interact