When a liquid is placed on top of plane mirror and convex lens is placed over it, then this whole system would become a combination of convex lens of glass and planoconcave lens of liquid.
This is shown in the figure.
Let focal length of convex lens = f1
focal length of planoconcave liquid lens = f2
combined focal length = F
in both case image coincides with needle; hence ray is normal to plane mirror. So, needle position is focal lengths of convex lens and combined system respectively. According to the question,
f1 = y unit
F = x unit
We also know that for combination of two lenses
\(\frac{1}{F}=\frac{1}{f_1}+\frac{1}{f_2}\)
\(\frac{1}{f_2}=\frac{1}{F}-\frac{1}{f_1}\)
\(\frac{1}{f_2}=\frac{1}{x}-\frac{1}{y}\)
\(f_2=\frac{xy}{x-y}\)
for glass lens, let R1 = R, R2 = −R.
From lens maker formula
\(\frac{1}{f}=(n-1)(\frac{1}{r}-(-\frac{1}{r}))\)
\(\frac{1}{y}=(1.5-1)(\frac{1}{R}+\frac{1}{R})\)
\(\frac{1}{y}=\frac{1}{R}\)
R = y unit
For liquid planoconcave lens
R1 = −R, R2 = ∞.
From lens maker formula
\(\frac{1}{f_2}=(n_i-1)(-\frac{1}{r}-\frac{1}{∞})\)
\(\frac{y-x}{yx}=-(n_1-1)\times \frac{1}{y}\)
(∵ R = y)
\(1-n_i=\frac{y-x}{x}\)
\(n_1=1-\frac{y-x}{x}\)
\(n_1=\frac{x-y+x}{x}\)
\(n_1=\frac{2x-y}{x}\)