Constructing a function - Fourier Series?

In summary, the conversation discusses the task of constructing a function that is infinitely differentiable in the interval [0,1] and satisfies the conditions f(x)=1 for -1<x<1, f(x)=0 for |x|>2. The suggestion is to use a smooth transition function to connect a constant function with another non-constant function in order to achieve infinite differentiability. A specific example of such a function is f(x)=exp(-1/x) for x>0 and f(x)=0 for x<=0. The person in the conversation believes they can prove its differentiability with help from the provided link.
  • #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!
 
Physics news on Phys.org
  • #2
What do you mean by
FreeGamer said:
Construct a function that is infinitely differentiable, f(x) in [0,1] for all x

specifically "in [0,1] for all x"?
 
  • #3
No, it's nothing to do with Fourier series. The trick is to connect a function that's constant on an interval with another function that's not while still making it infinitely differentiable. Define f(x)=exp(-1/x) for x>0 and f(x)=0 if x<=0. Can you show that's infinitely differentiable? Have you done something like this in class? If not look at "Smooth transition function" in http://en.wikipedia.org/wiki/Non-analytic_smooth_function It's an example of the sort of thing you are looking for.
 
  • #4
vela said:
What do you mean by

specifically "in [0,1] for all x"?

By that I mean the values of f(x) must be between 0 and 1 for all x, sorry if i confused u a bit.

Dick said:
No, it's nothing to do with Fourier series. The trick is to connect a function that's constant on an interval with another function that's not while still making it infinitely differentiable. Define f(x)=exp(-1/x) for x>0 and f(x)=0 if x<=0. Can you show that's infinitely differentiable? Have you done something like this in class? If not look at "Smooth transition function" in http://en.wikipedia.org/wiki/Non-analytic_smooth_function It's an example of the sort of thing you are looking for.

Thanks! I think Prof mentioned something about it but never seriously discussed about it. I think I should be able to prove the differentiability either myself or with help on the wiki site.
 

FAQ: Constructing a function - Fourier Series?

What is a Fourier series?

A Fourier series is a mathematical representation of a periodic function, expressed as an infinite sum of sinusoidal functions. It is used to approximate a function by breaking it down into simpler components.

How is a Fourier series constructed?

A Fourier series is constructed by using the Fourier coefficients, which are calculated by integrating the function over one period and dividing by the period. These coefficients are then used to determine the amplitude and frequency of each sinusoidal function in the series.

What is the purpose of using a Fourier series?

The purpose of using a Fourier series is to approximate a complex function by breaking it down into simpler components. This can be useful in many areas of science and engineering, such as signal processing, image analysis, and solving differential equations.

What are the limitations of a Fourier series?

A Fourier series can only be used to represent periodic functions, meaning that the function repeats itself over a certain interval. Additionally, it may not accurately represent functions with sharp corners or discontinuities.

How is a Fourier series related to the Fourier transform?

The Fourier transform is a generalization of the Fourier series, used to represent non-periodic functions. It can be seen as the limit of the Fourier series as the period approaches infinity. Both methods use sinusoidal functions to approximate a function, but the Fourier transform also takes into account the frequency content of the function.

Similar threads

Back
Top