• The problem is that Re can't be differentiated. What code did you execute to get this result? – Carl Woll Jan 23 '18 at 20:01
• Use ComplexExpand e.g., ComplexExpand[{Re[a + I b], Im[a + I b]}] – Carl Woll Jan 23 '18 at 22:25