how to find invariant lines - Search