- #1
FreeGamer
- 2
- 0
Homework Statement
Construct a function that is infinitely differentiable, f(x) in [0,1] for all x, and f(x)=1 for -1<x<1, f(x)=0 for |x|>2.
Homework Equations
None.
The Attempt at a Solution
I thought of doing it using a Fourier series for a square wave, in the way that f(x)=1 for -1.5<x<1.5, but since the function is not periodic, I would have to somehow make it so that f(x)=0 for |x|>2.
Now what I'm not sure is if this function
f(x)= { Fourier series of the square wave from -1.5 to 1.5 } ( for |x|<=2 ), 0 ( for |x|>2 )
would still be infinitely differentiable in such setting, in particular at the point x=2 and x=-2. If this is not the way to do it, can someone please hint on a different path.
Thanks in advance!