Partial Differential Equations III/IV

[6pt] Exercise Sheet 2: Solutions


  1. 1.

    Burger’s equation as a model of traffic flow. We will rewrite the following PDE in the form of Burger’s equation:

    ρt+(ρvm(1-ρ/ρm))x=0.

    By expanding the second term on the left-hand side we obtain

    ρt+vmρx(1-ρρm)-vmρmρρx=0ρt+(vm-2vmρmρ)ρx=0.

    This suggest that we should define u(x,t)=vm-2vmρmρ(x,t). Then ρ=ρm2vm(vm-u) and

    ρt+(vm-2vmρmρ)ρx=0-ρm2vmut-ρm2vmuux=0ut+uux=0.

    Therefore u satisfies Burger’s equation, as required.

  2. 2.

    Revision of ODEs.

    • (i)

      Linear first-order ODEs. Multiplying the ODE by the integrating factor eA(τ) gives

      eAx˙+eAax=eAb ddτ(eAx)=eAb
      0τddτ(eAx)𝑑t=0τeA(t)b(t)𝑑t
      eA(τ)x(τ)-eA(0)x(0)=0τeA(t)b(t)𝑑t
      x(τ)=eA(0)-A(τ)x0+e-A(τ)0τeA(t)b(t)𝑑t.

      as required.

    • (ii)

      Separable ODEs. Since f(x(τ))0, we can divide the ODE by f(x(τ)) to obtain

      x˙(τ)=f(x(τ))g(τ) x˙(τ)f(x(τ))=g(τ)
      0τx˙(t)f(x(t))𝑑t=0τg(t)𝑑t
      x(0)x(τ)1f(X)dX=0τg(t)dt(change variables: X=x(t))
      x(0)x(τ)h˙(X)𝑑X=0τg(t)𝑑t
      h(x(τ))-h(x(0))=0τg(t)𝑑t
      h(x(τ))=h(x0)+0τg(t)𝑑t.

      Observe that h(x(τ))=1/f(x(τ))>0 by assumption. Therefore h is invertible in a neighbourhood of x(τ), and so

      x(τ)=h-1(h(x0)+0τg(t)𝑑t).

      as required.

  3. 3.

    The method of characteristics for a linear PDE. Solve the linear first-order PDE

    ux+uy+u=1 for (x,y)2,
    u=x2 for (x,y)×{0}.

    The PDE has the form

    a1(x,y,u(x,y))ux(x,y)+a2(x,y,u(x,y))uy(x,y)=b(x,y,u(x,y))

    with

    a1(x,y,z)=1,a2(x,y,z)=1,b(x,y,z)=1-z.

    The value of u is prescribed on the line Γ=×{0}, which we can parametrise by γ(s)=(x0(s),y0(s))=(s,0), s. Define

    z0(s)=x02(s)=s2.

    Step 1: We need to solve

    x~τ =a1(x~,y~,z~)=1, (1)
    y~τ =a2(x~,y~,z~)=1, (2)
    z~τ =b(x~,y~,z~)=1-z~, (3)

    subject to the initial conditions

    x~(0,s) =x0(s)=s, (4)
    y~(0,s) =y0(s)=0, (5)
    z~(0,s) =z0(s)=s2. (6)

    Equations (1), (4) imply that

    x~(τ,s)=τ+s.

    Equations (2), (5) imply that

    y~(τ,s)=τ.

    Multiply equation (3) by the integrating factor

    exp{1𝑑τ}=eτ

    to obtain

    eτz~τ+eτz~=eττ(eτz~)=eτ.

    Integrating from 0 to τ gives

    eτz~(τ,s)-e0z~(0,s)=0τet𝑑teτz~(τ,s)-s2=eτ-1z~(τ,s)=1+e-τ(s2-1).

    Step 2: We need to invert the map (τ,s)(x~(τ,s),y~(τ,s))=(τ+s,τ). Setting (x,y)=(τ+s,τ) and solving for τ and s in terms of x and y gives τ=y, s=x-τ=x-y. Therefore

    τ~(x,y)=y,s~(x,y)=x-y.

    Step 3: Finally,

    u(x,y)=z~(τ~(x,y),s~(x,y))=1+e-y((x-y)2-1)

    It is easy to check that u satisfies the Cauchy problem.

    Plotting the characteristics: The characteristics are the curves

    τ(x~(τ,s),y~(τ,s))=(τ+s,τ)=(s,0)+τ(1,1),

    which are in fact straight lines. We can write these lines in nonparametric form as y=x-s. Some representative characteristics are plotted below.

  4. 4.

    The method of characteristics for a linear PDE. We solve the linear first-order PDE

    yux-xuy=0 for x2+y2<a2,
    u(0,y)=a2-y2 for y(-a,a),

    where a>0 is a constant.

    The PDE has the form

    a1(x,y,u)ux+a2(x,y,u)uy=b(x,y,u)

    with

    a1(x,y,z)=y,a2(x,y,z)=-x,b(x,y,z)=0.

    The value of u is prescribed on the line Γ={0}×(-a,a), which we can parametrise by γ(s)=(x0(s),y0(s))=(0,s), s(-a,a). Define

    z0(s)=u(0,y0(s))=a2-s2.

    Step 1: We need to solve

    x~τ =y~, (7)
    y~τ =-x~, (8)
    z~τ =0, (9)

    subject to the initial conditions

    x~(0,s) =x0(s)=0, (10)
    y~(0,s) =y0(s)=s, (11)
    z~(0,s) =z0(s)=a2-s2. (12)

    The system of ODEs for x~ and y~ decouples from the ODE for z~. Let 𝒙~=(x~,y~). Multiply equation (7) by x~, equation (8) by y~, and add the resulting equations together to get

    x~x~τ+y~y~τ=0τ(x~2+y~2)=0.

    Therefore |𝒙~| is independent of τ and |𝒙~(τ,s)|=|𝒙~(0,s)|=|(x~0(s),y~0(s))|=s. Since |𝒙~|=s is constant in τ, we seek a solution of the form

    x~(τ,s)=scosθ(τ,s),y~(τ,s)=ssinθ(τ,s),

    where θ(τ,s) is to be determined. Substituting these expressions into equations (7) and (8) gives

    -sθτsinθ=ssinθ,
    sθτcosθ=-scosθ.

    It follows that θτ=-1 and θ(τ,s)=-τ+θ0(s). The initial conditions x~(0,s)=0, y~0(s)=s imply that θ0=π/2. Therefore

    x~(τ,s) =scos(π2-τ),
    y~(τ,s) =ssin(π2-τ).

    Remark: An alternative way of finding x~ and y~ is to differentiate equation (7) with respect to τ to get x~ττ=y~τ=-x~. Now solve this second-order ODE for x~.

    Equations (9) and (12) imply that

    z~(τ,s)=a2-s2.

    Step 2: If (x~,y~)=(scos(π/2-τ),ssin(π/2-τ)), then x~2+y~2=s2. It follows that

    s~(x,y)2=x2+y2.

    Since z~ is independent of τ, we do not need to know τ~ in order to find u.

    Step 3: Define

    u(x,y)=z~(τ~(x,y),s~(x,y))=a2-s~(x,y)2=a2-x2-y2

    It is easy to check that u satisfies the initial value problem.

  5. 5.

    The method of characteristics for a semilinear PDE. We solve the semilinear first-order PDE

    x2uy-ux=x2u2cosy

    subject to the condition u(0,y)=y2 for all y. The PDE has the form

    a1(x,y,u)ux+a2(x,y,u)uy=b(x,y,u)

    with

    a1(x,y,z)=-1,a2(x,y,z)=x2,b(x,y,z)=x2z2cosy.

    %

    The value of u is prescribed on the line Γ={0}×, which we can parametrise by γ(s)=(x0(s),y0(s))=(0,s), s. Define

    z0(s)=u(x0(s),y0(s))=u(0,s)=s2.

    Now we use the Method of Characteristics:

    Step 1: We need to solve

    x~τ =-1, (13)
    y~τ =x~2, (14)
    z~τ =x~2z~2cosy~, (15)

    subject to the initial conditions

    x~(0,s) =0, (16)
    y~(0,s) =s, (17)
    z~(0,s) =s2. (18)

    Equations (13), (16) imply that

    x~(τ,s)=-τ.

    Substituting this into equation (14) gives

    y~τ=τ2. (19)

    Equations (19), (17) imply that

    y~(τ,s)=13τ3+s.

    Substituting this into equation (18) gives

    z~τ=τ2cos(13τ3+s)z~2.

    We solve this using the method of separation:

    z~τ=τ2cos(13τ3+s)z~2 0τ1z~2(t,s)z~τ(t,s)𝑑t=0τt2cos(13t3+s)𝑑t
    z~(0,s)z~(τ,s)1Z2𝑑Z=sin(13t3+s)|0τ
    1z~(0,s)-1z~(τ,s)=sin(13τ3+s)-sins
    z~(τ,s)=11s2-sin(13τ3+s)+sins
    z~(τ,s)=s21-s2[sin(13τ3+s)-sins]

    since z~(0,s)=s2.

    Let us underline that the definition of z~ is meaningful, one for such values of τ,s for which

    1-s2[sin(13τ3+s)-sins]0.

    Let us discuss for which values of τ,s can we have

    sin(τ3/6)cos(s+τ3/6)=12s2.

    Let us set τ:=-(6s)13, then the previous equality reduces to

    sin(s)=-12s2,

    which clearly has infinitely many solutions, since -12s2[-1/2,0) as |s|1. So for these values of τ,s for instance, z~ is not well-defined.

    Step 2: We need to invert the map (τ,s)(-τ,13τ3+s). Setting (x,y)=(-τ,13τ3+s) and solving for τ and s in terms of x and y gives τ=-x, s=y-13τ3=y+13x3. Therefore

    τ~(x,y) =-x,
    s~(x,y) =y+13x3.

    Step 3: Finally,

    u(x,y)=z~(τ~(x,y),s~(x,y))=(y+13x3)21+(y+13x3)2[sin(y+13x3)-siny]

    By the same arguments as at the end of Step 1, this definition of u is meaningful only for points, where the denominator is nonzero. As we have seen there, there are infinitely many points, where this is not the case.

  6. 6.

    The method of characteristics for a quasilinear PDE. Solve the quasilinear first-order PDE

    (t+u)ux+tut=x-t for (x,t)×(0,),
    u(x,1)=1+x for x.

    The PDE has the form

    a1(x,t,u)ux+a2(x,t,u)ut=b(x,t,u)

    with

    a1(x,t,z)=t+z,a2(x,t,z)=t,b(x,t,z)=x-t.

    The value of u is prescribed on the line Γ=×{1}, which we can parametrise by γ(s)=(x0(s),t0(s))=(s,1), s. Define

    z0(s)=u(x0(s),t0(s))=1+t0(s)=1+s.

    Now we use the Method of Characteristics:

    Step 1: We need to solve

    x~τ =t~+z~, (20)
    t~τ =t~, (21)
    z~τ =x~-t~, (22)

    subject to the initial conditions

    x~(0,s) =s, (23)
    t~(0,s) =1, (24)
    z~(0,s) =1+s. (25)

    Equations (21) and (24) imply that

    t~(τ,s)=eτ.

    Differentiating equation (20) with respect to τ gives

    x~ττ=t~τ+z~τ=t~+x~-t~=x~

    by equations (21) and (22). The linear second-order ODE x~ττ=x~ has solution

    x~(τ,s)=Aeτ+Be-τ,

    where A and B are constants determined by the initial conditions x~(0,s)=s and

    x~τ(0,s)=(20)t~(0,s)+z~(0,s)=2+s.

    The initial conditions give

    A+B =s,
    A-B =2+s.

    Therefore A=1+s and B=-1 and

    x~(τ,s)=(1+s)eτ-e-τ.

    Substituting this into equation (22) yields

    z~τ=(1+s)eτ-e-τ-eτ=seτ-e-τ.

    By integrating we find that

    z~(τ,s)=z~(0,s)+0τz~τ(t,s)𝑑t=z~(0,s)+0τ(set-e-t)𝑑t=1+s+s(eτ-1)+(e-τ-1)=seτ+e-τ.

    Step 2: We need to invert the map (τ,s)(x~(τ,s),t~(τ,s))=((1+s)eτ-e-τ,eτ). Setting (x,t)=((1+s)eτ-e-τ,eτ) and solving for τ and s in terms of x and t gives

    τ=logt,s=e-τ(x+e-τ)-1=1t(x+1t)-1.

    Therefore

    τ~(x,t)=logt,s~(x,t)=1t(x+1t)-1.

    Step 3: We have discovered that

    u(x,t) =z~(τ~(x,t),s~(x,t))=s~(x,t)eτ~(x,t)+e-τ~(x,t)
    =(1t(x+1t)-1)t+1t=x+2t-t

    Let’s verify that u satisfies the Cauchy problem:

    (t+u)ux+tut=(x+2t)+t(-2t2-1)=x-t
    u(x,1)=x+1
  7. 7.

    The method of characteristics for a quasilinear PDE. Find u(x1,x2) satisfying the quasilinear PDE

    uux1+ux2=1

    and the Cauchy condition u(x1,x1)=12x1. The PDE has the form

    a1(x1,x2,u)ux1+a2(x1,x2,u)ux2=b(x1,x2,u)

    with

    a1(x1,x2,z)=z,a2(x1,x2,z)=1,b(x,t,z)=1.

    The value of u is prescribed on the line Γ={(x1,x1):x1}, which we can parametrise by γ(s)=(x10(s),x20(s))=(s,s), s. Define

    z0(s)=u(x10(s),x20(s))=u(s,s)=12s.

    Now we use the Method of Characteristics:

    Step 1: We need to solve

    x~1τ =z~, (26)
    x~2τ =1, (27)
    z~τ =1, (28)

    subject to the initial conditions

    x~1(0,s) =s, (29)
    x~2(0,s) =s, (30)
    z~(0,s) =12s. (31)

    Equations (27), (30) imply that

    x~2(τ,s)=τ+s,

    and equations (28), (31) imply that

    z~(τ,s)=τ+12s.

    Substituting this into equation (26) yields

    x~1τ=τ+12s.

    Integrating gives

    x~1(τ,s)=x~1(0,s)+0τ(t+12s)𝑑t=s+12τ2+12sτ=s+12τ(τ+s).

    Step 2: We need to invert the map (τ,s)(x~1(τ,s),x~2(τ,s))=(s+12τ(τ+s),τ+s). Let us notice that this is not possible in neighborhoods of points (τ,s) for which τ+s=2.

    We set (x1,x2)=(s+12τ(τ+s),τ+s) and try to solve for τ and s in terms of x1 and x2. We get τ=x2-s and

    x1=s+12τ(τ+s)=s+12(x2-s)x2s=x1-12x221-12x2=2x1-x222-x2.

    Therefore

    τ=x2-2x1-x222-x2=2(x2-x1)2-x2

    and

    τ~(x1,x2)=2(x2-x1)2-x2  s~(x1,x2)=2x1-x222-x2.

    We notice that these terms are not meaningful for x2=2. This is corresponding exactly to the case where τ+s=2 (since x2=τ+s).

    Step 3: Finally

    u(x1,x2) =z~(τ~(x1,x2),s~(x1,x2))=τ~(x1,x2)+12s~(x1,x2)
    =2(x2-x1)2-x2+2x1-x222(2-x2)
    =4x2-2x1-x222(2-x2)

    This expression is meaningful only when x20. If (x1,x2)=(2,2), then the value of the solution is given by the value of the Cauchy data, for any other point (x1,2) the solution is not defined.

  8. 8.

    The method of characteristics is independent of the parametrisation of Γ. Consider the transport equation

    ut+cux=0 for (x,t)×(0,),
    u(x,0)=g(x) for x.

    This equation has the form a1ux+a2ut=b with

    a1(x,t,z)=c,a2(x,t,z)=1,b(x,t,z)=0.

    The value of u is prescribed on the line Γ=×{0}. We can parametrise Γ by γ:Γ, γ(s)=(x0(s),y0(s))=(λs,0), λ>0. Define

    z0(s)=u0(x0(s),t0(s))=g(x0(s))=g(λs).

    Now we use the Method of Characteristics:

    Step 1: We need to solve

    x~τ =c, (32)
    t~τ =1, (33)
    z~τ =0, (34)

    subject to the initial conditions

    x~(0,s) =λs, (35)
    t~(0,s) =0, (36)
    z~(0,s) =g(λs). (37)

    Equation (32) implies that

    x~(τ,s)=cτ+A(s),

    where A is to be determined. Equation (35) implies that A(s)=λs. Therefore

    x~(τ,s)=cτ+λs.

    Similarly, equations (33) and (36) imply that

    t~(τ,s)=τ,

    and equations (34) and (37) imply that

    z~(τ,s)=g(λs).

    Step 2: Now we need to invert the function (x~(τ,s),t~(τ,s))=(cτ+λs,τ). Setting (x,t)=(cτ+λs,τ) and solving for τ and s in terms of x and t gives τ=t and s=(x-cτ)/λ=(x-ct)/λ. Therefore

    τ~(x,t)=t,s~(x,t)=x-ctλ.

    Step 3: Finally,

    u(x,t):=z~(τ~(x,t),s~(x,t))=g(λs~(x,t))=g(x-ct)

    as required.

  9. 9.

    Nonexistence due to a characteristic point.

    • (i)

      We can parametrise Ω by γ(θ)=(cosθ,sinθ), θ[0,2π). The point 𝒑 corresponds to parameter θ=π4 since γ(π4)=(cosπ4,sinπ4)=𝒑. The vector 𝒏(θ)=(cosθ,sinθ) is the unit outward-pointing normal to Ω at point γ(θ). We have

      𝒂(cosθ,sinθ)𝒏(θ)=(-1,1)(cosθ,sinθ)=sinθ-cosθ.

      In particular, taking θ=π4 gives

      𝒂(cosπ4,sinπ4)𝒏(π4)=sinπ4-cosπ4=0.

      Therefore the vector field 𝒂 is tangent to Ω at 𝒑 and hence 𝒑 is a characteristic point. All the other points of Ω are noncharacteristic except for the point -𝒑.

    • (ii)

      Suppose for contradiction that there exists a function u:U satisfying

      𝒂u=0 in U, (38)
      u=g on UΩ, (39)

      where U2 is an open set containing 𝒑. Chose ϕ(0,π4) sufficiently small so that the line joining 𝒑1:=γ(π4-ϕ) to 𝒑2:=γ(π4+ϕ) lies in U. This line is tangent to the constant vector field 𝒂 since

      𝒑2-𝒑1 =(cos(π4+ϕ)-cos(π4-ϕ)sin(π4+ϕ)-sin(π4-ϕ))=(-2sinϕ2sinϕ)=2sinϕ(-11)=2sinϕ𝒂.

      Since 𝒂u=0, then u is constant in direction 𝒂, and hence u(𝒑1)=u(𝒑2). In case this doesn’t convince you, a more algebraic argument is as follows:

      u(𝒑2)-u(𝒑1) =01tu(t𝒑2+(1-t)𝒑1)𝑑t (Fundamental Theorem of Calculus)
      =01u(t𝒑2+(1-t)𝒑1)(𝒑2-𝒑1)𝑑t (Chain Rule)
      =2sinϕ01u(t𝒑2+(1-t)𝒑1)𝒂=0𝑑t (equation (38))
      =0,

      which again shows that u(𝒑1)=u(𝒑2). This contradicts the Cauchy condition (39) since

      u(𝒑1)=g(𝒑1)=cos(π4-ϕ)cos(π4+ϕ)=g(𝒑2)=u(𝒑2).

      (Sketch the graph of the cosine function to convince yourself of this, and recall that ϕ(0,π4).)

      Finally, the Cauchy problem has a global solution u:Ω¯ for any continuously differentiable function g satisfying

      g(γ(π4-ϕ))=g(γ(π4+ϕ))ϕ[0,π].

      For example, we could take g(cosθ,sinθ)=sin(2θ). Another possibility is to simply take g(x,y)=x+y, in which case the solution will be u(x,y)=x+y.

  10. 10.

    Nonuniqueness or nonexistence due to a characteristic Cauchy curve. Consider the PDE

    ux(x,y)+uy(x,y)=1 for (x,y)2, (40)
    u(x,x)=x for x.
    • (i)

      The PDE has the form

      a1(x,y,u(x,y))ux(x,y)+a2(x,y,u(x,y))uy(x,y)=b(x,y,u(x,y))

      with

      a1(x,y,z)=1,a2(x,y,z)=1,b(x,y,z)=1.

      Let 𝒂=(a1,a2). The value of u is prescribed on the Cauchy curve Γ={(x,x):x}, which can be parametrised by γ(s)=(x0(s),y0(s))=(s,s), s. We can write the Cauchy condition as u(γ(s))=z0(s) with z0(s)=x0(s)=s. The vector γs(s)=(1,1) is tangent to Γ at the point γ(s). Therefore 𝒏(s)=(1,-1) is normal to Γ at each point and

      𝒂(γ(s),z0(s))𝒏(s)=(11)(1-1)=0

      for all s. Therefore no point on the Cauchy curve is noncharacteristic.

      Alternative proof: We have

      a1(x0(s),y0(s),z0(s))x0(s)-a2(x0(s),y0(s),z0(s))y0(s)=1-1=0

      for all s, and again we see that no point on the Cauchy curve is noncharacteristic.

      The vector field 𝒂(x,y,z)=(1,1) is constant and is tangent to the Cauchy curve Γ at every point. Therefore the flow of the vector field 𝒂(x,y,u(x,y)) through Γ lies along Γ and the characteristics coincide with Γ, as shown in the figure below. The vector field 𝒂 is also plotted.

    • (ii)

      We use the method of characteristics to solve the PDE

      ux(x,y)+uy(x,y)=1 for (x,y)2,
      u(x,0)=f(x) for x,

      where f: is an arbitrary differentiable function satisfying f(0)=0. As above, the PDE has the form

      a1(x,y,u(x,y))ux(x,y)+a2(x,y,u(x,y))uy(x,y)=b(x,y,u(x,y))

      with

      a1(x,y,z)=1,a2(x,y,z)=1,b(x,y,z)=1.

      The Cauchy curve is Γ=×{0}, which we can parametrise by γ(s)=(x0(s),y0(s))=(s,0), s. Let z0(s)=f(x0(s))=f(s).

      Step 1: We need to solve

      x~τ =a1(x~,y~,z~)=1, (41)
      y~τ =a2(x~,y~,z~)=1, (42)
      z~τ =b(x~,y~,z~)=1, (43)

      subject to the initial conditions

      x~(0,s) =x0(s)=s, (44)
      y~(0,s) =y0(s)=0, (45)
      z~(0,s) =z0(s)=f(s). (46)

      Equations (41), (44) imply that

      x~(τ,s)=τ+s.

      Equations (42), (45) imply that

      y~(τ,s)=τ.

      Equations (43), (46) imply that

      z~(τ,s)=τ+f(s).

      Step 2: We need to invert the map (τ,s)(x~(τ,s),y~(τ,s))=(τ+s,τ). Setting (x,y)=(τ+s,τ) and solving for τ and s in terms of x and y gives τ=y, s=x-τ=x-y. Therefore

      τ~(x,y)=y,s~(x,y)=x-y.

      Step 3: Define

      u(x,y):=z~(τ~(x,y),s~(x,y))=τ~(x,y)+f(s~(x,y))=y+f(x-y).

      Observe that

      ux+uy=f(x-y)+1-f(x-y)=1,u(x,x)=x+f(x-x)=x+f(0)=x.

      Therefore u satisfies the Cauchy problem (40) for all differentiable functions f with f(0)=0. Hence the Cauchy problem (40) has infinitely many solutions.

    • (iii)

      Suppose that u satisfies the Cauchy problem

      ux(x,y)+uy(x,y)=1 for (x,y)2, (47)
      u(x,x)=1 for x. (48)

      Differentiating equation (48) gives

      ux(x,x)+uy(x,x)=0x.

      But this contradicts equation (47), which states that

      ux(x,x)+uy(x,x)=1x.
  11. 11.

    Obstacles to global existence.

    • (i)

      Let u:Ω¯Bε(𝟎) satisfy

      𝒂u=0 in ΩBε(𝟎),
      u=g on Ω.

      Here we derive the solution without using the method of characteristics. Since 0=𝒂u=-𝒙u, then u is constant in the radial direction. If this isn’t obvious to you, then argue as follows: For all r>0, θ,

      ru(r𝒆(θ)) =u(r𝒆(θ))𝒆(θ) (Chain Rule)
      =u(𝒙)𝒙|𝒙| (𝒙:=r𝒆(θ))
      =-1|𝒙|𝒂u(𝒙) (since 𝒂=-𝒙)
      =0,

      which means that u is constant in the radial direction. Therefore

      u(r𝒆(θ))=u(1𝒆(θ))=u(𝒆(θ))=g(𝒆(θ))

      as required.

      Let g be a non-constant function. Assume for contradiction that u:Ω¯ is a global solution. By the calculation above ru(r𝒆(θ))=0 for all r>0. Therefore

      0=01ru(r𝒆(θ))𝑑r=u(1𝒆(θ))-u(0𝒆(θ))=g(𝒆(θ))-u(𝟎).

      Therefore g(𝒆(θ))=u(𝟎) for all θ, which is a contradiction since g is non-constant.

      If g is a constant function, then the global solution is clearly u=g.

    • (ii)

      Let Γ={0}× and let u:Ω¯ satisfy

      𝒂u=1 in Ω,
      u=u0 on Γ.

      Since 𝒂(x,y)=(1,0), the PDE has the form

      a1(x,y,u(x,y))ux(x,y)+a2(x,y,u(x,y))uy(x,y)=b(x,y,u(x,y))

      with

      a1(x,y,z)=1,a2(x,y,z)=0,b(x,y,z)=1.

      We can parametrise Γ by γ(s)=(x0(s),y0(s))=(0,s), s. Define

      z0(s)=u(γ(s))=u0(x0(s),y0(s))=y0(s)=s.

      Step 1: We need to solve

      x~τ =a1(x~,y~,z~)=1, (49)
      y~τ =a2(x~,y~,z~)=0, (50)
      z~τ =b(x~,y~,z~)=1, (51)

      subject to the initial conditions

      x~(0,s) =x0(s)=0, (52)
      y~(0,s) =y0(s)=s, (53)
      z~(0,s) =z0(s)=s. (54)

      Equations (49), (52) imply that

      x~(τ,s)=τ.

      Equations (50), (53) imply that

      y~(τ,s)=s.

      Equations (51), (54) imply that

      z~(τ,s)=τ+s.

      Step 2: We need to invert the map (τ,s)(x~(τ,s),y~(τ,s))=(τ,s). Clearly the inverse map is given by

      τ~(x,y)=x,s~(x,y)=y.

      Step 3: Finally,

      u(x,y)=z~(τ~(x,y),s~(x,y))=τ~(x,y)+s~(x,y)=x+y,

      as required. (It’s actually easier to simply integrate the PDE with respect to x, as below, instead of using the method of characteristics.)

      Now consider the case Γ=Ω=({0}×)({1}×). A quick sketch of the vector field shows that each characteristic intersects Γ twice, at (0,y) and (1,y) for some y. Let u:([0,a][b,1])× be a local solution, which satisfies

      ux(x,y)=1 for 0<x<a,b<x<1,y,
      u(0,y)=u(1,y)=y for y.

      Let x[0,a]. Then

      u(x,y)=u(0,y)+0xux(z,y)𝑑z=y+0x1𝑑z=y+x,

      as required. Similarly, for x[b,1],

      u(x,y)=u(1,y)-x1ux(z,y)𝑑z=y-x11𝑑z=y-(1-x)=x+y-1,

      as required.

      Assume for contraction that u:Ω¯ is a global solution. Then

      1=011𝑑z=01ux(z,y)𝑑z=u(1,y)-u(0,y)=u0(1,y)-u0(0,y)=y-y=0.

      Contradiction! From this calculation we see that a necessary condition for a global solution to exist is u0(1,y)-u0(0,y)=1. In this case the global solution is u(x,y)=x+y.

  12. 12.

    Geometric interpretation of the method of characteristics. Let 𝒏=F. Then 𝒏 is normal to the solution surface and

    𝒏𝒇 =F(a1,a2,b)
    =(ux,uy,-1)(a1,a2,b)
    =a1ux+a2uy-b
    =0.

    Therefore 𝒇 is orthogonal to 𝒏 at every point of the solution surface. Hence 𝒇 is tangent to the solution surface, as required.

  13. 13.

    The method of characteristics for PDEs in n independent variables. The transport equation in n spatial variables is

    ut+𝒄u=0 for (𝒙,t)n×(0,),
    u(𝒙,0)=g(𝒙) for x,

    where 𝒄n is a constant vector and u:n×[0,). The PDE has the form

    𝒂(x,t,u(𝒙,t))(𝒙,t)u(𝒙,t)=b(𝒙,t,u(𝒙,t)),

    where (𝒙,t) is the gradient with respect to (𝒙,t), i.e., (𝒙,t)=(,t), and

    𝒂(𝒙,t,z)=[𝒄1],b(𝒙,t,z)=0.

    The value of u is prescribed on the n–dimensional hypersurface Γ=n×{0}, which we can parametrise by γ(𝒔)=(𝒙0(𝒔),t0(𝒔))=(𝒔,0), 𝒔n. Define

    z0(𝒔)=u(γ(𝒔))=u(𝒔,0)=g(𝒔).

    Now we apply the Method of Characteristics:

    Step 1. We need to solve

    𝒙~τ =𝒄,
    t~τ =1,
    z~τ =0,

    subject to the initial conditions

    𝒙~(0,𝒔) =𝒔,
    t~(0,𝒔) =0,
    z~(0,𝒔) =g(𝒔).

    The solution is

    𝒙~(τ,𝒔) =𝒄τ+𝒔,
    t~(τ,𝒔) =τ,
    z~(τ,𝒔) =g(𝒔).

    Step 2. We need to invert the map (τ,𝒔)(𝒙~(τ,𝒔),t~(τ,𝒔))=(𝒄τ+𝒔,τ). Setting (𝒙,t)=(𝒄τ+𝒔,τ) and solving for τ and 𝒔 in terms of 𝒙 and t gives τ=t, 𝒔=𝒙-𝒄τ=𝒙-𝒄t. Therefore

    τ~(𝒙,t) =t,
    𝒔~(𝒙,t) =𝒙-𝒄t.

    Step 3. Finally,

    u(𝒙,t):=z~(τ~(𝒙,t),𝒔~(𝒙,t))=g(𝒙-𝒄t),

    as required.

  14. 14.

    Uniqueness theorem for ODEs.

    • (i)

      Let 𝒙1,𝒙2 be solutions: 𝒙˙1=𝒇(𝒙1), 𝒙˙2=𝒇(𝒙2), 𝒙1(0)=𝒙2(0)=𝒙0. Then

      𝒙˙1-𝒙˙2=𝒇(𝒙1)-𝒇(𝒙2).

      Taking the dot product of this equation with 𝒙1-𝒙2 gives

      (𝒙˙1-𝒙˙2)(𝒙1-𝒙2)=(𝒇(𝒙1)-𝒇(𝒙2))(𝒙1-𝒙2)ddτ12|𝒙1-𝒙2|2=(𝒇(𝒙1)-𝒇(𝒙2))(𝒙1-𝒙2).

      Therefore by the Cauchy-Schwarz inequality

      ddτ12|𝒙1-𝒙2|2|𝒇(𝒙1)-𝒇(𝒙2)||𝒙1-𝒙2|L|𝒙1-𝒙2|2

      since 𝒇 is Lipschitz continuous. Define E(τ)=|𝒙1(τ)-𝒙2(τ)|2. We have shown that

      E˙2LE.

      Rearranging and multiplying by the integrating factor e-2Lτ gives

      e-2LτE˙(τ)-2Le-2LτE0ddτ(e-2LτE(τ))0.

      Integrating over the interval [0,τ] yields

      e-2LτE(τ)-E(0)0E(τ)e2LτE(0).

      But 𝒙1(0)=𝒙2(0)=𝒙0. Therefore E(0)=0 and hence E(τ)=0 for all τ. Therefore 𝒙1(τ)=𝒙2(τ) for all τ, as required.

    • (ii)

      Let fC1([a,b]). By the Mean Value Theorem, there exists c(a,b) such that

      f(y)-f(x)=f(c)(y-x).

      Therefore, for all x,y[a,b],

      |f(y)-f(x)|=|f(c)||y-x|max[a,b]|f||y-x|=L|y-x|

      with L=max[a,b]|f|.

  15. 15.

    Nonuniqueness for ODEs. Consider the separable ODE

    x˙(τ) =|x(τ)|1/2,
    x(0) =-1.

    Exactly the same method we used in Example 2.3 leads to the solution x:(-,2),

    x(τ)=-14(2-τ)2.

    At τ=2, x=0, where f(x)=|x|1/2 is not continuously differentiable. Let T>2. For any c(0,T-2), xc:(-,T) is a solution, where

    xc(τ)={-14(2-τ)2if τ(-,2],0if τ[2,2+c],14(τ-2-c)2if τ[2+c,T).
  16. 16.

    The Eikonal equation.

    • (i)

      If 𝒙Ω, then |𝒙|=1 and hence u(𝒙)=0 for 𝒙Ω. Recall that |𝒙|=𝒙/|𝒙| for 𝒙𝟎. Therefore

      u=(1-|𝒙|)=-𝒙|𝒙||u|=1

      for 𝒙0, as required.

    • (ii)

      Clearly u=0 when x=±1, y=±1. Therefore u(𝒙)=0 if 𝒙Ω. We compute

      u(x,y)={(-1,0)if x(0,1),y(-x,x),(1,0)if x(-1,0),y(x,-x),(0,-1)if y(0,1),x(-y,y),(0,1)if y(-1,0),x(y,-y).

      Therefore |u|=1 in Ω, except along the lines y=±x, as required.

    • (iii)

      Define u(𝒙) to be the distance from 𝒙 to the boundary of Ω, i.e.,

      u(𝒙)=dist(𝒙,Ω)=min𝒑Ω|𝒙-𝒑|.

      Clearly u(𝒙)=0 when 𝒙Ω. Assume that u is continuously differentiable in a neighbourhood of 𝒙. Then for all 𝒗2

      u(𝒙)𝒗=limh0u(𝒙+h𝒗)-u(𝒙)h.

      Let 𝒑* satisfy dist(𝒙,Ω)=|𝒙-𝒑*|. Then

      u(𝒙+h𝒗)-u(𝒙)h =min𝒒Ω|𝒙+h𝒗-𝒒|-min𝒑Ω|𝒙-𝒑|h
      =min𝒒Ω|𝒙+h𝒗-𝒒|-|𝒙-𝒑*|h
      |𝒙+h𝒗-𝒑*|-|𝒙-𝒑*|h. (55)

      Observe that

      limh0|𝒙+h𝒗-𝒑*|-|𝒙-𝒑*|h=|𝒙+𝒑*|𝒗=𝒙-𝒑*|𝒙-𝒑*|𝒗.

      Therefore taking the limit h0 in equation (55) gives

      u(𝒙)𝒗𝒙-𝒑*|𝒙-𝒑*|𝒗. (56)

      There was nothing special about our choice of 𝒗, and so this expression also holds with 𝒗 replaced by -𝒗:

      u(𝒙)(-𝒗)𝒙-𝒑*|𝒙-𝒑*|(-𝒗)u(𝒙)𝒗𝒙-𝒑*|𝒙-𝒑*|𝒗. (57)

      Combining (56) and (57) yields

      u(𝒙)𝒗=𝒙-𝒑*|𝒙-𝒑*|𝒗.

      But this holds for all 𝒗2. Therefore

      u(𝒙)=𝒙-𝒑*|𝒙-𝒑*|,

      and |u(𝒙)|=1, as required.