Mollification and density
Approximate weakly differentiable functions by smooth ones without confusing interior smoothing with boundary conditions.
On this page
The question for today
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 supported in the unit ball with integral one, and define . 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 with finite , weak differentiation commutes with convolution: differentiate the kernel first and then use the weak identity to transfer derivatives back onto . Translation continuity in implies that convolving each derivative with this approximate identity converges in . Summing the finitely many component errors gives convergence in . The same reasoning works locally inside a domain. It does not require the original derivative to be continuous, only integrable in the specified exponent.
Three different density claims
For any open and finite , smooth functions on that belong to 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 for finite . By contrast, is dense only in the subspace defined as , not in all of . 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.
Endpoint and conservation cautions
The finite-p assumption matters. A corner such as lies in , 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 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.
Work it through
A local convolution computed exactly
On take and an even smooth unit-mass kernel supported in , with second moment . Compute on for .
Every averaging point lies in , so the local convolution is legitimate without choosing any exterior extension. Write .
Expand the square. Unit mass gives the term , evenness makes , and the remaining term is . Thus .
Differentiate to obtain , exactly the convolution of the weak derivative. On the H¹ error is therefore , since only a constant function difference remains.
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.
The living notebook
Explore the model
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 . For a fresh comparison Reset, set n to 4 and κ to 0.5, then Step once: predict . Compare the exact sine profiles and L² readouts.
- Current amplitude
- 1
- Spatial L² norm
- 1.772
- Decay rate · κn²
- 3.6 /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.
Pause & reason
Check your understanding
Your turn
Try it yourself
Suppose smooth functions approximate uniformly on . Does this imply convergence in ? Prove a lower bound for .
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 , continuity and the almost-everywhere bounds would give for every negative x and for every positive x. Taking one-sided limits at zero contradicts continuity because . Thus every smooth derivative has essential error at least one, regardless of uniform function approximation.
Keep the idea
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.