Nonhomogeneous Boundary-Value Problems
Nonhomogeneous Boundary-Value Problems: Lifting, Superposition and Eigenfunction Expansions
Why nonhomogeneous data blocks separation of variables
Separation of variables relies on superposition: if two functions satisfy the boundary conditions, so does their sum.
That works only when the boundary conditions are homogeneous, such as u(0, t) = 0. If an end is held at 50°, adding two solutions gives an end at 100°, so the product solutions cannot simply be added. The cure is to subtract off the inconvenient data first.
The lifting strategy
Write u = w + v, where
- w (the lifting or reference function) satisfies the nonhomogeneous boundary conditions exactly;
- v then satisfies the corresponding homogeneous boundary conditions.
Substituting into the PDE shows what v inherits. For ut = kuxx:
vt = kvxx + (kwxx − wt).
If w itself satisfies the PDE, the bracket vanishes and v solves the homogeneous problem. If not, v picks up a source term. Either way, v's initial condition is v(x, 0) = u(x, 0) − w(x, 0).
Case 1: constant Dirichlet data (use the steady state)
For ut = kuxx on 0 < x < L with u(0, t) = A and u(L, t) = B, take the steady state: wxx = 0 with the same end values, so
w(x) = A + (B − A)x/L.
Worked example. ut = 3uxx on 0 < x < 2, u(0, t) = 50, u(2, t) = 10, u(x, 0) = 50 − 20x + 6 sin(3πx/2).
- Lift: w = 50 + (10 − 50)x/2 = 50 − 20x. Check w(0) = 50 and w(2) = 10.
- v = u − w satisfies vt = 3vxx, v(0, t) = v(2, t) = 0, and v(x, 0) = 6 sin(3πx/2).
- That initial profile is the n = 3 eigenfunction sin(nπx/2), which decays at rate 3(3π/2)2 = 27π2/4. So v = 6e−27π2t/4 sin(3πx/2).
- u = 50 − 20x + 6e−27π2t/4 sin(3πx/2). Verify: at x = 0 and x = 2 the sine term vanishes, leaving 50 and 10; at t = 0 the original profile returns.
When u(x, 0) − w(x) is not a single eigenfunction, expand it in the sine series bn = (2/L)∫0L [u(x, 0) − w(x)] sin(nπx/L) dx. The most common error is expanding u(x, 0) instead of u(x, 0) − w(x).
Case 2: data a steady state cannot absorb
Sometimes no time-independent w satisfies both the boundary conditions and the PDE.
With flux conditions ux(0, t) = 0 and ux(L, t) = q ≠ 0, no linear function has slope 0 at one end and q at the other, and a quadratic that does has wxx ≠ 0. For q>0, heat keeps entering; for q<0, heat leaves.
In either case, nonzero net flux prevents a steady state. Two options:
- accept the quadratic lifting and handle the resulting constant source term in the v problem; or
- add a term linear in t so that w satisfies the PDE too, which leaves v fully homogeneous.
Case 3: source terms and eigenfunction expansions
For ut = kuxx + F(x, t) with homogeneous boundary conditions, expand both u and F in the eigenfunctions Xn of the homogeneous problem: u = Σ Tn(t) Xn(x) and F = Σ Fn(t) Xn(x). Each coefficient obeys a first-order linear ODE
Tn′ + kλnTn = Fn(t), with Tn(0) from the initial data.
For a time-independent coefficient Fn and a positive eigenvalue λn > 0, Tn approaches Fn/(kλn) exponentially at rate kλn.
If λn = 0, as for the constant Neumann mode, then Tn′ = Fn and a nonzero constant forcing produces linear growth instead of an equilibrium.
Example: on 0 < x < π with k = 1 and source 9 sin 3x, the mode sin 3x has λ = 9, so starting from zero T3 = 1 − e−9t, rising toward 1.
Checklist
- Choose w to satisfy all nonhomogeneous boundary conditions, ideally also the PDE.
- Write the full problem for v: equation (with any new source), homogeneous boundary conditions, and v(x, 0) = u(x, 0) − w(x, 0).
- Expand in eigenfunctions of the homogeneous problem and solve the coefficient ODEs.
- Reassemble u = w + v and verify the PDE, every boundary condition and the initial condition.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Solve ut = 2uxx for 0 < x < 1, t > 0, with
u(0, t) = 10, u(1, t) = 40, u(x, 0) = 10 + 30x + 5 sin(2πx).
Evaluate u(1/4, 0.01) to two decimal places.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Solve ut = uxx for 0 < x < π, t > 0, with
u(0, t) = 0, u(π, t) = π, u(x, 0) = 0.
Using the series solution, evaluate u(π/2, 1) to three decimal places. State how many series terms you needed and why.