{"id":305,"date":"2009-12-11T19:00:23","date_gmt":"2009-12-11T19:00:23","guid":{"rendered":"https:\/\/blogs.mathworks.com\/steve\/2009\/12\/11\/continuous-time-fourier-transform-basics\/"},"modified":"2009-12-14T14:29:29","modified_gmt":"2009-12-14T14:29:29","slug":"continuous-time-fourier-transform-basics","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/steve\/2009\/12\/11\/continuous-time-fourier-transform-basics\/","title":{"rendered":"Continuous-time Fourier transform basics"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <p>In my planned (well, partially planned) discussion on Fourier transforms, I'll focus on three of the four types I listed in\r\n      my <a href=\"https:\/\/blogs.mathworks.com\/steve\/2009\/11\/23\/fourier-transforms\/\">November 23 post<\/a>:\r\n   <\/p>\r\n   <div>\r\n      <ul>\r\n         <li>Continuous-time Fourier transform<\/li>\r\n         <li>Discrete-time Fourier transform<\/li>\r\n         <li>Discrete Fourier transform<\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <p>The existence of multiple transform flavors, as well as the details of their relationships, is at the heart of much of the\r\n      confusion on this topic.\r\n   <\/p>\r\n   <p>Let's start with the continuous-time Fourier transform.  (When the context makes it clear whether I'm talking about the continuous-time\r\n      or the discrete-time flavor, I'll often just use the term <i>Fourier transform<\/i>.)\r\n   <\/p>\r\n   <p>The continuous-time Fourier transform is defined by this pair of equations:<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq65435.png\"> <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq81043.png\"> <\/p>\r\n   <p>There are various issues of convention and notation in these equations:<\/p>\r\n   <div>\r\n      <ul>\r\n         <li>You may see a different letter used for the frequency domain (<img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq84050.png\">  or <i>f<\/i>, for example). I am in the habit of using <img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq17683.png\">  for the continuous-time Fourier transform and <img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq84050.png\">  for the discrete-time Fourier transform.\r\n         <\/li>\r\n         <li>You may see <i>i<\/i> instead of <i>j<\/i> used to represent <img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq28253.png\"> . I tend to follow the electrical engineering tradition of using <i>j<\/i>.\r\n         <\/li>\r\n         <li>You may see <img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/continuous_time_fourier_transform_eq03041.png\">  terms appearing in the exponent of <i>e<\/i> and not in front of the inverse transform integral.\r\n         <\/li>\r\n         <li>You may see the signs of the exponent terms switched in the transform equations (that is, the minus sign in the exponent appears\r\n            in the inverse transform instead of the forward transform).\r\n         <\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <p>All these variations exist because we don't already have enough to worry about in the rest of our lives.<\/p>\r\n   <p>With the equations I use, the frequency domain unit is angular frequency (radians\/second).<\/p>\r\n   <p>There are so many useful Fourier transform properties and transform pairs that it's hard for to pick the bare minimum necessary\r\n      for the ideas I want to convey. Today I'll just show you two of the most essential Fourier transform pairs in signal processing\r\n      applications.\r\n   <\/p>\r\n   <p>Here's a cosine signal:<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/cos_t.png\"> <\/p>\r\n   <p><em>Plots corrected December 14 thanks to help from Mark Andrews.<\/em><\/p>\r\n   <p>And here is its Fourier transform:<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/F_cos_t.png\"> <\/p>\r\n   <p>This is what most people who have some knowledge of the Fourier transform expect to see.  A signal containing a single frequency\r\n      (here the frequency is 1 rad\/s) has all its frequency domain energy concentrated at that single frequency.\r\n   <\/p>\r\n   <p>The second pair is a rectangular pulse in the time domain and a sinc function in the frequency domain.<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/rect_t.png\"> <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/F_rect_t.png\"> <\/p>\r\n   <p>I'd like to call your attention especially to the dots (\"...\") at the left and right on the cosine and sinc function plots.\r\n       The dots are there to remind you that these functions have infinite extent. That is, they are nonzero over the entire domain.\r\n   <\/p>\r\n   <p>That's an important thing to keep in mind. I'll come back to that point next time.<\/p>\r\n   <p>One final note: I've started using the category \"Fourier transforms\" for posts on this topic.  You can see all the related\r\n      posts by clicking on the category link on the right side of the page.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_3e2decd9920244b792697d1a5e7aedfa() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='3e2decd9920244b792697d1a5e7aedfa ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 3e2decd9920244b792697d1a5e7aedfa';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = '';\r\n        copyright = 'Copyright 2009 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_3e2decd9920244b792697d1a5e7aedfa()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.9<br><\/p>\r\n<\/div>\r\n<!--\r\n3e2decd9920244b792697d1a5e7aedfa ##### SOURCE BEGIN #####\r\n%%\r\n% In my planned (well, partially planned) discussion on Fourier transforms, I'll\r\n% focus on three of the four types I listed in my\r\n% <https:\/\/blogs.mathworks.com\/steve\/2009\/11\/23\/fourier-transforms\/ November 23\r\n% post>:\r\n%\r\n% * Continuous-time Fourier transform\r\n% * Discrete-time Fourier transform\r\n% * Discrete Fourier transform\r\n%\r\n% The existence of multiple transform flavors, as well as the details of their\r\n% relationships, is at the heart of much of the confusion on this topic.\r\n%\r\n% Let's start with the continuous-time Fourier transform.  (When the context\r\n% makes it clear whether I'm talking about the continuous-time or the discrete-time\r\n% flavor, I'll often just use the term _Fourier transform_.)\r\n%\r\n% The continuous-time Fourier transform is defined by this pair of equations:\r\n% \r\n% $$X(\\Omega) = \\int_{-\\infty}^{\\infty} x(t) e^{-j\\Omega t} dt$$\r\n%\r\n% $$x(t) = \\frac{1}{2\\pi}\\int_{-\\infty}^{\\infty} X(\\Omega) e^{j\\Omega t} d\\Omega$$\r\n%\r\n% There are various issues of convention and notation in these equations:\r\n%\r\n% * You may see a different letter used for the frequency domain ($\\omega$ or _f_, for\r\n% example). I am in the habit of using $\\Omega$ for the continuous-time Fourier\r\n% transform and $\\omega$ for the discrete-time Fourier transform.\r\n% * You may see _i_ instead of _j_ used to represent $\\sqrt{-1}$. I tend to\r\n% follow the electrical engineering tradition of using _j_.\r\n% * You may see $2\\pi$ terms appearing in the exponent of _e_ and not in front\r\n% of the inverse transform integral.\r\n% * You may see the signs of the exponent terms switched in the transform\r\n% equations (that is, the minus sign in the exponent appears in the inverse\r\n% transform instead of the forward transform).\r\n%\r\n% All these variations exist because we don't already have enough to\r\n% worry about in the rest of our lives.\r\n%\r\n% With the equations I use, the frequency domain unit is angular frequency\r\n% (radians\/second).\r\n%\r\n% There are so many useful Fourier transform properties and transform pairs\r\n% that it's hard for to pick the bare minimum necessary for the ideas I want to\r\n% convey. Today I'll just show you two of the most essential Fourier transform\r\n% pairs in signal processing applications.\r\n%\r\n% Here's a cosine signal:\r\n%\r\n% <<https:\/\/blogs.mathworks.com\/images\/steve\/2009\/ctft-a.jpg>>\r\n%\r\n% And here is its Fourier transform:\r\n%\r\n% <<https:\/\/blogs.mathworks.com\/images\/steve\/2009\/ctft-b.jpg>>\r\n%\r\n% This is what most people who have some knowledge of the Fourier transform\r\n% expect to see.  A signal containing a single frequency (here the frequency is\r\n% 1 rad\/s) has all its frequency domain energy concentrated at that\r\n% single frequency.\r\n%\r\n% The second pair is a rectangular pulse in the time domain and a sinc function\r\n% in the frequency domain.\r\n%\r\n% <<https:\/\/blogs.mathworks.com\/images\/steve\/2009\/ctft-c.jpg>>\r\n%\r\n% <<https:\/\/blogs.mathworks.com\/images\/steve\/2009\/ctft-d.jpg>>\r\n%\r\n% I'd like to call your attention especially to the dots (\"...\") at the left and\r\n% right on the cosine and sinc function plots.  The dots are there to remind\r\n% you that these functions have infinite extent. That is, they are nonzero over\r\n% the entire domain.\r\n%\r\n% That's an important thing to keep in mind. I'll come back to that point next\r\n% time. \r\n%\r\n% One final note: I've started using the category \"Fourier transforms\" for posts\r\n% on this topic.  You can see all the related posts by clicking on the category\r\n% link on the right side of the page.\r\n##### SOURCE END ##### 3e2decd9920244b792697d1a5e7aedfa\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   In my planned (well, partially planned) discussion on Fourier transforms, I'll focus on three of the four types I listed in\r\n      my November 23 post:\r\n   \r\n   \r\n      \r\n    ... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/steve\/2009\/12\/11\/continuous-time-fourier-transform-basics\/\">read more >><\/a><\/p>","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/305"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}