Skip to main content
United StatesPhysics C: Electricity and Magnetism

AP Physics C E&M applying Gauss's law and calculus: a complete skills guide to integrating charge distributions, choosing Gaussian and Amperian surfaces, and solving RC, LR and LC circuits

A deep-dive AP Physics C E&M skills guide to the calculus core: integrating charge distributions for fields and potentials, choosing Gaussian surfaces for Gauss's law and Amperian loops for Ampere's law, the Biot-Savart law, and solving the RC, LR and LC differential equations. With worked examples and full-mark exam technique.

Generated by Claude Opus 4.820 min read8.1-13.6

Reviewed by: AI editorial process; not yet individually human-reviewed

Jump to a section
  1. Why this is the spine of AP Physics C E&M
  2. Integrating a charge distribution
  3. Gauss's law: when symmetry does the work
  4. Ampere's law and the Biot-Savart law
  5. Differential equations of circuits
  6. Check your knowledge

Why this is the spine of AP Physics C E&M

What sets AP Physics C: Electricity and Magnetism apart from the algebra-based courses is calculus, and three calculus skills carry most of the exam: integrating a charge or current distribution, exploiting symmetry through Gauss's law and Ampere's law, and solving the differential equations of RC, LR and LC circuits. This guide ties together the matching dot-point pages, each with its own practice questions: Gauss's law, electric fields of charge distributions, Ampere's law, the Biot-Savart law, RC circuits, and LC circuits.

Integrating a charge distribution

The direct method for any continuous distribution treats each element dqdq as a point charge. The recipe is fixed:

  1. Write dqdq with the density: dq=λdxdq = \lambda\,dx (line), σdA\sigma\,dA (surface), or ρdV\rho\,dV (volume).
  2. Find rr, the distance from dqdq to the field point, in terms of the integration variable.
  3. Keep the surviving component using symmetry, writing it as dEcosθdE\cos\theta (or dEsinθdE\sin\theta) and expressing cosθ\cos\theta through the geometry.
  4. Integrate with limits matching the coordinate.

For the field, E=kdqr2r^\vec{E} = \displaystyle\int \dfrac{k\,dq}{r^2}\hat{r}; for the potential (a scalar, so no components), V=kdqrV = \displaystyle\int \dfrac{k\,dq}{r}. Often the cleanest route is to find VV first and then take E=V\vec{E} = -\nabla V.

Gauss's law: when symmetry does the work

Gauss's law, EdA=qencε0\oint\vec{E}\cdot d\vec{A} = \dfrac{q_{enc}}{\varepsilon_0}, is always true but only solves for the field when symmetry lets you pull EE out of the integral. Match the Gaussian surface to the symmetry:

  • Spherical (point, ball, shell): concentric sphere, giving E(4πr2)=qencε0E(4\pi r^2) = \dfrac{q_{enc}}{\varepsilon_0}.
  • Cylindrical (line, long cylinder): coaxial cylinder, giving E(2πrL)=qencε0E(2\pi r L) = \dfrac{q_{enc}}{\varepsilon_0} (the end caps carry no flux).
  • Planar (infinite sheet): a pillbox, giving E=σ2ε0E = \dfrac{\sigma}{2\varepsilon_0}.

The crucial habit: count only the charge enclosed by the surface. Inside a uniformly charged ball that is the fraction r3/R3r^3/R^3; inside a uniform wire (for Ampere's law) the fraction r2/a2r^2/a^2.

Ampere's law and the Biot-Savart law

Magnetism mirrors electrostatics. The Biot-Savart law is the direct integral, the magnetic counterpart of integrating the Coulomb field:

dB=μ04πId×r^r2d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{\ell}\times\hat{r}}{r^2}

Use it when there is no symmetry (a loop's central or axial field). Ampere's law, Bd=μ0Ienc\oint\vec{B}\cdot d\vec{\ell} = \mu_0 I_{enc}, is the symmetry shortcut, the magnetic Gauss's law: choose an Amperian loop on which B\vec{B} is constant and parallel (a circle around a wire, a rectangle through a solenoid wall) so the line integral becomes B×length=μ0IencB\times\text{length} = \mu_0 I_{enc}. The standard results are B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r} (wire) and B=μ0nIB = \mu_0 n I (solenoid).

Differential equations of circuits

Whenever a capacitor or inductor is present, Kirchhoff's loop rule becomes a differential equation, because I=dqdtI = \dfrac{dq}{dt} and the inductor voltage is LdIdtL\dfrac{dI}{dt}:

  • RC charging: ε=Rdqdt+qC\varepsilon = R\dfrac{dq}{dt} + \dfrac{q}{C} gives q=Cε(1et/RC)q = C\varepsilon(1 - e^{-t/RC}), time constant τ=RC\tau = RC.
  • LR rise: ε=IR+LdIdt\varepsilon = IR + L\dfrac{dI}{dt} gives I=εR(1eRt/L)I = \dfrac{\varepsilon}{R}(1 - e^{-Rt/L}), time constant τ=LR\tau = \dfrac{L}{R}.
  • LC oscillation: Ld2qdt2+qC=0L\dfrac{d^2 q}{dt^2} + \dfrac{q}{C} = 0 gives q=Q0cos(ωt)q = Q_0\cos(\omega t), angular frequency ω=1LC\omega = \dfrac{1}{\sqrt{LC}}.

Anchor every one with the limiting behavior: a capacitor starts as a wire and ends as an open switch; an inductor starts as an open switch and ends as a wire.

Check your knowledge

A mix of recall, derivation and calculation questions covering the calculus core. Attempt them under timed conditions, then check against the solutions.

  1. State the recipe (four steps) for finding the field of a continuous charge distribution by integration. (2 marks)
  2. When does Gauss's law let you solve for the field, and when must you integrate instead? (2 marks)
  3. Write the field of an infinite sheet of surface charge density σ\sigma. (1 mark)
  4. A solid insulating sphere of radius RR has uniform charge QQ. State the field at r<Rr < R. (2 marks)
  5. Write the field a distance rr from a long straight wire carrying current II. (1 mark)
  6. State the magnetic field inside a long solenoid with nn turns per meter carrying current II. (1 mark)
  7. Write the differential equation for the charge on a capacitor charging through a resistor from a battery ε\varepsilon. (2 marks)
  8. State the time constant of an LR circuit and the final current. (2 marks)
  9. State the angular frequency of an LC circuit. (1 mark)
  10. State the initial and final behavior of an inductor in a DC circuit. (2 marks)

Sources & how we know this

  • physics
  • ap
  • ap-physics-c-em
  • gausss-law
  • amperes-law
  • calculus
  • integration
  • circuits
  • exam-technique