Level 4 — ApplicationPartial Differential Equations

Partial Differential Equations

60 minutes60 marksprintable — key stays hidden on paper

Level: 4 — Application (novel problems, no hints) Time limit: 60 minutes Total marks: 60

Attempt all questions. Full working is required.


Question 1 — Classification & canonical reasoning [12 marks]

Consider the second-order PDE x2uxxy2uyy=0,x>0,  y>0.x^2 u_{xx} - y^2 u_{yy} = 0, \qquad x>0,\; y>0.

(a) Using the discriminant test, classify the equation in the region x>0,y>0x>0, y>0. [4]

(b) A student claims the type changes if we instead consider uxx+2uxy+(1x)uyy=0.u_{xx} + 2\,u_{xy} + (1-x)\,u_{yy} = 0. Determine the curve(s) in the xyxy-plane along which this second equation is parabolic, and identify the regions where it is elliptic and hyperbolic. [8]


Question 2 — Fourier series construction & Parseval [14 marks]

Let f(x)=xf(x) = x on the interval 0xπ0 \le x \le \pi.

(a) Obtain the half-range sine series of ff on (0,π)(0,\pi). [6]

(b) Using your series and Parseval's theorem for the sine series 2π0π[f(x)]2dx=n=1bn2,\frac{2}{\pi}\int_0^{\pi} [f(x)]^2\,dx = \sum_{n=1}^{\infty} b_n^2, evaluate in closed form the sum n=11n2.\sum_{n=1}^{\infty} \frac{1}{n^2}. [8]


Question 3 — Heat equation, separation of variables [14 marks]

A rod of length LL has its ends held at temperature 00. The temperature u(x,t)u(x,t) satisfies ut=kuxx,0<x<L,  t>0,u(0,t)=u(L,t)=0,u_t = k\,u_{xx}, \quad 0<x<L,\; t>0, \qquad u(0,t)=u(L,t)=0, with initial condition u(x,0)=3sin ⁣πxLsin ⁣3πxL.u(x,0) = 3\sin\!\frac{\pi x}{L} - \sin\!\frac{3\pi x}{L}.

(a) Using separation of variables, derive the general series solution satisfying the boundary conditions. [8]

(b) Apply the initial condition to write the complete explicit solution u(x,t)u(x,t). [4]

(c) State the limiting temperature distribution as tt\to\infty and justify physically. [2]


Question 4 — Wave equation, D'Alembert [12 marks]

An infinite string satisfies utt=c2uxxu_{tt} = c^2 u_{xx} with u(x,0)=ex2,ut(x,0)=0.u(x,0) = e^{-x^2}, \qquad u_t(x,0) = 0.

(a) Write down D'Alembert's solution for this IVP. [4]

(b) Evaluate u(0,t)u(0,t) explicitly and describe its behaviour as tt\to\infty. [4]

(c) Now suppose instead u(x,0)=0u(x,0)=0 and ut(x,0)=g(x)u_t(x,0)=g(x) where gg is a bounded continuous function. Write the D'Alembert solution and show that u(x,t)u(x,t) is bounded provided gdx<\int_{-\infty}^{\infty}|g|\,dx<\infty is not required — instead give the precise condition on gg for boundedness of uu. [4]


Question 5 — Laplace on a rectangle [8 marks]

Solve Laplace's equation uxx+uyy=0u_{xx}+u_{yy}=0 on the rectangle 0<x<a0<x<a, 0<y<b0<y<b with u(0,y)=u(a,y)=0,u(x,0)=0,u(x,b)=f(x).u(0,y)=u(a,y)=0, \quad u(x,0)=0, \quad u(x,b)=f(x).

Derive the series solution and give the formula for its coefficients. [8]

Answer keyMark scheme & solutions

Question 1 [12 marks]

(a) For Auxx+Buxy+CuyyA u_{xx}+B u_{xy}+C u_{yy}, discriminant =B24AC= B^2-4AC. Here A=x2A=x^2, B=0B=0, C=y2C=-y^2. [1] B24AC=04(x2)(y2)=4x2y2.B^2-4AC = 0 - 4(x^2)(-y^2) = 4x^2y^2. [2] For x>0,y>0x>0,y>0, 4x2y2>04x^2y^2>0hyperbolic everywhere in the region. [1]

(b) A=1A=1, B=2B=2, C=1xC=1-x. [1] B24AC=44(1x)=4x.B^2-4AC = 4 - 4(1-x) = 4x. [3]

  • Parabolic when 4x=0x=04x=0 \Rightarrow x=0 (the yy-axis). [2]
  • Hyperbolic when 4x>0x>04x>0 \Rightarrow x>0. [1]
  • Elliptic when 4x<0x<04x<0 \Rightarrow x<0. [1]

Question 2 [14 marks]

(a) Half-range sine series: f(x)=bnsin(nx)f(x)=\sum b_n \sin(nx) with bn=2π0πxsin(nx)dx.b_n = \frac{2}{\pi}\int_0^\pi x\sin(nx)\,dx. [2] Integrate by parts: 0πxsin(nx)dx=[xcosnxn]0π+1n0πcosnxdx=πcosnπn+0.\int_0^\pi x\sin(nx)\,dx = \left[-\frac{x\cos nx}{n}\right]_0^\pi + \frac1n\int_0^\pi \cos nx\,dx = -\frac{\pi\cos n\pi}{n} + 0. [2] Since cosnπ=(1)n\cos n\pi=(-1)^n: bn=2π(π(1)nn)=2(1)nn=2(1)n+1n.b_n = \frac{2}{\pi}\cdot\left(-\frac{\pi(-1)^n}{n}\right) = \frac{-2(-1)^n}{n} = \frac{2(-1)^{n+1}}{n}. [1] x=n=12(1)n+1nsin(nx),0<x<π.\boxed{\,x = \sum_{n=1}^\infty \frac{2(-1)^{n+1}}{n}\sin(nx)\,}, \quad 0<x<\pi. [1]

(b) LHS of Parseval: 2π0πx2dx=2ππ33=2π23.\frac{2}{\pi}\int_0^\pi x^2\,dx = \frac{2}{\pi}\cdot\frac{\pi^3}{3} = \frac{2\pi^2}{3}. [3] RHS: n=1bn2=4n2.\sum_{n=1}^\infty b_n^2 = \sum \frac{4}{n^2}. [2] Equate: 2π23=41n2n=11n2=π26.\frac{2\pi^2}{3} = 4\sum\frac{1}{n^2} \Rightarrow \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}. [3]


Question 3 [14 marks]

(a) Let u=X(x)T(t)u=X(x)T(t). Then XT=kXTTkT=XX=λXT'=kX''T \Rightarrow \dfrac{T'}{kT}=\dfrac{X''}{X}=-\lambda. [2] Spatial: X+λX=0X''+\lambda X=0, with X(0)=X(L)=0X(0)=X(L)=0. Nontrivial solutions require λn=(nπ/L)2\lambda_n=(n\pi/L)^2, Xn=sin(nπx/L)X_n=\sin(n\pi x/L). [3] Time: T=kλnTTn=ek(nπ/L)2tT'=-k\lambda_n T \Rightarrow T_n=e^{-k(n\pi/L)^2 t}. [2] General solution: u(x,t)=n=1bnsin ⁣nπxLek(nπ/L)2t.u(x,t)=\sum_{n=1}^\infty b_n \sin\!\frac{n\pi x}{L}\,e^{-k(n\pi/L)^2 t}. [1]

(b) Match u(x,0)=bnsin(nπx/L)=3sinπxLsin3πxLu(x,0)=\sum b_n\sin(n\pi x/L) = 3\sin\frac{\pi x}{L}-\sin\frac{3\pi x}{L}. By orthogonality: b1=3b_1=3, b3=1b_3=-1, all others 00. [2] u(x,t)=3sin ⁣πxLek(π/L)2tsin ⁣3πxLe9k(π/L)2t.\boxed{\,u(x,t)=3\sin\!\frac{\pi x}{L}\,e^{-k(\pi/L)^2 t} - \sin\!\frac{3\pi x}{L}\,e^{-9k(\pi/L)^2 t}\,}. [2]

(c) As tt\to\infty each exponential 0\to 0, so u0u\to 0. [1] Physically: with both ends at 00 and no source, heat diffuses out until the rod reaches the steady state u0u\equiv 0. [1]


Question 4 [12 marks]

(a) D'Alembert with ϕ(x)=ex2\phi(x)=e^{-x^2}, ψ=0\psi=0: u(x,t)=12[ϕ(xct)+ϕ(x+ct)]=12[e(xct)2+e(x+ct)2].u(x,t)=\tfrac12\big[\phi(x-ct)+\phi(x+ct)\big] = \tfrac12\big[e^{-(x-ct)^2}+e^{-(x+ct)^2}\big]. [4]

(b) At x=0x=0: u(0,t)=12[ec2t2+ec2t2]=ec2t2.u(0,t)=\tfrac12\big[e^{-c^2t^2}+e^{-c^2t^2}\big]=e^{-c^2t^2}. [3] As tt\to\infty, u(0,t)0u(0,t)\to 0: the two travelling half-pulses separate, leaving the origin. [1]

(c) With ϕ=0\phi=0: u(x,t)=12cxctx+ctg(s)ds.u(x,t)=\frac{1}{2c}\int_{x-ct}^{x+ct} g(s)\,ds. [2] Boundedness requires the antiderivative G(x)=0xgG(x)=\int_0^x g to be bounded, i.e. xctx+ctgds=G(x+ct)G(xct)\int_{x-ct}^{x+ct}g\,ds = G(x+ct)-G(x-ct) stays bounded. Precise sufficient condition: G(±)G(\pm\infty) finite, i.e. gds\int_{-\infty}^{\infty} g\,ds converges (integral of gg, not g|g|, need be finite for both limits). Equivalently gg integrable in the improper sense over R\mathbb R. [2]


Question 5 [8 marks]

Separate u=X(x)Y(y)u=X(x)Y(y): X/X=Y/Y=λX''/X=-Y''/Y=-\lambda. [1] X(0)=X(a)=0λn=(nπ/a)2X(0)=X(a)=0 \Rightarrow \lambda_n=(n\pi/a)^2, Xn=sin(nπx/a)X_n=\sin(n\pi x/a). [2] Y(nπ/a)2Y=0Y''-(n\pi/a)^2 Y=0 with Y(0)=0Yn=sinh(nπy/a)Y(0)=0 \Rightarrow Y_n=\sinh(n\pi y/a). [2] u(x,y)=n=1cnsin ⁣nπxasinh ⁣nπya.u(x,y)=\sum_{n=1}^\infty c_n \sin\!\frac{n\pi x}{a}\sinh\!\frac{n\pi y}{a}. [1] Apply u(x,b)=f(x)u(x,b)=f(x): cnsinh ⁣nπba=2a0af(x)sin ⁣nπxadx,c_n\sinh\!\frac{n\pi b}{a} = \frac{2}{a}\int_0^a f(x)\sin\!\frac{n\pi x}{a}\,dx, cn=2asinh(nπb/a)0af(x)sin ⁣nπxadx.\boxed{\,c_n=\frac{2}{a\,\sinh(n\pi b/a)}\int_0^a f(x)\sin\!\frac{n\pi x}{a}\,dx\,}. [2]


[
  {"claim":"Q1a discriminant of x^2 u_xx - y^2 u_yy is 4x^2y^2 >0 (hyperbolic)","code":"x,y=symbols('x y',positive=True); A=x**2; B=0; C=-y**2; disc=B**2-4*A*C; result=simplify(disc-4*x**2*y**2)==0 and disc.subs({x:1,y:1})>0"},
  {"claim":"Q1b discriminant 4 - 4(1-x) = 4x","code":"x=symbols('x'); disc=2**2-4*1*(1-x); result=simplify(disc-4*x)==0"},
  {"claim":"Q2a sine coefficient b_n = 2(-1)^(n+1)/n","code":"import sympy as sp; x=sp.symbols('x'); n=sp.symbols('n',positive=True,integer=True); bn=sp.integrate(x*sp.sin(n*x),(x,0,sp.pi))*2/sp.pi; result=sp.simplify(bn - 2*(-1)**(n+1)/n)==0"},
  {"claim":"Q2b sum 1/n^2 = pi^2/6 via Parseval","code":"lhs=sp.Rational(2,1)*sp.pi**2/3; s=sp.summation((2*(-1)**(sp.Symbol('m',integer=True,positive=True)+1)/sp.Symbol('m',integer=True,positive=True))**2,(sp.Symbol('m',integer=True,positive=True),1,sp.oo)); result=sp.simplify(lhs-4*sp.pi**2/6)==0 and sp.simplify(sp.summation(1/sp.Symbol('k',integer=True,positive=True)**2,(sp.Symbol('k',integer=True,positive=True),1,sp.oo))-sp.pi**2/6)==0"},
  {"claim":"Q4b u(0,t)=exp(-c^2 t^2)","code":"c,t=symbols('c t'); u=(sp.exp(-(0-c*t)**2)+sp.exp(-(0+c*t)**2))/2; result=sp.simplify(u-sp.exp(-c**2*t**2))==0"}
]