Separable Partial Differential Equations
Separable PDEs: The Product Ansatz, Separation Constants and Eigenvalue Problems
The product ansatz
For a PDE in two variables, try a solution of the form u(x, t) = X(x)T(t). Substitute, then divide by XT. The PDE is separable if every term can be moved to one of two sides, one depending only on x and the other only on t.
Why a constant appears. If F(x) = G(t) for all x and t, then changing t while holding x fixed cannot change G, so both sides equal one number, the separation constant. That single observation turns one PDE into two ODEs.
When the ansatz works, and when it does not
For the standard direct separation method applied to the linear PDEs considered in this lesson, these are useful preliminary checks, not a guarantee of separation:
- Within this lesson's linear-PDE setting, the equation is homogeneous before applying the direct product ansatz: every term contains u or one of its derivatives. A term such as sin x with no u cannot be divided by XT into a function of one variable.
- Check how each coefficient splits. In the basic two-term equations here, a derivative coefficient must factor into one-variable functions; a coefficient multiplying u may split additively only after the derivative terms have been normalized by a compatible common factor. These individual checks are necessary in these forms but are not sufficient.
- The domain and boundary conditions fit the variables: boundaries lie along x = constant or t = constant, and the conditions on the separated boundaries are homogeneous.
Check the whole equation. Substitute u = XT, divide by XT, and, if needed, divide the whole equation by one nonzero common factor.
Every resulting term must then be a function of x alone or of t alone so that the terms can be grouped on opposite sides.
For example, for t > 0, ut = tuxx + xu passes the separate coefficient checks, but gives T′/T = tX″/X + x, or T′/(tT) = X″/X + x/t.
The last term still mixes x and t, so this equation does not directly separate. By contrast, an additive coefficient of u works in ut = uxx + [f(x) + g(t)]u, where the derivative coefficients share the same normalization.
Examples.
- ut = (1 + t)uxx. Substituting: XT′ = (1 + t)X″T, so T′/[(1 + t)T] = X″/X. Separable.
- ut = uxx + (x + t)u. Dividing: T′/T = X″/X + x + t, so T′/T − t = X″/X + x. Separable, because the coefficient of u splits additively.
- ut = uxx + extu. Dividing gives T′/T = X″/X + ext, and ext cannot be written as a function of x plus a function of t. Not separable.
Worked example: deriving and using the separated ODEs
Solve ut = (1 + t)uxx for 0 < x < 1 with u(0, t) = u(1, t) = 0 and u(x, 0) = 3 sin(πx).
- Separate. T′/[(1 + t)T] = X″/X = −λ. The minus sign is a convention chosen so that the physically useful constants turn out positive.
- Transfer the boundary conditions. u(0, t) = X(0)T(t) = 0 for all t. Since T ≡ 0 gives only the trivial solution, X(0) = 0; likewise X(1) = 0.
- Solve the eigenvalue problem X″ + λX = 0, X(0) = X(1) = 0 by cases.Eigenvalues λn = n2π2, eigenfunctions sin(nπx).
- λ < 0: X = A cosh(kx) + B sinh(kx) with k = √(−λ). X(0) = 0 gives A = 0; X(1) = B sinh k = 0 gives B = 0. Trivial.
- λ = 0: X = A + Bx; both conditions force A = B = 0. Trivial.
- λ > 0: X = A cos(√λ x) + B sin(√λ x). X(0) = 0 gives A = 0, and X(1) = 0 needs sin √λ = 0, so √λ = nπ.
- Solve the other ODE. T′ = −λ(1 + t)T, so T = C exp[−λ(t + t2/2)].
- Apply the initial data. 3 sin(πx) is the n = 1 mode alone, so u = 3 sin(πx) exp[−π2(t + t2/2)]. If the data contained several modes, you would add one product per mode (superposition) and match coefficients.
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.
For x > 0 and y > 0, consider the first-order PDE x ux = 2y uy.
Using u(x, y) = X(x)Y(y), find the separated solution that satisfies u(x, 1) = x4 for all x > 0, and evaluate u(2, 3).
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.
Use separation of variables to solve ut = t uxx for 0 < x < π, t > 0, with u(0, t) = u(π, t) = 0 and u(x, 0) = 5 sin(2x).
Evaluate u(π/4, 1) to three decimal places.