I understand that, because of the Identity Theorem in Complex Analysis, two functions $f(x)$ and $g(x)$ are equal if there exists an interval $(a,b)$, where $a<b$, such that $f(x)=g(x)$ for every value in $(a,b)$, provided both $f$ and $g$ are analytic.
However, is there a way to go about finding non-analytic functions that actually prescribe to this behavior? It seems that bump functions are somewhere in the right direction, but I fail to see how those could do what I am looking for.
For example, if you have a function $f(x) = x^2$, is there a method to find a smooth non-analytic function $h(x)$ so that some interval, say $(1, 2)$, $h(x)=x^2$, but does not equal $f(x)$ for every value outside of that interval? It is simple to construct a non-smooth piecewise function, but that is not what I'm looking for.
$b\left(x\right)=\frac{\left(h\left(1-\left(x-\frac{3}{2}\right)\right)\cdot h\left(1+\left(x-\frac{3}{2}\right)\right)\right)}{h\left(1-\left(x-\frac{3}{2}\right)\right)\cdot h\left(1+\left(x-\frac{3}{2}\right)\right)+h\left(\left(x-\frac{3}{2}\right)-\frac{1}{2}\right)+h\left(-\left(x-\frac{3}{2}\right)-\frac{1}{2}\right)}$.
When do something like $g(x) = b(x)*x^2$ this works perfectly. Is there a simple way to prove that $g(x)$ is now smooth?
– Tug Witt Aug 21 '20 at 13:08