{"id":5729,"date":"2019-08-12T14:04:44","date_gmt":"2019-08-12T12:04:44","guid":{"rendered":"http:\/\/www.tonmeister.ca\/wordpress\/?p=5729"},"modified":"2019-10-03T10:25:54","modified_gmt":"2019-10-03T08:25:54","slug":"dfts-part-2-its-a-little-complex","status":"publish","type":"post","link":"https:\/\/www.tonmeister.ca\/wordpress\/2019\/08\/12\/dfts-part-2-its-a-little-complex\/","title":{"rendered":"DFT&#8217;s Part 2: It&#8217;s a little complex&#8230;"},"content":{"rendered":"\n<p>Links to:<br><a href=\"https:\/\/www.tonmeister.ca\/wordpress\/2019\/08\/08\/dfts-part-1-some-introductory-basics\/\">DFT\u2019s Part 1: Some introductory basics<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Whole Numbers and Integers<\/h2>\n\n\n\n<p>Once upon a time you learned how to count. You were probably taught to count your fingers&#8230; 1, 2, 3, 4 and so on. Although no one told you so at the time, you were being taught a set of numbers called&nbsp;<em>whole numbers<\/em>.<\/p>\n\n\n\n<p>Sometime after that, you were probably taught that there\u2019s one number that gets tacked on before the ones you already knew \u2013 the number 0.<\/p>\n\n\n\n<p>A little later, sometime after you learned about money and the fact that we don\u2019t have enough, you were taught negative numbers&#8230; -1, -2, -3 and so on. These are the numbers that are less than 0.<\/p>\n\n\n\n<p>That collection of numbers is called&nbsp;<em>integers&nbsp;<\/em>\u2013 all \u201ccountable\u201d numbers that are negative, zero and positive. So the collection is typically written<\/p>\n\n\n\n<p>&#8230; -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 &#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rational Numbers<\/h2>\n\n\n\n<p>Eventually, after you learned about counting and numbers, you were taught how to divide (the mathematical word for &#8220;sharing equally&#8221;). When someone said \u201c20 divided by 5 equals 4\u201d then they meant \u201cif you have 20 sticks, then you could put those sticks in 4 piles with 5 sticks in each pile.\u201d Eventually, you learned that the division of one number by another can be written as a&nbsp;<em>fraction&nbsp;<\/em>like&nbsp;3\/1&nbsp;or&nbsp;20\/5&nbsp;or&nbsp;5\/4&nbsp;or&nbsp;1\/3.<\/p>\n\n\n\n<p>If you do that division the old-fashioned way, you get numbers like this:<\/p>\n\n\n\n<p><strong><em>3 <\/em><\/strong><strong><em>\u2215 <\/em><\/strong><strong><em>1 = 3<\/em><\/strong><strong><em>.<\/em><\/strong><strong><em>000000000&nbsp;<\/em><\/strong>etc&#8230;<\/p>\n\n\n\n<p><strong><em>20 <\/em><\/strong><strong><em>\u2215 <\/em><\/strong><strong><em>5 = 4<\/em><\/strong><strong><em>.<\/em><\/strong><strong><em>00000000&nbsp;<\/em><\/strong>etc&#8230;<\/p>\n\n\n\n<p><strong><em>5 <\/em><\/strong><strong><em>\u2215 <\/em><\/strong><strong><em>4 = 1<\/em><\/strong><strong><em>.<\/em><\/strong><strong><em>200000000&nbsp;<\/em><\/strong>etc&#8230;<\/p>\n\n\n\n<p><strong><em>1 <\/em><\/strong><strong><em>\u2215 <\/em><\/strong><strong><em>3 = 0<\/em><\/strong><strong><em>.<\/em><\/strong><strong><em>333333333&nbsp;<\/em><\/strong>etc&#8230;<\/p>\n\n\n\n<p>The thing that I\u2019m trying to point out here is that eventually, these numbers start repeating sometime after the decimal point. These numbers are called&nbsp;<em>rational<\/em>&nbsp;<em>numbers<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Irrational Numbers<\/h2>\n\n\n\n<p>What happens if you have a number that doesn\u2019t start repeating, no matter how many numbers you have? Take a number like the square root of 2 for example. This is a number that, when you multiply it by itself, results in the number 2. This number is approximately 1.4142. But, if we multiply 1.4142 by 1.4142, we get 1.99996164 \u2013 so 1.4142 isn\u2019t exactly the square root of 2. In fact, if we started calculating the exact square root of 2, we\u2019d result in a number that keeps going forever after the decimal place and never repeats. Numbers like this (<strong><em>\u03c0&nbsp;<\/em><\/strong>is another one&#8230;) that never repeat after the decimal are called&nbsp;<em>irrational<\/em>&nbsp;<em>numbers<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real Numbers<\/h2>\n\n\n\n<p>All of these number types \u2013 rational numbers (which includes integers) and irrational numbers fall under the general heading of\u00a0<em>real numbers<\/em>. The fact that these are called \u201creal\u201d implies immediately that there is a classification of numbers that are \u201cunreal\u201d \u2013 but we&#8217;ll get to that later&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Imaginary Numbers<\/h2>\n\n\n\n<p>Let\u2019s think about the idea of a square root. The square root of a number is another number which, when multiplied by itself is the first number. For example, 3 is the square root of 9 because&nbsp;<strong><em>3<\/em><\/strong><strong><em>*<\/em><\/strong><strong><em>3 = 9<\/em><\/strong>. Let\u2019s consider this a little further: a positive number muliplied by itself is a positive number (for example,&nbsp;<strong><em>4<\/em><\/strong><strong><em>*<\/em><\/strong><strong><em>4 = 16<\/em><\/strong>&#8230; 4 is positive and 16 is also positive). A negative number multiplied by itself is also positive (i.e.&nbsp;<strong><em>&#8211;<\/em><\/strong><strong><em>4<\/em><\/strong><strong><em>*-<\/em><\/strong><strong><em>4 = 16<\/em><\/strong>).<\/p>\n\n\n\n<p>Now, in the first case, the square root of 16 is 4 because&nbsp;<strong><em>4<\/em><\/strong><strong><em>*<\/em><\/strong><strong><em>4 = 16<\/em><\/strong>. (Some people would be really picky and they\u2019ll tell you that 16 has two roots: 4 and -4. Those people are slightly geeky, but technically correct.) There\u2019s just one small snag \u2013 what if you were asked for the square root of a negative number? There is no such thing as a number which, when multiplied by itself results in a negative number. So asking for the square root of -16 doesn\u2019t make sense. In fact, if you try to do this on your calculator, it\u2019ll probably tell you that it gets an error instead of producing an answer.<\/p>\n\n\n\n<p>For a long time, mathematicians just called the square root of a negative number &#8220;imaginary&#8221; since it didn&#8217;t exist &#8211; like an imaginary friend that you had when you were 2&#8230; However, mathematicians as a general rule don\u2019t like loose ends \u2013 they aren\u2019t the type of people who leave things lying around&#8230; and having something as simple as the square root of a negative number lying around unanswered got on their nerves.<\/p>\n\n\n\n<p>Then, in 1797, a Norwegian surveyor named Casper Wessel presented a paper to the Royal Academy of Denmark that described a new idea of his. He started by taking a number line that contains all the real numbers like this:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_real-1024x195.png\" alt=\"\" class=\"wp-image-5930\" width=\"1024\" height=\"195\" srcset=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_real-1024x195.png 1024w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_real-300x57.png 300w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_real-768x146.png 768w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_real.png 1271w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 1: The number line containing all real numbers.<\/figcaption><\/figure>\n\n\n\n<p>He then pointed out that multiplying a number by -1 was the same as rotating by an angle of 180\u00ba, like this:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_polarity-1024x389.png\" alt=\"\" class=\"wp-image-5932\" width=\"1024\" height=\"389\" srcset=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_polarity-1024x389.png 1024w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_polarity-300x114.png 300w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_polarity-768x292.png 768w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_polarity.png 1274w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 2: Multiplying a number by -1 is the same as rotating by 180\u00ba<\/figcaption><\/figure>\n\n\n\n<p>He then reasoned that, if this were true, then the square root of -1 must be the same as rotating by 90\u00ba.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_complex-1024x595.png\" alt=\"\" class=\"wp-image-5933\" width=\"1024\" height=\"595\" srcset=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_complex-1024x595.png 1024w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_complex-300x174.png 300w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_complex-768x446.png 768w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/numberline_complex.png 1245w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 3: This means that the square root of -1 must be the same a rotating by 90\u00ba.<\/figcaption><\/figure>\n\n\n\n<p>This meant that the number line we started with containing the real numbers is the X-axis on a 2-dimensional plane where the Y-axis contains the imaginary numbers. That plane is called the Z plane, where any point (which we&#8217;ll call &#8216;Z&#8217;) is the combination of a real number (X) and an imaginary number (Y).<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/Z_plane_sqrt-988x1024.png\" alt=\"\" class=\"wp-image-5934\" width=\"988\" height=\"1024\" srcset=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/Z_plane_sqrt-988x1024.png 988w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/Z_plane_sqrt-290x300.png 290w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/Z_plane_sqrt-768x796.png 768w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/Z_plane_sqrt.png 1275w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><figcaption>Figure 4: The Z-plane, where X-values are real and the Y-values are imaginary.<\/figcaption><\/figure>\n\n\n\n<p>If you look carefully at Figure 4, you&#8217;ll see that I used a &#8220;j&#8221; to indicate the imaginary portion of the number. Generally speaking, mathematicians use&nbsp;<em>i&nbsp;<\/em>and physicists and engineers use&nbsp;<em>j&nbsp;<\/em>so we\u2019ll stick with&nbsp;<em>j<\/em>. (The reason physics and engineering people use <em>j<\/em> is that they use <em>i<\/em> to mean &#8220;electrical current&#8221;.)<\/p>\n\n\n\n<p>\u201cWhat is&nbsp;<em>j<\/em>?\u201d I hear you cry. Well,&nbsp;<em>j&nbsp;<\/em>is just the square root of -1. Of course, there is no number that is the square root of -1<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"62\" height=\"19\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-2.png\" alt=\"\" class=\"wp-image-5731\"\/><\/figure><\/div>\n\n\n\n<p>and therefore<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"55\" height=\"20\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-3.png\" alt=\"\" class=\"wp-image-5732\"\/><\/figure><\/div>\n\n\n\n<p>Now, remember that&nbsp;<em>j&nbsp;<\/em>*&nbsp;<em>j&nbsp;<\/em>= -1. This is useful for any square root of any negative number, you just calculate the square root of the number pretending that it was positive, and then stick a&nbsp;<em>j&nbsp;<\/em>after it. So, since the square root of 16, abbreviated&nbsp;sqrt(16) = 4 and sqrt(-1) = j, then sqrt(-16) = 4j.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Complex numbers<\/h2>\n\n\n\n<p>Now that we have real and imaginary numbers, we can combine them to create a&nbsp;<em>complex<\/em>&nbsp;<em>number<\/em>. Remember that you can\u2019t just mix real numbers with imaginary ones \u2013 you keep them separate most of the time, so you see numbers like<\/p>\n\n\n\n<p style=\"text-align:center\"><em>3+2j<\/em><\/p>\n\n\n\n<p>This is an example of a complex number that contains a real component (the 3) and an imaginary component (the&nbsp;2j). In some cases, these numbers are further abbreviated with a single Greek character, like&nbsp;<strong><em>\u03b1&nbsp;<\/em><\/strong>or&nbsp;<strong><em>\u03b2<\/em><\/strong>, so you\u2019ll see things like<\/p>\n\n\n\n<p style=\"text-align:center\"><em>\u03b1&nbsp;= 3+2j<\/em><\/p>\n\n\n\n<p>In other cases, you\u2019ll see a bold letter like the following:<\/p>\n\n\n\n<p style=\"text-align:center\"><strong>Z<\/strong>&nbsp;<em>= 3+2j<\/em><\/p>\n\n\n\n<p>A lot of people do this because they like reserving Greek letters like&nbsp;<strong><em>\u03b1&nbsp;<\/em><\/strong>and&nbsp;<strong><em>\u03d5&nbsp;<\/em><\/strong>for variables associated with angles.<\/p>\n\n\n\n<p>Personally, I like seeing the whole thing &#8211; the real and the imaginary components &#8211; no reducing them to single Greek letters (they\u2019re for angles!) or bold letters.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Absolute Value (aka the Modulus)<\/h2>\n\n\n\n<p>The absolute value of a complex number is a little weirder than what we usually think of as an absolute value. In order to understand this, we have to look at complex numbers a little differently:<\/p>\n\n\n\n<p>Remember that&nbsp;<strong><em>j*j&nbsp;=&nbsp;-1<\/em><\/strong>.<\/p>\n\n\n\n<p>Also, remember that, if we have a cosine wave and we delay it by&nbsp;90\u00ba and then delay it by another 90\u00ba, it\u2019s the same as inverting the polarity of the cosine, in other words, multiplying the cosine by -1. So, we can think of the imaginary component of a complex number as being a real number that\u2019s been rotated by 90\u00ba, we can picture it as is shown in the figure below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-5.png\" alt=\"\" class=\"wp-image-5734\" width=\"298\" height=\"297\" srcset=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-5.png 298w, https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-5-150x150.png 150w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><figcaption>Figure 5. The relationship bewteen the real and imaginary components for the number&nbsp;<strong><em>(2 + 3 j)<\/em><\/strong>. Notice that the X and Y axes have been labeled the \u201creal\u201d and \u201cimaginary\u201d axes.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Notice that Figure 5&nbsp;actually winds up showing three things. It shows the real component along the x-axis, the imaginary component along the y-axis, and the&nbsp;<em>absolute value&nbsp;<\/em>or&nbsp;<em>modulus&nbsp;<\/em>of the complex number as the hypotenuse of the triangle. This is shown in mathematical notation in exactly the same way as in normal math \u2013 with vertical lines. For example, the modulus of&nbsp;<strong><em>2+3j<\/em><\/strong><strong><em>&nbsp;<\/em><\/strong>is written&nbsp;<strong><em>|<\/em><\/strong><strong><em>2+3j<\/em><\/strong><strong><em>|<\/em><\/strong><\/p>\n\n\n\n<p>This should make the calculation for determining the modulus of the complex number almost obvious. Since it\u2019s the length of the hypotenuse of the right triangle formed by the real and imaginary components, and since we already know the Pythagorean theorem then the modulus of the complex number&nbsp;<strong><em>(<\/em><\/strong><strong><em>a <\/em><\/strong><strong><em>+ <\/em><\/strong><strong><em>b j<\/em><\/strong><strong><em>)<\/em><\/strong>&nbsp;is<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"158\" height=\"38\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/Screenshot-2019-08-12-at-12.47.16.png\" alt=\"\" class=\"wp-image-5737\"\/><\/figure><\/div>\n\n\n\n<p>Given the values of the real and imaginary components, we can also calculate the angle of the hypotenuse from horizontal using the equation<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"143\" height=\"35\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-7.png\" alt=\"\" class=\"wp-image-5738\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"84\" height=\"36\" src=\"https:\/\/www.tonmeister.ca\/wordpress\/wp-content\/uploads\/image-8.png\" alt=\"\" class=\"wp-image-5739\"\/><\/figure><\/div>\n\n\n\n<p>This will come in handy later.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Complex notation or&#8230; Who cares?<\/h2>\n\n\n\n<p>This is probably the most important question for us. Imaginary numbers are great for mathematicians who like wrapping up loose ends that are incurred when a student asks \u201cwhat\u2019s the square root of -1?\u201d but what use are complex numbers for people in audio? Well, it turns out that they\u2019re used all the time, by the people doing analog electronics as well as the people working on digital signal processing. We\u2019ll get into how they apply to each specific field in a little more detail once we know what we\u2019re talking about, but let\u2019s do a little right now to get a taste.<\/p>\n\n\n\n<p>In the <a href=\"https:\/\/www.tonmeister.ca\/wordpress\/2019\/08\/08\/dfts-part-1-some-introductory-basics\/\">previous posting<\/a>, that introduces the trigonometric functions sine and cosine, we looked at how both functions are just one-dimensional representations of a two-dimensional rotation of a wheel. Essentially, the cosine is the horizontal displacement of a point on the wheel as it rotates. The sine is the vertical displacement of the same point at the same time. Also, if we know either one of these two components, we know:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>the diameter of the wheel and<\/li><li>how fast it\u2019s rotating<\/li><\/ol>\n\n\n\n<p>but we need to know&nbsp;<em>both&nbsp;<\/em>components to know the <em>direction<\/em> of rotation.<\/p>\n\n\n\n<p>At any given moment in time, if we froze the wheel, we\u2019d have some contribution of these two components \u2013 a cosine component and a sine component for a given angle of rotation. Since these two components are effectively identical functions that are&nbsp;<strong><em>90<\/em><\/strong>\u00ba&nbsp;apart (for example, a cossine wave is the same as a sine that\u2019s been delayed by&nbsp;<strong><em>90<\/em><\/strong>\u00ba) and since we\u2019re thinking of the real and imaginary components in a complex number as being&nbsp;<strong><em>90<\/em><\/strong>\u00ba&nbsp;apart, then we can use complex math to describe the contributions of the sine and cosine components to a signal.<\/p>\n\n\n\n<p>Huh?<\/p>\n\n\n\n<p>Let\u2019s look at an example. If the signal we wanted to look at a signal that consisted only of a cosine wave, then we\u2019d know that the signal had 100<strong><em>%&nbsp;<\/em><\/strong>cosine and 0<strong><em>%&nbsp;<\/em><\/strong>sine. So, if we express the cosine component as the real component and the sine as the imaginary, then what we have is:<\/p>\n\n\n\n<p style=\"text-align:center\">1 + 0 j<\/p>\n\n\n\n<p>If the signal were an upside-down cosine, then the complex notation for it would be&nbsp;<strong><em>(<\/em><\/strong><strong><em>&#8211;<\/em><\/strong><strong><em>1 + 0 <\/em><\/strong><strong><em>j<\/em><\/strong><strong><em>)&nbsp;<\/em><\/strong>because it would essentially be a cosine * -1 and no sine component. Similarly, if the signal was a sine wave, it would be notated as&nbsp;<strong><em>(0 <\/em><\/strong><strong><em>&#8211; <\/em><\/strong><strong><em>1 j)<\/em><\/strong>.<\/p>\n\n\n\n<p>This last statement should raise at least one eyebrow&#8230; Why is the complex notation for a positive sine wave&nbsp;<strong><em>(0 <\/em><\/strong><strong><em>&#8211; <\/em><\/strong><strong><em>1 j)<\/em><\/strong>? In other words, why is there a negative sign there to represent a positive sine component? (Hint &#8211; we want the wheel to turn clockwise&#8230; and clocks turn clockwise to maintain backwards compatibility with an earlier technology &#8211; the sundial. So, we use a negative number because of the direction of rotation of the earth&#8230;)<\/p>\n\n\n\n<p>This is fine, but what if the signal looks like a sinusoidal wave that\u2019s been delayed a little? As we saw in the <a href=\"https:\/\/www.tonmeister.ca\/wordpress\/2019\/08\/08\/dfts-part-1-some-introductory-basics\/\">previous posting<\/a>, we can create a sinusoid of any delay by adding the cosine and sine components with appropriate gains applied to each. <\/p>\n\n\n\n<p>So, is we made a signal that were 70.7<strong><em>%&nbsp;<\/em><\/strong>sine and 70.7<strong><em>%&nbsp;<\/em><\/strong>cosine. (If you don\u2019t know how I arrived that those numbers, check out the previous posting.) How would you express this using complex notation? Well, you just look at the relative contributions of the two components as before:<\/p>\n\n\n\n<p style=\"text-align:center\">0.707 &#8211; 0.707 j<\/p>\n\n\n\n<p>It\u2019s interesting to notice that, although this&nbsp;is actually a combination of a cosine and a sine with a specific ratio of amplitudes (in this case, both at 0.707 of \u201cnormal\u201d), the result will look like a sine wave that\u2019s been shifted in phase by&nbsp;-45\u00ba (or a cosine that\u2019s been phase-shifted by&nbsp;45\u00ba). In fact, this is the case \u2013 any phase-shifted sine wave can be expressed as the combination of its sine and cosine components with a specific amplitude relationship.<\/p>\n\n\n\n<p>Therefore (again), any sinusoidal waveform with any phase can be simplified and expressed as its two elemental components, the gains applied to the cosine (or real) and the sine (or imaginary). Once the signal is broken into these two constituent components, it cannot be further simplified.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.tonmeister.ca\/wordpress\/2019\/08\/19\/dfts-part-3-the-math\/\">Link to DFT\u2019s Part 3: The Math<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Links to:DFT\u2019s Part 1: Some introductory basics Whole Numbers and Integers Once upon a time you learned how to count. You were probably taught to count your fingers&#8230; 1, 2, 3, 4 and so on. Although no one told you so at the time, you were being taught a set of numbers called&nbsp;whole numbers. Sometime [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[63,4,59,43,42],"tags":[],"class_list":["post-5729","post","type-post","status-publish","format-standard","hentry","category-analysis","category-audio","category-digital-audio","category-dsp","category-math"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p48hIM-1up","_links":{"self":[{"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/posts\/5729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=5729"}],"version-history":[{"count":14,"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/posts\/5729\/revisions"}],"predecessor-version":[{"id":5937,"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/posts\/5729\/revisions\/5937"}],"wp:attachment":[{"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=5729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=5729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonmeister.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=5729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}