Lens equation and ray diagram