For the compound microscope, we have:
Focal length of the objective, fo = 1.0 cm
Focal length of the eyepiece, fe = 5 cm
Distance of the object from the objective, u0 = 0.5 cm
Distance of the image from the eyepiece, ve = 30 cm
The lens formula for the objective lens is given by
The objective will form a virtual image at the side same as that of the object at a distance of 1 cm from the objective lens. The image formed by the objective will act as a virtual object for the eyepiece.
⇒ ue = − 6 cm
∴ Separation between the objective and the eyepiece = 6 − 1 = 5 cm