← 2013 Paper 2

UPSC 2013 Maths Optional Paper 2 Q6c — Step-by-Step Solution

20 marks · Section B

Wave equation · PDEs · asked 7× in 13 yrs · Read the full method →

Question

A tightly stretched string with fixed end points x=0x=0 and x=lx=l is initially at rest in equilibrium position. If it is set vibrating by giving each point a velocity λx(lx)\lambda\cdot x(l-x), find the displacement of the string at any distance xx from one end at any time tt.

Technique

Separation of variables; sine-series expansion of initial velocity profile; n4n^{-4} decay rate from quadratic IC.

Solution

Setup. Wave equation utt=c2uxxu_{tt}=c^{2}u_{xx} on 0<x<l0<x<l, t>0t>0, with boundary conditions u(0,t)=u(l,t)=0u(0,t)=u(l,t)=0 and initial conditions u(x,0)=0u(x,0)=0, ut(x,0)=λx(lx)u_t(x,0)=\lambda x(l-x). (Here cc is the wave speed in the string.)

Step 1 — Sine-series general solution

Separation of variables on the boundary value problem u(0,t)=u(l,t)=0u(0,t)=u(l,t)=0 gives spatial modes sin(nπx/l)\sin(n\pi x/l), n1n\ge 1, with time evolution cos(nπct/l)\cos(n\pi ct/l) and sin(nπct/l)\sin(n\pi ct/l):

u(x,t)=n=1sinnπxl ⁣[Ancosnπctl+Bnsinnπctl].u(x,t)=\sum_{n=1}^{\infty}\sin\frac{n\pi x}{l}\!\left[A_n\cos\frac{n\pi ct}{l}+B_n\sin\frac{n\pi ct}{l}\right].

Step 2 — Apply u(x,0)=0u(x,0)=0

u(x,0)=Ansinnπxl=0    An=0  n.u(x,0)=\sum A_n\sin\frac{n\pi x}{l}=0\;\Longrightarrow\;A_n=0\;\forall n.

Step 3 — Apply ut(x,0)=λx(lx)u_t(x,0)=\lambda x(l-x)

ut(x,0)=Bnnπclsinnπxl=λx(lx).u_t(x,0)=\sum B_n\frac{n\pi c}{l}\sin\frac{n\pi x}{l}=\lambda x(l-x).

So Bnnπc/lB_n\cdot n\pi c/l is the sine-series Fourier coefficient of λx(lx)\lambda x(l-x) on (0,l)(0,l):

Bnnπcl=2l0lλx(lx)sinnπxldx=2λlIn.B_n\frac{n\pi c}{l}=\frac{2}{l}\int_0^{l}\lambda x(l-x)\sin\frac{n\pi x}{l}\,dx=\frac{2\lambda}{l}I_n.

Step 4 — Compute In=0lx(lx)sin(nπx/l)dxI_n=\int_0^l x(l-x)\sin(n\pi x/l)\,dx

Integrate by parts twice (both bracket terms vanish at the endpoints):

First IBP: u=x(lx)u=x(l-x), dv=sin(nπx/l)dxdv=\sin(n\pi x/l)\,dx. u=0u=0 at x=0,lx=0,l ⇒ bracket vanishes; left with

In=lnπ0l(l2x)cosnπxldx.I_n=\frac{l}{n\pi}\int_0^l(l-2x)\cos\frac{n\pi x}{l}\,dx.

Second IBP: u=l2xu=l-2x, dv=cos(nπx/l)dxdv=\cos(n\pi x/l)\,dx. Bracket terms again vanish (sin(nπ)=sin0=0\sin(n\pi)=\sin 0=0); left with

0l(l2x)cosnπxldx=2lnπ0lsinnπxldx=2lnπlnπ[1cosnπ]=2l2n2π2[1(1)n].\int_0^l(l-2x)\cos\frac{n\pi x}{l}\,dx=2\cdot\frac{l}{n\pi}\int_0^l\sin\frac{n\pi x}{l}\,dx=\frac{2l}{n\pi}\cdot\frac{l}{n\pi}[1-\cos n\pi]=\frac{2l^{2}}{n^{2}\pi^{2}}[1-(-1)^{n}].

Combining:

In=lnπ2l2n2π2[1(1)n]=2l3n3π3[1(1)n].I_n=\frac{l}{n\pi}\cdot\frac{2l^{2}}{n^{2}\pi^{2}}[1-(-1)^{n}]=\frac{2l^{3}}{n^{3}\pi^{3}}[1-(-1)^{n}].

For odd nn: 1(1)n=21-(-1)^{n}=2, so In=4l3n3π3I_n=\dfrac{4l^{3}}{n^{3}\pi^{3}}. For even nn: In=0I_n=0.

Step 5 — Solve for BnB_n

For odd nn:

Bnnπcl=2λl4l3n3π3=8λl2n3π3    Bn=8λl3n4π4c.B_n\cdot\frac{n\pi c}{l}=\frac{2\lambda}{l}\cdot\frac{4l^{3}}{n^{3}\pi^{3}}=\frac{8\lambda l^{2}}{n^{3}\pi^{3}}\;\Longrightarrow\;B_n=\frac{8\lambda l^{3}}{n^{4}\pi^{4}c}.

For even nn: Bn=0B_n=0.

Step 6 — Final solution

Answer

  u(x,t)=8λl3π4cn odd1n4sinnπxlsinnπctl.  \boxed{\;u(x,t)=\frac{8\lambda l^{3}}{\pi^{4}c}\sum_{n\text{ odd}}\frac{1}{n^{4}}\sin\frac{n\pi x}{l}\sin\frac{n\pi ct}{l}.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.