# Location of mirror charges (method of images)

I was reading about method of images from Griffiths and I was thinking about a situation where a charge is kept inside a spherical cavity of a conducting shell rather than placing it outside a conducting shell.

Here the Sphere is not grounded. Can I say that the charge Q is like a mirror charge to some other charge Q' to the right of the sphere? But the problem is, the sphere is not grounded. If I take Q to be the mirror charge of Q', then the potential at the surface of cavity becomes zero and that on the outer surface becomes non zero causing an electric field.

Given the position of Q (not at the centre of cavity), how will I locate the correct mirror charges?

After this statement, we can analyze your problem. If you have a charge $+Q$ inside a hollow conductor, it will separate an analogous charge $-Q'$ by induction. This charge will be placed all over the surface of the hole with a spatial distribution that depends on the position of the charge $+Q$ inside the hole; in fact, the only requirement it has to fulfill is that it makes the electrostatic field inside the conductor go to zero.
The separation of the $-Q'$ charge on the internal surface will separate also a $+Q'$ charge that, for the properties of a conductor, will place itself all over the external surface with a distribution that depends only on the charges outside the conductor, and not on the inside it (how could the information pass if there is no field inside a conductor to carry it?).