In Response To 'Re: Derivative of a real function gives Complex...'
Oh thank you guys!
I have also found quite similar problem discussed here: http://www.mofeel.net/1164-comp-soft-sys-math-mathematica/11211.aspx
The trick was to use ComplexExpand.
So, now everything works.