equation for invariants - Search