A membrane, an impulse and a spectrum of modes
Separation of variables for a two-dimensional vibrating membrane
A membrane’s motion depends on both its shape at release and the velocity it is given. I explored that distinction on a rectangular membrane with fixed edges: first with a smooth raised profile and sinusoidal initial velocity, then with a concentrated impulse at the centre.
The calculation starts with a partial differential equation and ends with a computable sum of normal modes. Along the way, the boundary conditions select the admissible shapes, orthogonality determines their amplitudes, and the initial data decide which modes actually contribute.
Geometry and the wave equation
For small-amplitude vibrations, I considered a rectangular domain \(0\leq x\leq L\), \(0\leq y\leq K\), with displacement \(u(x,y,t)\). The equation in my report is
\[u_{tt}=\frac1{c^2}(u_{xx}+u_{yy}).\]
The parameter \(c\) is constant.
All four edges are held fixed:
\[u(0,y,t)=u(L,y,t)=u(x,0,t)=u(x,K,t)=0.\]
The initial conditions are
\[u(x,y,0)=f(x,y),\qquad u_t(x,y,0)=g(x,y).\]
The idealised equation has no damping term.
Separating the spatial and temporal problems
I sought a product solution
\[u(x,y,t)=\phi(x)G(y)\gamma(t).\]
After substitution and separation, the fixed-edge conditions lead to sine functions in both spatial directions:
\[\phi_n(x)=\sin\frac{n\pi x}{L},\qquad G_m(y)=\sin\frac{m\pi y}{K},\qquad n,m=1,2,\ldots.\]
The combined spatial eigenvalue is
\[\lambda_{nm}=\frac{n^2\pi^2}{L^2}+\frac{m^2\pi^2}{K^2}.\]
The time equation is
\[\gamma''+\frac{\lambda_{nm}}{c^2}\gamma=0,\]
so each spatial mode oscillates with frequency \(\sqrt{\lambda_{nm}}/c\). Superposing the modes gives
\[ u(x,y,t)=\sum_{n=1}^{\infty}\sum_{m=1}^{\infty} \left[A_{nm}\cos\left(\frac{\sqrt{\lambda_{nm}}}{c}t\right) +B_{nm}\sin\left(\frac{\sqrt{\lambda_{nm}}}{c}t\right)\right] \sin\frac{n\pi x}{L}\sin\frac{m\pi y}{K}. \]
This form separates two jobs cleanly. The geometry and boundary conditions determine the allowed modes; \(A_{nm}\) and \(B_{nm}\) encode how the membrane is started.
Projecting the initial conditions
The one-dimensional orthogonality relations are
\[\int_0^L\sin\frac{n\pi x}{L}\sin\frac{p\pi x}{L}\,dx =\begin{cases}L/2,&n=p,\\0,&n\ne p,\end{cases}\]
with the analogous factor \(K/2\) in the \(y\) direction. The squared norm of a product mode is therefore \(LK/4\).
Multiplying the initial displacement by a mode and integrating over the rectangle isolates its coefficient:
\[A_{nm}=\frac4{LK}\int_0^L\int_0^K f(x,y)\sin\frac{n\pi x}{L}\sin\frac{m\pi y}{K}\,dy\,dx.\]
Differentiating the modal sum with respect to time before setting \(t=0\) gives
\[B_{nm}=\frac{c}{\sqrt{\lambda_{nm}}}\frac4{LK} \int_0^L\int_0^K g(x,y) \sin\frac{n\pi x}{L}\sin\frac{m\pi y}{K}\,dy\,dx.\]
The extra factor \(c/\sqrt{\lambda_{nm}}\) is essential: initial displacement and initial velocity do not enter the time-dependent solution in the same way.
Experiment one: a smooth initial displacement
For the first example I chose
\[f(x,y)=Cxy(L-x)(K-y),\qquad g(x,y)=\sin\frac{\pi x}{L}.\]
The displacement vanishes at every fixed edge. Its coefficient integral separates into an \(x\) integral and a \(y\) integral. Define
\[I_n=\int_0^L x(L-x)\sin\frac{n\pi x}{L}\,dx.\]
The integration-by-parts calculation in the appendix gives
\[\int_0^L x\sin\frac{n\pi x}{L}\,dx =-\frac{L^2}{n\pi}(-1)^n,\]
and
\[\int_0^L x^2\sin\frac{n\pi x}{L}\,dx =-\frac{L^3}{n\pi}(-1)^n +\frac{2L^3}{n^3\pi^3}\bigl[(-1)^n-1\bigr].\]
Subtracting the second integral from \(L\) times the first leaves
\[I_n=\frac{2L^3}{n^3\pi^3}\bigl[1-(-1)^n\bigr] =\begin{cases}4L^3/(n^3\pi^3),&n\text{ odd},\\0,&n\text{ even}.\end{cases}\]
Applying the same calculation in \(y\) yields
\[A_{nm}=\begin{cases} \displaystyle\frac{64CL^2K^2}{n^3m^3\pi^6},&n,m\text{ odd},\\ 0,&\text{otherwise}. \end{cases}\]
For the velocity term, orthogonality in \(x\) selects \(n=1\), while integration in \(y\) selects odd \(m\).
Evaluating the finite modal sum
The numerical illustrations use \(L=50\), \(K=25\), \(c=0.1\) and \(C=1\). The first example retains odd modes through \(n=m=5\) on an \(80\times80\) spatial grid. The MATLAB excerpt gives the grid, mode indices and times used for the original surfaces.
L = 50; K = 25; c = 0.1; C = 1;
Nx = 80; Ny = 80;
x = linspace(0,L,Nx); y = linspace(0,K,Ny);
[X,Y] = meshgrid(x,y);
nVals = 1:2:5; mVals = 1:2:5;
t_values = [0 5 50 100 500 1000];


The report observes that the broad raised shape reverses its displacement and resembles the fundamental mode at several displayed times. The illustrated calculation includes several odd modes.
Experiment two: an impulse at the centre
For the second example, I started from zero displacement and prescribed a concentrated initial velocity:
\[f(x,y)=0,\qquad g(x,y)=C\,\delta\left(x-\frac L2,y-\frac K2\right).\]
The delta distribution evaluates the mode at the centre of the membrane. Consequently,
\[A_{nm}=0,\]
and
\[B_{nm}=\frac{4Cc}{LK\sqrt{\lambda_{nm}}} \sin\frac{n\pi}{2}\sin\frac{m\pi}{2}.\]
Even modes vanish because their sine factor is zero. The odd modes alternate in sign according to their value at the centre. Substituting into the general solution gives
\[ u(x,y,t)=\sum_{n,m=1}^{\infty} \frac{4Cc}{LK\sqrt{\lambda_{nm}}} \sin\frac{n\pi}{2}\sin\frac{m\pi}{2} \sin\left(\frac{\sqrt{\lambda_{nm}}}{c}t\right) \sin\frac{n\pi x}{L}\sin\frac{m\pi y}{K}. \]
The source implementation keeps odd indices through \(9\), rather than through \(5\) as in the first example.
nVals = 1:2:9; mVals = 1:2:9;
t_values = [0 1 5 50 200 1000];
for t = t_values
U = zeros(size(X));
for n = nVals
for m = mVals
lambda = pi^2*((n/L)^2+(m/K)^2);
S = sin(n*pi/2)*sin(m*pi/2);
if S ~= 0
B = (4*c*C)/(L*K*sqrt(lambda))*S;
U = U + B*sin(sqrt(lambda)*t/c) ...
.*sin(n*pi*X/L).*sin(m*pi*Y/K);
end
end
end
end


Compared with the smooth initial displacement, the impulse produces a more intricate interference pattern. The original discussion follows waves spreading from the centre and interacting within the fixed boundary, producing regions of constructive and destructive interference. The long-time plots remain oscillatory, as expected for the undamped equation.
Comparing the two initial conditions
The solutions use analytical modal expansions. The surfaces evaluate finitely many terms of those expansions at selected times.
The report’s central observation is the contrast between the two initial conditions: a smooth, broad displacement is dominated visually by a simple shape, whereas the central impulse excites a visibly richer pattern. The report attributes the persistence of both vibrations to the absence of damping.
Originally completed as part of MAM2043S · Boundary-Value Problems, University of Cape Town, 2025.