We introduce an RBF approximation
s(
x,
t) as in (
2.7), extended to include the fictitious points, for the spatial approximation of the solution
u(
x,
t),
$$\begin{aligned} s(x,t)=\sum ^{N}_{j=1}\psi _j(x)u_j(t). \end{aligned}$$
(3.4)
Loosely following the fictitious point approach, we will modify this ansatz so that the boundary conditions are fulfilled. Conditions (
1.2) are easily fulfilled by replacing
\(u_j(t)\) with
\(f_1(x_j,t)\) for
\(j=2,N-1\). For the conditions (
1.3), we need to formally solve a linear system. Define the vectors
\(S_f=[u_1(t),\, u_{N}(t)]^T\) with values at the two fictitious points, and
\(S_d=[u_3(t),\ldots , u_{N-2}(t)]^T\) containing the approximate solution values at points in the interior of the domain, then we have
$$\begin{aligned} \underbrace{ \left( \begin{array}{cc} \psi _1^\prime (x_2) &{} \psi _{N}^\prime (x_2)\\ \psi _1^\prime (x_{N-1}) &{} \psi _{N}^\prime (x_{N-1}) \end{array} \right) }_{B_f} S_f&+ \underbrace{ \left( \begin{array}{ccc} \psi _3^\prime (x_2) &{} \cdots &{} \psi _{N-2}^\prime (x_2)\\ \psi _3^\prime (x_{N-1}) &{} \cdots &{} \psi _{N-2}^\prime (x_{N-1}) \end{array} \right) }_{B_d} S_d \nonumber \\&+\underbrace{ \left( \begin{array}{cc} \psi _2^\prime (x_2) &{} \psi _{N-1}^\prime (x_2)\\ \psi _2^\prime (x_{N-1}) &{} \psi _{N-1}^\prime (x_{N-1})\\ \end{array} \right) }_{B_b} F_1(t) = F_2(t), \end{aligned}$$
(3.5)
where
\(F_j(t)=[f_j(x_2,t),\,f_j(x_{N-1},t)]^T\). Inserting the boundary values
\(F_1(t)\) and the expression we get for
\(S_f\) by solving (
3.5) into (
3.4) leads to
$$\begin{aligned} s(x,t)&= \left( [\psi _3(x),\ldots ,\psi _{N-2}(x)]-[\psi _1(x),\, \psi _{N}(x)]\,B_f^{-1}B_d\right) \,S_d \nonumber \\&\quad +\,\left( [\psi _2(x),\, \psi _{N-1}(x)]-[\psi _1(x),\, \psi _{N}(x)]\,B_f^{-1}B_b \right) F_1(t)\nonumber \\&\quad +\,[\psi _1(x),\, \psi _{N}(x)]\,B_f^{-1}F_2(t). \end{aligned}$$
(3.6)
This expression is awkward to work with directly. We introduce the shorthand notation
$$\begin{aligned} s(x,t)= \sum ^{N-2}_{j=3}\tilde{\psi }_j(x)u_j(t)+F(x,t), \end{aligned}$$
(3.7)
where
\(\tilde{\psi }_j(x)\) and
F(
x,
t) can be directly identified from (
3.6). In this simple two point boundary case, we can actually derive the explicit form of the modified basis for illustration. This yields
$$\begin{aligned} \tilde{\psi }_j(x)&=\psi _j(x)- \frac{\psi _{N}^\prime (x_{N-1}) \psi _{j}^\prime (x_2)- \psi _{N}^\prime (x_2) \psi _{j}^\prime (x_{N-1}) }{ \psi _{N}^\prime (x_{N-1})\psi _1^\prime (x_2)- \psi _{N}^\prime (x_2) \psi _1^\prime (x_{N-1}) }\psi _1(x)\nonumber \\&\quad + \frac{ \psi _{1}^\prime (x_{N-1}) \psi _{j}^\prime (x_2)- \psi _{1}^\prime (x_2) \psi _{j}^\prime (x_{N-1}) }{ \psi _{N}^\prime (x_{N-1}) \psi _1^\prime (x_2) - \psi _{N}^\prime (x_2) \psi _1^\prime (x_{N-1}) } \psi _{N}(x). \end{aligned}$$
(3.8)
In order to use the RBF approximation (
3.7) for a PDE problem, we need to compute the effect of applying a spatial differential operator
\(\mathscr {L}\) at the interior node points. That is, we need a method to evaluate
\(\mathscr {L}\tilde{\psi }_j(x_i)\),
\(i,j=3,\ldots ,N-2\), and
\(\mathscr {L}F(x_i,t)\),
\(i=3,\ldots ,N-2\). This is done in two steps. First, we use (
2.6) to compute
\(\varPsi _\mathscr {L}\) for interior node points
\(x_i\),
\(i=3,\ldots ,N-2\). Note however that we include all basis functions
\(\psi _j(x)\),
\(j=1,\ldots ,N\). Then we extract the columns pertaining to the fictitious points into
\(\varPsi _{\mathscr {L},f}\), the columns pertaining to the boundary points into
\(\varPsi _{\mathscr {L},b}\), and the remaining columns into
\(\varPsi _{\mathscr {L},d}\). Then the modified differentiation matrix and the contribution in the forcing function can be computed as
$$\begin{aligned} \tilde{\varPsi }_{\mathscr {L}}= & {} \varPsi _{\mathscr {L},d}-\varPsi _{\mathscr {L},f}B_f^{-1}B_d, \end{aligned}$$
(3.9)
$$\begin{aligned} {}[F_{\mathscr {L}}(x_3,t),\ldots ,F_{\mathscr {L}}(x_{N-2},t)]^T= & {} (\varPsi _{\mathscr {L},b}-\varPsi _{\mathscr {L},f}B_f^{-1}B_b)F_1(t)+\varPsi _{\mathscr {L},f}B_f^{-1}F_2(t). \nonumber \\ \end{aligned}$$
(3.10)
Note that from (
2.6) and the definitions above, if no operator is applied, we have
\(\varPsi _{I,d}=I\) and
\(\varPsi _{I,f}=\varPsi _{I,b}=0\) leading to
\(F(x_i,t)=F_t(x_i,t)=0\). We use this to simplify all subsequent expressions where the RBF approximation (
3.7) or its time derivative are evaluated at the node points.
Collocating the modified RBF approximation (
3.7) with the PDE (
1.1) at the node points leads to the system of ODEs
$$\begin{aligned} u_i^\prime (t)&+\sum _{j=3}^{N-2}\alpha (x_i,t)\frac{d^4 \tilde{\psi }_j}{d x^4}(x_i)u_j^\prime (t)=\sum _{j=3}^{N-2}g_u(u_i(t))\frac{d \tilde{\psi }_j}{d x}(x_i)u_j(t) \nonumber \\&-\alpha (x_i,t) F_{xxxxt}(x_i,t)+g_u(u_i(t))F_x(x_i,t), \quad i=3,\ldots ,N-2. \end{aligned}$$
(3.11)
In matrix form, we get the method of lines formulation
$$\begin{aligned} \underbrace{(I+A_\alpha (t)\tilde{\varPsi }_{xxxx})}_{Q(t)}S_d^\prime =\underbrace{G_u(S_d)\tilde{\varPsi }_x}_{D(S_d)}S_d+\underbrace{G_u(S_d)F_x(t) - A_\alpha (t)F_{xxxx}^\prime (t)}_{F(S_d,t)}, \end{aligned}$$
(3.12)
where the diagonal coefficient matrices are
$$\begin{aligned} A_\alpha (t)= & {} \mathrm {diag}(\alpha (x_3,t),\ldots ,\alpha (x_{N-2},t)),\\ G_u(S_d)= & {} \mathrm {diag}(g_u(u_3(t)),\ldots ,g_u(u_{N-2}(t))), \end{aligned}$$
and the vectors in the right hand side are defined as
\(F_\mathscr {L}(t)=[F_\mathscr {L}(x_3,t),\ldots ,F_\mathscr {L}(x_{N-2},t)]^T\). The problem (
3.12) can be solved by employing a solution method for nonlinear ODE systems.