how to find invariant line - Search