an example, a system with a spatially varying coefficient of the nonlinear term is studied. The
nonlinearity is chosen to be repelling except on a finite interval. Localized standing wave
solutions on a non-zero background, eg, dark solitons trapped by the inhomogeneity, are
identified and studied. A novel instability criterion for such states is established through a
topological argument. This allows instability to be determined quickly in many cases by …