From a local approximation to weights¶
The executable functional approximation tutorial maps these trial, data and target functionals directly to the public API.
This is the algebra shared by local differentiation methods. It explains why a transpose solve appears, and why local expansion coefficients disappear from the global PDE solve.
1. Match the local data¶
On stencil \(i\), take \(n_i\) data functionals \(\lambda_1,\ldots,\lambda_{n_i}\), trial functions \(\psi_1,\ldots,\psi_{n_i}\), and \(Q\) polynomials:
For ordinary RBF-FD, \(\lambda_j=\delta_{x_j}\) and \(\psi_j(x)=K(x,x_j)\). For Hermite interpolation, \(\psi_j(x)=\lambda_j^yK(x,y)\), and the data may be values or derivatives.
Interpolation plus side conditions gives
For the ordinary or symmetric Hermite constructions,
When trial and data functionals differ, write
The explicit representer construction in LocalApproximation uses
The selected polynomial degree is exact. None omits polynomial blocks,
integers below a kernel's conventional CPD minimum are accepted without the
standard CPD solvability guarantee, and "auto" selects that minimum. The
lower block comes from the trial functionals. Replacing it silently by
\(P_\ell^T\) would change the method. A symmetric kernel and matching point/functionals
give a symmetric Hermite block; source-transformed trial functions with nodal
data generally do not. Both polynomial functional blocks must have the required
rank. For example, Laplacian-only trial functionals annihilate constants, so they
cannot support an unconstrained constant polynomial tail in this formulation.
Assume this system is nonsingular. The derivation below also works with other invertible interpolation systems that are not symmetric.
2. Apply the desired operator¶
Let \(\tau_i v=(\mathcal Dv)(\xi_i)\) be the target functional. Apply it to every trial function:
For example, \(\tau_i=\delta_{\xi_i}\Delta\) constructs Laplacian weights, while \(\tau_i=\delta_{\xi_i}\) constructs interpolation weights. The data functionals \(\lambda_j\) describe what is supplied; \(\tau_i\) describes what is requested.
3. Eliminate the expansion coefficients¶
Substitute the interpolation solution into the evaluation:
Therefore compute weights with
The equality is exact for the local interpolant \(s_i\); replacing \(u\) by \(s_i\) is the approximation. The \(Q\) auxiliary entries \(\eta_i\) multiply zero side-condition data, so only the first \(n_i\) entries are applied to observations. Do not discard these auxiliary unknowns while solving the augmented system.
No inverse needs to be formed. Factor \(H_i\) and solve its transposed system. Reuse the factorization for several target operators. For fixed geometry, kernels, parameters, and operators, the weights do not depend on the data values.
4. Read the polynomial equations¶
The lower block of the transpose solve is
Thus \(\sum_j w_{ij}\lambda_jp=\tau_i p\) for every \(p\in\Pi_q\). For value data and a 2D Laplacian, this includes
These are useful consistency checks; they do not prove stability of the assembled PDE operator.
A concrete one-dimensional check¶
On \((-h,0,h)\), requiring exact second derivatives of \(1,x,x^2\) gives
Here polynomial reproduction alone determines the weights. This is an algebraic illustration; RBFLAB's documented cloud API works in 2D and 3D. On larger irregular stencils the kernel equations supply the additional information.
Where the methods separate¶
| Method | Local data \(d_i\) | What is assembled globally |
|---|---|---|
| RBF-FD | Nodal values \(U_j\) | All differentiation weights become sparse columns |
| LHI | Unknown values, known boundary data, known PDE data | Only value weights become unknown columns; known contributions move to the RHS |
In the discrete-operator API, op.local(i) returns the weight row and op.reconstruct_local(i) rebuilds its generating system. Follow the one-stencil tutorial to inspect the actual arrays.