solving equations with extraneous solutions - Search