---
title: "3D Vectors and Coordinate Systems for Electromagnetics: the Part Textbooks Rush Through"
url: https://modsengineeringmath.com/en/learn/electromagnetics/vectors-3d-em/
site: "Mod's Engineering Mathematics (อาจารย์มด)"
language: en
updated: 2026-12-04
---

> A slow, visual explanation of the 3D vectors used in Physics 2 and engineering electromagnetics: source point r′ and field point r, the distance vector R = r − r′ and its unit vector, what dot and cross do in field integrals, Cartesian, cylindrical (ρ, φ, z) and spherical (r, θ, φ) coordinates, unit vectors that change with position, the elements dl, dS and dV = ρ dρ dφ dz = r² sin θ dr dθ dφ, and a five-step recipe for setting up any field integral, with 3D labs you can rotate.

Markdown copy of https://modsengineeringmath.com/en/learn/electromagnetics/vectors-3d-em/ for AI assistants and search tools. Math is LaTeX ($…$ and $$…$$); interactive labs and figures are only on the web page.

# 3D Vectors and Coordinate Systems for Electromagnetics: the Part Textbooks Rush Through

THภาษาไทยENEnglish
// Lesson 29.2 · Electromagnetics through integrals ②


Ask students what confuses them most in electromagnetics and the answer is rarely Maxwell's equations. It is the first few lines of every problem: $\mathbf R = \mathbf r - \mathbf r'$, $\hat{\mathbf R}$, $\mathbf a_\rho$, $\rho\,d\phi$, which most books pass over in a sentence. This page has one job: make those symbols readable and visible, with labs you can turn around in 3D, and finish with a five-step recipe that sets up every field integral in the lessons that follow.

The 30-second version

- $\mathbf r'$ = where the source is (a piece of charge or current) · $\mathbf r$ = where you want the field · $\mathbf R = \mathbf r - \mathbf r'$ points from source to field point

- $|\mathbf R| = \sqrt{\Delta x^2 + \Delta y^2 + \Delta z^2}$ · $\hat{\mathbf R} = \mathbf R/|\mathbf R|$ · point charge: $\mathbf E = kq\,\hat{\mathbf R}/R^2 = kq\,\mathbf R/R^3$

- Cylindrical $dV = \rho\,d\rho\,d\phi\,dz$ · spherical $dV = r^2\sin\theta\,dr\,d\theta\,d\phi$ · a curved edge is “radius × angle”

- $\mathbf a_\rho, \mathbf a_\phi, \mathbf a_r, \mathbf a_\theta$ change direction from point to point: convert to x, y, z before integrating a vector

## Why electromagnetics needs vectors in three dimensions Basic

In the previous lesson (29.1, in Thai) everything we added up was a scalar. Charges add, resistances in series add. Electric and magnetic fields, however, have a size and a direction. Two pieces of charge can produce fields of the same size pointing different ways, so the total is not the sum of the sizes. That is why every Physics 2 textbook has a vector appendix, and why an engineering electromagnetics course opens with Vector Analysis and Coordinate Systems.

The good news is that the toolkit is small: subtracting vectors, magnitude, unit vectors, dot, cross and three coordinate systems. Notation differs between books, so here is a translation table.

| Meaning | Physics 2 (Serway, Halliday) | Hayt & Buck / Sadiku | This page |

| Radial unit vector | $\hat{\mathbf r}$ | $\mathbf a_r$ or $\mathbf a_R$ | $\hat{\mathbf R}$ (from the source) · $\mathbf a_r$ (spherical) |

| Distance from the z axis | $r$ | $\rho$ | $\rho$ here · $r$ in physics problems |

| Charge per length / area / volume | $\lambda,\ \sigma,\ \rho$ | $\rho_L,\ \rho_S,\ \rho_v$ | $\lambda,\ \sigma,\ \rho_v$ |

| Directed area element | $d\mathbf A$ | $d\mathbf S$ | both |

Watch the letter ρ: in Hayt, ρ is both the distance from the z axis and the charge density (ρ_v). The subscript tells them apart, so always read it. This page writes $\rho_v$ for density to avoid the clash.

## Source point and field point: r′, r and R = r − r′ Basic

Every field problem has two kinds of point. The source point is where the charge or current sits; its position vector is $\mathbf r'$. The field point is where we want to know the field; its position vector is $\mathbf r$. Both are measured from the same origin O.

The field does not care where either point is on its own. It cares about the distance and direction from the source to the field point. Follow the arrows: going from O to the charge ($\mathbf r'$) and then on to P ($\mathbf R$) must land you in the same place as going from O to P directly ($\mathbf r$). So $\mathbf r' + \mathbf R = \mathbf r$, or

V1 Distance vector from the source to the field point

$$\mathbf R = \mathbf r - \mathbf r' = (x - x')\,\mathbf a_x + (y - y')\,\mathbf a_y + (z - z')\,\mathbf a_z$$

V2 Magnitude and unit vector

$$R = |\mathbf R| = \sqrt{\Delta x^2 + \Delta y^2 + \Delta z^2},\qquad \hat{\mathbf R} = \frac{\mathbf R}{R}$$

V3 Point-charge field, vector form

$$\mathbf E = \frac{kq}{R^2}\,\hat{\mathbf R} = \frac{kq\,(\mathbf r - \mathbf r')}{|\mathbf r - \mathbf r'|^3}$$

The right-hand form of V3 has $R^3$ underneath, which surprises people: isn't Coulomb's law an inverse square? It still is. The numerator $\mathbf R$ carries one factor of R; dividing it out leaves $\hat{\mathbf R}/R^2$. The $\mathbf R/R^3$ form is handier for components because you never compute the unit vector separately.

Example V-1 · line by line, the way EM books do it

### A 5 nC charge sits at (1, 2, −1) m. Find $\mathbf E$ at P(3, −1, 5) m.

- Write both positions: $\mathbf r' = (1, 2, -1)$, $\mathbf r = (3, -1, 5)$

- Subtract “end − start”, component by component (V1)

$$\mathbf R = (3-1,\ -1-2,\ 5-(-1)) = (2,\ -3,\ 6)$$

- Magnitude (V2): $R = \sqrt{4 + 9 + 36} = \sqrt{49} = 7$ m · direction $\hat{\mathbf R} = \tfrac17(2, -3, 6)$

- Field size $kq/R^2 = \dfrac{(8.99\times10^9)(5\times10^{-9})}{49} = 0.9173$ N/C, then multiply by the direction

$$\mathbf E = 0.9173\cdot\tfrac17(2, -3, 6) = (0.262,\ -0.393,\ 0.786)\ \mathrm{N/C}$$

$\mathbf E \approx 0.262\,\mathbf a_x - 0.393\,\mathbf a_y + 0.786\,\mathbf a_z$ N/C · check: $\sqrt{0.262^2 + 0.393^2 + 0.786^2} = 0.917$ ✓

Subtract the wrong way round and you get $\mathbf r' - \mathbf r$, which points the other way: the field of a positive charge would point into it, which is wrong. Memory aid: R is born at the source and ends at the point you asked about, like light travelling from a lamp to your eye.

## 3D lab: move the charge and the point P, watch R change

The starting values are Example V-1. The three dashed segments are the components ΔX, ΔY, ΔZ laid end to end from the charge to P, as if you walked along one axis at a time. Drag the picture to rotate it, and use the xy, xz and yz buttons to look straight down each plane and see which component disappears.

Try three things. (1) Move the charge to the origin: now $\mathbf R = \mathbf r$, the only case where the high-school formula applies directly. (2) Make q negative: the E arrow flips but R does not, because R is pure geometry. (3) Put P twice as far away: E drops to a quarter.

## Dot and cross: what each one does in a field integral Basic

The whole topic uses just two vector products, and each has a clear job.

V4 Dot product = how much is along

$$\mathbf A\cdot\mathbf B = AB\cos\theta = A_xB_x + A_yB_y + A_zB_z$$

V5 Cross product = perpendicular, right-hand

$$|\mathbf A\times\mathbf B| = AB\sin\theta,\quad \mathbf a_x\times\mathbf a_y = \mathbf a_z$$

Use the dot when the question is “how much goes through” or “how much along”. Flux $\mathbf E\cdot d\mathbf A$ asks how much field pierces a surface (Gauss's law, 29.4, in Thai). Work and voltage $\mathbf E\cdot d\mathbf l$ ask how much the field helps or opposes a walk along a path (29.5). The result is a scalar, so the pieces simply add.

Use the cross with currents and magnetic fields. The field of a current element $I\,d\mathbf l\times\hat{\mathbf R}$ (Biot–Savart, 29.6) and the force on a wire $I\,d\mathbf l\times\mathbf B$ (29.10). The result is perpendicular to both factors, so you must picture three dimensions.

## Three coordinate systems: Cartesian, cylindrical, spherical Intermediate

The same point in space can be described in several ways, like giving a house address by street number or by GPS. The best coordinates are the ones that make the boundary of the object a constant. A cylinder of radius a is $x^2 + y^2 = a^2$ in Cartesian coordinates but simply $\rho = a$ in cylindrical ones, and the limits of the integral become much simpler.

V6 Cylindrical ↔ Cartesian $(\rho, \phi, z)$: ρ = distance from the z axis, φ measured from +x

$$x = \rho\cos\phi,\quad y = \rho\sin\phi,\quad z = z,\qquad \rho = \sqrt{x^2+y^2}$$

V7 Spherical ↔ Cartesian $(r, \theta, \phi)$: θ measured from +z (0 to π)

$$x = r\sin\theta\cos\phi,\ \ y = r\sin\theta\sin\phi,\ \ z = r\cos\theta,\qquad r = \sqrt{x^2+y^2+z^2}$$

V8 Cylindrical unit vectors in terms of $\mathbf a_x, \mathbf a_y$ (they depend on the φ of the point)

$$\mathbf a_\rho = \cos\phi\,\mathbf a_x + \sin\phi\,\mathbf a_y,\qquad \mathbf a_\phi = -\sin\phi\,\mathbf a_x + \cos\phi\,\mathbf a_y,\qquad \mathbf a_z = \mathbf a_z$$

V9 Spherical unit vectors

$$\mathbf a_r = (\sin\theta\cos\phi,\ \sin\theta\sin\phi,\ \cos\theta),\quad \mathbf a_\theta = (\cos\theta\cos\phi,\ \cos\theta\sin\phi,\ -\sin\theta),\quad \mathbf a_\phi = (-\sin\phi,\ \cos\phi,\ 0)$$

Mind the angle θ: in mathematical and physical spherical coordinates θ is measured down from the z axis (the equator is θ = 90°), not up from the ground like a geographic elevation angle. Get it wrong and sin and cos swap throughout the problem.

Example V-2 · converting both ways

### (a) Where is $\rho = 4,\ \phi = 120^\circ,\ z = 3$ in Cartesian coordinates? (b) Give (2, 2, 1) in spherical coordinates.

- (a) V6: $x = 4\cos120^\circ = -2$, $y = 4\sin120^\circ = 2\sqrt3 \approx 3.464$, $z = 3$

- (b) V7: $r = \sqrt{4+4+1} = 3$ · $\theta = \cos^{-1}(z/r) = \cos^{-1}(1/3) \approx 70.53^\circ$ · $\phi = \tan^{-1}(2/2) = 45^\circ$

- Check (b): $3\sin70.53^\circ\cos45^\circ = 3(0.9428)(0.7071) = 2.000$ ✓

(a) $(-2,\ 3.464,\ 3)$ · (b) $(3,\ 70.53^\circ,\ 45^\circ)$ · always use atan2 for φ, because a plain $\tan^{-1}$ cannot tell the first quadrant from the third

### The biggest trap: curvilinear unit vectors are not constant

$\mathbf a_x$ points the same way wherever you stand. $\mathbf a_\rho$ points “away from the z axis”, which depends on your angle φ: at φ = 0 it points along +x, at φ = 180° along −x. If you add the fields of all the pieces of a ring by writing each as “size × $\mathbf a_\rho$” and then pull $\mathbf a_\rho$ out of the integral, the answer is wrong at once.

Example V-3 · why you convert to x, y, z first

### Evaluate $\displaystyle\int_0^{2\pi}\mathbf a_\rho\,d\phi$

- The common wrong answer: “$\mathbf a_\rho$ is a unit vector, take it out” → $2\pi\,\mathbf a_\rho$ ✗

- Correct: convert with V8 first

$$\int_0^{2\pi}\big(\cos\phi\,\mathbf a_x + \sin\phi\,\mathbf a_y\big)d\phi = \big[\sin\phi\big]_0^{2\pi}\mathbf a_x + \big[-\cos\phi\big]_0^{2\pi}\mathbf a_y = \mathbf 0$$

$\mathbf 0$ · arrows pointing outward all round the circle cancel completely. This is the mathematical reason the field of a ring on its axis has no transverse part (lesson 29.3)

See it in the lab: choose cylindrical coordinates and drag the angle φ. The arrows $\mathbf a_\rho$ (blue) and $\mathbf a_\phi$ (green) turn with the point P, yet stay perpendicular to each other everywhere, while $\mathbf a_z$ never moves.

## Length, area and volume elements: where ρ and r² sin θ come from Intermediate

In Cartesian coordinates, changing x by dx moves you a distance dx. In curvilinear coordinates, changing an angle by dφ does not move you a distance dφ, because an angle has no length unit. The real distance is the arc length = radius × angle, which is just the definition of the radian (see the trigonometric functions lesson). Nothing more is involved.

- Cylindrical: turning φ by dφ at distance ρ from the axis traces an arc $\rho\,d\phi$

- Spherical: turning θ by dθ on a circle of radius r traces $r\,d\theta$ · turning φ by dφ on a latitude circle, whose radius is only $r\sin\theta$, traces $r\sin\theta\,d\phi$

V10 Differential length in the three systems

$$d\mathbf l = dx\,\mathbf a_x + dy\,\mathbf a_y + dz\,\mathbf a_z = d\rho\,\mathbf a_\rho + \rho\,d\phi\,\mathbf a_\phi + dz\,\mathbf a_z = dr\,\mathbf a_r + r\,d\theta\,\mathbf a_\theta + r\sin\theta\,d\phi\,\mathbf a_\phi$$

V11 Volume element, cylindrical

$$dV = \rho\,d\rho\,d\phi\,dz$$

V12 Volume element, spherical

$$dV = r^2\sin\theta\,dr\,d\theta\,d\phi$$

V13 Surface elements used most often (direction normal to the surface)

$$d\mathbf S_{\text{cylinder wall}} = \rho\,d\phi\,dz\,\mathbf a_\rho,\qquad d\mathbf S_{\text{sphere}} = r^2\sin\theta\,d\theta\,d\phi\,\mathbf a_r$$

The lab above has “Show the volume element dV” switched on. It draws the real curved element and compares its true volume with $\rho\,d\rho\,d\phi\,dz$. Shrink Δ and the percentage difference falls toward zero: that is the “limit” step of slice, approximate, sum, limit once again.

Example V-4 · test the formulas on shapes you already know

### Use V12 and V13 to find the volume and surface area of a sphere of radius R

- Volume: all three limits are constants, so the integral splits into a product

$$V = \int_0^{2\pi}\!d\phi\int_0^{\pi}\!\sin\theta\,d\theta\int_0^R\! r^2dr = (2\pi)(2)\Big(\frac{R^3}{3}\Big) = \frac43\pi R^3$$

- Surface at r = R: $S = \int_0^{2\pi}\int_0^\pi R^2\sin\theta\,d\theta\,d\phi = R^2(2)(2\pi) = 4\pi R^2$

- Note $\int_0^\pi\sin\theta\,d\theta = 2$. Forget the sin θ and you get π instead of 2, which is wrong immediately

$\tfrac43\pi R^3$ and $4\pi R^2$ ✓ · the thin shell $4\pi r^2dr$ used in lesson 29.1 is V12 with both angles already integrated

Example V-5 · density that depends on angle

### A sphere of radius R has $\rho_v = \rho_0\cos^2\theta$. Find the total charge.

- ρ_v depends on θ, so the shell $4\pi r^2dr$ no longer works; use the full V12

$$Q = \int_0^{2\pi}\!\!\int_0^{\pi}\!\!\int_0^R \rho_0\cos^2\theta\; r^2\sin\theta\,dr\,d\theta\,d\phi$$

- Split: $\int_0^R r^2dr = \tfrac{R^3}{3}$ · $\int_0^{2\pi}d\phi = 2\pi$ · for θ substitute ${u = \cos\theta,\ du = -\sin\theta\,d\theta}$

$$\int_0^\pi\cos^2\theta\sin\theta\,d\theta = \int_{-1}^{1}u^2\,du = \frac23$$

- Multiply: $Q = \rho_0\cdot\tfrac{R^3}{3}\cdot\tfrac23\cdot2\pi = \tfrac{4\pi\rho_0R^3}{9}$

$Q = \tfrac{4\pi}{9}\rho_0R^3$ · one third of the constant-density case (the average of cos²θ over a sphere is 1/3)

## The five-step recipe for any field integral Applied

This is what electromagnetics textbooks do every time, even when they do not number the steps. Follow it and the field of a ring, a disk, a loop or a straight wire all look the same on paper.

- Draw and place the axes for maximum symmetry, for example a ring in the xy plane centred at O, with the axis through the point you are asked about

- Write r for the field point and r′ for a general piece in Cartesian components; the general piece contains the integration variable (x′, φ′, z′)

- Find R = r − r′ and |R| with V1 and V2

- Write the source element $dq = \lambda\,dl'$ or $I\,d\mathbf l'$ in the same variable (for a ring $dl' = a\,d\phi'$)

- Write the x, y, z components and integrate. First see which components vanish by symmetry (for example $\int\cos\phi' = 0$); integrate only what is left

Example V-6 · the five steps on a ring of charge

### A ring of radius a carries charge Q uniformly and lies in the xy plane. Find $\mathbf E$ at (0, 0, z).

- Steps 1–2: $\mathbf r = (0, 0, z)$ · the piece at angle φ′: $\mathbf r' = (a\cos\phi',\ a\sin\phi',\ 0)$

- Step 3: $\mathbf R = (-a\cos\phi',\ -a\sin\phi',\ z)$ · $R = \sqrt{a^2 + z^2}$, independent of φ′

- Step 4: $dq = \lambda\,a\,d\phi'$ with $\lambda = Q/(2\pi a)$

- Step 5: $d\mathbf E = \dfrac{k\,dq\,\mathbf R}{R^3}$, component by component

$$E_x = \frac{k\lambda a}{R^3}\int_0^{2\pi}(-a\cos\phi')\,d\phi' = 0,\quad E_y = 0,\quad E_z = \frac{k\lambda a\,z}{R^3}\int_0^{2\pi}d\phi' = \frac{kQz}{(a^2+z^2)^{3/2}}$$

$\mathbf E = \dfrac{kQz}{(a^2+z^2)^{3/2}}\,\mathbf a_z$ · the same result physics books get by drawing the cancellation, but with no guessing: $\int\cos\phi' = 0$ does the work

See the pieces and the vector R of this example in 3D below. Choose “Ring of charge”, move the chosen piece, then switch on the field of every piece. The full treatment of each shape is lesson 29.3 (in Thai).

## Eight practice problems Basic → Intermediate

Q1A charge at A(1, 0, 2); field point B(4, 4, 2). Find $\mathbf R$, R and $\hat{\mathbf R}$.
$\mathbf R = (3, 4, 0)$, $R = 5$
$\hat{\mathbf R} = (0.6,\ 0.8,\ 0)$

Q2Convert (−3, 3, 4) to cylindrical and spherical coordinates.
$\rho = \sqrt{18} = 4.243$, φ in the second quadrant = 135° · $r = \sqrt{34} = 5.831$, $\theta = \cos^{-1}(4/5.831) = 46.69^\circ$
$(4.243,\ 135^\circ,\ 4)$ and $(5.831,\ 46.69^\circ,\ 135^\circ)$

Q3Where is $\rho = 2,\ \phi = -60^\circ,\ z = 0$?
$2\cos(-60^\circ) = 1$, $2\sin(-60^\circ) = -\sqrt3$
$(1,\ -1.732,\ 0)$

Q4Use $dS = \rho\,d\rho\,d\phi$ to find the area of a disk of radius a.
$\int_0^{2\pi}\int_0^a\rho\,d\rho\,d\phi = 2\pi\cdot\tfrac{a^2}{2}$
$\pi a^2$

Q5Volume of the cone inside a sphere: $0\le r\le R,\ 0\le\theta\le60^\circ$
$2\pi\cdot\tfrac{R^3}{3}\cdot\big[-\cos\theta\big]_0^{\pi/3} = \tfrac{2\pi R^3}{3}\cdot\tfrac12$
$\pi R^3/3$

Q6A sphere of radius R has $\rho_v = \rho_0 r^2/R^2$. Total charge?
$\tfrac{4\pi\rho_0}{R^2}\int_0^R r^4dr$
$\tfrac45\pi\rho_0R^3$

Q7Find $\mathbf a_\rho\cdot\mathbf a_x$ and $\mathbf a_\phi\cdot\mathbf a_x$.
From V8
$\cos\phi$ and $-\sin\phi$

Q8Arc length of a quarter circle of radius 0.5 m, from V10
$\int_0^{\pi/2}\rho\,d\phi = 0.5\cdot\tfrac\pi2$
0.785 m

## Common mistakes

| Wrong | Right | See |

| $\mathbf R = \mathbf r' - \mathbf r$ | end − start: field point − source | V1 |

| Use $kq/R^2$ but multiply by $\mathbf R$, not $\hat{\mathbf R}$ | $kq\mathbf R/R^3$ or $kq\hat{\mathbf R}/R^2$ | V3 |

| Pull $\mathbf a_\rho$ or $\mathbf a_r$ out of an integral | Convert to $\mathbf a_x, \mathbf a_y, \mathbf a_z$ first | V8, V-3 |

| $dV = d\rho\,d\phi\,dz$ or $dr\,d\theta\,d\phi$ | Include ρ and $r^2\sin\theta$ | V11, V12 |

| Measure θ up from the ground | θ is measured down from the +z axis | V7 |

| Find φ with $\tan^{-1}(y/x)$ without checking the quadrant | Use atan2(y, x) | V-2 |

Next: the electric field of continuous charge distributions, lesson 29.3 (in Thai), which uses everything on this page on rods, rings, disks and arcs. In English, the series continues with Transformers through integrals (29.9).

## Frequently asked questions

What is the difference between r and r′ (r prime)?
r is the position vector of the point where you want the field (the field point). r′ is the position vector of the piece of charge or current that causes it (the source point). The prime is only a label. When you integrate, r′ moves over the whole source while r stays fixed.

Which way does R = r − r′ point?
Always from the source to the field point, because r′ + R = r. Its length is the distance between the two points, and R̂ = R/|R| is the direction of the electric field of a positive charge at that point.

Why does dV in spherical coordinates contain r² sin θ?
Because the small volume has edges dr, r dθ and r sin θ dφ. The second and third are arc lengths (radius times angle), and the circle around the z axis at angle θ has radius r sin θ. Multiplying the three edges gives r² sin θ dr dθ dφ.

Why can't I pull a_ρ out of an integral?
Because a_ρ is not constant. Its direction depends on the angle φ of each point: at φ = 0 it points along +x, at φ = 180° along −x. Before integrating a vector, write it in Cartesian components a_x, a_y, a_z, which point the same way everywhere.

Which coordinate system should I use?
Use the one that matches the shape. Boxes and sheets use Cartesian coordinates; wires, coaxial cables, solenoids and anything symmetric about an axis use cylindrical; point charges, spheres and shells use spherical. The right choice makes the limits of the integral constants.

Mod

Ajarn Mod · Teerawut Savangboon
Lecturer in Electrical Engineering, Dhonburi Rajabhat University, Samut Prakan, Thailand · Profile

## Frequently asked questions

**What is the difference between r and r′ (r prime)?**
r is the position vector of the point where you want the field (the field point). r′ is the position vector of the piece of charge or current that causes it (the source point). The prime is only a label. When you integrate, r′ moves over the whole source while r stays fixed.

**Which way does R = r − r′ point?**
Always from the source to the field point, because r′ + R = r. Its length is the distance between the two points, and R̂ = R/|R| is the direction of the electric field of a positive charge at that point.

**Why does dV in spherical coordinates contain r² sin θ?**
Because the small volume has edges dr, r dθ and r sin θ dφ. The second and third are arc lengths (radius times angle), and the circle around the z axis at angle θ has radius r sin θ. Multiplying the three edges gives r² sin θ dr dθ dφ.

**Why can't I pull a_ρ out of an integral?**
Because a_ρ is not constant. Its direction depends on the angle φ of each point: at φ = 0 it points along +x, at φ = 180° along −x. Before integrating a vector, write it in Cartesian components a_x, a_y, a_z, which point the same way everywhere.

**Which coordinate system should I use?**
Use the one that matches the shape. Boxes and sheets use Cartesian coordinates; wires, coaxial cables, solenoids and anything symmetric about an axis use cylindrical; point charges, spheres and shells use spherical. The right choice makes the limits of the integral constants.
