Parabolic (B2−4AC=0): e.g., the heat equation ut=α2uxx.
Hyperbolic (B2−4AC>0): e.g., the wave equation utt=c2uxx.
8.2 The Heat Equation
ut=α2uxx,0<x<L,t>0
With boundary conditions u(0,t)=u(L,t)=0 and initial condition u(x,0)=f(x).
8.3 Derivation of the Heat Equation
Consider a thin rod of length L with uniform cross-section and density ρ. Let u(x,t) be the Temperature at position x and time t. By Fourier’s law of heat conduction, the heat flux Through a cross-section is proportional to the negative temperature gradient:
q=−κux
Where κ is the thermal conductivity. Conservation of energy on [x,x+Δx]:
ρc∂t∂uΔx=q(x)−q(x+Δx)=−κux(x)+κux(x+Δx)
Dividing by Δx and taking Δx→0:
ρcut=κuxx⟹ut=ρcκuxx=α2uxx
Where α2=κ/(ρc) is the thermal diffusivity.
8.4 Solving the Heat Equation by Separation of Variables
Assume u(x,t)=X(x)T(t). Substituting:
XT′=α2X′′T⟹α2TT′=XX′′=−λ
This gives two ODEs:
X′′+λX=0,X(0)=X(L)=0T′+α2λT=0
The boundary value problem for X has solutions only for λn=(nπ/L)2n=1,2,3,…With Xn(x)=sin(nπx/L).
The corresponding Tn(t)=e−α2(nπ/L)2t.
By superposition:
u(x,t)=∑n=1∞bnsinLnπxe−α2(nπ/L)2t
Where bn=L2∫0Lf(x)sinLnπxdx (the sine series coefficients of f).
8.5 Worked Example: Heat Equation
Problem. Solve ut=uxx for 0<x<π, t>0With u(0,t)=u(π,t)=0 And u(x,0)=sin(2x)+3sin(5x).
Solution. Here α=1 and L=π. The initial condition is already a sine series.
λn=n2, Xn=sin(nx), Tn=e−n2t.
u(x,t)=e−4tsin(2x)+3e−25tsin(5x). ■
8.6 The Wave Equation
utt=c2uxx,0<x<L,t>0
With boundary conditions u(0,t)=u(L,t)=0And initial conditions u(x,0)=f(x)ut(x,0)=g(x).
8.7 Derivation of the Wave Equation
Consider a string of length L under tension T. Let u(x,t) be the vertical displacement. For A small segment [x,x+Δx]Newton’s second law in the vertical direction gives:
ρΔxutt=Tsinθ(x+Δx)−Tsinθ(x)
For small displacements, sinθ≈tanθ=uxSo:
ρutt=TΔxux(x+Δx)−ux(x)Δx→0Tuxx
utt=ρTuxx=c2uxx,c=T/ρ
8.8 Solving the Wave Equation
Separation of variables u(x,t)=X(x)T(t) gives:
X′′+λX=0,T′′+c2λT=0
With λn=(nπ/L)2:
Xn(x)=sinLnπx,Tn(t)=ancosLcnπt+bnsinLcnπt
u(x,t)=∑n=1∞sinLnπx(ancosLcnπt+bnsinLcnπt)
Where an=L2∫0Lf(x)sinLnπxdx and bn=cnπ2∫0Lg(x)sinLnπxdx.
8.9 D’Alembert’s Solution
For the wave equation on −∞<x<∞:
u(x,t)=2f(x+ct)+f(x−ct)+2c1∫x−ctx+ctg(s)ds
This represents the solution as a superposition of right-moving and left-moving waves.
8.10 Laplace’s Equation
uxx+uyy=0
On a domain Ω⊆R2With boundary conditions on ∂Ω.
Theorem 8.1 (Maximum Principle). A harmonic function u (satisfying Laplace’s equation) on a Bounded domain attains its maximum and minimum on the boundary.
Theorem 8.2 (Uniqueness). The Dirichlet problem for Laplace’s equation has at most one solution.
Proof. If u1 and u2 are two solutions with the same boundary data, then v=u1−u2 is Harmonic with v=0 on ∂Ω. By the maximum principle, v≡0. ■
8.11 Worked Example: Wave Equation
Problem. A string of length π with fixed ends is plucked: u(x,0)=x(π−x)ut(x,0)=0. Find u(x,t).
Solution. With c=1 and L=π: an=π2∫0πx(π−x)sin(nx)dxbn=0 (since g=0).
On [a,b] with homogeneous boundary conditions, where p,w>0 and p,p′,q,w are continuous.
Key properties:
The eigenvalues are real and form an infinite increasing sequence λ1<λ2<⋯→∞.
Eigenfunctions corresponding to distinct eigenvalues are orthogonal with respect to the weight w(x): ∫abym(x)yn(x)w(x)dx=0 for m=n.
The eigenfunctions form a complete set in the weighted L2 space.
Remark. The boundary value problems encountered in the heat and wave equations (X′′+λX=0 with X(0)=X(L)=0) are special cases of Sturm-Liouville problems With p=1, q=0, w=1.
8.14 Neumann Boundary Conditions
When the boundary specifies the derivative (heat flux) rather than the value, we have Neumann Conditions. For the heat equation:
ux(0,t)=0,ux(L,t)=0
(insulated ends). The separation of variables gives X′(0)=X′(L)=0Yielding eigenvalues λ0=0 with X0=1And λn=(nπ/L)2 for n≥1 with Xn=cos(nπx/L).
The solution is
u(x,t)=2a0+∑n=1∞ancosLnπxe−α2(nπ/L)2t
Where an=L2∫0Lf(x)cosLnπxdx.
Remark. As t→∞All exponential terms decay, and u(x,t)→a0/2The average Value of the initial temperature. Physically, an insulated rod reaches a uniform steady-state Temperature.
8.15 Worked Example: Heat Equation with Non-Trivial Initial Data
Problem. Solve ut=uxx for 0<x<π, t>0With u(0,t)=u(π,t)=0 And u(x,0)=x(π−x).
Solution
Solution. The sine series of f(x)=x(π−x) on [0,π] has coefficients
bn=π2∫0πx(π−x)sin(nx)dx=πn34(1−(−1)n).
(Computed in Section 8.11.)
For even n: bn=0. For odd n=2k+1: bn=πn38.
u(x,t)=π8∑k=0∞(2k+1)3sin((2k+1)x)e−(2k+1)2t. ■
8.16 Worked Example: D’Alembert’s Solution
Problem. Solve utt=4uxx for −∞<x<∞ with u(x,0)=e−x2 and ut(x,0)=0.
Solution
Solution. Here c=2. By D’Alembert’s formula with g=0:
u(x,t)=2f(x+2t)+f(x−2t)=2e−(x+2t)2+e−(x−2t)2.
This represents two Gaussian pulses traveling in opposite directions at speed 2. ■