Q.
If a lens is moved towards the object from a distance of 20cm to 15cm, the magnification of the image remains the same. The focal length of the lens is
From lens formula f1=v1−u1
where f is focal length, v the image distance and u the object distance.
For convex lens f1=v1−(−u)1=v1+u1
Multiplying both sides by, u we get vu+1=fu ⇒vu=fu−f
or uv=u−ff
or m=u−ff
According to question m1=−m2 ∴u1−ff=f−u2f ⇒20−ff=f−15f ⇒2f=20+15 ⇒f=235=17.5cm