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).


  1. Lift: w = 50 + (10 − 50)x/2 = 50 − 20x. Check w(0) = 50 and w(2) = 10.
  2. v = u − w satisfies vt = 3vxx, v(0, t) = v(2, t) = 0, and v(x, 0) = 6 sin(3πx/2).
  3. 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).
  4. 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

  1. Choose w to satisfy all nonhomogeneous boundary conditions, ideally also the PDE.
  2. Write the full problem for v: equation (with any new source), homogeneous boundary conditions, and v(x, 0) = u(x, 0) − w(x, 0).
  3. Expand in eigenfunctions of the homogeneous problem and solve the coefficient ODEs.
  4. Reassemble u = w + v and verify the PDE, every boundary condition and the initial condition.

Temperature in a rod satisfies ut = kuxx for 0 < x < 5, with u(0, t) = 30 and u(5, t) = 80. You write u = w(x) + v(x, t) so that v satisfies the same heat equation, with no source term, and homogeneous boundary conditions v(0, t) = v(5, t) = 0. Which w achieves this?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. 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.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. 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.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors