The electric field inside the cavity in a conductor is zero.
Let, the electric field just outside the conductor is
The net charge is given by,
From Gauss’s law, the electric flux is,
Therefore,
Where,
From equation (1) and (2), we get
The electric field just outside the conductor is
This field is the electric field due to superposition of the field due to cavity and the field due to rest of the charged conductor.
These fields are equal in magnitude and opposite in direction inside the conductor. Similarly equal in magnitude and same in direction outside the conductor.
Let
The total electric field is given as the sum of the electric fields inside and outside the conductor.
Substitute the value of
Hence, the electric field in the hole is