17.4 KB · commit e092022
| title | Module 2.11: Separation of Variables & 1D Wave Equation |
|---|---|
| module | 2.11 |
| style | explanation |
← 2.10 Non-Homogeneous Linear PDEs · Index · 2.12 1D Heat Conduction Equation →
We are solving a first-order partial differential equation using separation of variables. We split the equation into two ordinary differential equations for space and time. Then we match the separation constants to the given initial condition.
Question: Using the separation of variables method, solve
4∂t∂u+∂x∂u=3ugiven that u=3e−x−e−5x at t=0.
Solution:
Let the trial solution be:
u(x,t)=X(x)T(t)where X is a function of x alone and T is a function of t alone.
Why the product trial works: Assuming u(x,t)=X(x)T(t) allows us to isolate all x-dependence on one side and all t-dependence on the other. Since x and t vary independently, both sides must equal the same constant.
Computing partial derivatives:
∂t∂u=X(x)T′(t),∂x∂u=X′(x)T(t)Substituting into the given PDE:
4XT′+X′T=3XTDividing throughout by XT:
4TT′+XX′=3Separating the variables:
XX′=3−4TT′=kwhere k is a separation constant.
This gives two independent ordinary differential equations:
Combining X(x) and T(t) with A=c1c2:
uk(x,t)=Aekx+(43−k)tBy the principle of superposition, the general solution is:
u(x,t)=∑Akekx+(43−k)tApplying the initial condition at t=0:
u(x,0)=∑Akekx=3e−x−e−5xComparing corresponding exponential terms:
Watch out: Check the signs when substituting negative separation constants into 43−k. For k=−1, 3−(−1)=4. For k=−5, 3−(−5)=8.
Substituting these constants:
u(x,t)=3e−x+t−e−5x+2tWe are solving a PDE with a mixed second-order derivative. We apply separation of variables by setting v(x,t)=X(x)T(t). We also show how direct successive integration produces the full general solution with arbitrary functions.
Question: Solve the equation by the method of separation of variables:
∂x∂t∂2v=e−tcosxSolution:
Let the solution be of separable product form:
v(x,t)=X(x)T(t)The mixed second partial derivative is:
∂x∂t∂2v=X′(x)T′(t)Substituting into the differential equation:
X′(x)T′(t)=cosx⋅e−tSeparating the variables:
cosxX′(x)=T′(t)e−t=kwhere k is a non-zero separation constant.
Why this step works: The left side depends only on x, while the right side depends only on t. They can be equal for all x and t only if both equal a common constant k.
This yields two ordinary differential equations:
Integrating with respect to x:
X(x)=ksinx+c1Integrating with respect to t:
T(t)=−k1e−t+c2Multiplying the two functions:
v(x,t)=X(x)T(t)=(ksinx+c1)(−k1e−t+c2) v(x,t)=−sinx⋅e−t+c2ksinx−kc1e−t+c1c2Setting A=c2k, B=−kc1, and C=c1c2:
v(x,t)=−e−tsinx+Asinx+Be−t+CEquivalently, integrating directly by separating differential variables:
Integrating ∂t∂(∂x∂v)=e−tcosx with respect to t:
∂x∂v=−e−tcosx+f(x)Integrating with respect to x:
v(x,t)=−e−tsinx+∫f(x)dx+g(t) v(x,t)=−e−tsinx+F(x)+g(t)where F(x) and g(t) are arbitrary functions of x and t respectively.
Watch out: Integrating with respect to one variable introduces an arbitrary function of the other variable, not merely a numerical constant.
We are finding the steady periodic motion of a string fixed at one end and driven harmonically at the other end. We use separation of variables and match the temporal frequency directly to the driving frequency.
Question: Find the solution of the wave equation
∂x2∂2u=c21∂t2∂2usubject to the condition that u=p0cospt when x=l and u=0 when x=0.
Solution:
The given wave equation is:
∂x2∂2u=c21∂t2∂2uBoundary conditions:
Let the solution be of separable product form:
u(x,t)=X(x)T(t)Substituting into the wave equation:
X′′(x)T(t)=c21X(x)T′′(t)Dividing by X(x)T(t):
X(x)X′′(x)=c21T(t)T′′(t)=−k2Why we choose a negative separation constant −k2: The boundary motion oscillates periodically as cospt. A negative constant yields sinusoidal and cosine solutions rather than growing exponentials.
The temporal equation is:
T′′(t)+k2c2T(t)=0The boundary condition at x=l varies with time as cospt. Hence the angular frequency must match:
kc=p⟹k=cpThe temporal solution matching the harmonic forcing is:
T(t)=cosptThe spatial equation becomes:
X′′(x)+(cp)2X(x)=0The general solution of this ordinary differential equation is:
X(x)=C1cos(cpx)+C2sin(cpx)Applying the boundary condition at x=0:
u(0,t)=X(0)T(t)=0⟹X(0)=0 X(0)=C1cos(0)+C2sin(0)=C1=0Thus:
X(x)=C2sin(cpx)Applying the boundary condition at x=l:
u(l,t)=X(l)cospt=p0cospt X(l)=p0 C2sin(cpl)=p0⟹C2=sin(cpl)p0provided sin(cpl)=0.
Watch out: If cpl=nπ, resonance occurs. In that case, the denominator vanishes, and the steady-state solution becomes unbounded. The problem assumes no resonance.
Therefore:
u(x,t)=sin(cpl)p0sin(cpx)cosptWe are finding the vibration of an elastic string released from rest. Its initial shape is a single sine mode. We apply the fixed-end boundary conditions. The zero initial velocity eliminates temporal sine terms. We then find the single Fourier coefficient.
Question: A string is stretched and fastened to two points l apart. Motion is started by displacing the string in the form
y=asinlπxfrom which it is released at time t=0. Show that the displacement of any point at a distance x from one end at time t is given by
y(x,t)=asin(lπx)cos(lπct)Solution:
The governing one-dimensional wave equation is:
∂t2∂2y=c2∂x2∂2yBoundary conditions:
y(0,t)=0,y(l,t)=0,for all t≥0Initial conditions:
Let y(x,t)=X(x)T(t). Substituting into the PDE:
XT′′=c2X′′T⟹XX′′=c21TT′′=−p2This gives two ODEs:
X′′+p2X=0 T′′+p2c2T=0Their solutions are:
X(x)=c1cospx+c2sinpx T(t)=c3cospct+c4sinpctFor a non-trivial solution (c2=0):
sinpl=0⟹pl=nπ⟹p=lnπ,n=1,2,3,…Why we discretize p: Only specific frequencies (eigenvalues) satisfy zero displacement at both fixed ends simultaneously.
Differentiating T(t) with respect to t:
T′(t)=−c3pcsinpct+c4pccospct⟹T′(0)=c4pc=0⟹c4=0Because the string is released from rest, the time dependence contains only cosine terms.
The general solution by superposition is:
y(x,t)=n=1∑∞Ansin(lnπx)cos(lnπct)At t=0:
y(x,0)=n=1∑∞Ansin(lnπx)=asin(lπx)Comparing Fourier coefficients:
Why no full Fourier integral is needed: The given initial shape matches the fundamental harmonic n=1 directly. By orthogonality of sine functions, all higher harmonics are zero.
Substituting A1=a into the general solution:
y(x,t)=asin(lπx)cos(lπct)Shown.
We are finding the motion of a string of length π released from rest. The initial deflection contains two sine modes. We use separation of variables and match coefficients directly to find the two non-zero modes.
Question: The vibrations of an elastic string are governed by the PDE ∂t2∂2u=∂x2∂2u. The length of the string is π and the ends are fixed. The initial velocity is zero and the initial deflection is
u(x,0)=2(sinx+sin3x)Find the deflection u(x,t) of the vibrating string for t>0.
(Note: Printed as "is r and the ends are fixed" in original paper scan, where r is a typographical error for π).
Solution:
The wave equation is:
∂t2∂2u=c2∂x2∂2uHere wave speed c=1 and string length l=π.
Boundary conditions:
u(0,t)=0,u(π,t)=0Initial conditions:
∂t∂ut=0=0,u(x,0)=2sinx+2sin3xBy the method of separation of variables, the general solution for a string with fixed ends and zero initial velocity is:
u(x,t)=n=1∑∞Ansin(lnπx)cos(lnπct)Substituting l=π and c=1:
u(x,t)=n=1∑∞Ansin(nx)cos(nt)Applying the initial deflection condition at t=0:
u(x,0)=n=1∑∞Ansin(nx)=2sinx+2sin3xComparing coefficients of sin(nx) on both sides:
Watch out: Since l=π and c=1, the temporal frequency nπc/l simplifies cleanly to n. Do not forget the coefficient 2 on the sin3x term when expanding 2(sinx+sin3x).
Substituting these coefficients into the series:
u(x,t)=2sinxcost+2sin3xcos3tWe derive the complete general solution of the 1D wave equation for an arbitrary initial displacement f(x). The initial velocity is zero. We analyze all three cases for the separation constant. We apply boundary conditions to find spatial modes. Finally, a Fourier sine series yields the complete solution.
Question: Using the method of separation of variables solve completely the equation
∂t2∂2y=c2∂x2∂2yrepresenting the variations of a string of length l, fixed at both ends, given that y(0,t)=0, y(l,t)=0, y(x,0)=f(x) and ∂t∂[y(x,0)]=0, 0<x<l.
Solution:
The governing wave equation is:
∂t2∂2y=c2∂x2∂2y(1)Let:
y(x,t)=X(x)T(t)(2)Computing partial derivatives:
∂x2∂2y=X′′(x)T(t),∂t2∂2y=X(x)T′′(t)Substituting into (1):
X(x)T′′(t)=c2X′′(x)T(t)Dividing by c2X(x)T(t):
X(x)X′′(x)=c21T(t)T′′(t)=K(3)where K is a separation constant.
We must test all three sign possibilities for K:
Case 1 (K>0, let K=p2): X(x)=c1epx+c2e−px. X(0)=c1+c2=0⟹c2=−c1. X(l)=c1(epl−e−pl)=0⟹c1=0 since pl=0. This gives only the trivial solution y(x,t)≡0.
Case 2 (K=0): X(x)=c1x+c2. X(0)=c2=0. X(l)=c1l=0⟹c1=0. This also gives only the trivial solution.
Case 3 (K<0, let K=−p2 with p>0): This yields non-trivial periodic solutions.
Why only Case 3 survives: Fixed endpoints require the spatial function to vanish at two different points. Exponential and linear functions cannot vanish at two points without being identically zero. Only sinusoidal functions have multiple zeros.
Equation (3) splits into:
X′′(x)+p2X(x)=0(4) T′′(t)+p2c2T(t)=0(5)The general solutions are:
X(x)=c1cospx+c2sinpx T(t)=c3cospct+c4sinpctThus X(x)=c2sinpx.
For non-trivial solutions (c2=0):
sinpl=0⟹pl=nπ⟹p=lnπ,n=1,2,3,…The product solution for each integer mode n is:
yn(x,t)=Ansin(lnπx)cos(lnπct)By the principle of superposition:
y(x,t)=n=1∑∞Ansin(lnπx)cos(lnπct)Applying the initial displacement condition at t=0:
y(x,0)=n=1∑∞Ansin(lnπx)=f(x)This is a half-range Fourier sine series for f(x) on [0,l].
Why the Fourier sine formula works: Sine functions of different harmonics are orthogonal over [0,l]:
∫0lsin(lmπx)sin(lnπx)dx={0,2l,m=nm=nMultiplying both sides by sin(lnπx) and integrating yields the Fourier coefficients:
An=l2∫0lf(x)sin(lnπx)dxThe complete general solution is:
y(x,t)=n=1∑∞Ansin(lnπx)cos(lnπct),where An=l2∫0lf(x)sin(lnπx)dxKey Takeaway: The complete separation of variables solution for the fixed-end 1D wave equation requires three stages:
- Reject K≥0 to get sinusoidal spatial solutions.
- Discretize spatial modes with p=nπ/l and drop temporal sine terms using zero initial velocity.
- Use Fourier sine integral formulas to represent an arbitrary initial displacement f(x).
← 2.10 Non-Homogeneous Linear PDEs · Index · 2.12 1D Heat Conduction Equation →