I'm looking at answers to calculating the frequency response, but i don't understand one line. what are they doing to go from the first line to the second line?
-
\$\begingroup\$ Note that if \$\omega_h=\frac12\omega\$ then \$\frac12\left(1+e^{-j\,\omega}\right)=\frac12 e^{-j\,\omega_h}\left(e^{j\,\omega_h}+e^{-j\,\omega_h}\right)= e^{-j\,\omega_h}\cdot\operatorname{cos}\left(\omega_h\right)\$. Just basic math identities, really. But useful to "perceive" at times. \$\endgroup\$jonk– jonk2019-01-10 18:59:49 +00:00Commented Jan 10, 2019 at 18:59
2 Answers
You may be confused about how exponentials interact.
The important one for this is \$e^x \cdot e^x = e^{x+x} = e^{2x}\$
Take your equations and work them backwards to see what happened. You have
\$H(\omega)=0.5e^\frac{-j\omega}{2}(e^\frac{j\omega}{2}+e^\frac{-j\omega}{2})\$
Distribute the \$e^\frac{-j\omega}{2}\$ term inside the parentheses and combine the terms
\$(e^\frac{-j\omega}{2} \cdot e^\frac{j\omega}{2} + e^\frac{-j\omega}{2} \cdot e^\frac{-j\omega}{2}) = (e^{\frac{-j\omega}{2}+\frac{j\omega}{2}} + e^{\frac{-j\omega}{2}+\frac{-j\omega}{2}}) = (e^0 + e^\frac{-2j\omega}{2})=(1+e^{-j\omega})\$
So adding the rest of the equation you have
\$ H(\omega) = 0.5(1+e^{-j\omega})\$
In other words, that \$e\$ term was divided-out/factored-out of the parentheses.
They are factoring out \$e^\frac{-j\omega}{2}\$.
Note that \$e^\frac{-j\omega}{2} \cdot e^\frac{j\omega}{2} = 1\$
and \$e^\frac{-j\omega}{2} \cdot e^\frac{-j\omega}{2} = e^{-j\omega}\$
-
\$\begingroup\$ are you working it out from the second line to the first line? \$\endgroup\$controlled_– controlled_2019-01-10 17:02:27 +00:00Commented Jan 10, 2019 at 17:02
-
\$\begingroup\$ It works both ways. I'd have to see more context in order to understand why this seems useful. \$\endgroup\$Dave Tweed– Dave Tweed2019-01-10 17:02:55 +00:00Commented Jan 10, 2019 at 17:02
-
\$\begingroup\$ sorry i don't do maths a lot so sorry if i'm not understanding. if i'm only looking at the first line without the second, what is it do, multiply by e-jw/2? \$\endgroup\$controlled_– controlled_2019-01-10 17:03:36 +00:00Commented Jan 10, 2019 at 17:03
