Partial Differential Equations, Winter 215 Homework #2 Due: Thursday, February 12th, 215 1. (Chapter 2.1) Solve u xx + u xt 2u tt =, u(x, ) = φ(x), u t (x, ) = ψ(x). Hint: Factor the operator as we did for the wave equation. Rewrite the equation in operator form and factor 2 u x + 2 u 2 xt u 22 t = ( 2 = x + 5 t ) ( x 4 t Change variables, let ζ = ax + bt, η = cx + dt. Then x = a ζ + b η t = c ζ + d η. ) u = We will choose a, b, c, d. Add the two above equations as in the factorization, x + 5 t = (a + 5b) ζ x 4 t = (a 4b) ζ + (c + 5d) η + (c 4d) η To simplify our equations take b = 1, a = 5 and d = 1, c = 4. (ζ = 5x + t, η = 4x + t.) Then, x + 5 t = η x 4 t = ζ. 1
So our original equation becomes u ζ,η =. Integrating first by ζ, then ζ we get, u(ζ, η) = f(ζ) + g(η) (1) = u(x, y) = f(t 5x) + g(4x + t), (2) where f and g are arbitrary functions of one variable. This is the general solution to the problem. To find the particular solution we have to plug in the initial conditions to find formulas for f and g in terms of φ and ψ φ(x) = u(x, ) = f( 5x) + g(4x) (3) ψ(x) = u t (x, ) = f ( 5x) + g (4x). (4) Notice that we differentiated equation (2) with respect to t and then evaluated at t = to get equation (4). Now differentiating equation (3) with respect to x we get φ (x) = 5f ( 5x) + 4g (4x). (5) Adding and subtracting the right multiples of (5) and (4) gives the equations g (4x) = 5ψ(x) + φ (x) f ( 5x) = 4ψ(x) φ (x) We integrate each equation with respect to x to get Changing variables gives 4 g(4x) = 5 5 f( 5x) = 4 g(u) = 2 f(u) = 2 u/4 u/5 x x ψ(s)ds + φ(x) + c 1 ψ(s)ds φ(x) + c 2. ψ(s)ds + 4 φ(u/4) + c 1 ψ(s)ds + 5 φ( u/5) + c 2. Finally if you plug our results for g and f back into equation (3) you will find that c 1 + c 2 =. And so we have completely determined the solution, u(x, y) = f(t 5x) + g(4x + t) (6) = 2 + 2 (t 5x)/5 (4x+t)/4 ψ(s)ds + 5 φ( (t 5x)/5) ψ(s)ds + 4 (7) φ((4x + t)/4).
2. (Chapter 2.2) If we take account of air resistance in the wave equation, we have an extra term proportional to the speed, Show that the energy of this system, ρu tt T u xx + ru t =, where r >. E = 1 2 (ρu 2 t + T u 2 x)dx is decreasing in time. Take inside the integral and use the chain rule to get t de dt = 1 2 = = Integrate u t u xx by parts, dx(2ρu t u tt + T 2u x u xt ) dx(u t (T u xx ru t ) + T u x u xt dx T u t u xx dx + T u x u xt dx r(u t ) 2 dx. u t u xx dx = u t ux u tx u x dx. The first term on the right side is zero because we assume u(x, t) = for x R for some R >. And so using this identity we get de dt = r(u t ) 2 dx <. 3. (Chapter 2.3) The purpose of this exercise is to show that the maximum principle is not true for the equation u t = xu xx because it has a variable coefficient. (a) Verify that u(x, t) = 2xt x 2 is a solution. (b) Find the location of its maximum in the closed rectangle { 2 x 2, t 1} (Hint: it s not on the bottom, left, or right sides of the boundary.) (a) u t = 2x and u xx = 2 and so u t = xu xx.
(b) To find global max and min, find critical points. u t = = u x, which gives x =, t =. Apply the second derivative test. u xx = 2 <, and ( utt u det tx = 4 <. (8) u xt u xx ) x=,t= So t =, x = is a saddle point. There are no other critical points so the maxima and minima of u on the closed rectangle must occur on the boundary. i. Bottom side: 2 x 2, t =. u(x, ) = x 2. Max occurs at x = and is u(, ) =. ii. Left side: x = 2, t 1. u( 2, t) = 4t 4. Increasing so max occurs at t = 1 and is u( 2, 1) = iii. Right side: x = 2, t 1. u(2, t) = 4t 4. Decreasing so max occurs at t = and is u(2, ) = 4 iv. Top side: 2 x 2, t = 1. u(x, 1) = x 2 2x. Max occurs at x = 1 and is u( 1, 1) = 1. So indeed the max occurs on the top side. 4. (Chapter 2.3) Prove the comparison principle for the heat equation: if u = u(x, t) and v = v(x, t) are two solutions to w t = kw xx, on x l, t T, and if u(x, t) v(x, t) for t =, x =, and x = l, then u(x, t) v(x, t) for all x l and t T. (Hint: maximum principle) Let w = u v. w satisfies the diffusion equation. Moreover, w(x, ), w(, t), and w(l, t). So w on the boundaries t =, x =, x = l. By the maximum principle w ( = u v) on the whole closed rectangle. 5. (Chapter 2.4) Solve the diffusion equation u t = u xx with the initial condition u(x, ) = φ(x) = { 1, x < l, x l. Write your answer in terms of Erf(x). The solution is u(x, t) = S(x y)φ(y)dy,
with S(u) = exp ( x 2 /4t)/(2 πt) since κ = 1 in the equation. Using the definition of φ, u(x, t) = 1 l 2 dy exp ( (x y) 2 /4t) πt l = 1 l x du exp ( u 2 /), π l x where we have used the change of variable u = (y x)/(). Split the integral into two pieces, u(x, t) = 1 l x π du exp ( u 2 /) + 1 π l x du exp ( u 2 /). For the second term on the right hand side use the change of variable s = u and then use the definition of Erf to get, u(x, t) = 1 ( ( ) ( )) l x l + x Erf 2 2 + Erf t 6. (Chapter 2.4) Solve the equation u t = ku xx with the initial condition u(x, ) = x 2 by the following special method. First show that u xxx satisfies the heat equation with initial condition zero. Therefore, u xxx (x, t) = for all x and t. Integrating this result three times gives u(x, t) = A(t)x 2 +B(t)x+C(t). Finally, it is easy to solve for A, B, and C by plugging into the original problem. Let v = u xxx. Then v t = (u xxx ) t = (u t ) xxx by exchange of partials = (κu xx ) xxx = κ (u xxx ) xx = κv xx. So v satisfies the diffusion equation. Moreover, v(x, ) = u xxx (x, ) =. The only solution of the diffusion equation with initial condition zero is the zero function (check). So integrating with respect to x three times, u xxx (x, t) = = u(x, t) = A(t)x 2 + B(t)x + C(t), where A, B, C are arbitrary functions of t. And so, u t = A (t)x 2 + B (t)x + C (t), u xx = 2A(t).
Since u satisfies the diffusion equation u t = u xx, we get A (t)x 2 + B (t)x + C (t) = 2A(t). Equating the coefficients gives C (t) = 2A(t), B (t) =, A (t) =. And so A(t) = c 1, B(t) = c 2, and C(t) = 2c 1 + c 3, where c 1, c 2, c 3 are constants. Now put in the initial conditions, x 2 = u(x, ) = c 1 x 2 + c 2 x + 2c 1 t + c 3. Equate coefficients again to get c 1 = 1 and c 2 = = c 3. So u = x 2 + 2xt 7. (Chapter 2.4) Solve the equation u t = ku xx bu, x R, t > with u(x, ) = φ(x), where b > is a constant. This is called the heat equation with constant dissipation at rate b. (Hint: define v = v(x, t) by u(x, t) = e bt v(x, t) and check what PDE v satisfies. It should be something you are familiar with.) Let v(x, t) = e bt u(x, t). Then v t = be bt u + e bt u t = be bt u + e bt (κu x x bu) by the diffusion equality for u = κe bt u xx. Since v xx = e bt u xx, we get that v satisfies the usual diffusion equation. Moreover, v(x, ) = u(x, ) = φ(x). And so v(x, t) = S(x y, t)φ(y)dy = u(x, t) = e bt v(x, t) = e bt S(x y, t)φ(y)dy.