Behind the science
A thin converging lens follows 1/f = 1/u + 1/v. Its image magnification is m = −v/u: negative magnification means inversion. The simulation traces geometric rays using an ideal paraxial thin lens and illustrates how moving an object changes where its image forms.