formula for inflection points - Search