Consider a surface $S$ in $R^3$ given by an equation of the form $$\Phi(x,y,z)=0$$ where $\Phi$ is a sufficiently smooth function. Suppose we have a surface charge distribution on $S$ with density $\sigma(\mathbf x)$. I've seen many times the following formula $$\rho(\mathbf x)\,=\,\sigma(\mathbf x)\,|\nabla \Phi(\mathbf x)|\, \delta(\Phi(\mathbf x))\qquad \qquad (*)$$ where $\delta$ is a Dirac delta function. The formula $(*)$ presumably represents the surface charge density $\sigma(\mathbf x)$ in terms of the (singular) volume charge density $\rho(\mathbf x)$.
I have a question about the formula $(*)$. Since $\rho(\mathbf x)$ is a VOLUME charge density, the point $\mathbf x$ can be any point in $R^3$, or at least, any point in a sufficiently small neighborhood of the surface $S$. But, if you take a point very close to $S$ but NOT in $S$, then the right-hand member of equation $(*)$ is not well defined because $\sigma(\mathbf x)$ is a SURFACE charge density and hence it is only defined for points $\mathbf x \in S$. I know that $\delta(\Phi(\mathbf x))$ kills everything outside $S$ because $\delta(\Phi(\mathbf x))=0$ if $\mathbf x \notin S$, but still the right-hand member of equation $(*)$ is not well defined for points $\mathbf x \notin S$ because $\sigma(\mathbf x)$ is only defined in $S$.
On the other hand, if we restrict ourselves to points on $S$, then the formula $(*)$ works fine; in that case, however, $\rho(\mathbf x)$ would be merely a surface charge density, NOT a volume charge density. But this means that our project has failed entirely because our primary goal was precisely to construct a volume charge density from a surface charge density.
I don't want a proof of the formula $(*)$. I would simply like someone to clarify the above doubts: essentially the formula $(*)$, as it stands, seems to be meaningless.
$\mathit Note$.$\quad$By introducing a new coordinate system $(u,v,w)$ such that $\Phi=0$ becomes one of the coordinate surfaces (for this purpose I take $\Phi=w$), I can make sense of all of this. But then there is no way I can write the resulting volume charge density in the form $(*)$. I get something like $\rho \sim \sigma(u,v)\delta(w)$.
@Triatticus:
https://www.physicsforums.com/threads/volume-charge-density-from-surface-line-charge-density.565317/ (the last answer)
Yes, $\Phi=k \,(k\in R)$ defines a family of surfaces, but $\sigma(\mathbf x)$ is only defined in $\Phi=0$.