Two-lens system

The values filled in are an example: a 100 mm lens and a 50 mm lens, 30 mm apart.

Input parameters:
f₁ = focal length of lens 1 (the first the light meets)
f₂ = focal length of lens 2
d = distance between the lenses
Both lenses are thin and in air. f is positive for a converging lens and negative for a diverging one.
$$ \frac{1}{f_{eq}} = \frac{1}{f_1} + \frac{1}{f_2} - \frac{d}{f_1 f_2} $$
f_eq = —
$$ \text{BFL} = f_{eq}\left(1 - \frac{d}{f_1}\right) $$
BFL = —
Output parameters:
feq = equivalent (effective) focal length of the pair
BFL = back focal length, from lens 2 to the focus of a collimated beam entering lens 1
Lengths are given in the unit chosen for f₁.

Formula: two thin lenses in combination, E. Hecht, Optics, 5th ed. (Pearson, 2017).