Which function space do square waves span?

Click For Summary

Discussion Overview

The discussion revolves around the function space spanned by square waves, particularly in relation to Fourier analysis. Participants explore whether square waves span the same space as sine and cosine functions, considering aspects of continuity, convergence, and representation of functions.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • Some participants question whether an infinite set of square waves spans the same space as sinusoidal waves, seeking clarification on the implications of this relationship.
  • It is noted that square waves consist of odd harmonics and can be represented by summing sine or cosine waves, depending on their phase.
  • Participants highlight that square waves are not continuous functions and exhibit discontinuities, which may affect their ability to span certain function spaces.
  • One participant raises a concern about approximating the arc length of a quarter circle using square waves, suggesting that certain properties may not converge, which could imply limitations in the function space spanned by square waves.
  • Another participant emphasizes that the Fourier series can approximate discontinuous functions, but questions whether square waves belong to the space of all continuous functions.
  • Walsh functions are introduced as a related concept, with a note on their restrictions regarding step changes.
  • A discussion on Schauder basis and convergence versus equality in function spaces is mentioned, prompting questions about the underlying space of these functions.

Areas of Agreement / Disagreement

Participants express differing views on whether square waves span the same function space as sine and cosine functions. The discussion remains unresolved, with multiple competing perspectives on the implications of continuity and convergence.

Contextual Notes

Limitations include the dependence on definitions of function spaces, the nature of convergence discussed, and the unresolved mathematical aspects regarding the representation of certain functions using square waves.

Physics news on Phys.org
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?
 
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   Reactions: Klystron
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.
 
A square wave is not a continuous function. By nature, ideal square waves exhibit discontinuities transitioning from minimum to maximum value.
 
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..
 
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   Reactions: Klystron and suremarc
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!
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K