Which function space do square waves span?

In summary, the space that square waves span is different than the space that sine and cosine waves span. A square wave can be represented by summing up an infinite series of sine waves. Or it could be cosine waves, or you may need both sine and cosine, depending on when the square wave "starts" . in relation to t=0. Although I believe this is a dangerous argument since not much is intuitive when it comes to summing up an infinite number of terms, it is still possible to approximate a discontinuous function with a series of continuous functions.
Physics news on Phys.org
  • #3
scottdave said:
The Wikipedia page, where these formula resides, talks about the Fourier Series for a square wave. A square wave consists of odd harmonics of the fundamental frequency. https://en.wikipedia.org/wiki/Square_wave
Maybe I am missing something now but does that necessarily mean that an infinite set of square waves span the same space as the sinusoidal waves do? And in that case, why?
 
  • #4
Kontilera said:
Maybe I am missing something now but does that necessarily mean that an infinite set of square waves span the same space as the sinusoidal waves do? And in that case, why?
It's the other way around. A square wave can be represented by summing up an infinite series of sine waves. Or it could be cosine waves, or you may need both sine and cosine, depending on when the square wave "starts" . in relation to t=0.
 
  • Like
Likes Klystron
  • #5
scottdave said:
It's the other way around. A square wave can be represented by summing up an infinite series of sine waves. Or it could be cosine waves, or you may need both sine and cosine, depending on when the square wave "starts" . in relation to t=0.
Yes, but my question is which function space the square waves span.
 
  • #6
A square wave is not a continuous function. By nature, ideal square waves exhibit discontinuities transitioning from minimum to maximum value.
 
  • #7
Klystron said:
A square wave is not a continuous function. By nature, ideal square waves exhibit discontinuities transitioning from minimum to maximum value.
A sinus wave is a periodic function bounded by its amplitude in both positive and negative y-direction..
 
  • #8
Kontilera said:
Do [even and odd square waves] span the same space as the sines and cosines in Fourier analysis?
This is a good question. Due to the discontinuities, they contain components of all sine and cosine frequencies. Can those frequencies be recovered as the limit of linear combinations of the square waves? I do not immediately see the answer, although I suspect they can be.
 
Last edited:
  • Like
Likes Klystron and suremarc
  • #9
FactChecker said:
This is a good question. Due to the discontinuities, they contain components of all sine and cosine frequencies. Can those frequencies be recovered as the limit of linear combinations of the square waves? I do not immediately see the answer, although I suspect they can be.

Although I believe this is a dangerous argument since not much is intuitive when it comes to summing up an infinite number of terms, but...
Lets say that we want to express the quarter of the unit circle that is positioned in the first quadrant as a sum of square waves. The arc length of this curve is one half pi. Although by just adding square waves it seems that the arc length for the generated curve always will give 2.
This means that although we expect our generated curve to converge to the original curve, some properties won't converge.
Could this be an argument that our square waves doesn't span the function space?
 
  • #10
Kontilera said:
Lets say that we want to express the quarter of the unit circle that is positioned in the first quadrant as a sum of square waves. The arc length of this curve is one half pi. Although by just adding square waves it seems that the arc length for the generated curve always will give 2.
How do you get 2 for the arc length? For a quarter circle of radius 1, if I divide the interval [0, 1] into n equal subintervals, the total length of the horizontal tops of the waves is ##\frac {n - 1} n##, which approaches 1 as n grows large.

This is the same idea of why you can't approximate the length along a curve by a sum of horizontal pieces -- ##\int_a^b \sqrt{1 + (f'(x))^2} dx## gives the correct arc length, but ##\int_a^b 1 dx## just gives the length of the interval [a, b]. If you want to approximate the area within the quarter circle, rectanular subareas work just fine, but they don't work at all if you want to approximate the length along the quarter circle.

Kontilera said:
This means that although we expect our generated curve to converge to the original curve, some properties won't converge.
I don't think this is important. The point of Fourier series is to be able to approximate discontinuous functions such as square waves, sawtooth waves, and so on, with a series of continuous functions that are sums of sine and/or cosine functions of varying periods and amplitudes. All that is required is that the Fourier series function values agree with the function values of the discontinuous square wave, sawtooth wave, etc.
Kontilera said:
Could this be an argument that our square waves doesn't span the function space?
What function space? If you're talking about the function space of all continuous functions, then square waves aren't in that space, because they aren't continuous.
 
  • #12
  • #13
@Kontilera It seems we are talking Schauder basis here, so we are talking convergence and not equality , as in Hamel bases. This means the underlying space where these functions has a norm , which gives rise to a topology , or a given topology of other sort. What is the underlying space
 
  • #14
Thank you for the answers!
 

1. What is a square wave?

A square wave is a type of waveform that alternates between two levels, typically a high level and a low level, with a fixed frequency and amplitude. It is commonly used in electronics and signal processing.

2. What is a function space?

A function space is a mathematical concept that refers to a set of functions that share certain properties, such as continuity or differentiability. It is often used in functional analysis and other branches of mathematics.

3. How is a square wave represented mathematically?

A square wave can be represented mathematically as a piecewise function, with a value of 1 for half of the period and a value of -1 for the other half. It can also be expressed using trigonometric functions.

4. Which function space do square waves span?

Square waves can span a variety of function spaces, depending on the specific properties and constraints that are considered. For example, they can be considered as a subset of the space of piecewise continuous functions or the space of periodic functions.

5. What are some applications of square waves?

Square waves have various applications in engineering, physics, and mathematics. They are commonly used in signal processing, such as in audio and video systems, as well as in electronic circuits and digital communication. They can also be used to model certain physical phenomena, such as the behavior of a digital clock or the output of a pulse generator.

Similar threads

  • Differential Equations
Replies
0
Views
108
  • Differential Equations
Replies
5
Views
1K
Replies
8
Views
998
  • Differential Geometry
Replies
17
Views
3K
Replies
4
Views
633
Replies
4
Views
640
  • Quantum Physics
Replies
1
Views
811
Replies
13
Views
1K
  • Classical Physics
Replies
2
Views
843
Replies
4
Views
2K
Back
Top