On the invariant polynomials of Jordan products