According to The Matrix Cookbook,
The gradient of the product is $$\nabla_x(f(X)g(X))=f(X)\nabla_X g(X)+g(X)\nabla_X f(X).$$
But then $$ \nabla_x X^TAX = \nabla_x(X^TA) X+X^TA\nabla_xX$$ $$ =AX+X^TA $$
instead of the supposed answer $$(A+A^T)X$$
what's wrong ?