It appears that you multiplied the coefficients but not the i 's. Use the fact that .