The following applet shows light paths for converging lens.
Initially, there is only one convex lens.
The blue arrow represents object and green arrow is the image.
You can drag objec position and change it's height (drag arrow tip), too.
Two small cyan dots represent focus points (d 8)rag it to change focus length of the lens).
Drag the center of the lens to change it's location. Drag top of the lens to change the height of the lens.
For the first lens: $\tfrac{1}{P_1}+\tfrac{1}{q_1}=\tfrac{1}{f_1}$

Click 2nd Lens to add another convex lens. You can study how light paths were refracted to form the image.
If the separation between two lens is $d$, and assume second lens is at the right side of the first lens.
Then, $p_2=d-q_1$ , and the images form can be found at $\tfrac{1}{q_2}=\tfrac{1}{f_2}-\tfrac{1}{p_2}$.

translate strings in simulation to different language format before download
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1405.3kB):double click downloaded file to run it. (96 times by 50 users) , Download EJS source (22 times by 15 users) View EJS source