
{"id":409,"date":"2016-11-04T02:07:32","date_gmt":"2016-11-04T02:07:32","guid":{"rendered":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/?p=409"},"modified":"2016-11-04T02:44:11","modified_gmt":"2016-11-04T02:44:11","slug":"week-10","status":"publish","type":"post","link":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/2016\/11\/04\/week-10\/","title":{"rendered":"Week 10"},"content":{"rendered":"<p>This week we began our study of <strong>Fourier Analysis<\/strong> and <strong>Fourier Series<\/strong>. \u00a0Our system of study for this discussion will be a string on which the wave velocity is <img src='https:\/\/s0.wp.com\/latex.php?latex=v&#038;bg=T&#038;fg=000000&#038;s=0' alt='v' title='v' class='latex' \/>, and which has fixed endpoints at x=0 and x=L where x is a position along the length of the string.<\/p>\n<p>Recall that the wave equation is<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B%5Cpartial%5E2+y%28x%2Ct%29%7D%7B%5Cpartial+x%5E2%7D+%3D+%5Cfrac%7B1%7D%7Bv%5E2%7D+%5Cfrac%7B%5Cpartial%5E2+y%28x%2Ct%29%7D%7B%5Cpartial+t%5E2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\frac{\\partial^2 y(x,t)}{\\partial x^2} = \\frac{1}{v^2} \\frac{\\partial^2 y(x,t)}{\\partial t^2}' title='\\frac{\\partial^2 y(x,t)}{\\partial x^2} = \\frac{1}{v^2} \\frac{\\partial^2 y(x,t)}{\\partial t^2}' class='latex' \/>\n<p>and that we can write any solution to this wave equation as a superposition of normal modes:<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=y%28x%2Ct%29+%3D+%5Csum_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+A_n+%5Ccos+%5Cleft%5B+%5Comega_n+t+-+%5Cdelta_n+%5Cright%5D+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='y(x,t) = \\sum_{n=1}^{\\infty} A_n \\cos \\left[ \\omega_n t - \\delta_n \\right] \\sin \\left[ \\frac{n \\pi x}{L} \\right]' title='y(x,t) = \\sum_{n=1}^{\\infty} A_n \\cos \\left[ \\omega_n t - \\delta_n \\right] \\sin \\left[ \\frac{n \\pi x}{L} \\right]' class='latex' \/>\n<p>where <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Comega_n+%3D+%5Cfrac%7Bn+%5Cpi+v%7D%7BL%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\omega_n = \\frac{n \\pi v}{L}' title='\\omega_n = \\frac{n \\pi v}{L}' class='latex' \/>.<\/p>\n<p>We would like to go from a set of initial conditions (position and velocity of every segment of the string) to the values of each <img src='https:\/\/s0.wp.com\/latex.php?latex=A_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_n' title='A_n' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\delta_n' title='\\delta_n' class='latex' \/>. \u00a0We were able to do this for systems with a finite number of degrees of freedom, so we should, in principle, be able to do it in the case of systems with a very large number of degrees of freedom.<\/p>\n<p>Let us first consider just a set of positions at time $t =0$. \u00a0Let&#8217;s say we are given these, and they take the form <img src='https:\/\/s0.wp.com\/latex.php?latex=y%28x%2Ct%3D0%29+%3D+f%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='y(x,t=0) = f(x)' title='y(x,t=0) = f(x)' class='latex' \/>, where <img src='https:\/\/s0.wp.com\/latex.php?latex=f%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='f(x)' title='f(x)' class='latex' \/> is any function with <img src='https:\/\/s0.wp.com\/latex.php?latex=f%280%29%3Df%28L%29%3D0&#038;bg=T&#038;fg=000000&#038;s=0' alt='f(0)=f(L)=0' title='f(0)=f(L)=0' class='latex' \/>. \u00a0These are the boundary conditions obeyed by our segment of string.<\/p>\n<p>If we now apply this to the expression for y in terms of the normal modes, we find<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=y%28x%2Ct%3D0%29+%3D+f%28x%29+%3D+%5Csum_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+A_n+%5Ccos+%28%5Cdelta_n%29+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='y(x,t=0) = f(x) = \\sum_{n=1}^{\\infty} A_n \\cos (\\delta_n) \\sin \\left[ \\frac{n \\pi x}{L} \\right]' title='y(x,t=0) = f(x) = \\sum_{n=1}^{\\infty} A_n \\cos (\\delta_n) \\sin \\left[ \\frac{n \\pi x}{L} \\right]' class='latex' \/>\n<p>Now for the moment, let us combine the coefficients of each <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Csin&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\sin' title='\\sin' class='latex' \/> into a set of coefficients <img src='https:\/\/s0.wp.com\/latex.php?latex=B_n+%3D+A_n+%5Ccos+%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='B_n = A_n \\cos \\delta_n' title='B_n = A_n \\cos \\delta_n' class='latex' \/>, in which case we then have<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=f%28x%29+%3D+%5Csum_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+B_n+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='f(x) = \\sum_{n=1}^{\\infty} B_n \\sin \\left[ \\frac{n \\pi x}{L} \\right]' title='f(x) = \\sum_{n=1}^{\\infty} B_n \\sin \\left[ \\frac{n \\pi x}{L} \\right]' class='latex' \/>\n<p>Let us now try to get the <img src='https:\/\/s0.wp.com\/latex.php?latex=B&#038;bg=T&#038;fg=000000&#038;s=0' alt='B' title='B' class='latex' \/> coefficients from the function <img src='https:\/\/s0.wp.com\/latex.php?latex=f%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='f(x)' title='f(x)' class='latex' \/>.<\/p>\n<p>To do this, we use a trick involving integrals of sin functions:<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B2%7D%7BL%7D+%5Cint_0%5EL+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D+%5Csin+%5Cleft%5B+%5Cfrac%7Bm+%5Cpi+x%7D%7BL%7D+%5Cright%5D+dx+%3D+%5Cleft%5C%7B+%5Cbegin%7Barray%7D%7Bll%7D+1+%26+n+%3D+m+%5C%5C+0+%26+n+%5Cne+m+%5Cend%7Barray%7D+%5Cright.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\frac{2}{L} \\int_0^L \\sin \\left[ \\frac{n \\pi x}{L} \\right] \\sin \\left[ \\frac{m \\pi x}{L} \\right] dx = \\left\\{ \\begin{array}{ll} 1 &amp; n = m \\\\ 0 &amp; n \\ne m \\end{array} \\right.' title='\\frac{2}{L} \\int_0^L \\sin \\left[ \\frac{n \\pi x}{L} \\right] \\sin \\left[ \\frac{m \\pi x}{L} \\right] dx = \\left\\{ \\begin{array}{ll} 1 &amp; n = m \\\\ 0 &amp; n \\ne m \\end{array} \\right.' class='latex' \/>\n<p>multiplying both sides of the equation for f(x) by <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B2%7D%7BL%7D+%5Csin+%5Cleft%5B+%5Cfrac%7Bm+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\frac{2}{L} \\sin \\left[ \\frac{m \\pi x}{L} \\right]' title='\\frac{2}{L} \\sin \\left[ \\frac{m \\pi x}{L} \\right]' class='latex' \/> and integrating over $x$ from $0$ to $L$, we find<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B2%7D%7BL%7D+%5Cint_0%5EL+f%28x%29+%5Csin+%5Cleft%5B+%5Cfrac%7Bm+%5Cpi+x%7D%7BL%7D+%5Cright%5D+%3D+%5Csum_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+B_n+%5Ccdot+%5Cfrac%7B2%7D%7BL%7D+%5Csin%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D+%5Csin+%5Cleft%5B+%5Cfrac%7Bm+%5Cpi+x%7D%7BL%7D+%5Cright%5D+dx+%3D+B_m&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\frac{2}{L} \\int_0^L f(x) \\sin \\left[ \\frac{m \\pi x}{L} \\right] = \\sum_{n=1}^{\\infty} B_n \\cdot \\frac{2}{L} \\sin\\left[ \\frac{n \\pi x}{L} \\right] \\sin \\left[ \\frac{m \\pi x}{L} \\right] dx = B_m' title='\\frac{2}{L} \\int_0^L f(x) \\sin \\left[ \\frac{m \\pi x}{L} \\right] = \\sum_{n=1}^{\\infty} B_n \\cdot \\frac{2}{L} \\sin\\left[ \\frac{n \\pi x}{L} \\right] \\sin \\left[ \\frac{m \\pi x}{L} \\right] dx = B_m' class='latex' \/>\n<p>This means that if we know the function f(x), and perform some integrals, then we can get the <img src='https:\/\/s0.wp.com\/latex.php?latex=B_m&#038;bg=T&#038;fg=000000&#038;s=0' alt='B_m' title='B_m' class='latex' \/> coefficients!<\/p>\n<p>See this weeks Mathematica code to begin to get an idea of how this works:<\/p>\n<p><a href=\"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-content\/uploads\/sites\/5\/2016\/11\/Week-10.nb\">https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-content\/uploads\/sites\/5\/2016\/11\/Week-10.nb<\/a><\/p>\n<p>We can then go a bit further. \u00a0Again, the goal is to get both the <img src='https:\/\/s0.wp.com\/latex.php?latex=A_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_n' title='A_n' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\delta_n' title='\\delta_n' class='latex' \/>. \u00a0In order to do this, we need not just initial position information, but also initial velocity information. \u00a0Right now, we have <img src='https:\/\/s0.wp.com\/latex.php?latex=B_n+%3D+A_n+%5Ccos+%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='B_n = A_n \\cos \\delta_n' title='B_n = A_n \\cos \\delta_n' class='latex' \/>, so we only have fixed a combination of <img src='https:\/\/s0.wp.com\/latex.php?latex=A_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_n' title='A_n' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\delta_n' title='\\delta_n' class='latex' \/>. \u00a0Let us say we have that velocity information as a given:<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cleft.+%5Cfrac%7B%5Cpartial+y%28x%2Ct%29%7D%7B%5Cpartial+t%7D+%5Cright%7C_%7Bt%3D0%7D+%3D+g%28x%29+%3D+%5Csum_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+A_n+%5Comega_n+%5Csin+%5Cdelta_n+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\left. \\frac{\\partial y(x,t)}{\\partial t} \\right|_{t=0} = g(x) = \\sum_{n=1}^{\\infty} A_n \\omega_n \\sin \\delta_n \\sin \\left[ \\frac{n \\pi x}{L} \\right]' title='\\left. \\frac{\\partial y(x,t)}{\\partial t} \\right|_{t=0} = g(x) = \\sum_{n=1}^{\\infty} A_n \\omega_n \\sin \\delta_n \\sin \\left[ \\frac{n \\pi x}{L} \\right]' class='latex' \/>.<\/p>\n<p>In this case, we can write <img src='https:\/\/s0.wp.com\/latex.php?latex=C_n+%3D+A_n+%5Comega_n+%5Csin+%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='C_n = A_n \\omega_n \\sin \\delta_n' title='C_n = A_n \\omega_n \\sin \\delta_n' class='latex' \/>, and thus we can also express the velocity of each point of the string in terms of a sum over sin functions:<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=g%28x%29+%3D+%5Csum_%7Bn%3D1%7D%5E%5Cinfty+C_n+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='g(x) = \\sum_{n=1}^\\infty C_n \\sin \\left[ \\frac{n \\pi x}{L} \\right]' title='g(x) = \\sum_{n=1}^\\infty C_n \\sin \\left[ \\frac{n \\pi x}{L} \\right]' class='latex' \/>\n<p>We can then use the same trick to get:<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=C_n+%3D+%5Cfrac%7B2%7D%7BL%7D+%5Cint_0%5EL+g%28x%29+%5Csin+%5Cleft%5B+%5Cfrac%7Bn+%5Cpi+x%7D%7BL%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='C_n = \\frac{2}{L} \\int_0^L g(x) \\sin \\left[ \\frac{n \\pi x}{L} \\right]' title='C_n = \\frac{2}{L} \\int_0^L g(x) \\sin \\left[ \\frac{n \\pi x}{L} \\right]' class='latex' \/>\n<p>So now you have all of the B&#8217;s, and all of the C&#8217;s (since we presumed we know both initial position, f(x), and initial velocity, g(x)). \u00a0We then have<\/p>\n<img src='https:\/\/s0.wp.com\/latex.php?latex=B_n+%3D+A_n+%5Ccos+%5Cdelta_n+%5Ctext%7B+and+%7D+C_n+%3D+A_n+%5Comega_n+%5Csin+%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='B_n = A_n \\cos \\delta_n \\text{ and } C_n = A_n \\omega_n \\sin \\delta_n' title='B_n = A_n \\cos \\delta_n \\text{ and } C_n = A_n \\omega_n \\sin \\delta_n' class='latex' \/>\n<p>From this, we can finally get both <img src='https:\/\/s0.wp.com\/latex.php?latex=A_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_n' title='A_n' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdelta_n&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\delta_n' title='\\delta_n' class='latex' \/>:<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=A_n+%3D+%5Cleft%5B+B_n%5E2+%2B+%5Cleft%28+%5Cfrac%7BC_n%7D%7B%5Comega_n%7D+%5Cright%29%5E2+%5Cright%5D%5E%7B1%2F2%7D+%5Ctext%7B+and+%7D+%5Cdelta_n+%3D+%5Carctan+%5Cleft%5B+%5Cfrac%7B+C_n%2F%5Comega_n+%7D%7BB_n%7D+%5Cright%5D&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_n = \\left[ B_n^2 + \\left( \\frac{C_n}{\\omega_n} \\right)^2 \\right]^{1\/2} \\text{ and } \\delta_n = \\arctan \\left[ \\frac{ C_n\/\\omega_n }{B_n} \\right]' title='A_n = \\left[ B_n^2 + \\left( \\frac{C_n}{\\omega_n} \\right)^2 \\right]^{1\/2} \\text{ and } \\delta_n = \\arctan \\left[ \\frac{ C_n\/\\omega_n }{B_n} \\right]' class='latex' \/>.<\/p>\n<p>I will soon be uploading a mathematica notebook that goes through an example of a particular set of initial positions and velocities, and go through how to get the A&#8217;s and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdelta&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\delta' title='\\delta' class='latex' \/>&#8216;s for a specific example.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week we began our study of Fourier Analysis and Fourier Series. \u00a0Our system of study for this discussion will be a string on which the wave velocity is , and which has fixed endpoints at x=0 and x=L where &hellip; <a href=\"https:\/\/jhubisz.expressions.syr.edu\/phy360\/2016\/11\/04\/week-10\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/posts\/409"}],"collection":[{"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/comments?post=409"}],"version-history":[{"count":10,"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/posts\/409\/revisions"}],"predecessor-version":[{"id":420,"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/posts\/409\/revisions\/420"}],"wp:attachment":[{"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/media?parent=409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/categories?post=409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jhubisz.expressions.syr.edu\/phy360\/wp-json\/wp\/v2\/tags?post=409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}