By applying Gauss's theorem,
...............(2.19)
Therefore
...............................................(2.20)
For the region
; the total enclosed charge will be
....................................................................(2.21)
By applying Gauss's theorem,
.....................................................(2.22)