Use only \( \) and not $ $.