At an extremum, Swanepoel eq. (9) gives:
This closed form works cleanly when the film index is higher than the substrate, n > s (HRI regime). For a low-index film, n < s, the quadratic has two roots that both reproduce the same (TM, Tm). Their product equals s:
Why the ambiguity is physical
Transmission is reciprocal to n ↔ s/n. The envelope method cannot tell which is the film and which is the substrate from T(λ) alone — a n = 1.25 film and a n = 1.21 film on a 1.517 substrate give identical envelopes.
Breaking the tie
A single ellipsometric n at one wavelength (or an a-priori lower bound like "I know this film is porous, n < 1.3") picks the branch. The tool's branch-choice reason field logs how the selection was made so the inversion is auditable.