Euler's identity basically states that which is derived from . (I'm using i. Which I think is the correct use, though am unsure.)

I don't understand how they are getting to the latter form of the equation . If someone could explain this to me it would be greatly appreciated.