← Physics — Semester B midterm (electricity)

appeared in 2/3

Flux through a cube

What it looks like on the exam

A field that depends on zz, an imaginary cube.

📘 The lesson on this topic in the courseFlux and Gauss's law→

How to solve

Electric flux measures “how many field lines pass” through a surface: Φ=E Acos⁡θ\Phi=E\,A\cos\theta for a uniform field, where θ\theta is the angle between the field and the outward normal. When the field varies in space, like E=azE=az, each face of the cube is computed separately — on each face the field is constant or the flux is zero.

Φtotal=∮E⃗⋅dA⃗=Qinε0\Phi_{total}=\oint\vec E\cdot d\vec A=\frac{Q_{in}}{\varepsilon_0}

Gauss's law links the total flux through a closed surface to the charge inside. Two tricks follow: a uniform field — zero total flux (no charge); a charge at the centre of a cube — symmetry, each face gets a sixth.

The method, step by step

  1. For every face: what is the outward normal? (±x^\pm\hat x, ±y^\pm\hat y, ±z^\pm\hat z).

    Why: It sets the sign of the flux.

  2. A field parallel to a face — zero flux.

    Why: Most faces drop out.

  3. On the remaining faces: Φ=±E⋅A\Phi=\pm E\cdot A with the value of EE at the face.

    Why: In a field like azaz — by the face's zz.

  4. Sum to the total flux and find the charge: Q=ε0ΦQ=\varepsilon_0\Phi.

    Why: Gauss.

  5. A point charge in/on a cube — symmetry: q6ε0\frac{q}{6\varepsilon_0} per face, q8ε0\frac{q}{8\varepsilon_0} per cube when the charge is at a corner.

Cases you will meet

A uniform field

Enters through one face and leaves through the opposite one: 00 in total.

E⃗=azz^\vec E=az\hat z

Only the faces z=z= const: Φ=a(ztop−zbot)A\Phi=a(z_{top}-z_{bot})A.

A charge at the centre

Φface=q6ε0\Phi_{face}=\frac{q}{6\varepsilon_0}

A charge at a corner

Eight cubes around the corner share it: q8ε0\frac{q}{8\varepsilon_0} for our cube.

Full topic in the course →
1

Fully worked example

Worked example

A field E⃗=100z z^\vec E=100z\,\hat z (in N/C\text{N/C}, zz in metres). Find the charge inside the cube 0≤x,y,z≤10\le x,y,z\le1. (ε0=8.85⋅10−12 C2/N m2\varepsilon_0=8.85\cdot10^{-12}\,\text{C}^2/\text{N m}^2)

Solution

IdeaOnly the top and bottom faces contribute.
  1. z=1z=1: Φ=100⋅1=100\Phi=100\cdot1=100; z=0z=0: E=0E=0, Φ=0\Phi=0.

    Why: Normals ±z^\pm\hat z.

  2. Φtotal=100 N m2/C\Phi_{total}=100\,\text{N m}^2/\text{C}.

    Why: The other faces are parallel to the field.

  3. Q=ε0Φ=8.85⋅10−10 CQ=\varepsilon_0\Phi=8.85\cdot10^{-10}\,\text{C}.

    Why: Gauss.

Check∇⋅E=100\nabla\cdot E=100 is constant — a uniform density ρ=ε0⋅100\rho=\varepsilon_0\cdot100 times volume 11 ✓.
Common mistakeAdding the bottom face flux as ++.

Practice