DSPRelated.com
Forums

Simplifications With Eulers Equation (DTFT, DTFS)

Started by transient 4 years ago14 replieslatest reply 4 years ago459 views

Hello,

I am new to DSP and am taking a DSP class in university right now. One item that I am having trouble understanding (and my textbook doesn't seem to be addressing) is how to simplify complex exponentials. I am aware of Euler's equation, however I think I am missing some tricks in how to solve these. Does anyone have a reference table that has a list of common simplifications using Eulers equation (or any DSP reference tables for that matter)?

Below are some specific instances that I don't quite understand:

ex1_67766.png

My question for the above is, how do we get the 4 cos(pi k /3) term and the 2 cos(2 pi k /3) term?

I understand that there is a relationship between cos(x) = .5*( e^i x + e^-x) but that doesn't seem to apply in the above? Unless if the 2 e^(-i 10 pi k /6 ) term is  equal to a 2 e^(+i 2 pi k/6) term (if so, then why?)


Another question pertains to the below image:


I understand how to setup this equation (for calculating DTFS coefficients). It is not clear to me how the book is able to get this result from the series. My guess is that because the sine term is delayed by (n-2) that somehow we can pull a complex exponential out of this equation. If so how can we do that?


Another question (sorry, I know I'm full of them today :p )

ex2_39520.png

I understand that H(w) = Y(w)/X(w), however how do we go from 1+e^(-j 10w) to 2 cos(5 w) * e^(-j 5w)

I cannot find any look up tables or references that show how to do this (if you have some please share).


Similar, how do we do the following:

ex3_94517.png

How can we pull the sin term out of the above complex exp. Whenever I calculate this I get

.5 - .5 * cos(2 w) + .5 * i * sin(2 w)


Any help or guidance on how to approach the above problems would be greatly appreciated.

Thank you so much :)

[ - ]
Reply by josefseppFebruary 13, 2020

Hi there,

you have to find a suitable factor so that you can always use the Euler formula, e.g. here:

Euler_1.png

[ - ]
Reply by transientFebruary 13, 2020

Hi,

Thank you so much for your reply. Unfortunately, your graphic did not come through. Can you please try to re-post it?

Thanks again :)

[ - ]
Reply by josefseppFebruary 13, 2020

I send you the file Euler_1.png

[ - ]
Reply by transientFebruary 13, 2020

Thank you. Wow that makes so much more sense now. Thank you so much for answering  that question :)

While I have you, can you help shed some light on the below as well?


ex5_78186.png


I'm not sure how they get the below result from the above calculation. I believe that they are somehow using a property of the sin() to extract a complex exponential. Any thoughts?


Thanks again.

[ - ]
Reply by CedronFebruary 13, 2020

Upon a reread, it isn't even that hard:


$$ \sin( \frac{2}{3}\pi ) = \frac{\sqrt{3}}{2} $$

Similar for the other terms.

Sorry, I should have looked closer first.


+++++++++++++++++++++

The trick here is

$$ i = e^{i\frac{\pi}{2}} $$

combined with:

$$ \sin( \theta ) = \frac{e^{i \theta} - e^{-i \theta}}{2i} $$

Again, you should read my article for a intuitive understanding of these equations.



I would also recommend: Angle Addition Formulas from Euler's Formula 



[ - ]
Reply by transientFebruary 13, 2020

Thank you. I will read those articles. Thanks again. I greatly apprecate it. 

[ - ]
Reply by transientFebruary 13, 2020

So I worked out the problem using some of the tricks that you shared and this is what I got ( I did read over your blogs, they were helpful :)

img_20200212_130238_89040.jpg

This answer is not adding up with the books answer. Do you see any mistakes that I am making? 


Thanks again.

[ - ]
Reply by CedronFebruary 13, 2020
That's hard for me to read.  Since you didn't post the book's answer, I can't tell you whether it's equivalent.  The thing with trig expression is they are incredibly transformable into equivalent expressions using trig identities.  You could also work this problem the hard way, using my original hints, to reduce it to a summation equation of exponentials and then apply the geometric summation formula.  It would be a good exercise.  Just compare your answer to the books.  Look at the parts that match and those than don't.  Trace the mismatch back in your logic to see if you can find an error.  It is very easy to drop a sign, or forget an "i".  The structure of your answer looks correct.
[ - ]
Reply by transientFebruary 13, 2020

Sorry, it might be helpful if I include the book answers :p

But ya, as best as I can tell, I don't think I am dropping any signs or missing any 'i' complex values.


Also, I agree with you that there might be many different forms of the final answer, but regardless of the form, they should all have the same value for specific values of k (k=0,1,2,3,4,5). Whenever I evaluate my answer for the various values of k, I don't get the same values for ck (again for k=0,1,2,3,4,5). This makes me think that I did something wrong.

exd_58315.png
[ - ]
Reply by CedronFebruary 13, 2020
I highly recommend that you read my blog The Exponential Nature of the Complex Unit Circle


$$ e^{i \theta} = \cos( \theta ) + i \sin( \theta ) $$

$$ e^{-i \theta} = \cos( -\theta ) + i \sin( -\theta )  = \cos( \theta ) - i \sin( \theta ) $$

$$ e^{i \theta} + e^{-i \theta} = 2 \cos( \theta ) $$

$$ \cos( \theta ) = \frac{e^{i \theta} + e^{-i \theta}}{2} $$

So, on your second question:  (Using a math "i" instead of an engineering "j")

$$ \left( 1 + e^{-i10w} \right) = e^{-i5w} \left( e^{i5w} + e^{-i5w} \right) = e^{-i5w} \cdot 2 \cos(5w) $$

The examples from your first part should now be clearer.

On your last part, the corresponding equation is:

$$ e^{i \theta} - e^{-i \theta} = 2i \sin( \theta ) $$

Derived the same way with a subtraction instead of addition.
[ - ]
Reply by transientFebruary 13, 2020

Thank you for the clarification. I will most certainly read your blog.

:)

[ - ]
Reply by josefseppFebruary 13, 2020
[ - ]
Reply by Rick LyonsFebruary 13, 2020
Hi transient. You asked:

transient_64455.jpg

Here's how:

transient-ii_56507.jpg


[ - ]
Reply by transientFebruary 13, 2020

Thanks Rick, I appreciate your feedback. That does make a lot of sense.