Well, usually you could do stuff like defining: $\psi_\epsilon(x) = \epsilon^{-n} \exp \left (\epsilon^2 (\epsilon^2 - |x|^2) \right )$. if $|x| < \epsilon$ and $0$ elsewhere.
@FrankScience Quite hard for calculus.
Then you can take the convolution with some nice indicator function which is nicely one near the boundary.
So, what do you do? You say! Cool, this is excellent. Take the extension for each point, then take some stuff in between the "end" of that new boundary.
And then function domain itself.
So, that will be outside the boundary, but still in a smooth part.
@Jonas @Frank : In the definition, for the meaning of the word 'extension' to be fully justified, don't you think domain of $f$ should be a subset of the domain of $f^*$?
@JonasTeuwen We had this running gag "WE CANNOT STOP THE HEEERD!!" because one of the riders (has her own horse and does 3 day eventing) fell off on the first day. I didn't see it because I was at the front of the herd (we had 50 horses with us all the time and need to herd them) but apparently she first lay still for 1 minute because that's what you're supposed to do (at least in the US apparently, to check whether you're ok) and meanwhile the herd and her horse kept on running.
So one of the guides shouted: We cannot stop the heard! (instead of "Hey, are you alright?")
And she had to run after her horse and the herd : D
(the terrain is steep and stony and she must've been exhausted after all the running)
@JonasTeuwen the calculus book not only on boundary but also for inner points (inner point's neighborhood is obviously extending $f$). Such extending seems a joke.
@JonasTeuwen Supposing there's one counterexample, say, $\mathcal M$ necessarily need infinity many open sets to cover, and $\mathcal M$ is in a rectangle. Try to apply Bolzano's method on the rectangle.
@JonasTeuwen I can't get some details, for example, he claims $\phi_k$ exists without proof. It suffices to make $\phi_k$ is $\mathcal C^n$-function, which I know how to construct, but what about his stronger result.
@Jonas Is there any restriction/condition on Fourier series coefficients of a periodic (with period $T$) function $f$ which vanishes on an open interval, (it can be closed too) $(a,b) \subset (0,T)$?
@FrankScience : From my experience, when Christian blatter answers it takes considerable time/ effort to understand it, he generally makes things compact. Reread it carefully and patiently
@RajeshD Not necessarily. It just has to be differentiable a "sufficient" number of times. So for instance, $C^2$ splines would be considered "smooth". But I suppose it depends on the context.
I too always had that doubt, but I have given up on that after coming to math.SE, @Frank : BTW I am not a mathematician, its just my hobby, so don't always take me seriously
@FrankScience There have been lengthy discussion in this chatroom about this. It seems that people use real analysis in many different meanings. See, for example, here.
So $g(x)$ has three distinct roots, where $x=1$ is a root with multiplicity 1, $x=2$ is a root with multiplicity $2$ and $x=3$ is a root with multiplicity $3$?
I am just a tad unsure what the correct way of adressing roots on the form $(x-a)^c$ is.