B-Splines
Our goal is to define a basis for representing functions, indexed over a regular grid.

Defining the B-Spline
We define the 0-th order B-spline to be the piecewise-constant function: \[ B^0(x) = \left\{ \begin{array}{ll} 1 & \hbox{if }x\in[0,1]\\ 0 & \hbox{otherwise} \end{array} \right. \label{eq:B^0} \] We then define the higher-order B-Splines recursively as: \[ B^{d+1}(x) = B^d(x) * B^0(x) \label{eq:B^d} \] where `$*$` denotes function convolution.
Examples:
The first several B-splines are: \[ B^0(x) = \left\{ \begin{array}{ll} 1 & \hbox{if }x\in[0,1]\\ 0 & \hbox{otherwise} \end{array} \right., \qquad B^1(x) = \left\{ \begin{array}{ll} x & \hbox{if }x\in[0,1]\\ 2-x & \hbox{if }x\in[1,2]\\ 0 & \hbox{otherwise} \end{array} \right., \qquad B^2(x) = \left\{ \begin{array}{ll} \frac12 x^2 & \hbox{if }x\in[0,1]\\ -x^2 + 3x -\frac32 & \hbox{if }x\in[1,2]\\ \frac12x^2 - 3x + \frac92 & \hbox{if }x\in[2,3]\\ 0 & \hbox{otherwise} \end{array} \right. \nonumber \]

Visualization:

$d$
:


We now proceed to describe several properties of the B-Splines.

Preliminaries
We let $\rho_t$ (with $t\in{\mathbb R}$) denote the linear operator acting on the space of functions by translating by $t$ and we let $\sigma_s$ (with $s\in{\mathbb R}, s\neq0$) denote the linear operator acting on the space of functions by scaling by $s$: \[ \big[\rho_t(f)\big](x) = f(x-t) \qquad\hbox{and}\qquad \big[\sigma_s(f)\big](x) = f(x/s) \nonumber \] which satisfy: \[ \rho_{t_1}\circ\rho_{t_2}=\rho_{t_1+t_2}, \qquad \sigma_{s_1}\circ\sigma_{s_2}=\sigma_{s_1\cdot s_2}, \qquad \sigma_s\circ\rho_t=\rho_{s\cdot t}\circ\sigma_s. \label{eq:t_and_s} \] We also recall how convolution combines with translation and scaling: \[ \rho_t(f*g) = \rho_t(f)*g = f*\rho_t(g), \qquad \sigma_s(f*g) = \frac{\sigma_s(f)*\sigma_s(g)}{|s|} \label{eq:c_t_and_s} \] and how differentiation combines with convolution, translation, and scaling: \[ \label{eq:d_c_t_and_s} \frac{\partial(f*g)}{\partial x} = \frac{\partial f}{\partial x} * g = f*\frac{\partial g}{\partial x}, \qquad \frac{\partial}{\partial x}\circ\rho_t=\rho_t\circ\frac{\partial}{\partial x}, \qquad \frac{\partial}{\partial x}\circ\sigma_s=\frac{1}{s}\cdot\sigma_t\circ\frac{\partial}{\partial x}. \] Similarly, letting $\smallint$ be the operator taking a function $f$ to its integral $\int_{-\infty}^xf(s)\,ds$, we recall how integration combines with convolution, translation and scaling: \[ \label{eq:i_c_t_and_s} \smallint(f*g) = \left(\smallint f\right)*g = f*\left(\smallint g\right), \qquad \smallint \circ \rho_t = \rho_t \circ \smallint, \qquad \smallint\circ\sigma_s = s\cdot \sigma_s\circ\smallint. \] Lastly, we recall a property of the binomial coefficients: \[ \choose{n}{k} = \choose{n-1}{k} + \choose{n-1}{k-1}. \label{eq:binomialCoefficients} \]
Piecewise-polynomial
The $d$-th order B-spline is supported on the interval $[0,d+1]$ and is a polynomial of degree $d$ on any interval $[n,n+1]$, for $n\in{\mathbb Z}$.
Proof:
This is trivially true for $B^0$.
Assuming it is true for $B^d(x)$, let $P(x)$ be the $d$-th degree polynomial obtained by restricting $B^d(x)$ to the interval $[n-1,n]$ and let $Q(x)$ be the $d$-th degree polynomial obtained by restricting $B^d(x)$ to the interval $[n,n+1]$. Then the restriction of $B^{d+1}(x)$ to the interval $[n,n+1]$ will be: \[ B^{d+1}(x)\Big|_{[n,n+1]} = \int_{x-1}^nP(s)\,ds + \int_n^xQ(s)\,ds \nonumber \] which is a polynomial of degree $d+1$ on the interval $[n,n+1]$.
For $n<0$ and $n\geq d+2$, both $P(x)$ and $Q(x)$ are zero so that $B^{d+1}(x)$ is zero for all $x\not\in[0,d+2]$.

Symmetry
The reflection of a $d$-th order B-spline is a translation of itself: \[ \sigma_{-1}(B^d) = \rho_{-1-d}(B^d). \nonumber \]
Proof:
This is trivially true for $B^0$.
Assuming it is true for $B^d(x)$, we have: \begin{align*} \sigma_{-1}(B^{d+1}) &\stackrel{(\ref{eq:B^d})}{=} \sigma_{-1}(B^d*B^0)\\ &\stackrel{(\ref{eq:c_t_and_s})}{=} \sigma_{-1}(B^d)*\sigma_{-1}(B^0)\\ &\stackrel{(I)}{=} \rho_{-1-d}(B^d)*\rho_{-1}(B^0)\\ &\stackrel{(\ref{eq:c_t_and_s})}{=} \rho_{-1-(d+1)}(B^d*B^0)\\ &\stackrel{(\ref{eq:B^d})}{=} \rho_{-1-(d+1)}(B^{d+1}), \end{align*} where step $(I)$ follows from the inductive hypothesis,

More generally, by Equation (\ref{eq:t_and_s}), it follows that: \[ \sigma_{-1}\left(\rho_t(B^d)\right) = \rho_{-t-1-d}(B^d). \label{eq:symmetry} \]

Derivatives
The derivative of the $(d+1)$-st order B-spline can be expressed as the difference of integer shifts of B-splines of degree $d$: \[ \frac{\partial B^{d+1}}{\partial x} = B^d - \rho_1(B^d). \nonumber \]
Proof:
This is trivially true for the (hat) function $B^1$.
For $d>1$ we have, by Equation (\ref{eq:d_c_t_and_s}): \begin{align*} \frac{\partial B^{d+1}}{\partial x} &\stackrel{(\ref{eq:B^d})}{=} \frac{\partial(B^{d-1}*B^1)}{\partial x}\\ &\stackrel{(\ref{eq:d_c_t_and_s})}{=} B^{d-1} * \frac{\partial B^1}{\partial x}\\ &\stackrel{(I)}{=} B^{d-1} * \left( B^0 - \rho_1(B^0)\right)\\ &\stackrel{(\ref{eq:c_t_and_s})}{=} B^d - \rho_1(B^d). \end{align*} where step $(I)$ follows from the inductive hypothesis,

Visualization:
$B^{d+1}$ $\frac{\partial B^{d+1}}{\partial x}$

$d$
:

More generally, by Equation (\ref{eq:d_c_t_and_s}), it follows that: \[ \frac{\partial \rho_t(B^{d+1})}{\partial x} = \rho_t(B^d) - \rho_{t+1}(B^d). \label{eq:derivatives} \] In particular, using the fact that the function $B^1$ is $C^0$, it follows that the B-spline $B^d$ is $C^{d-1}$.

Integrals
The integral of a $d$-th order B-spline can be expressed as the sum of integer shifts of B-splines of degree $d+1$: \[ \int_{-\infty}^x B^d\,ds = \sum_{j=0}^\infty\rho_j(B^{d+1}). \nonumber \]
Proof:
To see this, note that: \begin{align*} \frac{\partial}{\partial x}\left(\sum_{j=0}^\infty\rho_j(B^{d+1})\right) &\stackrel{(\ref{eq:d_c_t_and_s})}{=} \sum_{j=0}^\infty\rho_j\left(\frac{\partial B^{d+1}}{\partial x}\right)\\ &\stackrel{(\ref{eq:derivatives})}{=} \sum_{j=0}^\infty\rho_j(B^d) - \sum_{j=0}^\infty\rho_{j+1}(B^d)\\ &=B^d. \end{align*} Noting that as $x\rightarrow-\infty$ we have $\left[\sum_{j=0}^\infty\rho_j(B^{d+1})\right](x)\rightarrow0$, it follows that $\sum_{j=0}^\infty\rho_j(B^{d+1})$ is the integral $\int_{-\infty}^x B^d\,ds$.

More generally, by Equation (\ref{eq:i_c_t_and_s}), it follows that: \[ \int_{-\infty}^x \rho_t\left(B^d\right)\,ds = \sum_{j=0}^\infty\rho_{t+j}(B^{d+1}). \label{eq:integrals} \]

Prolongation
The dilation of a $d$-th order B-spline by a factor of two can be expressed as the linear combination of integer shifts of the $B^d$: \[ \sigma_2(B^d) = \sum_{j=0}^{d+1}\frac{1}{2^d}\choose{d+1}{j}\rho_j(B^d) \nonumber \]
Proof:
This is trivially true for $B^0$.
Assuming it is true for $B^d$, we have: \begin{align*} \sigma_2(B^{d+1}) &\stackrel{(\ref{eq:B^d})}{=} \left(\sigma_2(B^d*B^0)\right)\\ &\stackrel{(\ref{eq:c_t_and_s})}{=} \frac12\cdot\sigma_2(B^d)*\sigma_2(B^0)\\ &\stackrel{(I)}{=} \frac12\left( \sum_{j=0}^{d+1}\frac{1}{2^d}\choose{d+1}{j}\rho_j(B^d) \right) * \left(B^0 + \rho_1(B^0)\right)\\ &\stackrel{(\ref{eq:c_t_and_s})}{=} \frac{1}{2^{d+1}}\sum_{j=0}^{d+1}\choose{d+1}{j}\left(\rho_j(B^{d+1}) + \rho_{j+1}(B^{d+1}) \right)\\ &= \frac{1}{2^{d+1}}\left( \choose{d+1}{0} \rho_0(B^{d+1}) + \sum_{j=1}^{d+1}\left(\choose{d+1}{j}+\choose{d+1}{j-1}\right)\rho_j(B^{d+1}) + \choose{d+1}{d+1}\rho_{d+2}(B^{d+1}) \right)\\ &\stackrel{(\ref{eq:binomialCoefficients})}{=} \frac{1}{2^{d+1}}\left( \choose{d+2}{0}\rho_0(B^{d+1})+ \sum_{j=1}^{d+1}\choose{d+2}{j}\rho_j(B^{d+1})+ \choose{d+2}{d+2}\rho_{d+2}(B^{d+1}) \right)\\ &=\sum_{j=0}^{d+2}\frac{1}{2^{d+1}}\choose{d+2}{j}\rho_j(B^{d+1}) \end{align*} where step $(I)$ follows from the inductive hypothesis,

Visualization:

$d$
:

More generally, by Equation (\ref{eq:t_and_s}), it follows that: \[ \sigma_2\left(\rho_t(B^d)\right) = \sum_{j=0}^{d+1}\frac{1}{2^d}\choose{d+1}{j}\rho_{2t+j}(B^d) \label{eq:prolongation} \]
Partition of unity
The integer shifts of the B-splines of degree $d$ satisfy the partition of unity property: \[ \sum_{i=-\infty}^\infty\rho_i(B^d)=1. \label{eq:pou} \]
Proof:
This is trivially true for $B^0$.
Assuming it is true for $B^d$, we have: \begin{align*} \sum_{i=-\infty}^\infty\rho_i(B^{d+1}) &\stackrel{(\ref{eq:B^d})}{=}\sum_{i=-\infty}^\infty\rho_i(B^d*B^0)\\ &\stackrel{(\ref{eq:c_t_and_s})}{=}\left(\sum_{i=-\infty}^\infty\rho_i(B^d)\right)*B^0\\ &\stackrel{(I)}{=} 1 * B^0\\ &= B^0, \end{align*} where step $(I)$ follows from the inductive hypothesis,

Polynomial reproduction
More generally, on any interval $[a,b+1]$, with $a,b\in{\mathbb Z}$, a polynomial of degree $k\leq d$ can be expressed as the linear combination of integer shifted B-splines of degree $d$. That is, for any polynomial $P(x)$ of degree $k\leq d$, and any interval $[a,b+1]$, there exist coefficients $\alpha_{a,b}^{P,d}$ such that: \[ P = \sum_{i=a-d}^{b}\alpha_{a,b}^{P,d}\cdot\rho_i(B^d). \label{eq:polynomial_reproduction} \]
Proof:
To prove this, we will show that if $M^k(x) = x^k$ then there are coefficients $\alpha_{a,b}^{i,k,d}$ such that: \[ M_k\Big|_{[a,b]} = \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^d). \nonumber \] In the case $k=0$, Equation (\ref{eq:pou}) gives $\alpha_{a,b}^{i,k,d}=1$.
To prove this for the general case, we use two induction steps. In the first we show that the statement is true whenever $d=k$. In the second we show that if the statmement is true for $k$ and $d$, then it is also true for $k$ and $d+1$.
  1. Assume that we have shown this to be true for the case $k=d$. Then we note that for $x\in[a,b+1]$ \begin{align*} M_{k+1}(x) &= (k+1)\int_0^x M_k\,ds\\ &= (k+1)\left(\int_0^a M_k\,ds+\int_a^x M_k\,ds\right)\\ &= (k+1)\left(\int_0^a M_k\,ds+\int_a^x M_k\Big|_{[a,b+1]}\,ds\right)\\ &\stackrel{(I)}{=} (k+1)\left(\int_0^a M_k\,ds+\int_a^x \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^d)\,ds\right)\\ &= (k+1)\left(\int_0^a M_k\,ds -\int_{-\infty}^a \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^d)\,ds +\int_{-\infty}^x \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^d)\,ds\right)\\ &= (k+1)\left(\int_0^a M_k\,ds -\int_{-\infty}^a \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^d)\,ds +\sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\int_{-\infty}^x \rho_i(B^d)\,ds\right)\\ &\stackrel{(\ref{eq:integrals})}{=} (k+1)\left( \int_0^a M_k\,ds -\int_{-\infty}^a \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^{d+1})\,ds +\sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\sum_{j=0}^\infty\rho_{i+j}(B^{d+1}) \right)\\ \end{align*} where step $(I)$ follows from the inductive hypothesis.
    Setting $C$ to be the constant: \[ C = \int_0^a M_k\,ds - \int_{-\infty}^a \sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\rho_i(B^{d+1})\,ds \nonumber \] we get: \[ M_{k+1}(x)\Big|_{[a,b+1]} \stackrel{(\ref{eq:pou})}{=} (k+1)\left(\sum_{i=a-(d+1)}^bC\cdot\rho_i(B^{d+1})+\sum_{i=a-d}^{b}\alpha_{a,b}^{i,k,d}\cdot\sum_{j=0}^{b-i}\rho_{i+j}(B^{d+1})\right) \nonumber \] giving an expression of $M_{k+1}\Big|_{[a,b+1]}$ as a linear combination of integer shifts of $B^{d+1}$.
  2. Assuming we have shown the statment to be true for $k$ and $d$, we use the fact that: \[ M_k*B^0 = \int_{x-1}^x s^k\,ds = \frac{1}{k+1}\left[s^{k+1}\right]_{x-1}^x = \frac{1}{k+1}\left(x^{k+1}-(x-1)^{k+1}\right) = x^k + \frac{1}{k+1}\sum_{i=0}^{k-1}(-1)^{k+i}\choose{k+1}{i}x^i. \nonumber \] Setting $P_{k-1}(x)$ to be the polynomial of degree $k-1$: \[ P_{k-1}(x)=\frac{1}{k+1}\sum_{i=0}^{k-1}(-1)^{k+i}\choose{k+1}{i}x^i \nonumber \] we get: \begin{align*} M_k\Big|_{[a,b+1]} &= \left(M_k\Big|_{[a-1,b+1]}*B^0\right)\Big|_{[a,b+1]} - P_{k-1}\Big|_{[a,b+1]}\\ &\stackrel{(I)}{=} \left.\left(\left(\sum_{i=(a-1)-d}^{b}\alpha_{a-1,b}^{i,k,d}\cdot\rho_i(B^d)\right)*B^0\right)\right|_{[a,b+1]} - P_{k-1}\Big|_{[a,b+1]}\\ &\stackrel{(\ref{eq:c_t_and_s})}{=} \left.\left(\sum_{i=(a-1)-d}^{b}\alpha_{a-1,b}^{i,k,d}\cdot\rho_i(B^d*B^0)\right)\right|_{[a,b+1]} - P_{k-1}\Big|_{[a,b+1]}\\ &\stackrel{(\ref{eq:B^d})}{=} \left.\left(\sum_{i=a-(d+1)}^{b}\alpha_{a-1,b}^{i,k,d}\cdot\rho_i(B^{d+1})\right)\right|_{[a,b+1]} - P_{k-1}\Big|_{[a,b+1]} \end{align*} where step $(I)$ follows from the inductive hypothesis.
    Similarly, using the inductive hypothesis, $P_{k-1}\Big|_{[a,b+1]}$ can be expressed as the linear combination of integer shifts of $B^{d+1}$. Thus, we get an expression of $M_k$ as the linear combination of integer shifts of $B^{d+1}$.
Note:
This proof is somewhat unsatisfying. Locally, it seems clear that $\alpha_{a,b}^{i,k,d}$ is independent of the values of $a$ and $b$. (This follows from the linear independence of $\{\rho_{i-d}(B^d),\ldots\rho_i(B^d)\}$ on the interval $[i,i+1]$.) More generally, it would be nice to have a closed-form expression for the values of $\alpha_{a,b}^{i,k,d}$.


Centered B-splines
To simplify notation, we denote by $B_t^d$ the shifted $d$-th degree B-spline: \[ B_t^d \equiv \rho_{t-(d+1)/2}(B^d). \label{eq:shifted_b_spline} \] and set $I_d$ to be the set: \[ I_d \equiv \Big\{z+\frac12\Big|z\in{\mathbb Z}\Big\}\hbox{ when $d$ is even} \qquad\hbox{and}\qquad I_d \equiv \Big\{z+0\Big|z\in{\mathbb Z}\Big\}\hbox{ when $d$ is odd}. \nonumber \] Properties:

Function Bases for the interval $[0,n]$

In what follows, we will consider the case of an interval $[0,n]$, with $n\in{\mathbb N}$, over which we would like to define a function space, satisfying varyious boundary conditions.

Free boundary
Given $\tau\in I_d$, we define $F_{n,\tau}^d$ to be the restriction of $B_\tau^d$ to the interval $[0,n]$: \[ F_{n,\tau}^d(x) = \left\{\begin{array}{cl}B_\tau^d(x) &\hbox{if }x\in[0,n]\\0&\hbox{otherwise}\end{array}\right. \nonumber \] We define the free function basis ${\mathfrak f}_n^d$ to be the set of size $(n+d)$: \[ {\mathfrak f}_n^d = \left\{F_\tau^d\right\}_{\tau\in I_d \cap\left(-\frac{d+1}2,n+\frac{d+1}2\right)}. \nonumber \]
Periodic boundary
Given $\tau\in I_d$, we can define a periodic function, $P_{n,\tau}^d$, by considering sums of $B_\tau^d$, shifted by multiples of $n$: \[ P_{n,\tau}^d = \sum_{k=-\infty}^\infty B_{\tau+kn}^d. \nonumber \] Note that the functions satisfy \[ P_{n,\tau+kn}^d = P_{n,\tau},\qquad\forall k\in{\mathbb Z} \nonumber \] so that any function $P_{n,\sigma}^d$, with $\sigma\in I_d$, equals $P_{n,\tau}^d$ for some $\tau\in I_d\cap[0,n)$.
We define the periodic function basis ${\mathfrak p}_n^d$ to be the set of size $n$: \[ {\mathfrak p}_n^d = \left\{P_{n,\tau}^d\right\}_{\tau\in I_d\cap[0,n)}. \nonumber \]
Dirichlet boundary
To impose Dirichlet boundary conditions, we consider the space of functions on the real line that are $2n$ periodic and antipodally symmetric with respect to reflection about the vertical axis $x=0$. In particular, given $\tau\in I_d$, we define the Dirichlet function $D_{n,\tau}^d$ as: \[ D_{n,\tau}^d = \sum_{k=-\infty}^\infty\left(B_{\tau+2kn}^d - B_{-\tau-2kn}^d\right). \nonumber \] Note that, when $d$ is odd, we have $D_{n,0}^d = D_{n,n}^d = 0$. And, in general, the functions satisfy: \[ D_{n,-\tau}^d = -D_{n,\tau}^d\qquad\hbox{and}\qquad D_{n,\tau+2kn}^d = D_{n,\tau},\qquad\forall k\in{\mathbb Z} \] so that any function $D_{n,\sigma}^d$, with $\sigma\in I_d$, equals $\pm D_{n,\tau}^d$ for some $\tau\in I_d\cap(0,n)$.
We define the Dirichlet function basis ${\mathfrak d}_n^d$ to be the set of size $n-1$ when $d$ is odd and size $n$ with $d$ is even: \[ {\mathfrak d}_n^d = \left\{D_{n,\tau}^d\right\}_{\tau\in I_d\cap(0,n)}. \nonumber \]
Neumann boundary
To impose Neumann boundary conditions, we consider the space of functions on the real line that are $2n$ periodic and symmetric with respect to reflection about the vertical axis $x=0$. In particular, given $\tau\in I_d$, we define the Neumann function $n_{n,\tau}^d$ as: \[ N_{n,\tau}^d = \sum_{k=-\infty}^\infty\left(B_{\tau+2kn}^d + B_{-\tau-2kn}^d\right). \nonumber \] Note that the functions satisfy: \[ N_{n,-\tau}^d = N_{n,\tau}^d\qquad\hbox{and}\qquad N_{n,\tau+2kn}^d = N_{n,\tau},\qquad\forall k\in{\mathbb Z} \] so that any function $N_{n,\sigma}^d$, with $\sigma\in I_d$, equals $N_{n,\tau}^d$ for some $\tau\in I_d\cap[0,n]$.
We define the Neumann function basis ${\mathfrak n}_n^d$ to be the set of size $n+1$ when $d$ is odd and size $n$ when $d$ even: \[ {\mathfrak n}_n^d = \left\{N_{n,\tau}^d\right\}_{\tau\in I_d\cap[0,n]}. \nonumber \]
Visualization:

$d$
: $n$
: $\tau$
:
free periodic Neumann Dirichlet


We make the following observations about these bases:
Given $n\in{\mathbb N}$ and $d\geq0$, we denote by ${\mathfrak B}_{[0,n]}^d$ the set of free, periodic, Dirichlet, and Neumann bases on the interval $[0,n]$, with degree equal to $d$: \[ {\mathfrak B}_{[0,n]}^d\equiv{\mathfrak f}_n^d\cup{\mathfrak p}_n^d\cup{\mathfrak d}_n^d\cup{\mathfrak n}_n^d. \nonumber \] We denote by ${\mathfrak B}_{[0,n]}^{\geq d}$ the set of free, periodic, Dirichlet, and Neumann bases on the interval $[0,n]$, with degree greater than or equal to $d$: \[ {\mathfrak B}_{[0,n]}^{\geq d}\equiv\bigcup_{k=d}^\infty{\mathfrak B}_{[0,n]}^k. \] And we set ${\mathfrak B}_{[0,n]}$ to be the set of all free, periodic, Dirichlet, and Neumann bases on the interval $[0,n]$: \[ {\mathfrak B}_{[0,n]}\equiv{\mathfrak B}_{[0,n]}^{\geq0}. \nonumber \]
Extension to higher dimensions
Given $\vec{n}=(n_1,\ldots,n_k)\in{\mathbb N}^k$, we denote the set of function bases on the rectangle $\Omega=[0,n_1]\times\cdots\times[0,n_k]$ as: \[ {\mathfrak B}_\Omega \equiv {\mathfrak B}_{[0,n_1]}\times\cdots\times{\mathfrak B}_{[0,n_k]}. \nonumber \] Specifically, given ${\mathfrak b}\in{\mathfrak B}_\Omega$, we can think of ${\mathfrak b}$ as a function basis on $\Omega$ by using the tensor-product to associate the set of functions $(\phi_1,\ldots,\phi_k)\in{\mathfrak b}$ with a function on $\Omega$: \[ \left(\phi_1,\ldots,\phi_k\right)(x_1,\ldots,x_n) \equiv \prod_{i=1}^k \phi_i(x_i). \nonumber \]
Staggered grid representation
  • One-dimension
    We note that if $d$ is odd, functions are represented in terms of basis functions that are centered on the integers (a primal representation). That is, a function can be thought of as an assignment of values to a subset of the integers. And, when $d$ is even, functions are represented in terms of basis functions that are centered on the half-integers (a dual representation). That is, a function can be though of as an assignment of values to a subset of the half-integers.
    When we take derivatives, representations are reversed, so that primal representations are mapped to dual representations and dual representations are mapped to primal representations.
  • $k$-dimensions
    If for each dimension the basis functions have odd degree, a function can be thought of as an assignment of values to a subset of the $0$-dimensional vertices of a $k$-dimensional lattice. Conversely, it the basis functions have even degree, a function can be be thought of as an assignment of values to a subset of the $k$-dimensional cells of a $k$-dimensional lattice. (Or, equivalently, to a subset of the the $0$-dimensional vertices of the dual lattice.)
    If we take the $i$-th partial derivative of a function represented by values at $0$-dimensional vertices, we obtain a function represented by values at $1$-dimensional edges along the $i$-th direction. Similarly, if we take the $i$-th partial derivative of a function represented by values at $k$-dimensional cells, we obtain a function represented by values at $(k-1)$-dimensional faces perpendicular to the $i$-th direction.
    More generally, if we take the gradient of a function represented by values at $0$-dimensional vertices, we obtain a function represented by values at $0$-dimensional edges. And, if we take the gradient of function represented by values at $k$-dimensional cells, we obtain a function represented by values at $(k-1)$-dimensional faces.
    It is important to note, however, that in the $k$-dimensional case a function need not be represented using either a primal or dual representation, as the component along one dimension may have even degree and along a different dimension may have odd degree. (E.g. If we start with a primal representation and take the partial derivative with respect to the first component, we get a function that is neither in the primal representation nor in the dual representation.)