The Lens Bench
A lens is a promise that light can be herded by arithmetic. Stand the gold arrow on the bench, pick a lens or a mirror and its focal length, and three honest rays leave the arrow's tip. Where the rays meet, the image stands, and the bench prints the distances so the meeting can be checked against the one equation that runs the whole bench: 1/f = 1/do + 1/di. Slide the arrow inside the focal point and watch the image give up, swing behind the glass, and stand upright as a virtual image, the magnifying glass trade. Every number under the bench is computed from that equation and nothing else, so the drawing and the arithmetic can be held against each other, which is the point of a bench.
The three rays. One ray leaves the tip parallel to the axis and bends through the far focal point. One leaves as if through the near focal point and bends parallel. One passes straight through the centre of a lens, or strikes the vertex of a mirror and reflects at the equal angle on the other side of the axis. Any two of them fix the image; the third is drawn as the witness, and on this bench it lands where it should. Dashed lines are not rays but their extensions, the paths the eye traces back when the image is virtual and no screen could catch it.
The sign rules, stated once. Light travels left to right. For a lens, distances on the far side, the right, are positive, and a positive image distance means a real image standing on the far side. For a mirror, distances in front of the glass, the left, are positive, and a real image stands in front where the light actually is. A converging lens and a concave mirror carry a positive focal length; a diverging lens and a convex mirror carry a negative one. A negative magnification means the image is upside down, and its size is the object's size times the magnification, here an arrow seven centimetres tall.
Places worth visiting. Put the object at twice the focal length and the image stands at the same distance on the other side, the same size, flipped: the equation's mirror point. Push the object just outside the focal point and the image flees far away and grows huge, the projector's bargain. Step inside the focal point and no real image forms at all. Switch to the convex mirror, the shopkeeper's mirror, and the image is always virtual, upright, and small, which is why it sees the whole aisle.