When I take the imaginary part of a complex number times a function, I get the answer I was expecting,
Refine[Im[(1+I) Cos[x], Element[x,Reals]]
-> Cos[x]
but if I include a sum,
Refine[Im[(1 + I) Cos[x] + (1 + I) Sin[x]], Element[x, Reals]]
-> Im[(1 + I) Cos[x] + (1 + I) Sin[x]]
It seems that I have to move the Im function inside the sum by hand,
Refine[Map[Im, (1 + I) Cos[x] + (1 + I) Sin[x]], Element[x, Reals]]
-> Cos[x] + Sin[x]
Why is this? I can't think of a situation when this is not the right thing to do. I'm using version 9.0.0.0.