World Library  
Flag as Inappropriate
Email this Article

Sawtooth wave

Article Id: WHEBN0000052147
Reproduction Date:

Title: Sawtooth wave  
Author: World Heritage Encyclopedia
Language: English
Subject: Waveform, Function generator, Total harmonic distortion, Triangle wave, MOS Technology SID
Collection: Fourier Series, Waveforms
Publisher: World Heritage Encyclopedia

Sawtooth wave

A bandlimited sawtooth wave pictured in the time domain (top) and frequency domain (bottom). The fundamental is at 220 Hz (A3).

The sawtooth wave (or saw wave) is a kind of non-sinusoidal waveform. It is so named based on its resemblance to the teeth of a saw.

The convention is that a sawtooth wave ramps upward and then sharply drops. However, in a "reverse (or inverse) sawtooth wave", the wave ramps downward and then sharply rises. It can also be considered the extreme case of an asymmetric triangle wave.[1]

The piecewise linear function

x(t) = t - \lfloor t \rfloor = t - \operatorname{floor}(t)

based on the floor function of time t is an example of a sawtooth wave with period 1.

A more general form, in the range −1 to 1, and with period a, is

x(t) = 2 \left( {t \over a} - \left\lfloor {1 \over 2} + {t \over a}\right\rfloor \right)
= 2 \left( {t \over a} - \operatorname{floor} \left( {1 \over 2} + {t \over a} \right) \right)

This sawtooth function has the same phase as the sine function.

Another function in trigonometric terms with period p and amplitude a:

y(x) = -\frac{2a}{\pi}\arctan \left( \cot \left(\frac{x \pi}{p} \right) \right)

While a square wave is constructed from only odd harmonics, a sawtooth wave's sound is harsh and clear and its spectrum contains both even and odd harmonics of the fundamental frequency. Because it contains all the integer harmonics, it is one of the best waveforms to use for subtractive synthesis of musical sounds, particularly bowed string instruments like violins and cellos, since the slip-stick behavior of the bow drives the strings with a sawtooth-like motion.[2]

A sawtooth can be constructed using additive synthesis. The infinite Fourier series

x_\mathrm{reversesawtooth}(t) = \frac {2}{\pi}\sum_{k=1}^{\infty} {(-1)}^{k} \frac {\sin (2\pi kft)}{k}

converges to a reverse (inverse) sawtooth wave. A conventional sawtooth can be constructed using

x_\mathrm{sawtooth}(t) = \frac{A}{2}-\frac {A}{\pi}\sum_{k=1}^{\infty}\frac {\sin (2\pi kft)}{k}

Where A is amplitude.

In digital synthesis, these series are only summed over k such that the highest harmonic, Nmax, is less than the Nyquist frequency (half the sampling frequency). This summation can generally be more efficiently calculated with a fast Fourier transform. If the waveform is digitally created directly in the time domain using a non-bandlimited form, such as y = x - floor(x), infinite harmonics are sampled and the resulting tone contains aliasing distortion.

Animation of the additive synthesis of a sawtooth wave with an increasing number of harmonics

An audio demonstration of a sawtooth played at 440 Hz (A4) and 880 Hz (A5) and 1760 Hz (A6) is available below. Both bandlimited (non-aliased) and aliased tones are presented.

Sawtooth waves played bandlimited and aliased at 440 Hz, 880 Hz, and 1760 Hz

Problems playing this file? See .


  • Applications 1
  • See also 2
  • References 3
  • External links 4


  • Sawtooth waves are known for their use in music. The sawtooth and square waves are common starting points used to create sounds with subtractive analog and virtual analog music synthesizers.
  • The sawtooth wave is the form of the vertical and horizontal deflection signals used to generate a raster on CRT-based television or monitor screens. Oscilloscopes also use a sawtooth wave for their horizontal deflection, though they typically use electrostatic deflection.
    • On the wave's "ramp", the magnetic field produced by the deflection yoke drags the electron beam across the face of the CRT, creating a scan line.
    • On the wave's "cliff", the magnetic field suddenly collapses, causing the electron beam to return to its resting position as quickly as possible.
    • The voltage applied to the deflection yoke is adjusted by various means (transformers, capacitors, center-tapped windings) so that the half-way voltage on the sawtooth's cliff is at the zero mark, meaning that a negative voltage will cause deflection in one direction, and a positive voltage deflection in the other; thus, a center-mounted deflection yoke can use the whole screen area to depict a trace. Frequency is 15.734 kHz on NTSC, 15.625 kHz for PAL and SECAM).
    • The vertical deflection system operates the same way as the horizontal, though at a much lower frequency (59.94 Hz on NTSC, 50 Hz for PAL and SECAM).
    • The ramp portion of the wave must appear as a straight line. If otherwise, it indicates that the voltage isn't increasing linearly, and therefore that the magnetic field produced by the deflection yoke is not linear. As a result, the electron beam will accelerate during the non-linear portions. This would result in a television image "squished" in the direction of the non-linearity. Extreme cases will show marked brightness increases, since the electron beam spends more time on that side of the picture.
    • The first television receivers had controls allowing users to adjust the picture's vertical or horizontal linearity. Such controls were not present on later sets as the stability of electronic components had improved.

See also

Sine, square, triangle, and sawtooth waveforms


  1. ^ "Fourier Series-Triangle Wave - from Wolfram MathWorld". 2012-07-02. Retrieved 2012-07-11. 
  2. ^ page 42

External links

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.