12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pde waves: string, quantum packet, and e&m 481written as the sum of normal modes:∞∑y(x, t)= B n sin k n x cos ω n t. (18.12)n=0(Yet we will lose linear superposition once we include nonlinear terms in the waveequation.) The Fourier coefficient B n is determined by the second initial condition(18.3), which describes how the wave is plucked:∞∑y(x, t =0)= B n sin nk 0 x. (18.13)nMultiply both sides by sin mk 0 x, substitute the value of y(x, 0) from (18.3), andintegrate from 0 to l to obtainB m =6.25 sin(0.8mπ)m 2 π 2 . (18.14)You will be asked to compare the Fourier series (18.12) to our numerical solution.While it is in the nature of the approximation that the precision of the numericalsolution depends on the choice of step sizes, it is also revealing to realize that theprecision of the analytic solution depends on summing an infinite number of terms,which can be done only approximately.18.2.2 Algorithm: Time-SteppingAs with Laplace’s equation and the heat equation, we look for a solution y(x, t)only for discrete values of the independent variables x and t on a grid (Figure 18.2):x = i∆x, i =1,...,N x , t= j∆t, j =1,...,N t , (18.15)y(x, t)=y(i∆x, i∆t) def= y i,j . (18.16)In contrast to Laplace’s equation where the grid was in two space dimensions, thegrid in Figure 18.2 is in both space and time. That being the case, moving acrossa row corresponds to increasing x values along the string for a fixed time, whilemoving down a column corresponds to increasing time steps for a fixed position.Even though the grid in Figure 18.2 may be square, we cannot use a relaxationtechnique for the solution because we do not know the solution on all four sides.The boundary conditions determine the solution along the right and left sides,while the initial time condition determines the solution along the top.As with the Laplace equation, we use the central-difference approximation todiscretize the wave equation into a difference equation. First we express the secondderivatives in terms of finite differences:∂ 2 y∂t 2 ≃ y i,j+1 + y i,j−1 − 2y i,j(∆t) 2 ,∂ 2 y∂x 2 ≃ y i+1,j + y i−1,j − 2y i,j(∆x) 2 . (18.17)−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.ALLpup_06.04 — <strong>2008</strong>/2/15 — Page 481

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!