Q.Consider a sphere of radius R with charge density distributed as ρ(r)=kr for r≤R and ρ(r)=0 for r>R.
(a) Find the electric field at all points r.
(b) Suppose the total charge on the sphere is 2e where e is the electron charge. Where can two protons be embedded such that the force on each of them is zero. Assume that the introduction of the proton does not alter the negative charge distribution.
Gauss's Law is a shortcut. Instead of adding up the Coulomb contribution of every charge — a nightmare of vectors and integrals — it lets you read the field straight off the symmetry of a problem. The whole idea rests on one quantity: electric flux.
Flux — field-lines counted through a surface. For a uniform field E crossing a flat area A, the flux is Φ = E·A = EA cosθ, where θ is the angle between the field and the normal to the surface. Picture the field as a bundle of lines; flux is how many pierce the surface. When E is edge-on (θ = 90°) nothing passes through and Φ = 0; when E is ⊥ to the surface (θ = 0) the count is maximal. For a closed surface, Φ is the net number of lines leaving it — lines that enter and exit cancel.
The law itself. Gauss's law states that the net flux out of any closed surface depends only on the charge trapped inside:
Φ = q_enclosed / ε₀.
Two consequences do most of the work. First, only enclosed charge counts — a charge outside sends as many lines in as out, so its net contribution is exactly zero. Second, the surface's shape is irrelevant; move the charge around inside or deform the surface, and Φ never changes.
Why symmetry makes it powerful. By itself Φ = q/ε₀ has E buried in an integral. It becomes a tool only when you pick a Gaussian surface matched to the symmetry — one where E is constant and everywhere either ⊥ to the surface (so Φ = EA) or ∥ to it (contributing nothing). Then E slides out and you solve in one line. This works for exactly three geometries:
1 — Infinite line charge (linear density λ). Use a coaxial cylinder: E = λ / 2πε₀r, falling off as ∝ 1/r.
2 — Infinite sheet (surface density σ). Use a pillbox pierced through the sheet: E = σ / 2ε₀ — uniform and completely independent of distance. The field near a large charged plane simply doesn't weaken as you step back. …
Why this formula?
Gauss's Law: Why It Holds
Gauss's Law is one of the four Maxwell's equations and a cornerstone of electromagnetism. Let's build the understanding from the ground up — not just the formula, but the why.
1. The Core Idea: Flux as "Flow" of Field
Imagine an electric field E passing through a small patch of area dA. The electric flux through that patch is:
dΦE=E⋅dA=EdAcosθ
where θ is the angle between E and the outward normal to the surface.
Why this definition?
If E is perpendicular to the surface (θ=0), maximum field "flows through".
If E is parallel (θ=90∘), no flux — the field just slides along the surface.
Total flux through a closed surface S is:
ΦE=∮SE⋅dA
2. The Key Insight: Flux Depends Only on Enclosed Charge
Consider a single point charge +q at the centre of a spherical surface of radius r.
By Coulomb's law, at every point on the sphere: E=4πε01r2q, radially outward.
The area vector dA is also radially outward.
So E⋅dA=EdA everywhere.
The total flux:
ΦE=∮EdA=E∮dA=(4πε01r2q)(4πr2)=ε0q
Notice: The r2 cancels! The flux is independent of the radius.
3. Why Shape Doesn't Matter
Now, what if the surface is not spherical but any closed shape enclosing the charge?
Draw a small cone from the charge to the surface.
The flux through a patch dA at distance r is dΦ=4πε01r2qcosθdA.
But r2cosθdA is exactly the solid angledΩ subtended by dA at the charge.
So dΦ=4πε0qdΩ.
Integrating over the entire closed surface: ∮dΩ=4π (total solid angle around a point).
Hence:
ΦE=4πε0q⋅4π=ε0q
Result: For any closed surface enclosing q, the flux is ε0q.
4. Multiple Charges: Superposition
If there are many charges q1,q2,…,qn inside the surface, the total electric field is the vector sum of individual fields:
Field from Gauss's law. For a Gaussian sphere of radius r≤R, the enclosed charge is
q(r)=∫0r(kr′)4πr′2dr′=4πk∫0rr′3dr′=πkr4.
So E(4πr2)=ε0πkr4, giving
E=4ε0kr2(r≤R),radially outward.
For r>R the whole charge Q=πkR4 is enclosed, so
E=4ε0r2kR4(r>R).
Where the protons go. With total charge magnitude 2e, the charge inside radius r is q(r)=2e(r/R)4. Place the two protons symmetrically on opposite sides of the centre, each at radius r0 (separation 2r0). The sphere's field pulls each proton inward while the other proton pushes it outward; equating magnitudes, …
Gauss's law gives E=4ε0kr2 inside the sphere and E=4ε0r2kR4 outside; the two protons must sit on opposite sides of the centre, each at r0=R/23/4=R/81/4, where the sphere's inward pull balances the outward proton–proton repulsion.
(a) Electric field everywhere
The distribution is spherically symmetric, so E is radial and depends only on r. Choose a concentric spherical Gaussian surface.
Inside (r≤R). The charge enclosed is the volume integral of ρ=kr:
directed radially outward for k>0. The field grows as r2 (not linearly) because the density itself increases with r.
Outside (r>R). The full charge Q=πkR4 is enclosed, and the sphere acts like a point charge:
E=4πε0r2Q=4ε0r2kR4(r>R).
(b) Position of the two protons
Take the total charge magnitude as Q=2e, so the charge within radius r is
q(r)=QR4r4=2eR4r4.
By symmetry the two protons must lie on a diameter, one on each side of the centre at the same radius r0, a distance 2r0 apart. Each proton feels two radial forces: …
Given total charge Q=2e (positive, since protons are positive and the sphere is negative).
The problem states total charge is 2e and protons are embedded. For force on each proton to be zero, the net electric field at that point must be zero.
Since the sphere has negative charge distribution and total charge is 2e (positive), the sphere must have net positive charge. The protons experience repulsion from the sphere's positive charge.
Step 2: Condition for zero force
For a proton at radius r, the electric field inside the sphere is:
E(r)=4ε0kr2
But k is related to total charge:
Q=πkR4=2e⇒k=πR42e
So inside:
E(r)=4πR4ε02er2=2πR4ε0er2
Step 3: Where can field be zero?
Inside the sphere, E(r)>0 for r>0. Outside, E(r)>0 for all r. The only point where E=0 is at r=0 (the centre). …
🔍 Common Mistake #2: Using the wrong Gaussian surface for r>R
Some students apply Gauss’s law with a sphere of radius r>R but forget that outside the sphere, the charge enclosed is the total charge, not πkr4.
✓ How to avoid:
For r>R, the enclosed charge is fixed:
Qenc=Qtotal=πkR4
Then:
E⋅4πr2=ε0Qtotal⇒E=4πε0r2Qtotal
This is exactly the field of a point chargeQtotal at the centre — a key sanity check.
🔍 Common Mistake #3: Forgetting to find k from total charge
Part (b) gives total charge Qtotal=2e. Students sometimes try to solve without linking k to 2e.
✓ How to avoid:
Always compute k explicitly:
Qtotal=πkR4=2e⇒k=πR42e
Then use this k in the expression for E(r) inside the sphere.
🔍 Common Mistake #4: Misinterpreting “force on each proton is zero”
Students think this means the protons must be at the centre (where E=0). But inside a non-uniform sphere, E=0only at r=0.
✓ How to avoid:
For a proton to feel zero net force, the electric field at its position must be zero. Since both protons are positive, they repel each other — so they cannot both be at r=0.
The only way both have zero force is if:
They are placed symmetrically about the centre.
The net field from the sphere plus the other proton cancels at each location.
Q.An electric dipole formed by charges +q and -q separated by a distance 'd' is placed inside a hollow sphere of radius 'r' (2r > d). The electric flux through the surface of the sphere is —
(a) q/ε0, outward
(b) 2q/ε0, inward
(c) 2q/ε0, outward
(d) zero
›Reveal solutionSolution
By Gauss's law, flux depends only on the net enclosed charge; a dipole has zero net charge, so the total flux through any closed surface enclosing it is zero.
By Gauss's theorem,
ΦE=ε0qenclosed
Here the sphere of radius r (with 2r > d) encloses both charges of the dipole, +q and -q. The net enclosed charge is
Q.A charge Q is enclosed by a spherical Gaussian surface of radius R. If the radius is doubled, the outward electric flux –
(a) will decrease to half
(b) will remain the same
(c) will double
(d) will increase four-fold
›Reveal solutionSolution
Gauss's law says the outward electric flux through a closed surface depends only on the charge enclosed, never on the size or shape of the surface.
By Gauss's law:
ΦE=∮E⋅dA=ε0Qenc
The enclosed charge is still Q even after the radius is doubled to 2R — no charge has been added or removed, only the surface has grown. Since ΦE depends only on Qenc and ε0 (both unchanged), the flux is unaffected by the change in radius. (What …