{"id":422,"date":"2017-03-31T23:38:56","date_gmt":"2017-04-01T07:38:56","guid":{"rendered":"http:\/\/wonghoi.humgar.com\/blog\/?page_id=422"},"modified":"2017-05-04T23:44:32","modified_gmt":"2017-05-05T07:44:32","slug":"oversimplified-signals-and-systems-6-common-signal-building-blocks","status":"publish","type":"page","link":"https:\/\/wonghoi.humgar.com\/blog\/oversimplified-signals-and-systems-6-common-signal-building-blocks\/","title":{"rendered":"Oversimplified: Signals and Systems (6) \u2013 Common signal building blocks"},"content":{"rendered":"<\/p>\n<p>As you can see from the definition of convolution (in the previous post), it&#8217;s tedious, if not hard, to compute the convolution\u00a0for\u00a0arbitrary, generic signals. Working from the definition every time will be painful, especially when you get to do transforms later.<\/p>\n<blockquote>\n<p>You will find everything in this class super-hard if you just want to plug-and-chug.<\/p>\n<\/blockquote>\n<p>Having you plug the functions and numbers into the definitions and go work through the long math\u00a0is not the point of a signals-and-system class. In fact it&#8217;s quite the opposite:<\/p>\n<blockquote>\n<p>This class tries to teach you all the tricks available to AVOID the tedious math.<\/p>\n<\/blockquote>\n<p>That means if you get the essence, the problems are\u00a0supposed to be easy. A hard-working mentality is the biggest obstacle to doing well in signals-and-systems. It&#8217;s not uncommon for professors to come up with &#8216;hard&#8217; problems with dead easy solutions, which devastates and infuriates students enough that the ones who didn&#8217;t make it will hate it from the bottom of their hearts.<\/p>\n<hr \/>\n<p>From the previous posts, I repeatedly emphasized superposition as the #1 trick (property to exploit)\u00a0in this class. For most of the problems in the class, they are not arbitrary signals. Professors synthesize\u00a0them from\u00a0a common set of &#8216;building blocks&#8217;:<\/p>\n<ul>\n<li>Dirac-delta function &lt;-&gt; sinusoids (complex exponentials)<\/li>\n<li>Rectangular waveform &lt;-&gt; sinc functions<\/li>\n<li>(Occasionally) triangular waveform and ramps.\u00a0<\/li>\n<li>(Laplace and z-transforms): decaying\/growing exponentials.\u00a0<\/li>\n<li>(Controls) Heaviside step function<\/li>\n<\/ul>\n<p>Namely, they linearly combine (and window) the above building blocks to form the signals you see on exams.\u00a0They are basically testing whether you can break their synthetic waveform into the building blocks to apply the properties shown in the class.\u00a0<\/p>\n<hr \/>\n<p>Note that other than\u00a0exponentials (sinusoids are considered complex exponentials) and sinc, most of the building blocks are discontinuous functions that needs to be described mathematically. Here are 3 typical ways that I know:<\/p>\n<ol>\n<li>Split cases: the favorite for most textbooks and typed up solutions.\u00a0Drawing vector graphics (pictures) with LaTeX is such a huge pain.<\/li>\n<li>Indicator function: only after you get savvy with breaking functions into partitions (over different time segments) or add up overlaying blocks. Just a heads up that not all professors like it (because most likely you&#8217;re breaking up the cases in a different way than theirs), but they are obliged to accept the answer as it&#8217;s technically complete and correct.\n<p> <a href=\"https:\/\/wonghoi.humgar.com\/blog\/2016\/08\/14\/title-of-this-blog-site\/48c-2\/\" rel=\"attachment wp-att-280\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-280\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2016\/08\/48c-1.jpg\" alt=\"\" width=\"400\" height=\"301\" srcset=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2016\/08\/48c-1.jpg 400w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2016\/08\/48c-1-300x226.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><br \/>\n <\/a><\/li>\n<li>Draw it: that&#8217;s the <strong>best way<\/strong> if your grader is not anal-retentive. It also helps you and everybody get the idea. Make sure you label the transition points and amplitudes that uniquely define the shape you&#8217;ve drawn.<\/li>\n<\/ol>\n<p>Here is an example with unit rectangle function:<\/p>\n<p> <a href=\"https:\/\/wonghoi.humgar.com\/blog\/oversimplified-signals-and-systems-6-common-signal-building-blocks\/discontinuity\/\" rel=\"attachment wp-att-426\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-426\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2017\/03\/discontinuity.jpg\" alt=\"\" width=\"691\" height=\"867\" srcset=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2017\/03\/discontinuity.jpg 691w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2017\/03\/discontinuity-239x300.jpg 239w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/a><\/p>\n<p>Anything written in <span style=\"color: #00ff00;\">green <\/span>color are measure-zero technicalities (i.e EEs don&#8217;t care, but mathematicians will harp on you about it).<\/p>\n<hr \/>\n<p>There are good reasons why\u00a0certain signals are the common building blocks. I&#8217;ll give the stories behind them as they naturally show up in later topics.<\/p>\n<p>Understanding these artificial signal building blocks have practical advantages even with real-life signals. Being able to approximately break a\u00a0complicated signal in your head and predict the expected behavior\u00a0is valuable to developing insights to practical systems.<\/p>\n<p>If you have some really weird looking signal that cannot be easily (or approximately) broken down into building blocks, you&#8217;ll need a computer (either numerical crunching platforms like MATLAB or computer algebra systems like Maple\/Mathematica). I bet these won&#8217;t be on your standard 3-hour exam questions (likely take-homes or projects though).<\/p>\n<p>It&#8217;s super rare that you&#8217;d be given a difficult\u00a0function that cannot be decomposed that you&#8217;ll need to plug it into the integral (or sum) and painfully work through it. Note that there are a few rare situations (most likely a bonus question for the A+ students) that the easy solution to a hard problem is straight off the definition, so leave it as an option, but not your first weapon of choice.<\/p>\n<hr \/>\n<p>Before I write up more, take the opportunity to remember these common building blocks as we will use them over and over. Shoot me a comment below once you are comfortable with the common building blocks above and you want more written.<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_422\" class=\"pvc_stats all  \" data-element-id=\"422\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>As you can see from the definition of convolution (in the previous post), it&#8217;s tedious, if not hard, to compute the convolution\u00a0for\u00a0arbitrary, generic signals. Working from the definition every time will be painful, especially when you get to do transforms &hellip; <a href=\"https:\/\/wonghoi.humgar.com\/blog\/oversimplified-signals-and-systems-6-common-signal-building-blocks\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_422\" class=\"pvc_stats all  \" data-element-id=\"422\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-422","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/pages\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":9,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/pages\/422\/revisions"}],"predecessor-version":[{"id":472,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/pages\/422\/revisions\/472"}],"wp:attachment":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/media?parent=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}