Relationship between e, sin and cos: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
Wilspa (talk | contribs)
No edit summary
Wilspa (talk | contribs)
No edit summary
Line 1: Line 1:
==Converting from e to sin/cos==
==Converting from e to sin/cos==
It is often useful when doing signal processing to understand the relationship between e, sin and cos. Sometimes difficult calculations involving even or odd functions of <math>e</math> can be greatly simplified by using the relationship to simplify things. The relationship is as follows:
It is often useful when doing signal processing to understand the relationship between e, sin and cos. Sometimes difficult calculations involving even or odd functions of <math>e</math> can be greatly simplified by using the relationship to simplify things. The relationship is as follows:
<br>
<math>e^{j \theta} = cos( \theta ) + j*sin( \theta ). </math>
<math>e^{j \theta} = cos( \theta ) + j*sin( \theta ). </math>


Line 9: Line 10:


<math>sin( \theta ) = \frac{e^{j \theta}-e^{-j \theta}}{2j}</math>
<math>sin( \theta ) = \frac{e^{j \theta}-e^{-j \theta}}{2j}</math>
We can test to see that this works as follows:
{|
|-
|<math>{e^{j \theta }}</math>
|<math> = cos( \theta ) + j*sin( \theta )</math>
|-
|
|<math> = \frac{e^{j \theta}+e^{-j \theta}}{2} + j*\frac{e^{j \theta}-e^{-j \theta}}{2j}</math>
|-
|
|<math> = \frac{e^{j \theta}+e^{-j \theta}}{2} + \frac{e^{j \theta}-e^{-j \theta}}{2} </math>
|-
|
|<math> = \frac{(e^{j \theta}+e^{-j \theta}) + (e^{j \theta}-e^{-j \theta})}{2} </math>
|-
|
|<math> = \frac{2*e^{j \theta}}{2} </math>
|-
|<math> e^{j \theta }</math>
|<math> = e^{j \theta }</math>
|-
|}

Revision as of 04:00, 13 February 2008

Converting from e to sin/cos

It is often useful when doing signal processing to understand the relationship between e, sin and cos. Sometimes difficult calculations involving even or odd functions of e can be greatly simplified by using the relationship to simplify things. The relationship is as follows:
ejθ=cos(θ)+j*sin(θ).

Converting from sin/cos to e

The reverse conversion is also often helpful:

cos(θ)=ejθ+ejθ2

sin(θ)=ejθejθ2j

We can test to see that this works as follows:

ejθ =cos(θ)+j*sin(θ)
=ejθ+ejθ2+j*ejθejθ2j
=ejθ+ejθ2+ejθejθ2
=(ejθ+ejθ)+(ejθejθ)2
=2*ejθ2
ejθ =ejθ