← 2026 Paper 1

UPSC 2026 Maths Optional Paper 1 Q7b — Step-by-Step Solution

15 marks · Section B

Gauss divergence theorem · Vector Analysis · asked 10× in 14 yrs · Read the full method →

Question

If F⃗=4xzi^−y2j^+yzk^\vec{F} = 4xz\hat{i} - y^2\hat{j} + yz\hat{k}, then evaluate ∬SF⃗⋅n^ dS\displaystyle\iint_S \vec{F}\cdot\hat{n}\,dS, where SS is the surface of a unit cube with two opposite corners at (0,0,0)(0, 0, 0) and (1,1,1)(1, 1, 1) respectively. Hence verify the divergence theorem.

Technique

Evaluate the flux face by face over the six faces of the cube (on each face the outward unit normal is a constant ±i^,±j^,±k^\pm\hat i,\pm\hat j,\pm\hat k, so F⃗⋅n^\vec F\cdot\hat n is a single component evaluated at 00 or 11), then compute ∭V∇⋅F⃗ dV\iiint_V \nabla\cdot\vec F\,dV independently and compare.

Solution

The cube is V={0≤x≤1, 0≤y≤1, 0≤z≤1}V = \{0\le x\le 1,\ 0\le y\le 1,\ 0\le z\le 1\} with boundary SS made of six unit squares. On each face the outward normal is constant, so

∬SF⃗⋅n^ dS=∑6 faces∬(F⃗⋅n^) dA.\iint_S \vec F\cdot\hat n\,dS = \sum_{\text{6 faces}} \iint (\vec F\cdot\hat n)\,dA .

Surface integral — the six faces

FaceOutward n^\hat nF⃗⋅n^\vec F\cdot\hat n on the faceContribution
x=1x=1+i^+\hat i$4xz\big_{x=1} = 4z$
x=0x=0−i^-\hat i$-4xz\big_{x=0} = 0$
y=1y=1+j^+\hat j$-y^2\big_{y=1} = -1$
y=0y=0−j^-\hat j$+y^2\big_{y=0} = 0$
z=1z=1+k^+\hat k$yz\big_{z=1} = y$
z=0z=0−k^-\hat k$-yz\big_{z=0} = 0$

Working the three non-zero faces explicitly:

Face x=1x=1 (n^=i^\hat n = \hat i, dS=dy dzdS = dy\,dz):

∫01 ⁣ ⁣∫014z dy dz=∫014z dz=[2z2]01=2.\int_0^1\!\!\int_0^1 4z\,dy\,dz = \int_0^1 4z\,dz = \Bigl[2z^2\Bigr]_0^1 = 2 .

Face y=1y=1 (n^=j^\hat n = \hat j, dS=dz dxdS = dz\,dx):

∫01 ⁣ ⁣∫01(−1) dz dx=−1.\int_0^1\!\!\int_0^1 (-1)\,dz\,dx = -1 .

Face z=1z=1 (n^=k^\hat n = \hat k, dS=dx dydS = dx\,dy):

∫01 ⁣ ⁣∫01y dx dy=∫01y dy=12.\int_0^1\!\!\int_0^1 y\,dx\,dy = \int_0^1 y\,dy = \frac12 .

The three faces through the origin contribute nothing, because on x=0x=0 the component 4xz4xz vanishes, on y=0y=0 the component −y2-y^2 vanishes, and on z=0z=0 the component yzyz vanishes.

∴∬SF⃗⋅n^ dS=2+0−1+0+12+0=32.\therefore\quad \iint_S \vec F\cdot\hat n\,dS = 2 + 0 - 1 + 0 + \frac12 + 0 = \frac{3}{2}.

Volume integral — divergence theorem check

∇⋅F⃗=∂∂x(4xz)+∂∂y(−y2)+∂∂z(yz)=4z−2y+y=4z−y.\nabla\cdot\vec F = \frac{\partial}{\partial x}(4xz) + \frac{\partial}{\partial y}(-y^2) + \frac{\partial}{\partial z}(yz) = 4z - 2y + y = 4z - y . ∭V(4z−y) dV=∫01 ⁣ ⁣∫01 ⁣ ⁣∫01(4z−y) dx dy dz=∫01 ⁣ ⁣∫01(4z−y) dy dz\iiint_V (4z - y)\,dV = \int_0^1\!\!\int_0^1\!\!\int_0^1 (4z-y)\,dx\,dy\,dz = \int_0^1\!\!\int_0^1 (4z-y)\,dy\,dz =∫01[4zy−y22]y=0y=1dz=∫01(4z−12)dz=[2z2−z2]01=2−12=32.= \int_0^1\left[4zy - \frac{y^2}{2}\right]_{y=0}^{y=1} dz = \int_0^1\left(4z - \frac12\right)dz = \Bigl[2z^2 - \tfrac{z}{2}\Bigr]_0^1 = 2 - \frac12 = \frac{3}{2}.

Conclusion

∬SF⃗⋅n^ dS=32=∭V∇⋅F⃗ dV,\iint_S \vec F\cdot\hat n\,dS = \frac{3}{2} = \iiint_V \nabla\cdot\vec F\,dV ,

so the divergence theorem is verified for this F⃗\vec F and this cube. (F⃗\vec F is a polynomial, hence C1C^1 on the closed cube, and SS is a closed piecewise-smooth surface with outward normal — the hypotheses of the theorem hold.)

Answer

  ∬SF⃗⋅n^ dS=32=∭V∇⋅F⃗ dV ⇒ divergence theorem verified.  \boxed{\;\iint_S \vec F\cdot\hat n\,dS = \frac{3}{2} = \iiint_V \nabla\cdot\vec F\,dV\ \Rightarrow\ \text{divergence theorem verified.}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.