The equation relating the focal length and the object and image distances is the same as the one we used for mirrors:
This can be written: