The mirror formula and the lateral magnification formula for a spherical mirror are
f1=v1+u1−(1)
m=−uv−(2)
The object is kept in front of the mirror, so by the Cartesian sign convention
• object distance u is always negative,
• for a convex mirror the focal length f is positive and the image distance v is positive (virtual, behind the mirror).
Since the given magnification 21 is positive (erect image), the mirror must be convex.
Given data for the first position:
u1=−40 cm,m1=21
From −(2) : −u1v1=m1⟹v1=−m1u1=−21×(−40)=+20 cm
Substituting u1 and v1 in −(1) to find the focal length:
f1=201+−401=201−401=401
⇒f=+40 cm
For the new position the required magnification is
m2=31(still positive, erect image)
Using −(2) again:
−u2v2=m2⟹v2=−m2u2=−31u2 −(3)
Insert v2 from −(3) into the mirror formula −(1):
f1=v21+u21=−3u21+u21=−u23+u21=−u22
With f=+40 cm, we get
401=−u22⟹u2=−80 cm
Comparison of object positions:
Initial distance ∣u1∣=40 cm
Final distance ∣u2∣=80 cm
The object must therefore be shifted farther from the mirror by
∣u2∣−∣u1∣=80−40=40 cm
Case 1: Moving the object 40 cm away from the mirror produces the required magnification 31.
Hence, the correct option is Option A (40 cm away from the mirror).