As shown in figure, a cuboid lies in a region with electric field $\vec E=2x^2\hat i-4y\hat j+6\hat k\ \text{N C}^{-1}$. The magnitude of charge within the cuboid is $n\varepsilon_0$ C. The value of $n$ is ______ (if dimension of cuboid is $1\times2\times3\ \text{m}^3$).
Numerical value type. Enter your answer.
Answer: 12
Concept. For a cuboid aligned with the axes, each field component gives flux only through its pair of faces: $\phi_x=[E_x(x_2)-E_x(x_1)]A_x$, and so on. Then $q=\varepsilon_0\phi$.
Step 1. $x$ faces ($x=0,1$; area $2\times3=6$): $(2\times1-0)\times6=12$.
Step 2. $y$ faces ($y=0,2$; area $1\times3=3$): $(-4\times2-0)\times3=-24$.
Step 3. $z$ faces. $E_z=6$ is the same on both: $0$.
Step 4. Charge. $\phi=12-24=-12$, so $q=-12\varepsilon_0$: magnitude $12\varepsilon_0$.
Answer. $n=12$.
Solution by Sreeraj P, M.Sc Physics


