Partial Differential Equations
Time limit: 90 minutes Total marks: 60 Instructions: Answer all three questions. Full derivations, proofs, and reasoning are required. Where code is requested, pseudocode or Python (NumPy) is acceptable but must be dimensionally and logically consistent.
Question 1 — Classification, Sturm–Liouville, and Separation (20 marks)
Consider the PDE for on , :
with Robin (radiating) boundary conditions
and initial data .
(a) Apply the discriminant test to classify the PDE as elliptic, parabolic, or hyperbolic, showing the general second-order form and computing . (3)
(b) Seek separated solutions . Derive the two ODEs and show that the spatial problem is a Sturm–Liouville eigenvalue problem. Write it in the standard S–L form , identifying . (4)
(c) Solve the spatial ODE for eigenvalue . Apply both boundary conditions to derive the transcendental eigenvalue equation for . (5)
(d) State the orthogonality relation the eigenfunctions satisfy, and prove it directly from the S–L problem (integrate by parts, use the boundary conditions). (5)
(e) Write the full series solution and give the integral formula for the coefficients. (3)
Question 2 — Wave Equation: D'Alembert, Energy, and Physics (20 marks)
An infinite string obeys , , with initial displacement and initial velocity .
(a) Derive D'Alembert's solution from the characteristic coordinates , . Show the PDE becomes and integrate to obtain the general solution, then apply the initial conditions to get the D'Alembert formula. (6)
(b) Take and . Write explicitly and describe physically what happens as (amplitude of each travelling pulse). (3)
(c) Define the total energy . Prove that for smooth solutions decaying at infinity (conservation of energy). (6)
(d) Coding. Write a finite-difference update scheme (explicit) for on a grid , . Give the update formula for , state the CFL stability condition, and explain in one sentence what happens if it is violated. (5)
Question 3 — Fourier Analysis, Parseval, and the Transform (20 marks)
(a) For on extended -periodically, derive the full Fourier series. State whether Dirichlet's conditions hold and what the series converges to at . (6)
(b) Apply Parseval's theorem to the series in (a) to evaluate . Show all steps. (5)
(c) Define the Fourier transform . Solve the heat equation on with by transforming in ; solve the resulting ODE in and invert to express as a convolution of with the heat kernel. Give the heat kernel explicitly. (9)
Answer keyMark scheme & solutions
Question 1
(a) General form: . Writing has no , no : , , . Discriminant . Since parabolic. (1 form, 1 identify coeffs, 1 conclusion) (3)
(b) (constant).
- Time: .
- Space: , i.e. . So , , . Boundary conditions , are separated/self-adjoint — genuine S–L problem. (1 each ODE, 1 S–L form + p,q,w, 1 BC transfer) (4)
(c) With : , . . So , . Second BC: . Divide by : , i.e. Infinitely many roots , giving . (1 general soln, 1 first BC, 1 second BC, 2 transcendental eqn) (5)
(d) Orthogonality: for (weight ). Proof: , . Then At : → boundary term . At : , , so . Hence RHS . Since , . (5) (1 statement, 2 the identity via IBP, 2 boundary evaluation)
(e)
c_n=\frac{\int_0^L f(x)\cos(\mu_n x)\,dx}{\int_0^L \cos^2(\mu_n x)\,dx}.$$ *(2 series form, 1 coefficient integral)* **(3)** --- ## Question 2 **(a)** $\xi=x-ct$, $\eta=x+ct$. Chain rule: $u_x=u_\xi+u_\eta$, $u_t=c(-u_\xi+u_\eta)$. $u_{xx}=u_{\xi\xi}+2u_{\xi\eta}+u_{\eta\eta}$; $u_{tt}=c^2(u_{\xi\xi}-2u_{\xi\eta}+u_{\eta\eta})$. $u_{tt}-c^2u_{xx}=c^2(-4u_{\xi\eta})=0\Rightarrow u_{\xi\eta}=0$. Integrate: $u=F(\xi)+G(\eta)=F(x-ct)+G(x+ct)$. ICs: $u(x,0)=F+G=\phi$; $u_t(x,0)=-cF'+cG'=\psi \Rightarrow -F+G=\frac1c\int_0^x\psi+K$. Solving: $$u(x,t)=\tfrac12[\phi(x-ct)+\phi(x+ct)]+\frac1{2c}\int_{x-ct}^{x+ct}\psi(s)\,ds.$$ *(2 change of variable, 1 reduce to $u_{\xi\eta}=0$, 1 integrate, 2 apply ICs)* **(6)** **(b)** $\psi=0$: $u(x,t)=\tfrac12 e^{-(x-ct)^2}+\tfrac12 e^{-(x+ct)^2}$. Two Gaussian pulses each of amplitude $\tfrac12$, travelling right and left at speed $c$; they separate. As $t\to\infty$ each pulse retains amplitude $\tfrac12$ (no dispersion, no decay), just moving apart. **(3)** **(c)** $E(t)=\tfrac12\int(u_t^2+c^2u_x^2)dx$. $$\frac{dE}{dt}=\int (u_t u_{tt}+c^2 u_x u_{xt})\,dx.$$ Use $u_{tt}=c^2u_{xx}$: first term $=c^2\int u_t u_{xx}$. Integrate second term by parts: $$c^2\int u_x u_{xt}\,dx = c^2[u_x u_t]_{-\infty}^{\infty}-c^2\int u_{xx}u_t\,dx = -c^2\int u_{xx}u_t\,dx$$ (boundary term vanishes by decay). Adding: $$\frac{dE}{dt}=c^2\int u_t u_{xx}\,dx - c^2\int u_{xx}u_t\,dx=0.$$ Hence $E$ constant. *(2 differentiate, 2 substitute PDE + IBP, 2 cancellation & conclusion)* **(6)** **(d)** Central differences: $u_{tt}\approx\frac{u_i^{n+1}-2u_i^n+u_i^{n-1}}{\Delta t^2}$, $u_{xx}\approx\frac{u_{i+1}^n-2u_i^n+u_{i-1}^n}{\Delta x^2}$. Let $r=\frac{c\Delta t}{\Delta x}$: $$u_i^{n+1}=2u_i^n-u_i^{n-1}+r^2\big(u_{i+1}^n-2u_i^n+u_{i-1}^n\big).$$ CFL stability: $r=\dfrac{c\,\Delta t}{\Delta x}\le 1$. If violated ($r>1$), the numerical domain of dependence excludes the true one → solution blows up / unstable oscillations. *(2 update, 2 CFL, 1 explanation)* **(5)** --- ## Question 3 **(a)** $f(x)=x$ is odd → $a_n=0$, $a_0=0$. $b_n=\frac1\pi\int_{-\pi}^\pi x\sin nx\,dx=\frac2\pi\int_0^\pi x\sin nx\,dx$. $\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}=-\frac{\pi(-1)^n}{n}$. So $b_n=\frac2\pi\cdot\left(-\frac{\pi(-1)^n}{n}\right)=\frac{-2(-1)^n}{n}=\frac{2(-1)^{n+1}}{n}$. $$x=\sum_{n=1}^\infty \frac{2(-1)^{n+1}}{n}\sin nx.$$ Dirichlet conditions hold ($f$ piecewise smooth, bounded). At $x=\pi$ (a jump of the periodic extension between $\pi$ and $-\pi$), the series converges to the average $\tfrac12(\pi+(-\pi))=0$. *(1 odd, 3 compute $b_n$, 1 series, 1 Dirichlet/convergence)* **(6)** **(b)** Parseval (for $f$ on $(-\pi,\pi)$ with only sine terms): $$\frac1\pi\int_{-\pi}^\pi f^2\,dx=\sum_{n=1}^\infty b_n^2.$$ LHS: $\frac1\pi\int_{-\pi}^\pi x^2 dx=\frac1\pi\cdot\frac{2\pi^3}{3}=\frac{2\pi^2}{3}$. RHS: $\sum \left(\frac{2(-1)^{n+1}}{n}\right)^2=\sum\frac{4}{n^2}$. So $\frac{2\pi^2}{3}=4\sum\frac1{n^2}\Rightarrow \sum_{n=1}^\infty\frac1{n^2}=\frac{\pi^2}{6}.$ *(1 Parseval form, 2 LHS, 1 RHS, 1 result)* **(5)** **(c)** Transform in $x$: let $\hat u(k,t)=\int u e^{-ikx}dx$. Since $\widehat{u_{xx}}=(ik)^2\hat u=-k^2\hat u$: $$\hat u_t=-\kappa k^2\hat u \Rightarrow \hat u(k,t)=\hat f(k)\,e^{-\kappa k^2 t}.$$ Invert: $u=\mathcal F^{-1}[\hat f\cdot e^{-\kappa k^2 t}]$. By the convolution theorem, product of transforms = transform of convolution: $$u(x,t)=f * G_t,\quad G_t(x)=\mathcal F^{-1}[e^{-\kappa k^2 t}].$$ Compute the inverse of the Gaussian: $\mathcal F^{-1}[e^{-\kappa k^2 t}]=\frac1{2\pi}\int e^{-\kappa t k^2}e^{ikx}dk=\frac{1}{\sqrt{4\pi\kappa t}}e^{-x^2/(4\kappa t)}$. Hence heat kernel $$G_t(x)=\frac{1}{\sqrt{4\pi\kappa t}}\,e^{-x^2/(4\kappa t)},$$ and $$u(x,t)=\frac{1}{\sqrt{4\pi\kappa t}}\int_{-\infty}^\infty f(y)\,e^{-(x-y)^2/(4\kappa t)}\,dy.$$ *(2 transform PDE, 2 solve ODE, 2 convolution theorem, 2 kernel via Gaussian inversion, 1 final formula)* **(9)** ```verify [ {"claim":"Heat u_t=kappa u_xx is parabolic: B^2-AC=0 with A=-kappa,B=0,C=0", "code":"A,B,C=-1,0,0\nresult=(B*B-A*C==0)"}, {"claim":"Fourier coeff of x on (-pi,pi): b_n = 2(-1)^(n+1)/n, verify for n=1,2,3", "code":"x,