AP Physics C: Electricity & Magnetism • Electric Charges, Fields, and Gauss's Law

Electric Fields of Charge Distributions

How to calculate the electric field produced by continuous distributions of charge using integration and symmetry.

A magnet with electric energy and an atomic field.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The study of electricity began with isolated point charges—Benjamin Franklin's lightning experiments, Charles-Augustin de Coulomb's torsion balance measurements—but nature rarely presents charges in neat, isolated packages. Real conductors, insulators, and biological membranes carry charge spread across surfaces, along wires, and throughout volumes. The intellectual challenge of moving from Coulomb's law for a single point charge to the electric field of a macroscopic object required the invention of new mathematical tools—tools that would become the foundation of classical electromagnetism.

1785 • Coulomb's Law

Charles-Augustin de Coulomb publishes quantitative measurements of the force between point charges, establishing the inverse-square law F ∝ q₁q₂/r² using a torsion balance.

1813 • Poisson's Equation

Siméon Denis Poisson extends Laplace's work to relate the electric potential to continuous charge density via ∇²V = −ρ/ε₀, enabling solutions for distributed charges.

1835 • Gauss's Law Formalized

Carl Friedrich Gauss publishes the divergence theorem linking the electric flux through a closed surface to the enclosed charge, providing an alternative to direct integration for symmetric distributions.

1873 • Maxwell's Treatise

James Clerk Maxwell unifies electrostatics, magnetostatics, and induction into four equations, cementing the field concept and the integral/differential treatment of charge distributions.

The central question this lesson addresses is deceptively simple: given a known arrangement of charge spread along a line, across a surface, or throughout a volume, how do we compute the electric field at an arbitrary point in space? The answer requires decomposing the distribution into infinitesimal elements, applying Coulomb's law to each, and summing—i.e., integrating—their vector contributions. Mastering this technique is essential not only for AP Physics C but for every subsequent course in electromagnetism and engineering.

SECTION 2

Core Principles & Definitions

Before diving into integration, you need a firm grasp of the foundational ideas that underpin the calculation of electric fields from continuous charge distributions. These principles connect the discrete world of point charges to the continuous world of real objects.

1

Superposition Principle

The total electric field at any point is the vector sum of the fields produced by each individual charge element. This linearity allows us to replace a discrete sum with a continuous integral.
2

Charge Density

Continuous distributions are described by linear charge density λ (C/m), surface charge density σ (C/m²), or volume charge density ρ (C/m³), depending on geometry.
3

Infinitesimal Source Element

Each tiny piece of the distribution (dq = λ dl, σ dA, or ρ dV) is treated as a point charge. Coulomb's law gives its contribution dE to the field at the observation point.
4

Symmetry & Component Cancellation

Before integrating, identify symmetry axes. Components of dE that cancel by symmetry can be dropped, often reducing a vector integral to a single scalar integral.
5

Field Point vs. Source Point

Clearly distinguish the field point P (where you want E) from the source point (the location of dq). Integration variables describe the source; observation coordinates are constants during integration.
✦

KEY TAKEAWAY

Think of computing the field from a charge distribution like surveying the gravitational pull of an entire mountain range. You cannot treat the range as a single point mass, so you mentally slice it into thin slabs, compute each slab's pull, and add them up. In electrostatics, the "slabs" are infinitesimal charge elements dq, and "adding up" becomes integration. Symmetry is your topographic map—it tells you which directions of pull cancel before you ever compute a thing.

SECTION 3

Visual Explanation — Setting Up the Integral

The diagram below illustrates the general procedure for a uniformly charged rod of total charge Q and length L. The field point P lies on the perpendicular bisector of the rod at distance d from its center. Each infinitesimal element dx carries charge dq = λ dx, and the vector from that element to P has both x- and y-components. By symmetry, the x-components from elements equidistant on either side cancel, leaving only the y-component to survive the integration.

Electric Field of a Uniformly Charged Rod — Perpendicular Bisector−L/2+L/20λ = Q/Ldxdq = λ dxPdrdEdE_ydE_x (cancels)By symmetry, ΣdE_x = 0. Only ΣdE_y survives → integrate dE_y over −L/2 to +L/2.θ
A uniformly charged rod of length L lies along the x-axis. The field point P sits on the perpendicular bisector at height d. Each element dq = λ dx produces dE directed along the line from the element to P. The x-components (red, dashed) cancel pairwise; only the y-components (green) contribute to the net field.

Notice the three critical geometric quantities in the diagram: the distance r from the source element to P, the angle θ that r makes with the y-axis, and the perpendicular distance d. These are related by r = √(x² + d²) and cos θ = d/r. The surviving component dE_y = dE cos θ, and substituting Coulomb's law for dE yields the integrand. This geometric decomposition is the heart of every continuous-distribution problem you will encounter.

SECTION 4

Mathematical Framework

The general strategy for computing the electric field of a continuous charge distribution proceeds in four stages: (1) express dq in terms of a charge density and a coordinate variable, (2) write the vector dE using Coulomb's law, (3) exploit symmetry to reduce to a scalar integral, and (4) evaluate the integral. Below are the key equations that formalize this procedure.

COULOMB'S LAW FOR A POINT CHARGE

E=(1/4πε0)×(q/r2)r^E = (1 / 4πε₀) × (q / r²) r̂

ε₀ = 8.854 × 10⁻¹² C²/(N·m²) is the permittivity of free space; r̂ is the unit vector from the source charge to the field point; r is the separation distance.

GENERAL FIELD FROM A CONTINUOUS DISTRIBUTION

E(P)=(1/4πε0)∫(dq/r2)r^E(P) = (1 / 4πε₀) ∫ (dq / r²) r̂

The integral is taken over the entire charge distribution. For line charges, dq = λ dl; for surface charges, dq = σ dA; for volume charges, dq = ρ dV. The vector r̂ and scalar r both depend on the integration variable.

FIELD ON AXIS OF A UNIFORMLY CHARGED RING (RADIUS R, TOTAL CHARGE Q)

Ex=(1/4πε0)×(Qx)/(x2+R2)(3/2)E_x = (1 / 4πε₀) × (Qx) / (x² + R²)^(3/2)

x is the distance along the axis from the center of the ring. By symmetry, the perpendicular components cancel completely, and only the axial component survives. This result is a building block for the disk and infinite-plane derivations.

FIELD ON AXIS OF A UNIFORMLY CHARGED DISK (RADIUS R, SURFACE CHARGE DENSITY σ)

Ex=(σ/2ε0)×[1−x/√(x2+R2)]E_x = (σ / 2ε₀) × [1 − x / √(x² + R²)]

Derived by treating the disk as a stack of concentric rings and integrating. In the limit R → ∞, this becomes E = σ / 2ε₀, the well-known result for an infinite plane of charge.

💡

EXAM TIP

AP Physics C free-response questions frequently ask you to derive the electric field of a ring, rod, or disk from scratch. Memorizing only the final result will not earn full credit. You must show the setup: choosing a coordinate system, writing dq, expressing r and r̂ in terms of the integration variable, identifying symmetry cancellations, and evaluating the integral.

SECTION 5

Common Charge Distributions — A Visual Catalog

The AP Physics C curriculum emphasizes several canonical charge distributions. Each illustrates different symmetry properties and integration techniques. The diagram below compares the field-line patterns for four fundamental geometries, and the table that follows summarizes the key results and their limiting behaviors.

Four Canonical Charge DistributionsFinite Line Chargeλ, LE_⊥Field ⊥ to bisectorCharged RingQ, RE_xPAxial field onlyCharged Diskσ, RE_xSum of rings → integralInfinite PlaneσE = σ/2ε₀Uniform, distance-independentHierarchy of DerivationsPoint ChargeintegrateRingintegrateDiskR → ∞Infinite PlaneEach result builds on the previous one — master the ring, and the disk follows naturally.The infinite-plane result can also be obtained via Gauss's Law (cylindrical symmetry).
Top row: the four canonical distributions with their dominant field directions shown in green. Bottom: the hierarchy of derivations—each geometry builds on the previous one through successive integration or limiting cases.
DistributionKey FormulaFar-Field LimitSymmetry Used
Finite rod (perpendicular bisector)E = (λ / 2πε₀d) × L / √(L² + 4d²)E → Q / (4πε₀d²) as d ≫ LBilateral (x-components cancel)
Ring (on axis)ExE_x = Qx / [4πε₀(x2+R2)3/2(x² + R²)^{3/2}]E → Q / (4πε₀x²) as x ≫ RAzimuthal (⊥ components cancel)
Disk (on axis)ExE_x = (σ / 2ε₀)[1 − x / √(x² + R²)]E → σR² / (4ε₀x²) = Q / (4πε₀x²)Azimuthal (rings as elements)
Infinite planeE = σ / 2ε₀No distance dependenceTranslational (Gauss's law)

Summary of canonical charge distribution results tested on AP Physics C: E&M

SECTION 6

Worked Example — Electric Field on the Axis of a Uniformly Charged Ring

A thin ring of radius R = 0.10 m carries a total charge Q = 5.0 μC uniformly distributed along its circumference. Find the electric field at a point P on the axis of the ring, a distance x = 0.15 m from its center.

Ring on Axis — Full Derivation and Calculation

  1. 1

    Step 1 — Set Up Coordinates

    Place the ring in the yz-plane centered at the origin, so the axis of symmetry is the x-axis. The field point P is at position (x, 0, 0). An infinitesimal arc element dℓ at angle φ on the ring carries charge dq = (Q / 2πR) dℓ = (Q / 2π) dφ.
  2. 2

    Step 2 — Write dE from Coulomb's Law

    The distance from any element on the ring to P is r = √(x² + R²), which is the same for every element due to axial symmetry. The magnitude of the field contribution is dE = (1 / 4πε₀) × dq / (x² + R²). The direction of dE points from the ring element to P, and can be decomposed into an axial component (along x̂) and a transverse component (perpendicular to x̂).
  3. 3

    Step 3 — Apply Symmetry Cancellation

    For every element at angle φ, there is a diametrically opposite element at φ + π. Their transverse components point in opposite directions and cancel exactly. Only the axial components survive. The axial component of each dE is dE_x = dE × cos θ, where cos θ = x / √(x² + R²).
  4. 4

    Step 4 — Integrate Over the Ring

    Since r and cos θ are constant for all elements, the integral is straightforward: ExE_x = ∫dE_x = [1 / (4πε₀)] × [x / (x2+R2)3/2(x² + R²)^{3/2}] ∫₀^Q dq = (1 / 4πε₀) × Qx / (x2+R2)3/2(x² + R²)^{3/2}.
    ExE_x = (1 / 4πε₀) × Qx / (x2+R2)3/2(x² + R²)^{3/2}
  5. 5

    Step 5 — Substitute Numerical Values

    x² + R² = (0.15)² + (0.10)² = 0.0225 + 0.0100 = 0.0325 m². Then (x2+R2)3/2(x² + R²)^{3/2} = (0.0325)3/2(0.0325)^{3/2} = 0.00586 m³. Using k = 8.99 × 10⁹ N·m²/C²: ExE_x = (8.99 × 10⁹)(5.0 × 10⁻⁶)(0.15) / 0.00586.
    ExE_x ≈ 1.15 × 10⁶ N/C directed along the axis away from the ring
  6. 6

    Step 6 — Check Limiting Cases

    At x = 0 (center of the ring), ExE_x = 0 as expected by symmetry. For x ≫ R, the expression reduces to E ≈ Q / (4πε₀x²), which is the field of a point charge—confirming that the ring looks like a point from far away.

SECTION 7

Direct Integration vs. Gauss's Law — When to Use Each

Students often wonder whether to attack a charge-distribution problem with direct Coulomb integration or with Gauss's law. The choice depends entirely on the symmetry of the problem. Gauss's law, ∮ E · dA = Q_enc / ε₀, is immensely powerful but only yields the field directly when the magnitude of E is constant over a chosen Gaussian surface and E is either parallel or perpendicular to dA everywhere on that surface. When these conditions fail, you must revert to direct integration.

CriterionDirect Integration (Coulomb)Gauss's Law
Symmetry requiredHelpful but not essential; works for any geometryEssential — requires spherical, cylindrical, or planar symmetry
Typical difficultyOften involves challenging integrals (trig substitutions, etc.)Algebraically simple once the Gaussian surface is chosen
Best forFinite rods, rings, arcs, disks, semicirclesInfinite lines/planes, spherical shells, uniform spheres
Gives direction?Yes — the vector integral explicitly yields componentsDirection must be inferred from symmetry before applying
AP exam usageFRQ derivations; conceptual MCQs on setupFRQ calculations; conceptual MCQs on symmetry

Comparison of the two primary methods for finding E from charge distributions

✦

KEY TAKEAWAY

Gauss's law and direct integration are complementary tools in your problem-solving toolkit, much like a closed-form analytical solution versus numerical simulation in engineering. Gauss's law is the elegant shortcut when the geometry cooperates; direct integration is the brute-force method that always works. Knowing which to deploy—and why—is as important as executing either one correctly.

SECTION 8

Connection to Electric Potential and Gauss's Law

The techniques developed in this lesson connect forward to two major topics in AP Physics C: Electricity and Magnetism. First, the electric potential V at a point due to a charge distribution can be computed by an analogous integral, V = (1 / 4πε₀) ∫ dq / r, but because V is a scalar, these integrals are often easier to evaluate than the vector integrals for E. Once V is known, the field can be recovered via E = −∇V, providing an alternative route that avoids vector decomposition entirely. Second, for distributions with sufficient symmetry, Gauss's law replaces the integral entirely with an algebraic equation—a far more efficient approach when applicable.

Concept in This LessonAdvanced Extension
dE = (1/4πε₀) dq / r² r̂dV = (1/4πε₀) dq / r — scalar integral, often simpler; then E = −∇V
Symmetry cancellation of componentsChoosing Gaussian surfaces where E · dA = E dA or 0 — same symmetry reasoning
Infinite-plane result E = σ/2ε₀Parallel-plate capacitor: E = σ/ε₀ between plates (superposition of two planes)
Far-field limit → point-charge behaviorMultipole expansion: dipole, quadrupole terms dominate when net charge is zero

Bridges from continuous-distribution integration to upcoming AP Physics C topics

As you progress through the curriculum, you will find that the integration skills honed here—setting up dq, identifying symmetry, choosing coordinates—transfer directly to computing electric potential, evaluating capacitance, and even calculating magnetic fields via the Biot–Savart law in the magnetism portion of the course. Mastering continuous-distribution problems now pays dividends across every remaining topic.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A uniformly charged ring of radius R carries total charge Q. At the center of the ring (x = 0), the electric field is:
  • A. Q / (4πε₀R²), directed along the axis
  • B. Q / (4πε₀R²), directed radially outward
  • C. Zero
  • D. σ / (2ε₀), directed along the axis
Show answer (C)
C is correct. At the center of the ring, the field point is equidistant from all charge elements, and for every element dq, the diametrically opposite element produces a field contribution of equal magnitude in the opposite direction. The complete cancellation results in E = 0. This can also be verified from the ring formula ExE_x = Qx / [4πε₀(x2+R2)3/2(x² + R²)^{3/2}] by substituting x = 0. Option A incorrectly treats the ring as a point charge at distance R. Option B incorrectly assigns a radial direction that would violate the axial symmetry argument. Option D applies the infinite-plane formula, which is irrelevant to a ring geometry.

Question 2: BASIC CALCULATION

A uniformly charged disk of radius R = 0.20 m has surface charge density σ = 8.0 × 10⁻⁶ C/m². What is the approximate magnitude of the electric field at a point on the axis 0.05 m from the center of the disk?
  • A. 3.4 × 10⁵ N/C
  • B. 4.5 × 10⁵ N/C
  • C. 1.8 × 10⁵ N/C
  • D. 9.0 × 10⁵ N/C
Show answer (A)
A is correct. Using ExE_x = (σ / 2ε₀)[1 − x / √(x² + R²)]: σ / 2ε₀ = (8.0 × 10⁻⁶) / (2 × 8.854 × 10⁻¹²) ≈ 4.52 × 10⁵ N/C. Then x / √(x² + R²) = 0.05 / √(0.0025 + 0.04) = 0.05 / 0.2062 ≈ 0.2425. So ExE_x ≈ 4.52 × 10⁵ × (1 − 0.2425) ≈ 4.52 × 10⁵ × 0.7575 ≈ 3.4 × 10⁵ N/C. Option B (4.5 × 10⁵) corresponds to the infinite-plane limit σ/2ε₀ without the correction factor. Option C would result from using an incorrect formula or miscalculating the square root. Option D approximately doubles the correct answer, possibly from confusing σ/2ε₀ with σ/ε₀.

Question 3: INTERMEDIATE

A thin rod of length L carries a non-uniform linear charge density λ(x) = λ₀(x/L), where x is measured from one end. The rod extends from x = 0 to x = L along the x-axis. Which of the following correctly expresses the x-component of the electric field at a point P located on the x-axis at position x = −d (a distance d to the left of the rod's left end)?
  • A. ExE_x = (λ₀ / 4πε₀L) ∫₀ᴸ x′ dx′ / (d + x′)²
  • B. ExE_x = (λ₀ / 4πε₀L) ∫₀ᴸ dx′ / (d + x′)²
  • C. ExE_x = (λ₀ / 4πε₀L) ∫₀ᴸ x′ dx′ / (d − x′)²
  • D. ExE_x = (λ₀ / 4πε₀L) ∫₀ᴸ x′² dx′ / (d + x′)²
Show answer (A)
A is correct. The source element at position x′ carries charge dq = λ(x′) dx′ = (λ₀ x′ / L) dx′. The distance from this element to the field point at x = −d is (d + x′), since x′ ranges from 0 to L and the field point is at distance d from x = 0. Coulomb's law gives dE_x = (1/4πε₀) × dq / (d + x′)², directed in the −x direction (toward P from the positive source element). The integral setup is ExE_x = (λ₀ / 4πε₀L) ∫₀ᴸ x′ dx′ / (d + x′)². Option B omits the x′ factor from the non-uniform charge density. Option C uses (d − x′), which gives the wrong distance since d and x′ are on the same side of the origin. Option D has an extra power of x′ that does not arise from the physics.

Question 4: APPLIED

10 pts
A semicircular arc of radius R = 0.30 m carries a uniform charge Q = 4.0 μC distributed along its length. The arc extends from θ = −π/2 to θ = +π/2 in the xy-plane, centered at the origin. (a) Set up the integral for the electric field at the center of curvature (the origin). Clearly define dq, the distance r from each element to the origin, and identify which component(s) survive by symmetry. (b) Evaluate the integral and find the magnitude and direction of the electric field at the origin. (c) If the charge distribution were changed to λ(θ) = λ₀ cos θ, determine whether the field at the origin would be larger, smaller, or the same as in part (b). Justify your answer without computing the integral.
Show answer
Point 1 (1 pt): Express dq = λ R dθ where λ = Q/(πR). Point 2 (1 pt): State that the distance from any element on the arc to the origin is r = R (constant). Point 3 (1 pt): Write dE = (1/4πε₀)(λ R dθ / R²) = λ dθ / (4πε₀R). Point 4 (1 pt): Decompose into components: dE_x = dE cos θ, dE_y = dE sin θ. By the symmetry of the arc about the x-axis (θ from −π/2 to +π/2), the y-components cancel pairwise. Point 5 (1 pt): Write surviving integral: ExE_x = (λ / 4πε₀R) ∫_{−π/2}^{+π/2} cos θ dθ = (λ / 4πε₀R)[sin θ]_{−π/2}^{+π/2} = (λ / 4πε₀R)(1 − (−1)) = 2λ / (4πε₀R) = λ / (2πε₀R). Point 6 (1 pt): Substitute λ = Q/(πR): ExE_x = Q / (2π²ε₀R²). Point 7 (1 pt): Numerical evaluation: ExE_x = (4.0 × 10⁻⁶) / (2π² × 8.854 × 10⁻¹² × 0.09) ≈ 2.55 × 10⁵ N/C, directed along the +x-axis (away from the arc, toward the open side). Point 8 (1 pt): State the direction is along the axis of symmetry, pointing away from the center of the arc toward the opening. Point 9 (1 pt): For λ(θ) = λ₀ cos θ, the charge density is greatest at θ = 0 (nearest the +x direction) and decreases to zero at the endpoints. This concentrates more charge near the axis, where cos θ is largest, so each element contributes more effectively to the x-component. Point 10 (1 pt): Conclude that the field would be larger because the cos θ weighting in the charge density constructively reinforces the cos θ factor already present in the projection, resulting in a ∫cos²θ dθ integrand that exceeds the ∫cos θ dθ integrand of the uniform case (after normalizing for the same total charge).

Question 5: CRITICAL THINKING

7 pts
A uniformly charged disk of radius R and surface charge density σ produces an electric field on its axis given by ExE_x = (σ/2ε₀)[1 − x/√(x² + R²)]. (a) Derive this result starting from the known field of a ring, treating the disk as a collection of infinitesimal concentric rings. (b) Show that in the limit x ≫ R, the expression reduces to the field of a point charge Q = σπR². (c) At what value of x/R does the field fall to 50% of its value at x = 0? Express your answer as a numerical ratio. (d) Explain physically why the field of a finite disk is always less than σ/2ε₀ for any finite x > 0.
Show answer
Point 1 (2 pts — Derivation): Consider a ring of radius r′ and width dr′ within the disk. Its charge is dq = σ(2πr′ dr′). Using the ring formula, dE_x = (1/4πε₀) × x × σ(2πr′ dr′) / (x² + r′²)^(3/2). Integrate from r′ = 0 to R: ExE_x = (σx / 2ε₀) ∫₀ᴿ r′ dr′ / (x² + r′²)^(3/2). Use substitution u = x² + r′², du = 2r′ dr′: ExE_x = (σx / 2ε₀) × [−1/√(x² + r′²)]₀ᴿ = (σ / 2ε₀)[1 − x/√(x² + R²)]. Point 2 (1 pt — Far-field limit): For x ≫ R, use binomial expansion: x/√(x² + R²) = 1/√(1 + R²/x²) ≈ 1 − R²/(2x²). So E ≈ (σ/2ε₀)(R²/2x²) = σR²/(4ε₀x²) = σπR²/(4πε₀x²) = Q/(4πε₀x²), which is the point-charge field. Point 3 (2 pts — 50% calculation): At x → 0⁺, E → σ/2ε₀. For E = σ/4ε₀: 1 − x/√(x² + R²) = 1/2, so x/√(x² + R²) = 1/2. Squaring: x²/(x² + R²) = 1/4, giving 4x² = x² + R², so 3x² = R², and x/R = 1/√3 ≈ 0.577. Point 4 (2 pts — Physical explanation): At any finite distance x > 0, the contributions from ring elements at the outer edge of the disk arrive at large angles to the axis, so their axial projections (cos θ factors) are less than 1. Only in the limit x → 0 does every ring element contribute nearly perpendicular to the disk surface (effectively becoming an infinite plane from the perspective of the field point), giving the maximum value σ/2ε₀. As x increases, the finite extent of the disk allows field lines to "spread" laterally, reducing the axial field below the infinite-plane value.

SUMMARY

Lesson Summary

Summary

Computing the electric field of a continuous charge distribution requires decomposing the distribution into infinitesimal elements dq, applying Coulomb's law to each element, and integrating the resulting vector contributions via the superposition principle. The charge element takes the form dq = λ dl, σ dA, or ρ dV depending on whether the distribution is one-, two-, or three-dimensional.

Before integrating, always exploit symmetry to identify field components that cancel, reducing a vector integral to a simpler scalar one. The canonical results—ring, disk, finite rod, and infinite plane—form a hierarchy where each builds on the previous. Always verify your answer by checking limiting cases: at large distances, every finite distribution must reduce to a point-charge field, and at the center of a symmetric distribution, the field must vanish.

Varsity Tutors • AP Physics C: Electricity and Magnetism • Electric Fields of Charge Distributions