JEE Main 2023 Physics question — Electric flux and Gauss's law
As shown in figure, a cuboid lies in a region with electric field E=2x2i^−4yj^+6k^ N C−1. The magnitude of charge within the cuboid is nε0 C. The value of n is ______ (if dimension of cuboid is 1×2×3 m3)
SOLUTION
Use Gauss’s law in differential form:
∇⋅E=ε0ρ
and total charge enclosed
Q=ε0∭(∇⋅E⃗)dV
Given
E=2x2i^−4yj^+6k^ N C−1.
Divergence is
∇⋅E=∂x∂(2x2)+∂y∂(−4y)+∂z∂(6)
=4x−4+0
=4x−4
Now cuboid dimensions from figure:
0≤x≤1
0≤y≤2
0≤z≤3
So
Q=ε0∫∫∫(4x−4)dzdydx
First integrate over z:
=ε0∫∫3(4x−4)dydx
Integrate over y:
=ε0∫6(4x−4)dx
=6ε0∫01(4x−4)dx
=6ε0(2x2−4x)01
=6ε0(2−4)
=−12ε0
Magnitude of charge:
∣Q∣=12ε0
Tagged Electric flux and Gauss's law. Machine-assigned, so read it as a strong shortlist rather than a verdict.