MA-207 Differential Equations II Ronnie Sebastian Department of - - PowerPoint PPT Presentation

ma 207 differential equations ii
SMART_READER_LITE
LIVE PREVIEW

MA-207 Differential Equations II Ronnie Sebastian Department of - - PowerPoint PPT Presentation

MA-207 Differential Equations II Ronnie Sebastian Department of Mathematics Indian Institute of Technology Bombay Powai, Mumbai - 76 1 / 40 One-dimensional wave equation 2 / 40 One-dimensional wave equation Consider the following


slide-1
SLIDE 1

MA-207 Differential Equations II

Ronnie Sebastian

Department of Mathematics Indian Institute of Technology Bombay Powai, Mumbai - 76

1 / 40

slide-2
SLIDE 2

One-dimensional wave equation

2 / 40

slide-3
SLIDE 3

One-dimensional wave equation

Consider the following differential equation

2 / 40

slide-4
SLIDE 4

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0,

2 / 40

slide-5
SLIDE 5

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation.

2 / 40

slide-6
SLIDE 6

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation. Here k2 is a positive constant, x is the space variable and t is the time variable.

2 / 40

slide-7
SLIDE 7

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation. Here k2 is a positive constant, x is the space variable and t is the time variable. We wish to find solutions of the above PDE which satisfy the following initial and boundary conditions

2 / 40

slide-8
SLIDE 8

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation. Here k2 is a positive constant, x is the space variable and t is the time variable. We wish to find solutions of the above PDE which satisfy the following initial and boundary conditions The initial conditions are

2 / 40

slide-9
SLIDE 9

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation. Here k2 is a positive constant, x is the space variable and t is the time variable. We wish to find solutions of the above PDE which satisfy the following initial and boundary conditions The initial conditions are u(x, 0) = f(x) and ut(x, 0) = g(x).

2 / 40

slide-10
SLIDE 10

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation. Here k2 is a positive constant, x is the space variable and t is the time variable. We wish to find solutions of the above PDE which satisfy the following initial and boundary conditions The initial conditions are u(x, 0) = f(x) and ut(x, 0) = g(x). The (Dirichlet) boundary conditions are

2 / 40

slide-11
SLIDE 11

One-dimensional wave equation

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, called one-dimensional wave equation. Here k2 is a positive constant, x is the space variable and t is the time variable. We wish to find solutions of the above PDE which satisfy the following initial and boundary conditions The initial conditions are u(x, 0) = f(x) and ut(x, 0) = g(x). The (Dirichlet) boundary conditions are u(0, t) = u(L, t) = 0.

2 / 40

slide-12
SLIDE 12

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now.

3 / 40

slide-13
SLIDE 13

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t)

3 / 40

slide-14
SLIDE 14

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx

3 / 40

slide-15
SLIDE 15

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t).

3 / 40

slide-16
SLIDE 16

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t). We can now separate the variables:

3 / 40

slide-17
SLIDE 17

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t). We can now separate the variables: X′′(x) X(x) =

3 / 40

slide-18
SLIDE 18

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t). We can now separate the variables: X′′(x) X(x) = T ′′(t) k2T(t)

3 / 40

slide-19
SLIDE 19

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t). We can now separate the variables: X′′(x) X(x) = T ′′(t) k2T(t) The equality is between a function of x and a function of t,

3 / 40

slide-20
SLIDE 20

Dirichlet boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t). We can now separate the variables: X′′(x) X(x) = T ′′(t) k2T(t) The equality is between a function of x and a function of t, so both must be constant, say −λ.

3 / 40

slide-21
SLIDE 21

Dirichlet boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0

4 / 40

slide-22
SLIDE 22

Dirichlet boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions u(0, t) = X(0)T(t) = 0 and u(L, t) = X(L)T(t) = 0.

4 / 40

slide-23
SLIDE 23

Dirichlet boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions u(0, t) = X(0)T(t) = 0 and u(L, t) = X(L)T(t) = 0. Since we don’t want T to be identically zero, we get

4 / 40

slide-24
SLIDE 24

Dirichlet boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions u(0, t) = X(0)T(t) = 0 and u(L, t) = X(L)T(t) = 0. Since we don’t want T to be identically zero, we get X(0) = 0 and X(L) = 0. First let us solve the eigenvalue problem

4 / 40

slide-25
SLIDE 25

Dirichlet boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions u(0, t) = X(0)T(t) = 0 and u(L, t) = X(L)T(t) = 0. Since we don’t want T to be identically zero, we get X(0) = 0 and X(L) = 0. First let us solve the eigenvalue problem X′′(x) + λX(x) = 0 X(0) = X(L) = 0,

4 / 40

slide-26
SLIDE 26

Dirichlet boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions u(0, t) = X(0)T(t) = 0 and u(L, t) = X(L)T(t) = 0. Since we don’t want T to be identically zero, we get X(0) = 0 and X(L) = 0. First let us solve the eigenvalue problem X′′(x) + λX(x) = 0 X(0) = X(L) = 0, The eigenvalues and eigenfunctions are λn = n2π2 L2 Xn = sin nπx L , n ≥ 1.

4 / 40

slide-27
SLIDE 27

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable

5 / 40

slide-28
SLIDE 28

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λT(t) = 0

5 / 40

slide-29
SLIDE 29

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λT(t) = 0 Thus, for each λn we get a solution for T given by

5 / 40

slide-30
SLIDE 30

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λT(t) = 0 Thus, for each λn we get a solution for T given by Tn(t) = αn cos knπ L t

  • + βnL

knπ sin knπ L t

  • ,

5 / 40

slide-31
SLIDE 31

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λT(t) = 0 Thus, for each λn we get a solution for T given by Tn(t) = αn cos knπ L t

  • + βnL

knπ sin knπ L t

  • ,

where αn and βn are real numbers.

5 / 40

slide-32
SLIDE 32

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λT(t) = 0 Thus, for each λn we get a solution for T given by Tn(t) = αn cos knπ L t

  • + βnL

knπ sin knπ L t

  • ,

where αn and βn are real numbers. Thus, we get a solution for each n ≥ 1

5 / 40

slide-33
SLIDE 33

Dirichlet boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λT(t) = 0 Thus, for each λn we get a solution for T given by Tn(t) = αn cos knπ L t

  • + βnL

knπ sin knπ L t

  • ,

where αn and βn are real numbers. Thus, we get a solution for each n ≥ 1 un(x, t) = Tn(t)Xn(x) =

  • αn cos

knπ L t

  • +βnL

knπ sin knπ L t

  • sin nπx

L

5 / 40

slide-34
SLIDE 34

Dirichlet boundary conditions: Formal solution

From the above we conclude that one possible solution of the wave equation with boundary conditions is,

6 / 40

slide-35
SLIDE 35

Dirichlet boundary conditions: Formal solution

From the above we conclude that one possible solution of the wave equation with boundary conditions is, u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L .

6 / 40

slide-36
SLIDE 36

Dirichlet boundary conditions: Formal solution

From the above we conclude that one possible solution of the wave equation with boundary conditions is, u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . This function satisfies

6 / 40

slide-37
SLIDE 37

Dirichlet boundary conditions: Formal solution

From the above we conclude that one possible solution of the wave equation with boundary conditions is, u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . This function satisfies u(x, 0) =

  • n≥1

αn sin nπx L and ut(x, 0) =

  • n≥1

βn sin nπx L .

6 / 40

slide-38
SLIDE 38

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by

7 / 40

slide-39
SLIDE 39

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L .

7 / 40

slide-40
SLIDE 40

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions.

7 / 40

slide-41
SLIDE 41

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by

7 / 40

slide-42
SLIDE 42

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by utt = k2uxx 0 < x < L, t > 0

7 / 40

slide-43
SLIDE 43

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0

7 / 40

slide-44
SLIDE 44

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L

7 / 40

slide-45
SLIDE 45

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L

7 / 40

slide-46
SLIDE 46

Dirichlet boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) =

  • n≥1

αn sin nπx L and g(x) =

  • n≥1

βn sin nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L

7 / 40

slide-47
SLIDE 47

Dirichlet boundary conditions: Formal solution

Definition (continued) The formal solution of the above problem is

8 / 40

slide-48
SLIDE 48

Dirichlet boundary conditions: Formal solution

Definition (continued) The formal solution of the above problem is u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L .

8 / 40

slide-49
SLIDE 49

Dirichlet boundary conditions: Formal solution

Definition (continued) The formal solution of the above problem is u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . where

8 / 40

slide-50
SLIDE 50

Dirichlet boundary conditions: Formal solution

Definition (continued) The formal solution of the above problem is u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . where αn = 2 L L f(x) sin nπx L dx and βn = 2 L L g(x) sin nπx L dx.

8 / 40

slide-51
SLIDE 51

Dirichlet boundary conditions: Formal solution

Definition (continued) The formal solution of the above problem is u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . where αn = 2 L L f(x) sin nπx L dx and βn = 2 L L g(x) sin nπx L dx. We say u(x, t) is a formal solution, since the series for u(x, t) may NOT make sense, or it may not make sense to differentiate it term wise.

8 / 40

slide-52
SLIDE 52

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by

9 / 40

slide-53
SLIDE 53

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0

9 / 40

slide-54
SLIDE 54

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0

9 / 40

slide-55
SLIDE 55

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L

9 / 40

slide-56
SLIDE 56

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L

9 / 40

slide-57
SLIDE 57

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L has an actual solution, which is given by

9 / 40

slide-58
SLIDE 58

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L has an actual solution, which is given by u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L .

9 / 40

slide-59
SLIDE 59

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L has an actual solution, which is given by u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . where

9 / 40

slide-60
SLIDE 60

Dirichlet boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L] such that f(0) = f(L) = 0. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L has an actual solution, which is given by u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . where αn = 2 L L f(x) sin nπx L dx and βn = 2 L L g(x) sin nπx L dx.

9 / 40

slide-61
SLIDE 61

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by

10 / 40

slide-62
SLIDE 62

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0

10 / 40

slide-63
SLIDE 63

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 u(0, t) = u(L, t) = 0 t > 0

10 / 40

slide-64
SLIDE 64

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = sin πx + 3 sin 5πx 0 ≤ x ≤ 1

10 / 40

slide-65
SLIDE 65

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = sin πx + 3 sin 5πx 0 ≤ x ≤ 1 ut(x, 0) = sin 5πx − 26 sin 9πx 0 ≤ x ≤ 1

10 / 40

slide-66
SLIDE 66

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = sin πx + 3 sin 5πx 0 ≤ x ≤ 1 ut(x, 0) = sin 5πx − 26 sin 9πx 0 ≤ x ≤ 1 Since both f and g are given by their Fourier series in the above example, it is clear that α1 = 1 β1 = 0 α5 = 3 β5 = 1 α9 = 0 β9 = −26

10 / 40

slide-67
SLIDE 67

Dirichlet boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = sin πx + 3 sin 5πx 0 ≤ x ≤ 1 ut(x, 0) = sin 5πx − 26 sin 9πx 0 ≤ x ≤ 1 Since both f and g are given by their Fourier series in the above example, it is clear that α1 = 1 β1 = 0 α5 = 3 β5 = 1 α9 = 0 β9 = −26

10 / 40

slide-68
SLIDE 68

Dirichlet boundary conditions: Example

Example (continued) Thus, the solution to the above problem is given by u(x, t) = cos( √ 5πt) sin(πx) + (3 cos( √ 5πt)+ 1 5π √ 5 sin( √ 5πt)) sin(5πx) + −26 9π √ 5 sin( √ 9πt) sin(9πx)

11 / 40

slide-69
SLIDE 69

Dirichlet boundary conditions: Formal solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L]. Then the problem given by utt = k2uxx 0 < x < L, t > 0 u(0, t) = u(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L has an actual solution, which is given by u(x, t) =

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • sin nπx

L . where αn = 2 L L f(x) sin nπx L dx and βn = 2 L L g(x) sin nπx L dx.

12 / 40

slide-70
SLIDE 70

Neumann boundary condition

Consider the following differential equation utt = k2uxx, 0 < x < L, t > 0, We wish to find solutions of the above PDE which satisfy the following initial and boundary conditions The initial conditions are u(x, 0) = f(x) and ut(x, 0) = g(x). The (Neumann) boundary conditions are ux(0, t) = ux(L, t) = 0.

13 / 40

slide-71
SLIDE 71

Neumann boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now.

14 / 40

slide-72
SLIDE 72

Neumann boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t).

14 / 40

slide-73
SLIDE 73

Neumann boundary conditions: Getting some solutions

We will use the method of separation of variables to first find some solutions to the wave equation with boundary conditions. That is, we forget about the initial conditions for now. Suppose u(x, t) = X(x) T(t) Substituting this in wave equation utt = k2uxx X(x)T ′′(t) = k2X′′(x)T(t). We can now separate the variables: X′′(x) X(x) = T ′′(t) k2T(t) The equality is between a function of x and a function of t, so both must be constant, say −λ.

14 / 40

slide-74
SLIDE 74

Neumann boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0.

15 / 40

slide-75
SLIDE 75

Neumann boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions ux(0, t) = X′(0)T(t) = 0 and ux(L, t) = X′(L)T(t) = 0. Since we don’t want T to be identically zero, we get X′(0) = 0 and X′(L) = 0.

15 / 40

slide-76
SLIDE 76

Neumann boundary conditions: Getting some solutions

Thus, we get the conditions X′′(x) + λX(x) = 0 and T ′′(t) + k2λT(t) = 0. We also have the boundary conditions ux(0, t) = X′(0)T(t) = 0 and ux(L, t) = X′(L)T(t) = 0. Since we don’t want T to be identically zero, we get X′(0) = 0 and X′(L) = 0. First let us solve the eigenvalue problem X′′(x) + λX(x) = 0 X′(0) = X′(L) = 0, Recall from the section on eigenvalue problems, that we need that λ ≥ 0. The solutions to this problem are given by λn = n2π2 L2 n ≥ 0 Xn = cos nπx L , n ≥ 0.

15 / 40

slide-77
SLIDE 77

Neumann boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λnT(t) = 0 For n = 0 we get T0(t) = β0t + α0

16 / 40

slide-78
SLIDE 78

Neumann boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λnT(t) = 0 For n = 0 we get T0(t) = β0t + α0 For each n ≥ 1 we get a solution for T given by Tn(t) = αn cos knπ L t

  • + βnL

knπ sin knπ L t

  • ,

where αn and βn are real numbers.

16 / 40

slide-79
SLIDE 79

Neumann boundary conditions: Getting some solutions

For each λn we consider the equation in the t variable T ′′(t) + k2λnT(t) = 0 For n = 0 we get T0(t) = β0t + α0 For each n ≥ 1 we get a solution for T given by Tn(t) = αn cos knπ L t

  • + βnL

knπ sin knπ L t

  • ,

where αn and βn are real numbers. Thus, we get a solution for each n ≥ 1 un(x, t) = Tn(t)Xn(x) =

  • αn cos

knπ L t

  • +βnL

knπ sin knπ L t

  • cos nπx

L

16 / 40

slide-80
SLIDE 80

Neumann boundary conditions: Formal solution

For n = 0 we get u0(x, t) = T0(t)X0(x) = β0t + α0 From the above we conclude that one possible solution of the wave equation with boundary conditions is,

17 / 40

slide-81
SLIDE 81

Neumann boundary conditions: Formal solution

For n = 0 we get u0(x, t) = T0(t)X0(x) = β0t + α0 From the above we conclude that one possible solution of the wave equation with boundary conditions is, u(x, t) = β0t+α0+

  • n≥1
  • αn cos

knπ L t

  • +βnL

knπ sin knπ L t

  • cos nπx

L .

17 / 40

slide-82
SLIDE 82

Neumann boundary conditions: Formal solution

For n = 0 we get u0(x, t) = T0(t)X0(x) = β0t + α0 From the above we conclude that one possible solution of the wave equation with boundary conditions is, u(x, t) = β0t+α0+

  • n≥1
  • αn cos

knπ L t

  • +βnL

knπ sin knπ L t

  • cos nπx

L . This function satisfies

17 / 40

slide-83
SLIDE 83

Neumann boundary conditions: Formal solution

For n = 0 we get u0(x, t) = T0(t)X0(x) = β0t + α0 From the above we conclude that one possible solution of the wave equation with boundary conditions is, u(x, t) = β0t+α0+

  • n≥1
  • αn cos

knπ L t

  • +βnL

knπ sin knπ L t

  • cos nπx

L . This function satisfies u(x, 0) = α0 +

  • n≥1

αn cos nπx L and ut(x, 0) = β0 +

  • n≥1

βn cos nπx L .

17 / 40

slide-84
SLIDE 84

Neumann boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) = α0 +

  • n≥1

αn cos nπx L and g(x) = β0 +

  • n≥1

βn cos nπx L .

18 / 40

slide-85
SLIDE 85

Neumann boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) = α0 +

  • n≥1

αn cos nπx L and g(x) = β0 +

  • n≥1

βn cos nπx L . then we will have solved our wave equation with the given boundary and initial conditions.

18 / 40

slide-86
SLIDE 86

Neumann boundary conditions: Formal solution

Thus, if f(x) and g(x) have Fourier expansions given by f(x) = α0 +

  • n≥1

αn cos nπx L and g(x) = β0 +

  • n≥1

βn cos nπx L . then we will have solved our wave equation with the given boundary and initial conditions. Definition Consider the wave equation with initial and boundary values given by utt = k2uxx 0 < x < L, t > 0 ux(0, t) = ux(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L

18 / 40

slide-87
SLIDE 87

Neumann boundary conditions: Formal solution

Definition (continued) The formal solution of the above problem is u(x, t) = β0t + α0+

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • cos nπx

L . where α0 = 1 L L f(x) dx αn = 2 L L f(x) cos nπx L dx and β0 = 1 L L g(x) dx βn = 2 L L g(x) cos nπx L dx. We say u(x, t) is a formal solution, since the series for u(x, t) may NOT make sense, or it may not make sense to differentiate it term wise.

19 / 40

slide-88
SLIDE 88

Neumann boundary conditions: Actual solution

Theorem Let f and g be continuous and piecewise smooth functions on [0, L]. Then the problem given by utt = k2uxx 0 < x < L, t > 0 ux(0, t) = ux(L, t) = 0 t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L has an actual solution, which is given by u(x, t) = β0t + α0+

  • n≥1
  • αn cos

knπ L t

  • + βnL

knπ sin knπ L t

  • cos nπx

L . where α0 = 1 L L f(x) dx αn = 2 L L f(x) cos nπx L dx and β0 = 1 L L g(x) dx βn = 2 L L g(x) cos nπx L dx.

20 / 40

slide-89
SLIDE 89

Neumann boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 ux(0, t) = ux(L, t) = 0 t > 0 u(x, 0) = 34 + cos πx + 3 cos 5πx 0 ≤ x ≤ 1 ut(x, 0) = 23 + cos 5πx − 26 cos 9πx 0 ≤ x ≤ 1

21 / 40

slide-90
SLIDE 90

Neumann boundary conditions: Example

Example Consider the wave equation with initial and boundary value given by utt = 5uxx 0 < x < 1, t > 0 ux(0, t) = ux(L, t) = 0 t > 0 u(x, 0) = 34 + cos πx + 3 cos 5πx 0 ≤ x ≤ 1 ut(x, 0) = 23 + cos 5πx − 26 cos 9πx 0 ≤ x ≤ 1 Since both f and g are given by their Fourier series in the above example, it is clear that α0 = 34 β0 = 23 α1 = 1 β1 = 0 α5 = 3 β5 = 1 α9 = 0 β9 = −26

21 / 40

slide-91
SLIDE 91

Neumann boundary conditions: Example

Example (continued) Thus, the solution to the above problem is given by u(x, t) = 23t + 34 + cos( √ 5πt) cos(πx) + (3 cos( √ 5πt) + 1 5π √ 5 sin( √ 5πt)) cos(5πx) −26 9π √ 5 sin( √ 9πt) cos(9πx)

22 / 40

slide-92
SLIDE 92

Non homogeneous PDE: Dirichlet boundary condition

Let us now consider the following PDE utt − k2uxx = F(x, t) 0 < x < L, t > 0 u(0, t) = f1(t) t > 0 u(L, t) = f2(t) t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L How do we solve this?

23 / 40

slide-93
SLIDE 93

Non homogeneous PDE: Dirichlet boundary condition

Let us now consider the following PDE utt − k2uxx = F(x, t) 0 < x < L, t > 0 u(0, t) = f1(t) t > 0 u(L, t) = f2(t) t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L How do we solve this? Let us first make the substitution z(x, t) = u(x, t) − (1 − x L)f1(t) − x Lf2(t) Then clearly ztt − k2zxx = G(x, t) z(0, t) = 0 z(L, t) = 0 z(x, 0) = v(x) zt(x, 0) = w(x)

23 / 40

slide-94
SLIDE 94

Non homogeneous PDE: Dirichlet boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z.

24 / 40

slide-95
SLIDE 95

Non homogeneous PDE: Dirichlet boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z. By observing the boundary conditions, we guess that we should try and look for a solution of the type z(x, t) =

  • n≥1

Zn(t) sin(nπx L )

24 / 40

slide-96
SLIDE 96

Non homogeneous PDE: Dirichlet boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z. By observing the boundary conditions, we guess that we should try and look for a solution of the type z(x, t) =

  • n≥1

Zn(t) sin(nπx L ) Differentiating the above term by term we get that is satisfies the equation ztt − k2zxx =

  • n≥1
  • Z′′

n(t) + k2n2π2

L2 Zn(t)

  • sin(nπx

L )

24 / 40

slide-97
SLIDE 97

Non homogeneous PDE: Dirichlet boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z. By observing the boundary conditions, we guess that we should try and look for a solution of the type z(x, t) =

  • n≥1

Zn(t) sin(nπx L ) Differentiating the above term by term we get that is satisfies the equation ztt − k2zxx =

  • n≥1
  • Z′′

n(t) + k2n2π2

L2 Zn(t)

  • sin(nπx

L ) Let us write G(x, t) =

  • n≥1

Gn(t) sin(nπx L )

24 / 40

slide-98
SLIDE 98

Non homogeneous PDE: Dirichlet boundary condition

Thus, if we need ztt − k2zxx = G(x, t) then we should have that Gn(t) = Z′′

n(t) + k2n2π2

L2 Zn(t) (∗)

25 / 40

slide-99
SLIDE 99

Non homogeneous PDE: Dirichlet boundary condition

Thus, if we need ztt − k2zxx = G(x, t) then we should have that Gn(t) = Z′′

n(t) + k2n2π2

L2 Zn(t) (∗) We also need that z(x, 0) = v(x) and zt(x, 0) = w(x).

25 / 40

slide-100
SLIDE 100

Non homogeneous PDE: Dirichlet boundary condition

Thus, if we need ztt − k2zxx = G(x, t) then we should have that Gn(t) = Z′′

n(t) + k2n2π2

L2 Zn(t) (∗) We also need that z(x, 0) = v(x) and zt(x, 0) = w(x). If v(x) =

  • n≥1

bn sin nπx L w(x) =

  • n≥1

cn sin nπx L then we should have that Zn(0) = bn Z′

n(0) = cn

(!) Clearly, there is a unique solution to the differential equation (∗) with initial condition (!).

25 / 40

slide-101
SLIDE 101

Non homogeneous PDE: Dirichlet boundary condition

Thus, we let Zn(t) be this unique solution, then the series z(x, t) =

  • n≥1

Zn(t) sin(nπx L ) solves our non homogeneous PDE with Dirichlet boundary conditions for z.

26 / 40

slide-102
SLIDE 102

Non homogeneous PDE: Dirichlet boundary condition

Example Let us now consider the following PDE utt − uxx = et 0 < x < 1, t > 0 u(0, t) = 0 t > 0 u(1, t) = 0 t > 0 u(x, 0) = x(x − 1) 0 ≤ x ≤ 1 ut(x, 0) = 0 0 ≤ x ≤ 1

27 / 40

slide-103
SLIDE 103

Non homogeneous PDE: Dirichlet boundary condition

Example Let us now consider the following PDE utt − uxx = et 0 < x < 1, t > 0 u(0, t) = 0 t > 0 u(1, t) = 0 t > 0 u(x, 0) = x(x − 1) 0 ≤ x ≤ 1 ut(x, 0) = 0 0 ≤ x ≤ 1 From the boundary conditions u(0, t) = u(1, t) = 0 it is clear that we should look for solution in terms of Fourier sine series.

27 / 40

slide-104
SLIDE 104

Non homogeneous PDE: Dirichlet boundary condition

Example Let us now consider the following PDE utt − uxx = et 0 < x < 1, t > 0 u(0, t) = 0 t > 0 u(1, t) = 0 t > 0 u(x, 0) = x(x − 1) 0 ≤ x ≤ 1 ut(x, 0) = 0 0 ≤ x ≤ 1 From the boundary conditions u(0, t) = u(1, t) = 0 it is clear that we should look for solution in terms of Fourier sine series. The Fourier sine series of F(x, t) is given by (for n ≥ 1) Fn(t) = 2 1 F(x, t) sin nπx dx = 2 1 et sin nπx dx = 2(1 − (−1)n)et nπ

27 / 40

slide-105
SLIDE 105

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) Thus, the Fourier series for et is given by et =

  • n≥1

2(1 − (−1)n) nπ et sin nπx

28 / 40

slide-106
SLIDE 106

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) Thus, the Fourier series for et is given by et =

  • n≥1

2(1 − (−1)n) nπ et sin nπx The Fourier sine series for f(x) = x(x − 1) is given by x(x − 1) =

  • n≥1

4((−1)n − 1) (nπ)3 sin nπx

28 / 40

slide-107
SLIDE 107

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) Thus, the Fourier series for et is given by et =

  • n≥1

2(1 − (−1)n) nπ et sin nπx The Fourier sine series for f(x) = x(x − 1) is given by x(x − 1) =

  • n≥1

4((−1)n − 1) (nπ)3 sin nπx Substitute u(x, t) =

n≥1 un(t) sin nπx into the equation

utt − uxx = et

  • n≥1
  • u′′

n(t) + n2π2un(t)

  • sin nπx =
  • n≥1

2(1 − (−1)n) nπ et sin nπx

28 / 40

slide-108
SLIDE 108

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) Thus, for n ≥ 1 and even we get u′′

n(t) + n2π2un(t) = 0

that is, un(t) = Cn cos nπt + Dn sin nπt

29 / 40

slide-109
SLIDE 109

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) Thus, for n ≥ 1 and even we get u′′

n(t) + n2π2un(t) = 0

that is, un(t) = Cn cos nπt + Dn sin nπt Since n is even, the nth Fourier coefficient of f(x) is 0. Thus, we get that Cn = 0. Further, since g(x) = 0, the nth Fourier coefficient is 0. Thus, we get that Dn = 0.

29 / 40

slide-110
SLIDE 110

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) Thus, for n ≥ 1 and even we get u′′

n(t) + n2π2un(t) = 0

that is, un(t) = Cn cos nπt + Dn sin nπt Since n is even, the nth Fourier coefficient of f(x) is 0. Thus, we get that Cn = 0. Further, since g(x) = 0, the nth Fourier coefficient is 0. Thus, we get that Dn = 0. We conclude that un(t) = 0 for n ≥ 1 and even.

29 / 40

slide-111
SLIDE 111

Example For n ≥ 1 and odd we get u′′

n(t) + n2π2un(t) = 4

nπet If we put un(t) = cet then we get cet + n2cet = 4 nπet Solving the above we get that 4 n(n2 + 1)πet is a solution.

30 / 40

slide-112
SLIDE 112

Example For n ≥ 1 and odd we get u′′

n(t) + n2π2un(t) = 4

nπet If we put un(t) = cet then we get cet + n2cet = 4 nπet Solving the above we get that 4 n(n2 + 1)πet is a solution. The general solution is given by un(t) = 4 n(n2 + 1)πet + Cn cos nπt + Dn sin nπt Let us now use the initial condition to determine the constants.

30 / 40

slide-113
SLIDE 113

Non homogeneous PDE: Dirichlet boundary condition

Example (continued ...) In the case n ≥ 1 odd, we have the Fourier coefficient of x(x − 1) is

−8 (nπ)3 . Thus, we get

Cn + 4 n(n2 + 1)π = −8 (nπ)3 The nth Fourier coefficient of g is 0, and so we get u′

n(0) =

4 n(n2 + 1)π + nDn = 0 Thus, the solution we are looking for is given by u(x, t) =

  • n≥0

u2n+1(t) sin(2n + 1)πx where un(t), Cn and Dn are given as above.

31 / 40

slide-114
SLIDE 114

Non homogeneous PDE: Neumann boundary condition

Let us now consider the following PDE utt − k2uxx = F(x, t) 0 < x < L, t > 0 ux(0, t) = f1(t) t > 0 ux(L, t) = f2(t) t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L How do we solve this?

32 / 40

slide-115
SLIDE 115

Non homogeneous PDE: Neumann boundary condition

Let us now consider the following PDE utt − k2uxx = F(x, t) 0 < x < L, t > 0 ux(0, t) = f1(t) t > 0 ux(L, t) = f2(t) t > 0 u(x, 0) = f(x) 0 ≤ x ≤ L ut(x, 0) = g(x) 0 ≤ x ≤ L How do we solve this? Let us first make the substitution z(x, t) = u(x, t) − (x − x2 2L)f1(t) − x2 2Lf2(t) Then clearly ztt − k2zxx = G(x, t) zx(0, t) = 0 zx(L, t) = 0 z(x, 0) = v(x) zt(x, 0) = w(x)

32 / 40

slide-116
SLIDE 116

Non homogeneous PDE: Neumann boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z.

33 / 40

slide-117
SLIDE 117

Non homogeneous PDE: Neumann boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z. By observing the boundary conditions, we guess that we should try and look for a solution of the type z(x, t) =

  • n≥0

Zn(t) cos(nπx L )

33 / 40

slide-118
SLIDE 118

Non homogeneous PDE: Neumann boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z. By observing the boundary conditions, we guess that we should try and look for a solution of the type z(x, t) =

  • n≥0

Zn(t) cos(nπx L ) Differentiating the above term by term we get that is satisfies the equation ztt − k2zxx =

  • n≥0
  • Z′′

n(t) + k2n2π2

L2 Zn(t)

  • cos(nπx

L )

33 / 40

slide-119
SLIDE 119

Non homogeneous PDE: Neumann boundary condition

It is clear that we would have solved for u iff we have solved for z. In view of this observation, let us try and solve the problem for z. By observing the boundary conditions, we guess that we should try and look for a solution of the type z(x, t) =

  • n≥0

Zn(t) cos(nπx L ) Differentiating the above term by term we get that is satisfies the equation ztt − k2zxx =

  • n≥0
  • Z′′

n(t) + k2n2π2

L2 Zn(t)

  • cos(nπx

L ) Let us write G(x, t) =

  • n≥0

Gn(t) cos(nπx L )

33 / 40

slide-120
SLIDE 120

Non homogeneous PDE: Neumann boundary condition

Thus, if we need ztt − k2zxx = G(x, t) then we should have that Gn(t) = Z′′

n(t) + k2n2π2

L2 Zn(t) (∗)

34 / 40

slide-121
SLIDE 121

Non homogeneous PDE: Neumann boundary condition

Thus, if we need ztt − k2zxx = G(x, t) then we should have that Gn(t) = Z′′

n(t) + k2n2π2

L2 Zn(t) (∗) We also need that z(x, 0) = v(x) and zt(x, 0) = w(x).

34 / 40

slide-122
SLIDE 122

Non homogeneous PDE: Neumann boundary condition

Thus, if we need ztt − k2zxx = G(x, t) then we should have that Gn(t) = Z′′

n(t) + k2n2π2

L2 Zn(t) (∗) We also need that z(x, 0) = v(x) and zt(x, 0) = w(x). If v(x) =

  • n≥0

bn cos nπx L w(x) =

  • n≥0

cn cos nπx L then we should have that Zn(0) = bn Z′

n(0) = cn

(!) Clearly, there is a unique solution to the differential equation (∗) with initial condition (!).

34 / 40

slide-123
SLIDE 123

Non homogeneous PDE: Neumann boundary condition

Thus, we let Zn(t) be this unique solution, then the series z(x, t) =

  • n≥0

Zn(t) cos(nπx L ) solves our non homogeneous PDE with Dirichlet boundary conditions for z.

35 / 40

slide-124
SLIDE 124

Non homogeneous PDE: Neumann boundary condition

Example Let us now consider the following PDE utt − uxx = et 0 < x < 1, t > 0 ux(0, t) = 0 t > 0 ux(1, t) = 0 t > 0 u(x, 0) = x(x − 1) 0 ≤ x ≤ 1 ut(x, 0) = 0 0 ≤ x ≤ 1

36 / 40

slide-125
SLIDE 125

Non homogeneous PDE: Neumann boundary condition

Example Let us now consider the following PDE utt − uxx = et 0 < x < 1, t > 0 ux(0, t) = 0 t > 0 ux(1, t) = 0 t > 0 u(x, 0) = x(x − 1) 0 ≤ x ≤ 1 ut(x, 0) = 0 0 ≤ x ≤ 1 From the boundary conditions ux(0, t) = ux(1, t) = 0 it is clear that we should look for solution in terms of Fourier cosine series.

36 / 40

slide-126
SLIDE 126

Non homogeneous PDE: Neumann boundary condition

Example Let us now consider the following PDE utt − uxx = et 0 < x < 1, t > 0 ux(0, t) = 0 t > 0 ux(1, t) = 0 t > 0 u(x, 0) = x(x − 1) 0 ≤ x ≤ 1 ut(x, 0) = 0 0 ≤ x ≤ 1 From the boundary conditions ux(0, t) = ux(1, t) = 0 it is clear that we should look for solution in terms of Fourier cosine series. The Fourier cosine series of F(x, t) is given by (for n ≥ 0) F0(t) = 1 F(x, t) dx = 1 etdx = et Fn(t) = 2 1 F(x, t) cos nπx dx = 2 1 et cos nπx dx = 0 n > 0

36 / 40

slide-127
SLIDE 127

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) Thus, the Fourier series for et is simply et.

37 / 40

slide-128
SLIDE 128

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) Thus, the Fourier series for et is simply et. The Fourier cosine series for f(x) = x(x − 1) is given by x(x − 1) = −1 6 +

  • n≥1

2((−1)n + 1) (nπ)2 cos nπx

37 / 40

slide-129
SLIDE 129

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) Thus, the Fourier series for et is simply et. The Fourier cosine series for f(x) = x(x − 1) is given by x(x − 1) = −1 6 +

  • n≥1

2((−1)n + 1) (nπ)2 cos nπx Substitute u(x, t) =

n≥0 un(t) cos nπx into the equation

utt − uxx = et

  • n≥0
  • u′′

n(t) + n2π2un(t)

  • cos nπx = et

37 / 40

slide-130
SLIDE 130

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) Thus, for n = 0 we get u′′

0(t) = et

that is, u0(t) = et + Ct + D

38 / 40

slide-131
SLIDE 131

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) Thus, for n = 0 we get u′′

0(t) = et

that is, u0(t) = et + Ct + D Let us now use the initial condition to determine the constants.

38 / 40

slide-132
SLIDE 132

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) Thus, for n = 0 we get u′′

0(t) = et

that is, u0(t) = et + Ct + D Let us now use the initial condition to determine the constants. In the case n = 0, we have that the Fourier coefficient of x(x − 1) is −1

6 . Thus, when we put u0(0) = − 1 6 we get 1 + D = − 1 6.

We also have u′

0(0) = 0, that is,1 + C = 0.

Thus, u0(t) = et − t − 7 6

38 / 40

slide-133
SLIDE 133

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) For n ≥ 1 u′′

n(t) + n2π2un(t) = 0

that is, un(t) = Cn cos nπt + Dn sin nπt In the case n ≥ 1 odd, we have that the Fourier coefficient of x(x − 1) is 0. Thus, when we put un(0) = 0 we get Cn = 0. We also have u′

n(0) = 0, that is, Dn = 0. Thus, if n is odd then

un(t) = 0.

39 / 40

slide-134
SLIDE 134

Non homogeneous PDE: Neumann boundary condition

Example (continued ...) For n ≥ 1 u′′

n(t) + n2π2un(t) = 0

that is, un(t) = Cn cos nπt + Dn sin nπt In the case n ≥ 1 odd, we have that the Fourier coefficient of x(x − 1) is 0. Thus, when we put un(0) = 0 we get Cn = 0. We also have u′

n(0) = 0, that is, Dn = 0. Thus, if n is odd then

un(t) = 0. In the case n ≥ 1 even, we have the Fourier coefficient of x(x − 1) is

4 (nπ)2 . Thus, we get

Cn = 4 (nπ)2 We also have u′

n(0) = 0, that is, Dn = 0.

39 / 40

slide-135
SLIDE 135

Example (continued ...) Thus, when n is even we get un(t) = 4 (nπ)2 cos nπt The solution we are looking for is u(x, t) = et − t − 7 6 +

  • n≥1

4 4(nπ)2 cos 2nπt cos 2nπx

40 / 40