GO-V.ORG
As seen in

Square wave (waveform)

{{Infobox mathematical function | name = Square wave | image = Waveforms.svg | imagesize = 400px | imagealt = Sine, square, triangle, and sawtooth waveforms | caption = Sine, square, triangle, and sawtooth waveforms | general_definition = x(t) = 4 \left\lfloor t \right\rfloor - 2 \left\lfloor 2 t \right\rfloor + 1, 2 t \notin \mathbb{Z} | fields_of_application = Electronics, synthesizers | domain = \mathbb{R} \setminus \left\{ \tfrac{n}{2} \right\}, n \in \mathbb{Z} | codomain = \left\{ -1,1 \right\} | parity = Odd | period = 1 | antiderivative = Triangle wave | fourier_series = x(t) = \frac{4}{\pi} \sum_{k=1}^{\infty} \frac{1}{2 k - 1} \sin \left( 2 \pi \left(2 k - 1 \right) t \right) }} A square wave is a non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum.[src] In an ideal square wave, the transitions between minimum and maximum are instantaneous.[src] The square wave is a special case of a pulse wave which allows arbitrary durations at minimum and maximum amplitudes.[src] The ratio of the high period to the total period of a pulse wave is called the duty cycle.[src] A true square wave has a 50% duty cycle (equal high and low periods).[src] Square waves are often encountered in electronics and signal processing, particularly digital electronics and digital signal processing.…[src]

{{Infobox mathematical function | name = Square wave | image = Waveforms.svg | imagesize = 400px | imagealt = Sine, square, triangle, and sawtooth waveforms | caption = Sine, square, triangle, and sawtooth waveforms | general_definition = x(t) = 4 \left\lfloor t \right\rfloor - 2 \left\lfloor 2 t \right\rfloor + 1, 2 t \notin \mathbb{Z} | fields_of_application = Electronics, synthesizers | domain = \mathbb{R} \setminus \left\{ \tfrac{n}{2} \right\}, n \in \mathbb{Z} | codomain = \left\{ -1,1 \right\} | parity = Odd | period = 1 | antiderivative = Triangle wave | fourier_series = x(t) = \frac{4}{\pi} \sum_{k=1}^{\infty} \frac{1}{2 k - 1} \sin \left( 2 \pi \left(2 k - 1 \right) t \right) }} A square wave is a non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum.[src] In an ideal square wave, the transitions between minimum and maximum are instantaneous.[src] The square wave is a special case of a pulse wave which allows arbitrary durations at minimum and maximum amplitudes.[src] The ratio of the high period to the total period of a pulse wave is called the duty cycle.[src] A true square wave has a 50% duty cycle (equal high and low periods).[src] Square waves are often encountered in electronics and signal processing, particularly digital electronics and digital signal processing.[src] Its stochastic counterpart is a two-state trajectory.[src] \begin{align} x(t) &= \sgn\left(\sin \frac{2\pi t}{T}\right) = \sgn(\sin 2\pi ft) \\ v(t) &= \sgn\left(\cos \frac{2\pi t}{T}\right) = \sgn(\cos 2\pi ft), \end{align} which will be 1 when the sinusoid is positive, −1 when the sinusoid is negative, and 0 at the discontinuities.[src] Here, T is the period of the square wave and f is its frequency, which are related by the equation f = 1/T.[src] A square wave can also be defined with respect to the Heaviside step function u(t) or the rectangular function Π(t): \begin{align} x(t) &= 2\left[\sum_{n=-\infty}^\infty \Pi\left(\frac{2(t - nT)}{T} - \frac{1}{2}\right)\right] - 1 \\ &= 2\sum_{n=-\infty}^\infty \left[u \left(\frac{t}{T} - n\right) - u \left(\frac{t}{T} - n - \frac{1}{2} \right) \right] - 1.[src] \end{align} A square wave can also be generated using the floor function directly: x(t) = 2\left(2\lfloor ft\rfloor - \lfloor 2 ft\rfloor \right) + 1 and indirectly: x(t) = \left(-1\right)^{\lfloor 2ft \rfloor}.[src] Using the Fourier series (below) one can show that the floor function may be written in trigonometric form \frac{2}{\pi}\arctan\left(\tan\left(\frac{\pi ft}{2}\right)\right)+\frac{2}{\pi}\arctan\left(\cot\left(\frac{\pi ft}{2}\right)\right) \begin{align} x(t) &= \frac{4}{\pi} \sum_{k=1}^\infty \frac{\sin\left(2\pi(2k - 1)ft\right)}{2k - 1} \\ &= \frac{4}{\pi} \left(\sin(\omega t) + \frac{1}{3} \sin(3 \omega t) + \frac{1}{5} \sin(5 \omega t) + \ldots\right), &\text{where }\omega=2\pi f.[src] \end{align} The ideal square wave contains only components of odd-integer harmonic frequencies (of the form ).[src] A curiosity of the convergence of the Fourier series representation of the square wave is the Gibbs phenomenon.[src] Ringing artifacts in non-ideal square waves can be shown to be related to this phenomenon.[src] The Gibbs phenomenon can be prevented by the use of σ-approximation, which uses the Lanczos sigma factors to help the sequence converge more smoothly.[src] An ideal mathematical square wave changes between the high and the low state instantaneously, and without under- or over-shooting.[src] This is impossible to achieve in physical systems, as it would require infinite bandwidth.[src] Square waves in physical systems have only finite bandwidth and often exhibit ringing effects similar to those of the Gibbs phenomenon or ripple effects similar to those of the σ-approximation.[src] For a reasonable approximation to the square-wave shape, at least the fundamental and third harmonic need to be present, with the fifth harmonic being desirable.[src] These bandwidth requirements are important in digital electronics, where finite-bandwidth analog approximations to square-wave-like waveforms are used.[src] (The ringing transients are an important electronic consideration here, as they may go beyond the electrical rating limits of a circuit or cause a badly positioned threshold to be crossed multiple times.) ==References== ==External links== Fourier decomposition of a square wave Interactive demo of square wave synthesis using sine waves, from GeoGebra site.[src] Square Wave Approximated by Sines Interactive demo of square wave synthesis using sine waves.[src] Flash applets Square wave.[src]

30 sentences · 30 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Square wave (waveform)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/square-wave-waveform. Accessed 04 December 2026.

Chicago

"Square wave (waveform)." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/square-wave-waveform.

APA

encyclopegia.org. (2025). Square wave (waveform). Retrieved December 4, 2026, from https://encyclopegia.org/wiki/square-wave-waveform

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Template:New Wave (Contest)

stub · references available

Tahrir Square

stub · references available

fast inverse square root

stub · references available

Fen Square-spot

stub · references available

A Nightingale Sang in Berkeley Square

stub · references available

Submillimeter Wave Astronomy Satellite

stub · references available

Playhouse on the Square

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1324981212 · 0.5 · snapshot enwiki-001324981212

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.