Given an input and an output impedance at some given frequency, it is possible to calculate how much more gain can be achieved, at that one frequency. Step 1 is to calculate S11 and S22 based on the port impedances, see the equation shown on the slide.