Question 7 of 8: Charge Density Distribution That Produces a Given Quadratic Field Inside a Slab
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Exams — May 2017 — 04-BS-9 Basic Electromagnetics. Three-hour, closed-book exam (approved Casio/Sharp calculator only). Aids given: $\varepsilon_0=8.85\times10^{-12}$ F/m, $\mu_0=4\pi\times10^{-7}$ H/m, $e=1.6\times10^{-19}$ C. Format: eight questions offered; any five constitute a complete paper and only the first five appearing in the answer book are marked. All eight are solved below for completeness.
Reference texts: Sadiku, Elements of Electromagnetics / Hayt & Buck, Engineering Electromagnetics — Gauss's law and spherical surface-layer charge distributions, Ampère's law for coaxial current sheets, Biot–Savart on-axis loop fields, Faraday's law and rotating-coil EMF, capacitance with a dielectric and breakdown field, 1-D charge density from a given field profile; Young & Freedman, University Physics with Modern Physics — Snell's law and apparent position of a submerged object viewed obliquely.
Question 7: Charge Density Distribution That Produces a Given Quadratic Field Inside a Slab (20 marks)
Check: the field-expression numerator is read as the standard textbook notation $\rho_0d/\varepsilon_0$, using the reference density $\rho_0=1$ C/m$^3$ given separately in the same sentence. This reading is confirmed self-consistent below: the derived $\rho_v(x)$ evaluates to exactly $\pm\rho_0$ at the slab edges $x=\pm d/2$, matching the given reference value.
Apply the 1-D Gauss's-law relation $\rho_v=\varepsilon_0\,dE/dx$.
$$\rho_v(x)=\varepsilon_0\cdot\frac{2\rho_0x}{\varepsilon_0d}=\boxed{\frac{2\rho_0}{d}\,x,\qquad|x|\le d/2}$$
a charge density that varies LINEARLY across the slab, zero at the centre.
Consistency check at the slab edges. At $x=\pm d/2$:
$$\rho_v\!\left(\pm\frac{d}{2}\right)=\frac{2\rho_0}{d}\left(\pm\frac{d}{2}\right)=\boxed{\pm\rho_0=\pm1\ \text{C/m}^3}$$
matching the given reference density exactly — confirming the reading of the field expression — and the odd symmetry ($\rho_v(-x)=-\rho_v(x)$) integrates to zero net charge, consistent with $E=0$ outside the (electrically neutral) slab.
Quantity
Result
Charge density $\rho_v(x)$
$\dfrac{2\rho_0}{d}x=2\times10^6\,x\ \text{C/m}^3$ (with $x$ in m), for $|x|\le d/2$