It is shown that the substitution (compensation) theorem, usually formulated for a branch without sources, holds more generally for an arbitrary two-pole. Extended versions of the theorem for multipoles are presented. Examples of the application of the extended theorems to deriving the basic equations for N-, (2n)-, and four-poles are given.