title: Closest point method
text: # Closest point method
  
  The closest point method (CPM) is an embedding method for solving partial differential equations on surfaces. The closest point method uses standard numerical approaches such as finite differences, finite element or spectral methods in order to solve the embedding partial differential equation (PDE) which is equal to the original PDE on the surface. The solution is computed in a band surrounding the surface in order to be computationally efficient. In order to extend the data off the surface, the closest point method uses a closest point representation. This representation extends function values to be constant along directions normal to the surface.
  
  ## Definitions
  
  Closest Point function: Given a surface ${\mathcal {S}},cp(\mathbf {x} )$ refers to a (possibly non-unique) point belonging to ${\mathcal {S}}$, which is closest to $\mathbf {x}$ [SE].
  
  Closest point extension: Let ${\mathcal {S}}$, be a smooth surface in $\mathbb {R} ^{d}$. The closest point extension of a function $u:{\mathcal {S}}\rightarrow \mathbb {R}$, to a neighborhood $\Omega$ of ${\mathcal {S}}$, is the function $v:\Omega \rightarrow \mathbb {R}$, defined by $v(\mathbf {x} )=u(cp(\mathbf {x} ))$.
  
  ## Closest point method
  
  Initialization consists of these steps [EW]:
  
  * If it is not already given, a closest point representation of the surface is constructed.
  * A computational domain is chosen. Typically this is a band around the surface.
  * Replace surface gradients by standard gradients in $\mathbb {R} ^{3}$.
  * Solution is initialized by extending the initial surface data on to the computational domain using the closest point function.
  
  After initialization, alternate between the following two steps:
  
  * Using the closest point function, extend the solution off the surface to the computational domain.
  * Compute the solution to the embedding PDE on a Cartesian mesh in the computational domain for one time step.
  
  ## Banding
  
  The surface PDE is extended into $\mathbb {R} ^{3}$ however it is only necessary to solve this new PDE near the surface. Hence, we solve the PDE in a band surrounding the surface for efficient computational purposes. $\Omega _{c}{x:\|x-cp(x)\|_{2}\leq \lambda }$ where $\lambda$ is the bandwidth.
  
  ## Example: Heat equation on a circle
  
  Using initial profile $u_{S}(\theta ,t)=\sin(\theta )$ leads to the solution $u_{S}(\theta ,t)=\exp(-t)\sin(\theta )$ for the heat equation. Forward Euler time-stepping is used with relation $\Delta t=0.1\Delta x^{2}$ and degree-four interpolation polynomials for the interpolations. Second-order centered differences are used for the spatial discretization. The CPM results in the expected second order error in the solution $u$.
  
  ## Applications
  
  The closest point method can be applied to various PDEs on surfaces. Reaction–diffusion problems on point clouds [RD], eigenvalue problems [EV], and level set equations [LS] are a few examples.
  
  