Practice Midterm Exam Solutions - MIT Mathematicsmath.mit.edu/~jspeck/18.152_Spring...

3
MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS 18.152 Introduction to PDEs, Spring 2017 Professor: Jared Speck Practice Midterm Exam Solutions I. a) Setting u(t, x)= v(t)w(x) (1) leads to the ODEs v 0 (t) v(t) = w 00 (x) -w(x) = λ R. (2) The solutions to (2) that satisfy the boundary conditions are v(t)= Ae λt , (3) w(x)= B sin( p |λ|x), (4) where A, B are constants, λ = m 2 π 2 , (5) and m 0 is an integer. Thus, we have derived an infinite family of solutions u m (t, x) def = A m e m 2 π 2 t sin(mπx). (6) b) For a general f (x), the solution to the PDE is a superposition u(t, x)= X m=1 A m e m 2 π 2 t sin(mπx), (7) A m =2 Z [0,1] f (x) sin(mπx) dx. (8) Let n> 0 be any integer, and consider the initial datum f (x)= sin(nπx), where > 0 is a small number. Then this function satisfies max x[0,1] |f (x)|≤ , A m = if m = n, and A m = 0 otherwise. Thus, the corresponding solution is u(t, x)= e n 2 π 2 t sin(nπx). (9) At time t =1, the amplitude of this solution has grown to e n 2 π 2 . Thus, by choosing n to be large, at t =1, the solution can be arbitrarily large, even though the datum satisfies max x[0,1] |f (x)|≤ . In contrast, when f =0, the solution remains 0 for all time. Thus, arbitrarily small changes in the data can lead to arbitrarily large changes in the solution, and the backwards heat equation is therefore not well posed (i.e. it is ill-posed ). This is in complete contrast to the ordinary heat equation, which is well-posed. For the ordinary heat equation, the Fourier modes exponentially decay in time (as opposed to the exponential growth from (9)). 1

Transcript of Practice Midterm Exam Solutions - MIT Mathematicsmath.mit.edu/~jspeck/18.152_Spring...

Page 1: Practice Midterm Exam Solutions - MIT Mathematicsmath.mit.edu/~jspeck/18.152_Spring 2017/Exams... · MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS 18.152 Introduction to PDEs, Spring

MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS

18.152 Introduction to PDEs, Spring 2017 Professor: Jared Speck

Practice Midterm Exam Solutions

I. a) Setting

u(t, x) = v(t)w(x)(1)

leads to the ODEs

v′(t)

v(t)=

w′′(x)

−w(x)= λ ∈ R.(2)

The solutions to (2) that satisfy the boundary conditions are

v(t) = Aeλt,(3)

w(x) = B sin(√|λ|x),(4)

where A,B are constants,

λ = m2π2,(5)

and m ≥ 0 is an integer. Thus, we have derived an infinite family of solutions

um(t, x)def= Ame

m2π2t sin(mπx).(6)

b) For a general f(x), the solution to the PDE is a superposition

u(t, x) =∞∑m=1

Amem2π2t sin(mπx),(7)

Am = 2

∫[0,1]

f(x) sin(mπx) dx.(8)

Let n > 0 be any integer, and consider the initial datum f(x) = ε sin(nπx), where ε > 0is a small number. Then this function satisfies maxx∈[0,1] |f(x)| ≤ ε, Am = ε if m = n, andAm = 0 otherwise. Thus, the corresponding solution is

u(t, x) = εen2π2t sin(nπx).(9)

At time t = 1, the amplitude of this solution has grown to εen2π2. Thus, by choosing n to

be large, at t = 1, the solution can be arbitrarily large, even though the datum satisfiesmaxx∈[0,1] |f(x)| ≤ ε.

In contrast, when f = 0, the solution remains 0 for all time. Thus, arbitrarily smallchanges in the data can lead to arbitrarily large changes in the solution, and the backwardsheat equation is therefore not well posed (i.e. it is ill-posed). This is in complete contrast tothe ordinary heat equation, which is well-posed. For the ordinary heat equation, the Fouriermodes exponentially decay in time (as opposed to the exponential growth from (9)).

1

Page 2: Practice Midterm Exam Solutions - MIT Mathematicsmath.mit.edu/~jspeck/18.152_Spring 2017/Exams... · MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS 18.152 Introduction to PDEs, Spring

2 MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS

II. Define v(x) = u(x) +√R. Then ∆v = 0, and v(x) ≥ 0 for x ∈ BR(0). Thus by Harnack’s

inequality

R(R− |x|)(R + |x|)2

v(0) ≤ v(x) ≤ R(R + |x|)(R− |x|)2

v(0)(10)

holds for x ∈ BR(0). Thus, for x ∈ BR(0), we have{R(R− |x|)(R + |x|)2

− 1}√

R ≤ u(x) ≤{R(R + |x|)

(R− |x|)2− 1}√

R.(11)

For a fixed x, we let R→∞ and apply L’Hopital’s rule to conclude that

0 ≤ u(x) ≤ 0.(12)

Thus,

u(x) = 0.(13)

III. Let (t0, x0) be the point in [0, 2] × [0, 1] at which u achieves its max. We will show thatu(t0, x0) ≤ 0, which implies the desired conclusion.

If t0 = 0, x0 = 0, or x0 = 1, then the conditions on f, g, h immediately imply thatu(t0, x0) ≤ 0, and we are done. So let us assume that none of these cases occur.

If t0 = 2, then by the above remarks we can assume that x0 ∈ (0, 1). Then ∂tu(2, x0) ≥ 0,since otherwise we could slightly decrease t0 and cause the value of u to increase, which con-tradicts the definition of a max. Also, by standard calculus, we must have that ∂xu(2, x0) =0, and by Taylor expanding, we can conclude that ∂2xu(2, x0) ≤ 0 at the max. Thus,∂tu(2, x0) − ∂2xu(2, x0) ≥ 0. Using the PDE, we thus conclude that −u(2, x0) ≥ 0, andwe are done.

For the final case, we assume that 0 < t0 < 2 and x0 ∈ (0, 1). Then by standard calculus,∂tu(t0, x0) = 0 at the max. Also, as above, by standard calculus ∂2xu(t0, x0) ≤ 0 at the max.Thus, ∂tu(t0, x0) − ∂2xu(t0, x0) ≥ 0. Using the PDE, we thus conclude that −u(t0, x0) ≥ 0,and we are again done.

IV. a)Using the PDE and the fundamental theorem of calculus, we compute that

d

dtT (t) =

∫[0,1]

∂tu(t, x) dx =

∫[0,1]

∂2xu(t, x) dx = ∂xu(t, y)|y=1y=0 = ∂xu(t, 1)− ∂xu(t, 0) = 0.(14)

b) (2 pts.)Our previous studies of the heat equation have suggested that solutions to the heat equa-

tion tend to rapidly settle down to constant states as t → ∞. Since the thermal energy ispreserved in time, if u converges to a constant C, then it must be the case that

C =

∫[0,1]

C dy =

∫[0,1]

limt→∞

u(t, y) dy = limt→∞

∫[0,1]

u(t, y) dy = limt→∞T (t) = lim

t→∞T (0) = T (0).(15)

c) Define Cdef= T (0) =

∫[0,1]

f(x) dx. Also define w(x)def= u(t, x) − C. Note that part a)

implies that ∫[0,1]

w(t, x) dx = 0(16)

for all t.

Page 3: Practice Midterm Exam Solutions - MIT Mathematicsmath.mit.edu/~jspeck/18.152_Spring 2017/Exams... · MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS 18.152 Introduction to PDEs, Spring

MATH 18.152 - PRACTICE MIDTERM EXAM SOLUTIONS 3

Then we compute that

∂tw − ∂2xw = 0, (t, x) ∈ [0,∞)× [0, 1],(17)

w(0, x) = f(x)− C, x ∈ [0, 1],

∂xw(t, 0) = 0, ∂xw(t, 1) = 0, t ∈ [0,∞).

Define the energy

E2(t)def=

∫[0,1]

w2(t, x) dx.(18)

Using (17) and the boundary conditions, we compute that

d

dtE2(t) = 2

∫[0,1]

w(t, x)∂tw(t, x) dx = 2

∫[0,1]

w(t, x)∂2xw(t, x) dx = −2

∫[0,1]

(∂xw(t, x))2 dx.(19)

Now (16) implies that at each fixed t, there must exist a spatial point x0 such thatw(t, x0) = 0; otherwise, w(t, ·) would be strictly positive or negative in x, and therefore(16) could not hold. Using the fundamental theorem of calculus and the Cauchy-Schwarzinequality, we thus estimate that

|w(t, x)| = |w(t, x)− w(t, x0)| =∣∣∣∣∫ x

x0

∂yw(t, y) dy

∣∣∣∣(20)

≤∫ 1

0

|∂yw(t, y)| dy

≤(∫ 1

0

12 dy

)1/2(∫ 1

0

|∂yw(t, y)|2 dy)1/2

=

(∫ 1

0

|∂yw(t, y)|2 dy)1/2

.

It thus follows from (20) that

E2(t)def=

∫[0,1]

|w(t, x)|2 dx ≤ maxx∈[0,1]

|w(t, x)|2 ≤∫ 1

0

|∂yw(t, y)|2 dy.(21)

Combining (19) and (21), we have that

d

dtE2(t) ≤ −2E2(t).(22)

Integrating (21), we conclude that

E2(t) ≤ E2(0)e−2t,(23)

and so limt→∞E2(t) = 0. Thus,

limt→∞

∫[0,1]

|u(t, x)− C|2 dx = 0.(24)

Equivalently,

‖u(t, ·)− C‖L2([0,1]) → 0(25)

as t→∞. That is, u(t, ·) converges to C in the spatial L2([0, 1]) norm as t→∞.