What Is de Moivre's Formula and How Do You Use It?
      Complex numbers can be used to solve problems that seem at first glance to only deal with real numbers. An important tool you can use in these cases is de Moivre’s formula. 
                                                                                                                                                                                                                                 Calculations are often simplified by moving the exponent as in de Moivre’s formula. This is demonstrated in Example 1. 
     De Moivre’s formula can be proved using Euler’s formula and simple power rules: 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           Q.E.D
              Prove the following trigonometric identities: 
|   | 
 and 
 using de Moivre’s formula 
                                                                                          
                                                                                                                       The expressions include  and , so you can use  in de Moivre’s formula:  
         For this equation to be valid, the 
real parts on both sides of the equal sign must be the same, and the 
imaginary parts on both sides must also be the same. This yields the identities that you set out to prove: 
 Q.E.D
                                                                                                                                                                                                                                              Using Euler’s formula, you can derive a relationship between the exponential function and the trigonometric functions: 
|   | 
      You can therefore define cosine and sine using complex numbers via Euler’s formula. 
                                                                                                                                                                                                                                                       Cosine and Sine Using Complex Numbers 
 For all complex numbers , the following holds: 
                                                                                                                                                                                                                                       The definition can be justified for real numbers  using Euler’s formula like this:                                                                                                                                                                                                                                          
 and                                                                                                                                                                                                                                          
 Q.E.D
      The relationship between the exponential function and the trigonometric functions is useful in a variety of situations. It is often easier to work with the exponential function than the trigonometric functions. So when you’re working with trigonometric functions, it can be a good idea to reformulate the problem using the exponential                                                                                                                                                                                                                                          function. 
             Rediscover the differentiation rules for sine and cosine, 
 using the exponential function 
                                                                                          
                                                                                                                                                                                                                                           First, you write sine in exponential form: 
|   | 
 Then you find the derivative of both sides of the expression with respect to . Remember the differentiation rules for the exponential function. The imaginary unit  is derived in the same manner as for any other number: 
 You can do the same with cosine by first writing it in exponential form: