Level 4 — ApplicationAdvanced Topics (Elite Level)

Advanced Topics (Elite Level)

60 minutes50 marksprintable — key stays hidden on paper

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


Question 1. (10 marks)

Consider the real integral I=x2(x2+1)(x2+4)dx.I = \int_{-\infty}^{\infty} \frac{x^2}{(x^2+1)(x^2+4)}\,dx.

(a) Locate all poles of f(z)=z2(z2+1)(z2+4)f(z)=\dfrac{z^2}{(z^2+1)(z^2+4)} in the upper half-plane and classify them. (3)

(b) Compute the residue at each such pole. (4)

(c) Using a semicircular contour in the upper half-plane, evaluate II, justifying that the arc contribution vanishes. (3)


Question 2. (10 marks)

Let g(z)=1z(z2)g(z) = \dfrac{1}{z(z-2)}.

(a) Obtain the Laurent series of gg valid in the annulus 0<z<20 < |z| < 2. (4)

(b) Obtain the Laurent series of gg valid in the region z>2|z| > 2. (4)

(c) State the residue of gg at z=0z=0 from the expansion in (a), and explain in one sentence why the annulus of validity matters. (2)


Question 3. (10 marks)

A bead slides without friction under gravity along a curve y(x)y(x) from the origin O=(0,0)O=(0,0) to a point BB, starting from rest.

(a) Show that the time of descent is T[y]=0xB1+y22gydxT[y] = \displaystyle\int_0^{x_B}\sqrt{\frac{1+y'^2}{2g\,y}}\,dx, stating the physical principle used. (2)

(b) Since the integrand F(y,y)F(y,y') has no explicit xx-dependence, use the Beltrami identity FyFy=CF - y'\dfrac{\partial F}{\partial y'} = C to derive the first-order equation y(1+y2)=k(constant).y\,(1+y'^2) = k \quad(\text{constant}). (5)

(c) Verify by direct substitution that the cycloid x=a(θsinθ), y=a(1cosθ)x = a(\theta-\sin\theta),\ y=a(1-\cos\theta) satisfies y(1+y2)=2ay(1+y'^2)=2a, hence solving the brachistochrone. (3)


Question 4. (10 marks)

Consider minimising f(x,y)=x2+y2f(x,y) = x^2 + y^2 subject to the constraint x+y2x + y \geq 2.

(a) Write the KKT conditions for this problem (with multiplier μ0\mu \ge 0 for the constraint written as g(x,y)=2xy0g(x,y)=2-x-y\le 0). (4)

(b) Solve the KKT system and find the minimiser and minimum value. (4)

(c) State whether the constraint is active at the optimum and justify via complementary slackness. (2)


Question 5. (10 marks)

A frog hops among three lily pads {1,2,3}\{1,2,3\} as a Markov chain with transition matrix (rows = from, columns = to) P=(010141214010).P = \begin{pmatrix} 0 & 1 & 0 \\ \tfrac14 & \tfrac12 & \tfrac14 \\ 0 & 1 & 0 \end{pmatrix}.

(a) Determine whether the chain is irreducible and aperiodic (justify briefly). (3)

(b) Find the stationary distribution π=(π1,π2,π3)\pi=(\pi_1,\pi_2,\pi_3) solving πP=π\pi P = \pi, πi=1\sum \pi_i = 1. (5)

(c) By symmetry between states 1 and 3, state π1\pi_1 and π3\pi_3 and confirm consistency. (2)

Answer keyMark scheme & solutions

Question 1 (10 marks)

(a) Poles where denominators vanish: z2+1=0z=±iz^2+1=0\Rightarrow z=\pm i; z2+4=0z=±2iz^2+4=0\Rightarrow z=\pm 2i. In the upper half-plane: z=iz=i and z=2iz=2i, both simple poles (denominator factors are distinct linear factors, numerator nonzero there). (3)

(b) For a simple pole at z0z_0: Res=z02derivative of denom / factored limit\operatorname{Res} = \dfrac{z_0^2}{\text{derivative of denom / factored limit}}.

At z=iz=i: Resz=i=z2(z+i)(z2+4)z=i=1(2i)(3)=16i=i6.\operatorname{Res}_{z=i} = \frac{z^2}{(z+i)(z^2+4)}\Big|_{z=i} = \frac{-1}{(2i)(3)} = \frac{-1}{6i} = \frac{i}{6}.

At z=2iz=2i: Resz=2i=z2(z2+1)(z+2i)z=2i=4(3)(4i)=412i=13i=i3.\operatorname{Res}_{z=2i} = \frac{z^2}{(z^2+1)(z+2i)}\Big|_{z=2i} = \frac{-4}{(-3)(4i)} = \frac{-4}{-12i} = \frac{1}{3i} = -\frac{i}{3}. (4) (2 each)

(c) On the arc z=R|z|=R, fR2/R4=1/R2|f|\sim R^2/R^4 = 1/R^2, length πR\pi R, so contribution π/R0\sim \pi/R \to 0. Thus I=2πi(i6i3)=2πi(i6)=2π6=π3.I = 2\pi i\left(\tfrac{i}{6} - \tfrac{i}{3}\right) = 2\pi i\left(-\tfrac{i}{6}\right) = \frac{2\pi}{6} = \frac{\pi}{3}. (3) — arc justification (1), sum of residues (1), final I=π/3I=\pi/3 (1).


Question 2 (10 marks)

(a) Partial fractions: 1z(z2)=1/2z+1/2z2\dfrac{1}{z(z-2)} = \dfrac{-1/2}{z} + \dfrac{1/2}{z-2}. For z<2|z|<2: 1/2z2=1/41z/2=14n0(z/2)n\dfrac{1/2}{z-2} = \dfrac{-1/4}{1-z/2} = -\tfrac14\sum_{n\ge0}(z/2)^n. So g(z)=12z14n=0zn2n=12zn=0zn2n+2.g(z) = -\frac{1}{2z} - \frac14\sum_{n=0}^{\infty}\frac{z^n}{2^n} = -\frac{1}{2z} - \sum_{n=0}^\infty \frac{z^n}{2^{n+2}}. (4)

(b) For z>2|z|>2: 1/2z2=12z112/z=12zn0(2/z)n\dfrac{1/2}{z-2} = \dfrac{1}{2z}\cdot\dfrac{1}{1-2/z} = \dfrac{1}{2z}\sum_{n\ge0}(2/z)^n. So g(z)=12z+n=02n2zn+1=12z+12zn=02nzn.g(z) = -\frac{1}{2z} + \sum_{n=0}^\infty \frac{2^n}{2\,z^{n+1}} = -\frac{1}{2z} + \frac{1}{2z}\sum_{n=0}^\infty\frac{2^n}{z^n}. Combining, the 1/z1/z terms give 12+12=0-\tfrac12+\tfrac12 = 0, so g(z)=n=12n1zn+1=1z2+2z3+g(z)=\sum_{n=1}^{\infty}\dfrac{2^{n-1}}{z^{n+1}} = \dfrac{1}{z^2}+\dfrac{2}{z^3}+\cdots. (4)

(c) Residue at z=0z=0 is the coefficient of 1/z1/z in (a): 12-\tfrac12. The annulus matters because the residue is read from the expansion valid on a punctured disc around the pole (0<z<20<|z|<2); the z>2|z|>2 expansion has no 1/z1/z term and cannot be used to read Resz=0\operatorname{Res}_{z=0}. (2)


Question 3 (10 marks)

(a) Energy conservation from rest: 12v2=gyv=2gy\tfrac12 v^2 = g y \Rightarrow v=\sqrt{2gy}. Time =ds/v=\int ds/v with ds=1+y2dxds=\sqrt{1+y'^2}\,dx, giving the stated T[y]T[y]. (2)

(b) With F=1+y22gyF=\sqrt{\dfrac{1+y'^2}{2gy}}, drop constant 1/2g1/\sqrt{2g}; use FyFy=CF-y'F_{y'}=C. Fy=yy1+y2F_{y'} = \dfrac{y'}{\sqrt{y}\sqrt{1+y'^2}} (up to constant). Then FyFy=1+y2yy2y1+y2=(1+y2)y2y1+y2=1y1+y2=C.F - y'F_{y'} = \frac{\sqrt{1+y'^2}}{\sqrt y} - \frac{y'^2}{\sqrt y\sqrt{1+y'^2}} = \frac{(1+y'^2)-y'^2}{\sqrt y\sqrt{1+y'^2}} = \frac{1}{\sqrt y\sqrt{1+y'^2}} = C. Square: y(1+y2)=1/C2ky(1+y'^2)=1/C^2 \equiv k. (5)

(c) dydθ=asinθ\dfrac{dy}{d\theta}=a\sin\theta, dxdθ=a(1cosθ)\dfrac{dx}{d\theta}=a(1-\cos\theta), so y=sinθ1cosθy'=\dfrac{\sin\theta}{1-\cos\theta}. 1+y2=1+sin2θ(1cosθ)2=(1cosθ)2+sin2θ(1cosθ)2=22cosθ(1cosθ)2=21cosθ.1+y'^2 = 1+\frac{\sin^2\theta}{(1-\cos\theta)^2} = \frac{(1-\cos\theta)^2+\sin^2\theta}{(1-\cos\theta)^2} = \frac{2-2\cos\theta}{(1-\cos\theta)^2} = \frac{2}{1-\cos\theta}. Then y(1+y2)=a(1cosθ)21cosθ=2a=y(1+y'^2)= a(1-\cos\theta)\cdot\dfrac{2}{1-\cos\theta} = 2a = const. ✓ (3)


Question 4 (10 marks)

(a) Lagrangian L=x2+y2+μ(2xy)L = x^2+y^2 + \mu(2-x-y). KKT:

  • Stationarity: 2xμ=02x-\mu=0, 2yμ=02y-\mu=0.
  • Primal feasibility: 2xy02-x-y\le0.
  • Dual feasibility: μ0\mu\ge0.
  • Complementary slackness: μ(2xy)=0\mu(2-x-y)=0. (4)

(b) From stationarity x=y=μ/2x=y=\mu/2. If μ=0\mu=0: x=y=0x=y=0, but then 20=2>02-0=2>0 violates feasibility. So μ>0\mu>0, forcing 2xy=0x+y=2x=y=12-x-y=0\Rightarrow x+y=2\Rightarrow x=y=1, μ=2\mu=2. Minimiser (1,1)(1,1), minimum value f=1+1=2f=1+1=2. (4)

(c) Constraint is active (x+y=2x+y=2). Justification: complementary slackness with μ=2>0\mu=2>0 requires 2xy=02-x-y=0; the unconstrained minimum (0,0)(0,0) is infeasible, so the optimum lies on the boundary. (2)


Question 5 (10 marks)

(a) From 1 you can reach 2, from 2 reach 1,2,3, from 3 reach 2 — all states communicate, so irreducible. State 2 has a self-loop (P22>0P_{22}>0) giving period 1; irreducibility spreads aperiodicity, so the chain is aperiodic. (3)

(b) πP=π\pi P=\pi:

  • π1=14π2\pi_1 = \tfrac14\pi_2
  • π2=π1+12π2+π3\pi_2 = \pi_1 + \tfrac12\pi_2 + \pi_3
  • π3=14π2\pi_3 = \tfrac14\pi_2

From eq 1 and 3: π1=π3=14π2\pi_1=\pi_3=\tfrac14\pi_2. Check eq 2: π2=14π2+12π2+14π2=π2\pi_2 = \tfrac14\pi_2 + \tfrac12\pi_2 + \tfrac14\pi_2 = \pi_2 ✓. Normalise: π1+π2+π3=14π2+π2+14π2=32π2=1π2=23\pi_1+\pi_2+\pi_3 = \tfrac14\pi_2+\pi_2+\tfrac14\pi_2 = \tfrac32\pi_2 =1 \Rightarrow \pi_2=\tfrac23, π1=π3=16\pi_1=\pi_3=\tfrac16. π=(16, 23, 16).\pi = \left(\tfrac16,\ \tfrac23,\ \tfrac16\right). (5)

(c) By the 1↔3 symmetry, π1=π3=16\pi_1=\pi_3=\tfrac16, consistent with the solved values; sum =16+23+16=1=\tfrac16+\tfrac23+\tfrac16=1. (2)

[
  {"claim":"Q1 integral equals pi/3","code":"x=symbols('x',real=True); I=integrate(x**2/((x**2+1)*(x**2+4)),(x,-oo,oo)); result = simplify(I - pi/3)==0"},
  {"claim":"Q1 residues sum: 2*pi*i*(i/6 - i/3) = pi/3","code":"result = simplify(2*pi*I*(I/Rational(1,1)/6 - I/3) - pi/3)==0"},
  {"claim":"Q4 minimum value is 2 at (1,1)","code":"result = (1**2+1**2)==2"},
  {"claim":"Q5 stationary distribution pi P = pi","code":"P=Matrix([[0,1,0],[Rational(1,4),Rational(1,2),Rational(1,4)],[0,1,0]]); pv=Matrix([[Rational(1,6),Rational(2,3),Rational(1,6)]]); result = (pv*P == pv) and (sum(pv)==1)"}
]