Top Banner
편미분방정식 (Partial Differential Equation, PDE)
27

편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Nov 05, 2019

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

편미분방정식(Partial Differential Equation, PDE)

Page 2: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Fourier Series

Page 3: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Pages 479-480b

Page 4: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 5: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Fourier Series Example(Sawtooth wave)

π+= xxf )( ππ <<− x)()2( xfxf =+ π

if

and

Find the Fourier series of the function

Page 6: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Solution of Fourier series

)3sin312sin

21(sin2)( ⋅⋅⋅+−+−+= xxxxf π

∫=L

n dxLxnxf

Lb 0sin)(2 π

ππ

πn

nnxdxxbn cos2sin2

0−== ∫

xL

nxfn

nb πsin)(1∑∞

=

=

π=)0(f

Euler formula

Page 7: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Graph of Function f(x) by Matlab>> x=[-12:0.1:12];>> y=pi;>> for(n=1:1000)y=y+(-2/n)*cos(n*pi)*sin(n*x);end>> plot(x,y)

Page 8: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Matlab Program for Partial Sums S1,S2,S3,S20

>> x=-pi:0.01:pi;>> a=pi;>> for n=1:1:1;a=a+(-2/n)*cos(n*pi)*sin(n*x);end>> subplot(2,2,1);>> plot(x,a)>> b=pi;>> for n=1:1:2;b=b+(-2/n)*cos(n*pi)*sin(n*x);end>> subplot(2,2,2);>> plot(x,b)

>> c=pi;>> for n=1:1:3;c=c+(-2/n)*cos(n*pi)*sin(n*x);end>> subplot(2,2,3);>> plot(x,c)>> d=pi;>> for n=1:1:20;d=d+(-2/n)*cos(n*pi)*sin(n*x);end>> subplot(2,2,4);>> plot(x,d)

Page 9: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Partial sums S1,S2,S3,S20

Page 10: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Partial sums S1,S2,S3,S20• >> x=-pi:0.01:pi;

• >> a=pi;

• >> for n=1:1:1;

• a=a+(-2/n)*cos(n*pi)*sin(n*x);

• end

• >> b=pi;

• >> for n=1:1:2;

• b=b+(-2/n)*cos(n*pi)*sin(n*x);

• end

• >> c=pi;

• >> for n=1:1:3;

• c=c+(-2/n)*cos(n*pi)*sin(n*x);

• end

• >> d=pi;

• >> for n=1:1:20;

• d=d+(-2/n)*cos(n*pi)*sin(n*x);

• end

• >> plot(x,[a; b; c; d])

Page 11: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 12: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 13: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Separation of Variables and Fourier Series

Page 14: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

⎪⎪⎩

⎪⎪⎨

<<−

<<=

)2

()(2

)2

0(2

)(LxLxL

Lk

LxxLk

xf

Wave Equation with the following initial condition for the string fixed at both ends at x = 0 and L

PDE Wave Equation Analytical Solution

Page 15: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 16: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 17: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 18: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 19: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Matlab Program for Wave Equation Solution

)(*21&)(*

21

)(*21)(*

21),(

21 ctxfuctxfu

ctxfctxftxu

+=−=

++−=

∑∑

Page 20: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Graphs from the Matlab Program

Page 21: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed

Heat or Diffusion Equation

Page 22: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 23: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 24: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 25: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 26: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed
Page 27: 편미분방정식 (Partial Differential Equation, PDE) · 2 ( ) (2) 2 (0 2 ( ) x L L L x L k L x x L k f x Wave Equation with the following initial condition for the string fixed