How can one lens give you an upside-down image one moment and an upright one the next?
Hold a magnifying glass close to a page and the letters look bigger and upright. Use that same lens to project an image of a distant window onto a sheet of paper and the image is upside down. How can the same lens do both?
Follow the ray from air to the glass surface. The dashed line is the normal, at right angles to the surface. Light travels more slowly in glass than in air, so this ray bends towards the normal as it enters. This bending is called refraction.
Refraction at the lens surfaces bends these two rays inwards. In the thin-lens diagram, you draw one bend per ray. The horizontal line through the lens centre is the optical axis. Rays entering parallel to it meet at the principal focus. The distance from the centre to that focus is the focal length.
A ray comes in parallel to the optical axis, just above it. The ray passes through a converging lens. Where does it cross the axis? Pick one answer.
Place the object beyond the near focus. From its tip, draw one ray parallel to the axis, then through the far focus. Draw a second ray straight through the lens centre. The two outgoing rays meet below the axis. That gives you an inverted real image.
Take each grid square as one centimetre. The lens is at horizontal coordinate five and the rays meet at nine. Subtract five from nine to get four squares. That's four centimetres, or zero point zero four metres. A screen at that distance on the far side can catch the image.
On a new grid, each square still represents one centimetre. The lens is at horizontal coordinate four. The outgoing rays cross at ten. How far is the image from the lens? Pick one answer.
Place the object between the near focus and the lens. The parallel ray bends through the far focus; the central ray continues straight. The outgoing rays spread apart. Trace both backwards, using dashes where there's no solid ray to follow. Their extensions meet above the axis at the tip of an upright virtual image.
For a real image, the outgoing rays themselves meet, so a screen there can catch the image. It's easy to think the rays meet at the dashed crossing too. Only their backwards extensions meet there. That's where the rays appear to come from, so a screen there won't catch the image.
Try this Leaving Cert style prompt. Draw a ray diagram for an object between a converging lens and its near focus. Label both foci and add arrows to show the direction of the light. Use dashes for the backwards extensions. Draw the image and state whether it is real or virtual.