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...