Partial Differential Equations III/IV

[6pt] Exercise Sheet 6: Solutions


  1. 1.

    The Fourier transform: The heat equation with source term.
    Remark: In this HTML solution we will use the notation -1(g) instead of gˇ.

    • (i)

      By the Fundamental Theorem of Calculus

      x˙(t) =λGeλt+eλ(t-s)F(s)|s=t+0tλeλ(t-s)F(s)𝑑s
      =λGeλt+F(t)+λ0teλ(t-s)F(s)𝑑s
      =λx(t)+F(t)

      as claimed.

    • (ii)

      Taking the Fourier transform of ut=kuxx+f with respect to the x variable gives

      ut^=kuxx^+f^u^t(ξ,t)=k(iξ)2u^(ξ,t)+f^(ξ,t)=-kξ2u^(ξ,t)+f^(ξ,t).

      Taking the Fourier transform of the initial condition u(x,0)=g(x) gives

      u^(ξ,0)=g^(ξ).

      We have reduced the PDE to a one-parameter family of uncoupled ODEs, indexed by ξ:

      u^t=-kξ2u^+f^,u^(ξ,0)=g^(ξ).

      Applying part (i) with x=u^, λ=-kξ2, F=f^, G=g^ gives

      u^(ξ,t)=g^(ξ)e-kξ2t+0te-kξ2(t-s)f^(ξ,s)𝑑s.

      Therefore

      u(x,t)=-1(g^(ξ)e-kξ2t)+0t-1(e-kξ2(t-s)f^(ξ,s))𝑑s. (1)

      Recall that

      e-ax2^(ξ)=12ae-ξ24a.

      Therefore

      e-kξ2t=2ae-ax2^(ξ)fora=14kt.

      Since the product of Fourier transforms is the Fourier transform of a convolution, we obtain

      g^(ξ)e-kξ2t =2ag^(ξ)e-ax2^(ξ)
      =2a12πg*e-ax2^(ξ)
      =aπg*e-ax2^(ξ)
      =14πktg*e-x24kt^(ξ)

      since a=14kt. Therefore

      -1(g^(ξ)e-kξ2t)=14πktg*e-x24kt=Φ(,t)*g=-Φ(x-y,t)g(y)𝑑y (2)

      where Φ is the fundamental solution of the heat equation in . Similarly

      -1(e-kξ2(t-s)f^(ξ,s))=14πk(t-s)e-x24k(t-s)*f(,s)=-Φ(x-y,t-s)f(y,s)𝑑y. (3)

      Combining equations (1), (2) and (3) yields

      u(x,t)=-Φ(x-y,t)g(y)𝑑y+0t-Φ(x-y,t-s)f(y,s)𝑑y𝑑s

      as required.

  2. 2.

    The Fourier transform: The transport equation.

    • (i)

      By definition

      τav^(ξ) =12π-τav(x)e-iξx𝑑x
      =12π-v(x-a)e-iξx𝑑x
      =12π-v(y)e-iξ(y+a)𝑑y (y=x-a)
      =e-iξa12π-v(y)e-iξy𝑑y
      =e-iξav^(ξ)

      as required.

    • (ii)

      Taking the Fourier transform of the transport equation ut+cux=0 gives

      ut^+cux^=0u^t(ξ,t)+ciξu^(ξ,t)=0

      and taking the Fourier transform of the initial condition u(x,0)=g(x) gives

      u^(ξ,0)=g^(ξ).

      We have reduced the PDE to a one-parameter family of uncoupled ODEs, indexed by ξ:

      u^t=-ciξu^,u^(ξ,0)=g^(ξ).

      Recall that the ODE x˙=λx has solution x(t)=x(0)eλt. Applying this with x=u^, λ=-ciξ yields

      u^(ξ,t) =u^(ξ,0)e-ciξt
      =g^(ξ)e-ciξt
      =τag^(ξ)

      where a=ct, by part (i). By taking the inverse Fourier transform we obtain

      u(x,t)=τag(x)=g(x-a)=g(x-ct)

      as desired.

  3. 3.

    The Fourier transform: Schrödinger’s equation.

    • (i)

      Taking the Fourier transform of iut=-uxx with respect to the x variable gives

      iut^=-uxx^iu^t(ξ,t)=-(iξ)2u^(ξ,t)=ξ2u^(ξ,t).

      By multiplying by -i we can rewrite this as u^t=-iξ2u^. Taking the Fourier transform of the initial condition u(x,0)=g(x) gives

      u^(ξ,0)=g^(ξ).

      We have reduced the PDE to a one-parameter family of uncoupled ODEs, indexed by ξ:

      u^t=-iξ2u^,u^(ξ,0)=g^(ξ).

      Recall that the ODE x˙=λx has solution x(t)=x(0)eλt. Applying this with x=u^, λ=-iξ2 gives

      u^(ξ,t)=u^(ξ,0)e-iξ2t=g^(ξ)e-iξ2t. (4)

      To obtain u we need to compute the following inverse Fourier transform:

      -1(g^(ξ)e-iξ2t).

      The trick is to recognise that g^(ξ)e-iξ2t is the product of Fourier transforms, which follows from the fact that the Fourier transform of a Gaussian is a Gaussian. Recall that

      e-ax2^(ξ)=12ae-ξ24a.

      Therefore

      e-iξ2t=2ae-ax2^(ξ)fora=14it. (5)

      Since the product of Fourier transforms is the Fourier transform of a convolution, we obtain

      g^(ξ)e-kξ2t =2ag^(ξ)e-ax2^(ξ) (by equation (5))
      =2a12πg*e-ax2^(ξ)
      =aπg*e-ax2^(ξ).

      Combining this with equation (4) and taking the inverse Fourier transform gives

      u^(ξ,t)=aπg*e-ax2^(ξ)u(x,t)=aπg*e-ax2.

      Since a=14it and the convolution is commutative we arrive at

      u(x,t)=14πitg*e-x24it=14πiteix24t*g=14πit-ei(x-y)24tg(y)𝑑y

      as required.

    • (ii)

      In part (i) we showed that

      u^(ξ,t)=g^(ξ)e-iξ2t.

      Since the Fourier transform preserves the L2–norm,

      u(,t)L2()2 =u^(,t)L2()2
      =g^(ξ)e-iξ2tL2()2
      =-|g^(ξ)e-iξ2t|2𝑑ξ
      =-|g^(ξ)|2𝑑ξ
      =gL2()2

      as required.

  4. 4.

    The Fourier transform: The wave equation. Use the Fourier transform to derive the solution

    u(x,t)=12[g(x-ct)+g(x+ct)]

    of the wave equation

    utt=c2uxx for (x,t)×(0,),
    u(x,0)=g(x) for x,
    ut(x,0)=0 for x,

    where the constant c>0 is the wave speed. This is known as D’Alembert’s solution.
    Hint: Use Q2(i) and the fact that cos(cξt)=[exp(icξt)+exp(-icξt)]/2.

    Taking the Fourier transform of utt=c2uxx with respect to the x variable gives

    utt^=c2uxx^u^tt(ξ,t)=c2(iξ)2u^(ξ,t)=-c2ξ2u^(ξ,t).

    Taking the Fourier transform of the initial condition u(x,0)=g(x) gives

    u^(ξ,0)=g^(ξ).

    Taking the Fourier transform of the initial condition ut(x,0)=0 gives

    u^t(ξ,0)=0.

    We have reduced the PDE to a one-parameter family of uncoupled ODEs, indexed by ξ:

    u^tt=-c2ξ2u^,u^(ξ,0)=g^(ξ),u^t(ξ,0)=0.

    Recall that the ODE x¨=-λ2x has solution of the form x(t)=Acos(λt)+Bsin(λt). Applying this with x=u^, λ=cξ gives

    u^(ξ,t)=Acos(cξt)+Bsin(cξt).

    The initial conditions u^(ξ,0)=g^(ξ), u^t(ξ,0)=0 imply that A=g^(ξ) and B=0. Therefore

    u^(ξ,t) =g^(ξ)cos(cξt)
    =g^(ξ)[exp(icξt)+exp(-icξt)2]
    =12exp(icξt)g^(ξ)+12exp(-icξt)g^(ξ)
    =12τ-ag^(ξ)+12τag^(ξ)

    where a=ct, by Q2(i). Taking the inverse Fourier transform gives

    u(x,t) =12τ-ag(x)+12τag(x)
    =12g(x+a)+12g(x-a)
    =12[g(x+ct)+g(x-ct)]

    as required.

  5. 5.

    The Fourier transform of a derivative. By definition

    u^(ξ) =12π-u(x)e-iξx𝑑x
    =-12π-u(x)ddxe-iξx𝑑x (integration by parts)
    =-12π-u(x)(-iξ)e-iξx𝑑x
    =iξ12π-u(x)e-iξx𝑑x
    =iξu^(ξ)

    as required.

  6. 6.

    The Fourier transform of a convolution. By definition

    u*v^(ξ) =12π-(u*v)(x)e-iξx𝑑x
    =12π-(-u(z)v(x-z)𝑑z)e-iξx𝑑x
    =12π-(-u(z)v(x-z)𝑑z)e-iξze-iξ(x-z)𝑑x
    =12π-(-v(x-z)e-iξ(x-z)𝑑x)u(z)e-iξz𝑑z
    =-(12π-v(x~)e-iξx~𝑑x~)u(z)e-iξz𝑑z (x~=x-z)
    =-v^(ξ)u(z)e-iξz𝑑z
    =2πv^(ξ)12π-u(z)e-iξz𝑑z
    =2πv^(ξ)u^(ξ)

    as desired.

  7. 7.

    Proof of the Sobolev embedding using the Fourier transform.

    • (i)

      Since the Fourier transform preserves the L2–norm

      uH1()2 =uL2()2+uL2()2
      =u^L2()2+u^L2()2
      =u^L2()2+iξu^L2()2
      =-|u^(ξ)|2𝑑ξ+-|iξu^(ξ)|2𝑑ξ
      =-(1+|ξ|2)|u^(ξ)|2𝑑ξ.

      as required.

    • (ii)

      Following the hint

      u^L1() =-|u^(ξ)|𝑑ξ
      =-1(1+|ξ|2)1/2(1+|ξ|2)1/2|u^(ξ)|𝑑ξ
      (-1(1+|ξ|2)𝑑ξ)1/2(-(1+|ξ|2)|u^(ξ)|2𝑑ξ)1/2 (Cauchy-Schwarz)
      =(-1(1+|ξ|2)𝑑ξ)1/2uH1()
      =CuH1()

      where

      C=(-1(1+|ξ|2)𝑑ξ)1/2.

      If we can show that C is finite, then we’ve completed the proof. This is a simple calculus exercise; one way is as follows:

      C2 =201(1+ξ2)𝑑ξ
      =011(1+ξ2)𝑑ξ+11(1+ξ2)𝑑ξ
      011(1+0)𝑑ξ+11ξ2𝑑ξ
      =1+1
      =2<

      as required.

    • (iii)

      By the Fourier Inversion Theorem

      |u(x)| =|12π-u^(ξ)eiξx𝑑ξ|
      12π-|u^(ξ)||eiξx|𝑑ξ
      =12π-|u^(ξ)|𝑑ξ
      =12πu^L1()
      C2πuH1()

      by part (ii). Since this holds for all x,

      uL()C2πuH1()

      as required.

  8. 8.

    Fundamental Solution of the Heat Equation. We compute

    Φt(𝒙,t) =1(4πk)n2e-|𝒙|24kt(-n2t-n2-1+|𝒙|24kt2)
    Φxi(𝒙,t) =1(4πkt)n2e-|𝒙|24kt(-2xi4kt),
    2Φxi2(𝒙,t) =1(4πkt)n2e-|𝒙|24kt(-24kt+(2xi4kt)2)=1(4πkt)n2e-|𝒙|24kt(-12kt+xi24k2t2),
    ΔΦ(𝒙,t) =i=1n2Φxi2(𝒙,t)=1(4πkt)n2e-|𝒙|24kt(-n2kt+|𝒙|24k2t2).

    Therefore Φ satisfies Φt(𝒙,t)=kΔΦ(𝒙,t) for all 𝒙n, t>0, as required.

  9. 9.

    Finite speed of propagation for a degenerate diffusion equation.

    • (i)

      Observe that

      12(3kπt)13-16kx2t=0|x|=323k13π-16t13

      and so

      Φ(x,t)={12(3kπt)13-16kx2tif |x|<323k13π-16t13,0if |x|323k13π-16t13.

      Clearly Φ satisfies the degenerate diffusion equation for |x|>323k13π-16t13. For |x|<323k13π-16t13,

      Φt(x,t) =16(3kπt)-23(-3kπt2)+x26kt2=-16t(3kπt)13+x26kt2,
      Φx(x,t) =-x3kt,
      (a(Φ)Φx)(x,t) =-x6t(3kπt)13+x318kt2,
      (a(Φ)Φx)x(x,t) =-16t(3kπt)13+x26kt2.

      Therefore Φ satisfies the degenerate diffusion equation for all t>0 and all x with |x|323k13π-16t13.

    • (ii)

      For fixed t>0, Φ(x,t) is the maximum of a concave quadratic function and the zero function. The support of the map xΦ(x,t) is the compact interval

      [-323k13π-16t13,323k13π-16t13].
  10. 10.

    The mathematical equation that caused the banks to crash. Let t(x,τ) satisfy

    τ=T-t(x,τ).

    Differentiating this expression with respect to τ and x gives

    tτ=-1,tx=0.

    Let S(x,τ) satisfy

    x=ln(S(x,τ)K)+(r-12σ2)τ. (6)

    Differentiating this expressions with respect to τ gives

    0=KSSτK+r-12σ2Sτ=(12σ2-r)S.

    Differentiating equation (6) with respect to x gives

    1=KSSxKSx=S.

    Therefore

    uτ =Cerτ[rV+VSSτ+Vttτ]=Cerτ[rV+(12σ2-r)SVs-Vt],
    ux =Cerτ[VSSx+Vttx]=CerτSVS,
    uxx =Cerτ[SxVS+SVSSSx]=Cerτ[SVS+S2VSS].

    Therefore

    uτ-12σ2uxx =Cerτ[rV+(12σ2-r)SVs-Vt-12σ2(SVS+S2VSS)]
    =-Cerτ[Vt+12σ2S2VSS+rSVS-rV]
    =0

    since V satisfies the Black-Scholes PDE. This completes the proof.

  11. 11.

    The energy method: Uniqueness for the heat equation in a time dependent domain. Let u and v be solutions and let w=u-v. Then w satisfies

    wt-kwxx=0 for (x,t)U,
    w(a(t),t)=0 for t[0,T],
    w(b(t),t)=0 for t[0,T],
    w(x,0)=0 for x(a(0),b(0)).

    Multiply the equation wt=kwxx by w and integrate over (a(t),b(t)) to obtain

    a(t)b(t)wwt𝑑x=ka(t)b(t)wwxx𝑑x. (7)

    Recall the Fundamental Theorem of Calculus:

    ddta(t)b(t)f(x,t)𝑑x=a(t)b(t)ft(x,t)𝑑x+b˙(t)f(b(t),t)-a˙(t)f(a(t),t).

    We can use this to rewrite the left-hand side of equation (7) as follows:

    a(t)b(t)wwt𝑑x =ddt12a(t)b(t)w2(x,t)𝑑x-12b˙(t)w2(b(t),t)+12a˙(t)w2(a(t),t)
    =ddt12a(t)b(t)w2(x,t)𝑑x (8)

    since w(a(t),t)=w(b(t),t)=0. We rewrite the right-hand side of equation (7) using integration by parts:

    ka(t)b(t)wwxx𝑑x=kwwx|a(t)b(t)-ka(t)b(t)wx2𝑑x=-ka(t)b(t)wx2𝑑x, (9)

    again using the fact that w(a(t),t)=w(b(t),t)=0. Substituting (8) and (9) into (7) gives

    ddt12a(t)b(t)w2(x,t)𝑑x=-ka(t)b(t)wx2𝑑x0.

    Let

    E(t)=12a(t)b(t)w2(x,t)𝑑x.

    We have shown that E˙(t)0. Hence

    0E(t)E(0)=0

    since w=0 for t=0. Consequently E(t)=0 for all t. Therefore w=0 in U and so u=v, as required.

  12. 12.

    The energy method: Uniqueness for a 4th-order heat equation. Let u and v be solutions and let w=u-v. Then w satisfies

    wt+kwxxxx=0 for (x,t)(a,b)×(0,T], (10)
    w(a,t)=w(b,t)=0 for t[0,T], (11)
    wx(a,t)=wx(b,t)=0 for t[0,T], (12)
    w(x,0)=0 for x(a,b). (13)

    Multiplying the equation wt=-kwxxxx by w and integrating over (a,b) gives

    abwwt12tw2𝑑x =-kabwwxxxx𝑑x
    =-kwwxxx|ab+kabwxwxxx𝑑x
    =kabwxwxxx𝑑x (by (11))
    =kwxwxx|ab-kabwxxwxx𝑑x
    =-kabwxx2𝑑x (by (12)).

    Therefore

    ddt12abw2𝑑x=-kabwxx2𝑑x0

    and so

    0abw2(x,t)𝑑xabw2(x,0)𝑑x=0

    by (13). We conclude that w=0 and hence u=v, as required.

    We consider ut+kuxxxx=0 to be the 4th-order version of the heat equation ut-kuxx=0 since it has the same energy-decay property:

    ddtuL2([a,b])20

    (provided that u and ux vanish at x=a and x=b). The equation ut-kuxxxx=0 looks more similar to the heat equation ut-kuxx=0 (because of the minus sign), but its L2–energy grows with time:

    ddtuL2([a,b])20.
  13. 13.

    Asymptotic behaviour of the heat equation with time independent data. Let w(𝒙,t)=u(𝒙,t)-v(𝒙). We need to prove that limtwL2(Ω)=0. By subtracting the PDEs for u and v we find that w satisfies

    wt(𝒙,t)-kΔw(𝒙,t)=0 for (𝒙,t)Ω×(0,),
    w(𝒙,t)=0 for (𝒙,t)Ω×[0,),
    w(𝒙,0)=u0(𝒙)-v(𝒙) for 𝒙Ω.

    Multiplying the equation wt=kΔw by w and integrating by parts over Ω gives

    Ωwwt𝑑𝒙=kΩwΔw𝑑𝒙 ddt12Ωw2𝑑𝒙=kΩww𝒏dS-kΩwwd𝒙
    ddt12Ωw2𝑑𝒙=-kΩ|w|2𝑑𝒙 (14)

    since w=0 on Ω. By the Poincaré inequality, there exists a constant Cp>0 such that

    Ω|w|2𝑑𝒙CpΩ|w|2𝑑𝒙.

    Multiplying this by -k/Cp gives

    -kCpΩ|w|2𝑑𝒙-kΩ|w|2𝑑𝒙. (15)

    Combining equations (14), (15) yields

    ddt12Ωw2𝑑𝒙-kCpΩ|w|2𝑑𝒙.

    Define

    E(t)=Ωw2(𝒙,t)𝑑𝒙=wL2(Ω)2

    and λ=2kCp. We have shown that

    E˙-λE.

    By the Gr̈onwall inequality,

    E(t)e-λtE(0).

    Since λ>0, we conclude that E(t)0 as t. Therefore w0 in L2(Ω) as t, as required.

  14. 14.

    Asymptotic behaviour of the heat equation with time independent data in the L–norm.

    • (i)

      By linearity, w satisfies

      wt(x,t)-kwxx(x,t)=0 for (x,t)(a,b)×(0,),
      w(x,0)=u0(x)-v(x) for x(a,b),
      w(a,t)=w(b,t)=0 for t[0,).

      Multiplying the PDE by w and integrating over [a,b] gives

      abwwt𝑑x=kabwwxx𝑑xddt12abw2𝑑x=kwwx|ab=0-kabwx2𝑑x

      where we have used the Chain Rule and integration by parts. Note that the boundary terms vanish when we perform integration by parts since w(a,t)=w(b,t)=0. Therefore

      ddtabw2(x,t)𝑑x=-2kabwx2(x,t)𝑑x

      as required.

    • (ii)

      We can write the result of part (i) in terms of L2–norms as

      ddtwL2([a,b])2=-2kwxL2([a,b])2. (16)

      By the Poincaré inequality, there exists a constant C>0 such that

      wL2([a,b])2CwxL2([a,b])2. (17)

      Combining equations (16), (17) gives

      ddtwL2([a,b])2=-2kwxL2([a,b])2-2kCwL2([a,b])2. (18)

      Define

      E(t)=wL2([a,b])2.

      We can rewrite equation (18) as

      E˙-λE

      with λ=2k/C>0. By the Grönwall inequality,

      E(t)E(0)e-λt0as t.

      Therefore, by definition of E, w0 in L2([a,b]) as t, as required.

    • (iii)

      By differentiating the PDE for w with respect to t we obtain

      wtt(x,t)-kwtxx(x,t)=0 for (x,t)(a,b)×(0,),
      wt(a,t)=wt(b,t)=0 for t[0,).

      In particular, wt satisfies the heat equation with Dirichlet boundary conditions, just like w. Therefore the argument we applied in parts (i) and (ii) to w can also be applied to wt, which yields wt0 in L2([a,b]) as t.

    • (iv)

      We have

      wxL2([a,b])2 =abwx2(x,t)𝑑x
      =-12kddtabw2(x,t)𝑑x (by part (i))
      =-1kabw(x,t)wt(x,t)𝑑x
      1k(abw2(x,t)𝑑x)1/2(abwt2(x,t)𝑑x)1/2 (Cauchy-Schwarz)
      =1kwL2([a,b])wtL2([a,b])0as t

      by parts (ii) and (iii). Therefore wx0 in L2([a,b]) as t, as required. Note that we don’t really need wt0 in L2([a,b]) as t, we just need wtL2([a,b]) to be uniformly bounded in t.

    • (v)

      This final result follows from the Sobolev inequality: There exists a constant C>0 such that

      wL([a,b])CwH1([a,b])=C(wL2([a,b])+wxL2([a,b]))1/20as t

      by parts (ii) and (iv).

  15. 15.

    Applications of the maximum principle: Uniqueness and bounds on solutions.

    • (i)

      Let ΓT=[a,b]×{0}{a,b}×[0,T] be the parabolic boundary of ΩT. Let u,vC12(ΩT)C(Ω¯T) satisfy

      ut-uxx=1 in ΩT,
      u=0 in ΓT.

      Then w=u-vC12(ΩT)C(Ω¯T) satisfies

      wt-wxx=0 in ΩT,
      w=0 in ΓT.

      By the weak maximum principle

      maxΩ¯Tw=maxΓTw=0,minΩ¯Tw=minΓTw=0.

      Therefore w=0 and u=v, as required.

    • (ii)

      Since ut-uxx=1>0, the weak maximum principle gives

      minΩ¯Tu=minΓTu=0.

      This is the desired lower bound on u. We still need to prove the upper bound. Let v(x,t)=t. Then vt-vxx=1 and w=u-v satisfies

      wt-wxx=0 in ΩT,
      w=-t in ΓT.

      By the weak maximum principle

      maxΩ¯Tw=maxΓTw=maxΓT(-t)=0.

      Therefore w0 in ΩT and hence uv=t in ΩT, which is the desired upper bound.

  16. 16.

    Application of the maximum principle: Comparison Principle. Define v=u1-u2. Then v satisfies

    vt(𝒙,t)-kΔv(𝒙,t)=f1(𝒙)-f2(𝒙) for (𝒙,t)Ω×(0,T],
    v(𝒙,t)=g1(𝒙)-g2(𝒙) for (𝒙,t)Ω×[0,T],
    v(𝒙,0)=u10(𝒙)-u20(𝒙) for 𝒙Ω.

    Since f1f2, then

    vt-kΔv=f1-f20in ΩT.

    Therefore the weak maximum principle implies that

    maxΩT¯v=maxΓTv.

    For (𝒙,t)ΓT,

    v(𝒙,t)={g1(𝒙)-g2(𝒙)if (𝒙,t)Ω×[0,T],u10(𝒙)-u20(𝒙)if t=0,𝒙Ω.

    But

    g1-g20,u10-u200.

    Therefore v0 on ΓT and hence

    maxΩT¯v=maxΓTv0.

    Hence v0 in ΩT and so u1u2 in ΩT, as required.

  17. 17.

    Eigenfunctions of the Laplacian and an application to the heat equation. Formally (not worrying about interchanging limits and infinite sums),

    0 =vt-kΔv
    =n=1c˙n(t)un(𝒙)-kn=1cn(t)Δun(𝒙)
    =n=1c˙n(t)un(𝒙)+kn=1cn(t)λnun(𝒙)
    =n=1(c˙n(t)+kλncn(t))un(𝒙).

    Since {un}n forms an orthogonal basis, it follows that

    c˙n(t)+kλncn(t)=0

    for all n. We also have

    v(𝒙,0)=g(𝒙)n=1cn(0)un(𝒙)=n=1gnun(𝒙)n=1(cn(0)-gn)un(𝒙)=0.

    Again, since {un}n forms an orthogonal basis, it follows that

    cn(0)=gn

    for all n. We have reduced the PDE for v to a one-parameter family of uncoupled ODEs, indexed by n:

    c˙n(t)=-kλncn(t),cn(0)=gn.

    These ODEs have solutions

    cn(t)=gne-kλnt.

    Therefore

    v(𝒙,t)=n=1gne-kλntun(𝒙)

    as required.