advanced22 min studyLesson 383 in Mathematics

Mollification and density

Approximate weakly differentiable functions by smooth ones without confusing interior smoothing with boundary conditions.

On this page

What you’ll understand

  • Use convolution to smooth functions and commute weak derivatives with mollification.
  • State density results with the correct finite-p and boundary hypotheses.
  • Explain why smoothing in W¹,∞ and compact-support approximation need separate arguments.

Many Sobolev estimates are easiest to prove for smooth functions and then extend by density. Mollification supplies the bridge, but the boundary and the chosen norm decide which bridge is available. A convolution near the edge of a domain needs values outside it, and a smooth approximation that changes the boundary trace may fail to preserve a PDE constraint. Understanding these distinctions prevents a convenient formal integration by parts from becoming an invalid limiting argument.

Average on a controlled spatial scale

Choose a nonnegative even smooth kernel ρ\rho supported in the unit ball with integral one, and define ρε(x)=ε−nρ(x/ε)\rho_\varepsilon(x)=\varepsilon^{-n}\rho(x/\varepsilon). For a locally integrable whole-space function, convolution is smooth wherever the compact averaging ball stays in a region of integrability. On an open domain without an extension, the same formula is defined only where the averaging ball lies inside the domain. Smoothing does not create boundary values that the original function never supplied. Its length scale is the kernel radius, not a promise of uniform pointwise error for arbitrary data.

If u∈Wk,p(Rn)u\in W^{k,p}(\mathbb R^n) with finite pp, weak differentiation commutes with convolution: differentiate the kernel first and then use the weak identity to transfer derivatives back onto uu. Translation continuity in LpL^p implies that convolving each derivative with this approximate identity converges in LpL^p. Summing the finitely many component errors gives convergence in Wk,pW^{k,p}. The same reasoning works locally inside a domain. It does not require the original derivative to be continuous, only integrable in the specified exponent.

Dα(ρε∗u)=ρε∗Dαu,∥ρε∗u−u∥Wk,p(Rn)→0(1≤p<∞)D^\alpha(\rho_\varepsilon*u)=\rho_\varepsilon*D^\alpha u,\qquad \|\rho_\varepsilon*u-u\|_{W^{k,p}(\mathbb R^n)}\to0\quad(1\le p<\infty)
The convergence statement assumes whole-space Wᵏ,ᵖ membership; inside a domain it is first an interior statement.↔ Scroll wide equations horizontally.

Three different density claims

For any open Ω\Omega and finite pp, smooth functions on Ω\Omega that belong to Wk,p(Ω)W^{k,p}(\Omega) are dense in that space. A locally finite partition of unity lets different neighborhoods use different smoothing radii, avoiding a false assumption that one global radius stays inside an arbitrary domain. This is the Meyers–Serrin density theorem. Smoothness on the open set does not mean smooth extension across its boundary, and these approximants need not have compact support. The theorem deliberately makes no regularity demand on the boundary for this interior formulation.

On a bounded Lipschitz domain, a bounded extension operator followed by whole-space smoothing gives smooth restrictions dense in W1,p(Ω)W^{1,p}(\Omega) for finite pp. By contrast, Cc∞(Ω)C_c^\infty(\Omega) is dense only in the subspace defined as W01,p(Ω)W^{1,p}_0(\Omega), not in all of W1,pW^{1,p}. A cutoff used to force compact support creates a derivative term involving its rapidly changing boundary layer. That extra term can prevent convergence even if the removed strip has very small volume. A constant function with nonzero boundary trace is the simplest warning.

Di(χu)=χDiu+uDiχ,W01,p(Ω)=Cc∞(Ω)‾ W1,p(Ω)D_i(\chi u)=\chi D_i u+uD_i\chi,\qquad W^{1,p}_0(\Omega)=\overline{C_c^\infty(\Omega)}^{\,W^{1,p}(\Omega)}
The cutoff derivative measures the boundary-layer cost; compact support is not free in the Sobolev norm.↔ Scroll wide equations horizontally.

Endpoint and conservation cautions

The finite-p assumption matters. A corner such as ∣x∣|x| lies in W1,∞(−1,1)W^{1,\infty}(-1,1), but its derivative is the sign function. Derivatives of smooth approximants are continuous, and cannot approach this jump in essential-supremum norm: an error smaller than one would force incompatible one-sided values at zero. Thus uniform approximation of the function is weaker than approximation in the full W1,∞W^{1,\infty} norm. Mollified derivatives can converge at almost every point while their largest essential error remains bounded away from zero.

On the whole space, a unit-mass kernel preserves the integral of an integrable function and nonnegativity of nonnegative data. Compactly supported kernels also enlarge support only by their radius. A heat kernel is another approximate identity with noncompact tails, so it smooths immediately but does not retain compact support. Derivative identities and norm convergence remain available under the appropriate integrability assumptions. When using heat flow as an illustration, distinguish its exact multiplier from a finite convolution stencil or a numerical solution of a PDE.

A local convolution computed exactly

On (−2,2)(-2,2) take u(x)=x2u(x)=x^2 and an even smooth unit-mass kernel supported in (−1,1)(-1,1), with second moment m2=∫z2ρ(z) dzm_2=\int z^2\rho(z)\,dz. Compute uεu_\varepsilon on (−1,1)(-1,1) for 0<ε<1/20<\varepsilon<1/2.

  1. Every averaging point x−εzx-\varepsilon z lies in (−2,2)(-2,2), so the local convolution is legitimate without choosing any exterior extension. Write uε(x)=∫ρ(z)(x−εz)2 dzu_\varepsilon(x)=\int\rho(z)(x-\varepsilon z)^2\,dz.

  2. Expand the square. Unit mass gives the term x2x^2, evenness makes ∫zρ(z)=0\int z\rho(z)=0, and the remaining term is ε2m2\varepsilon^2m_2. Thus uε=x2+ε2m2u_\varepsilon=x^2+\varepsilon^2m_2.

  3. Differentiate to obtain uε′=2xu_\varepsilon'=2x, exactly the convolution of the weak derivative. On (−1,1)(-1,1) the H¹ error is therefore 2 ε2m2\sqrt2\,\varepsilon^2m_2, since only a constant function difference remains.

The result

Interior smoothing changes this quadratic by an explicit constant and leaves its derivative unchanged; the full H¹ error tends to zero quadratically in the smoothing radius.

Explore the model

Interactive lab

Interactive lab · heat

Smoothing suppresses short scales

Pause and Reset; set mode n to 1 and diffusivity κ to 0.5, then Step once to time 0.5. Predict amplitude e−0.25e^{-0.25}. For a fresh comparison Reset, set n to 4 and κ to 0.5, then Step once: predict e−4e^{-4}. Compare the exact sine profiles and L² readouts.

Smoothing suppresses short scalesThe exact periodic heat-equation mode is u(x,t) = exp(−κn²t) sin(nx), on [0,2π]. Playback advances physical time. The initial sine is shown separately, and the unnormalized L² norm is √π exp(−κn²t). This analytic instrument does not run a finite-difference solver or test discretization stability. Current readings: Current amplitude: 1; Spatial L² norm: 1.772; Decay rate · κn²: 3.6 /s. All parameters are adjustable with the labeled controls below.Periodic heat equation mode 3 at time 0: the amplitude is 1.0π/2π3π/22π−1−0.500.51x · periodic intervalTemperature perturbation uExact mode · n = 3
Current temperature modeInitial sineCurrent amplitude
Current amplitude
1
Spatial L² norm
1.772
Decay rate · κn²
3.6 /s
t = 0 s

The exact periodic heat-equation mode is u(x,t) = exp(−κn²t) sin(nx), on [0,2π]. Playback advances physical time. The initial sine is shown separately, and the unnormalized L² norm is √π exp(−κn²t). This analytic instrument does not run a finite-difference solver or test discretization stability. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forHeat smoothing damps a mode by exp(−κn²t), so high frequencies disappear faster. This periodic analytic mode is not a compactly supported mollifier or a proof of density on an arbitrary domain.

Check your understanding

Which density statement holds for every open Ω and 1 ≤ p < ∞?

Try it yourself

Suppose smooth functions vjv_j approximate ∣x∣|x| uniformly on [−1,1][-1,1]. Does this imply convergence in W1,∞(−1,1)W^{1,\infty}(-1,1)? Prove a lower bound for ∥vj′−sgn⁡∥L∞\|v_j'-\operatorname{sgn}\|_{L^\infty}.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

If the essential error were less than one, continuity of the derivative would force it to be strictly negative on one side of zero and strictly positive on the other, with incompatible limits.

Compare with the solution

No. If the derivative error were r<1r<1, continuity and the almost-everywhere bounds would give vj′(x)≤−1+rv_j'(x)\le-1+r for every negative x and vj′(x)≥1−rv_j'(x)\ge1-r for every positive x. Taking one-sided limits at zero contradicts continuity because −1+r<1−r-1+r<1-r. Thus every smooth derivative has essential error at least one, regardless of uniform function approximation.

Take it with you

  • Mollification commutes with weak derivatives where the convolution is defined.
  • Smooth interior density, smooth boundary restrictions, and compact-support density are different statements.
  • Finite-p convergence does not automatically extend to the W¹,∞ norm.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.