above formula is for light traveling from a medium of high refractive index to that of low refractive index. as n>1 therefore image distance
think now in perspective that you see the image of the bottom of waterbody
To view an object the rays from the object must meet our eye.
When the object is inside a denser medium compared to air, if there is no refraction, the rays will come straight to our eye, and we will see the real position of the object.
But due to refraction the rays bend to ward the surface of separation of air and the medium. If the medium is below the surface of air, we can say that the light bends downwards; in other words the image of the object lifted up.
Hence real depth is greater than the depth of the image.
That is not always true.
If you abserve from a denser medium, and the object is placed in a rarer medium, then the apparent depth will be greater than the real depth.
This happens because the light rays coming from the object refract and appear to come from a positoin above or below the true position.
apparent depth is less tan real depth because when light enters the is an change of medium. So it bends away from the normal.Remmeber optical density and refractive index.This will help.
Because light rays bend because of the refractive index of water.
when bending it bends away from the Normal
The Normal is the imaginery line that is perpendicular to the plane of water .
Because of this, the light rays are more flat to the plane of water and, say the cup whose base u are watching, rises up its actual depth.
due to refraction of light:
its the change in the direction of light rays when they pass from a transparent medium to another having different optical density
optical density: its the ability of the medium to refract the light rays when passing through it