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 plain-toothed
saw
A saw is a tool consisting of a tough blade, Wire saw, wire, or Chainsaw, chain with a hard toothed edge used to cut through material. Various terms are used to describe toothed and abrasive saws.
Saws began as serrated materials, and when man ...
with a zero
rake angle
In machining, the rake angle is a parameter used in various cutting processes, describing the angle of the cutting face relative to the workpiece. There are three types of rake angles: ''positive'', ''zero'' or ''neutral'', and ''negative''.
...
. A single sawtooth, or an intermittently triggered sawtooth, is called a ramp waveform.
The convention is that a sawtooth wave ramps upward and then sharply drops. 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.
The equivalent
piecewise linear function
In mathematics, a piecewise linear or segmented function is a real-valued function of a real variable, whose graph is composed of straight-line segments.
Definition
A piecewise linear function is a function defined on a (possibly unbounded) ...
s
based on the
floor function
In mathematics, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least integer greater than or eq ...
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 ''p'', is
This sawtooth function has the same
phase as the
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
function.
While a
square wave Square wave may refer to:
*Square wave (waveform)
A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
is constructed from only odd harmonics, a sawtooth wave's sound is harsh and clear and its spectrum contains both even and odd
harmonic
In physics, acoustics, and telecommunications, a harmonic is a sinusoidal wave with a frequency that is a positive integer multiple of the ''fundamental frequency'' of a periodic signal. The fundamental frequency is also called the ''1st har ...
s of the
fundamental frequency
The fundamental frequency, often referred to simply as the ''fundamental'' (abbreviated as 0 or 1 ), is defined as the lowest frequency of a Periodic signal, periodic waveform. In music, the fundamental is the musical pitch (music), pitch of a n ...
. Because it contains all the integer harmonics, it is one of the best waveforms to use for
subtractive synthesis
Subtractive synthesis is a method of sound synthesis in which Harmonic_series_(music)#Partial.2C_harmonic.2C_fundamental.2C_inharmonicity.2C_and_overtone, overtones of an audio signal are attenuated by a audio filter, filter to alter the timbre of ...
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.
A sawtooth can be constructed using
additive synthesis
Additive synthesis is a sound synthesis technique that creates timbre by adding sine waves together.
The timbre of musical instruments can be considered in the light of Fourier series, Fourier theory to consist of multiple harmonic or inharmoni ...
. For period ''p'' and amplitude ''a'', the following infinite
Fourier series
A Fourier series () is an Series expansion, expansion of a periodic function into a sum of trigonometric functions. The Fourier series is an example of a trigonometric series. By expressing a function as a sum of sines and cosines, many problems ...
converge to a sawtooth and a reverse (inverse) sawtooth wave:
In
digital
Digital usually refers to something using discrete digits, often binary digits.
Businesses
*Digital bank, a form of financial institution
*Digital Equipment Corporation (DEC) or Digital, a computer company
*Digital Research (DR or DRI), a software ...
synthesis, these series are only summed over ''k'' such that the highest harmonic, ''N''
max, is less than the
Nyquist frequency
In signal processing, the Nyquist frequency (or folding frequency), named after Harry Nyquist, is a characteristic of a Sampling (signal processing), sampler, which converts a continuous function or signal into a discrete sequence. For a given S ...
(half the
sampling frequency). This summation can generally be more efficiently calculated with a
fast Fourier transform
A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of a sequence, or its inverse (IDFT). A Fourier transform converts a signal from its original domain (often time or space) to a representation in ...
. If the waveform is digitally created directly in the time domain using a non-
bandlimited form, such as ''y'' = ''x'' −
floor
A floor is the bottom surface of a room or vehicle. Floors vary from wikt:hovel, simple dirt in a cave to many layered surfaces made with modern technology. Floors may be stone, wood, bamboo, metal or any other material that can support the ex ...
(''x''), infinite harmonics are sampled and the resulting tone contains
aliasing
In signal processing and related disciplines, aliasing is a phenomenon that a reconstructed signal from samples of the original signal contains low frequency components that are not present in the original one. This is caused when, in the ori ...
distortion.

An audio demonstration of a sawtooth played at
440 Hz (A
4) and 880 Hz (A
5) and 1,760 Hz (A
6) is available below. Both bandlimited (non-aliased) and aliased tones are presented.
Applications
* Sawtooth waves are known for their use in
electronic music
Electronic music broadly is a group of music genres that employ electronic musical instruments, circuitry-based music technology and software, or general-purpose electronics (such as personal computers) in its creation. It includes both music ...
. The sawtooth and square waves are among the most common waveforms used to create sounds with subtractive
analog and
virtual analog
An analog modeling synthesizer is a synthesizer that generates the sounds of traditional analog synthesizers using digital signal processing components and software algorithms. Analog modeling synthesizers simulate the behavior of the original elec ...
music synthesizers.
* Sawtooth waves are used in
switched-mode power supplies. In the regulator chip the feedback signal from the output is continuously compared to a high-frequency sawtooth to generate a new duty cycle PWM signal on the output of the
comparator
In electronics, a comparator is a device that compares two voltages or currents and outputs a digital signal indicating which is larger. It has two analog input terminals V_+ and V_- and one binary digital output V_\text. The output is ideally
...
.
* In the field of computer science, particularly in automation and robotics,
allows to calculate sums and differences of angles while avoiding discontinuities at 360° and 0°.
* The sawtooth wave is the form of the vertical and horizontal
deflection
Deflection or deflexion may refer to:
Board games
* Deflection (chess), a tactic that forces an opposing chess piece to leave a square
* Khet (game), formerly ''Deflexion'', an Egyptian-themed chess-like game using lasers
Mechanics
* Deflection ...
signals used to generate a
raster on
CRT
CRT or Crt most commonly refers to:
* Cathode-ray tube, a display
* Critical race theory, an academic framework of analysis
CRT may also refer to:
Law
* Charitable remainder trust, United States
* Civil Resolution Tribunal, Canada
* Columbia ...
-based television or monitor screens.
Oscilloscope
An oscilloscope (formerly known as an oscillograph, informally scope or O-scope) is a type of electronic test instrument that graphically displays varying voltages of one or more signals as a function of time. Their main purpose is capturing i ...
s also use a sawtooth wave for their horizontal deflection, though they typically use
electrostatic
Electrostatics is a branch of physics that studies slow-moving or stationary electric charges.
Since classical times, it has been known that some materials, such as amber, attract lightweight particles after rubbing. The Greek word (), mean ...
deflection.
** On the wave's "ramp", the magnetic field produced by the deflection yoke drags the
electron
The electron (, or in nuclear reactions) is a subatomic particle with a negative one elementary charge, elementary electric charge. It is a fundamental particle that comprises the ordinary matter that makes up the universe, along with up qua ...
beam across the face of the CRT, creating a
scan line
A scan line (also scanline) is one line, or row, in a raster scanning pattern, such as a line of video on a cathode-ray tube (CRT) display of a television set or computer monitor.
On CRT screens the horizontal scan lines are visually discernib ...
.
** 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 current 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 current will cause deflection in one direction, and a positive current deflection in the other; thus, a center-mounted deflection yoke can use the whole screen area to depict a trace. The horizontal frequency is 15.734 kHz on
NTSC
NTSC (from National Television System Committee) is the first American standard for analog television, published and adopted in 1941. In 1961, it was assigned the designation System M. It is also known as EIA standard 170.
In 1953, a second ...
, 15.625 kHz for
PAL
Phase Alternating Line (PAL) is a color encoding system for analog television. It was one of three major analogue colour television standards, the others being NTSC and SECAM. In most countries it was broadcast at 625 lines, 50 fields (25 ...
and
SECAM
SECAM, also written SÉCAM (, ''Séquentiel de couleur à mémoire'', French for ''sequential colour memory''), is an analog color television system that was used in France, Russia and some other countries or territories of Europe and Africa. ...
.
** The vertical deflection system operates the same way as the horizontal, though at a much lower frequency (59.94 Hz on
NTSC
NTSC (from National Television System Committee) is the first American standard for analog television, published and adopted in 1941. In 1961, it was assigned the designation System M. It is also known as EIA standard 170.
In 1953, a second ...
, 50 Hz for PAL and SECAM).
** The ramp portion of the wave must appear as a straight line. If otherwise, it indicates that the current 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

*
List of periodic functions
This is a list of some well-known periodic functions. The constant function , where is independent of , is periodic with any period, but lacks a ''fundamental period''. A definition is given for some of the following functions, though each funct ...
*
Sine wave
A sine wave, sinusoidal wave, or sinusoid (symbol: ∿) is a periodic function, periodic wave whose waveform (shape) is the trigonometric function, trigonometric sine, sine function. In mechanics, as a linear motion over time, this is ''simple ...
*
Square wave Square wave may refer to:
*Square wave (waveform)
A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
*
Triangle wave
A triangular wave or triangle wave is a non-sinusoidal waveform named for its triangular shape. It is a periodic, piecewise linear, continuous real function.
Like a square wave, the triangle wave contains only odd harmonics. However, t ...
*
Pulse wave
A pulse wave or pulse train or rectangular wave is a non-sinusoidal waveform that is the periodic version of the rectangular function. It is held high a percent each cycle ( period) called the duty cycle and for the remainder of each cycle is ...
*
Sound
In physics, sound is a vibration that propagates as an acoustic wave through a transmission medium such as a gas, liquid or solid.
In human physiology and psychology, sound is the ''reception'' of such waves and their ''perception'' by the br ...
*
Supersaw
*
Wave
In physics, mathematics, engineering, and related fields, a wave is a propagating dynamic disturbance (change from List of types of equilibrium, equilibrium) of one or more quantities. ''Periodic waves'' oscillate repeatedly about an equilibrium ...
*
Zigzag
A zigzag is a pattern made up of small corners at variable angles, though constant within the zigzag, tracing a path between two parallel lines; it can be described as both jagged and fairly regular.
In geometry, this pattern is described as a ...
References
External links
*
{{Waveforms
Waveforms
Fourier series