Log in Sign up
Back to Discover
🔢

Nyquist–Shannon sampling theorem

math Maturity 7-9

We use math to catch sounds.

Nyquist sampling.gif
Nyquist sampling.gif
We take many small dots of a sound. These dots help us keep the music. If we take enough dots, it sounds just right. It helps us hear things clearly. Do you like music?

42 words

Imagine a smooth, wavy line.

Nyquist sampling.gif
Nyquist sampling.gif
We can turn this line into many small dots. This is called sampling.
Sinc function (normalized).svg
Sinc function (normalized).svg
If we take enough dots, we can rebuild the line perfectly. We must take dots fast enough to catch every wave. If we do not take enough, the line looks wrong. This mistake is called aliasing.
Moire pattern of bricks.jpg
Moire pattern of bricks.jpg
This math helps us make digital pictures and sounds. It makes sure we do not lose any information.

81 words

Imagine a smooth, wavy line. We can turn this line into a set of dots. This is called sampling.

Nyquist sampling.gif
Nyquist sampling.gif
Sampling lets us turn a continuous signal into a list of numbers. This helps computers store sounds and pictures.

To rebuild the line perfectly, we must take dots fast enough. We need a certain sample rate. This rate must be at least twice the signal's bandwidth. The bandwidth is the range of frequencies in the signal.

Bandlimited.svg
Bandlimited.svg
This special limit is called the Nyquist rate. If we sample too slowly, we make a mistake. This mistake is called aliasing.
AliasedSpectrum.png
AliasedSpectrum.png
In aliasing, a high frequency looks like a lower one. This can ruin a digital sound or image. You might even see strange patterns, like a Moiré pattern.
Moire pattern of bricks.jpg
Moire pattern of bricks.jpg

Two people helped explain this idea. Harry Nyquist and Claude Shannon are both honored in its name. A man named E. T. Whittaker also found this before them. This math is a bridge. It connects smooth signals to the digital world.

174 words

Imagine a smooth, wavy line moving through time. This line might represent a beautiful song or a bright color. Computers cannot see this smooth line directly. Instead, they must turn it into a list of dots. This process is called sampling.

Nyquist sampling.gif
Nyquist sampling.gif
By taking these dots, we turn a continuous signal into a discrete sequence of numbers. This is how digital music and digital photos work. We are building a bridge between the real world and the digital world.

To rebuild the smooth line perfectly, we must follow a specific rule. We need to take our dots at a certain speed. This speed is called the sample rate. For the reconstruction to be perfect, the sample rate must be at least twice the signal's bandwidth.

Bandlimited.svg
Bandlimited.svg
The bandwidth is the range of frequencies within the signal. If we sample fast enough, we can use math to find the original line again. One way to do this is by using special shapes called sinc functions.
Sinc function (normalized).svg
Sinc function (normalized).svg
Each dot is replaced by a sinc function, and they are all added together to recreate the wave.

If we do not sample fast enough, something goes wrong. This mistake is called aliasing.

AliasedSpectrum.png
AliasedSpectrum.png
When aliasing happens, high frequencies look like lower ones. The computer gets confused and creates a false signal. This can ruin the sound of a recording or the look of a picture. You might even see strange, wavy patterns called Moiré patterns in a digital image.
Moire pattern of bricks.jpg
Moire pattern of bricks.jpg
To prevent this, engineers often use a lowpass filter. This tool removes the high frequencies before the sampling happens.

Many important thinkers helped us understand this math. The theorem is named after Harry Nyquist and Claude Shannon. However, a man named E. T. Whittaker discovered these ideas even earlier in 1915. Because of this, the rule is often called the Whittaker–Shannon sampling theorem.

ReconstructFilter.svg
ReconstructFilter.svg
It is also known as the cardinal theorem of interpolation. These scientists showed us how to capture information without losing anything important. Their work allows us to store huge amounts of data in small digital files.

This math works for many different things in our lives. It is not just for sounds moving through time. It also works for things like digital images in space.

Moire pattern of bricks small.jpg
Moire pattern of bricks small.jpg
In an image, the theorem helps us decide how many pixels we need. If we have enough pixels, the picture looks clear and real. If we have too few, the image looks broken or strange. This theorem is a fundamental part of almost all modern technology we use every day.

436 words

The Nyquist–Shannon sampling theorem is a fundamental principle in signal processing. It acts as a bridge between continuous-time signals and discrete-time signals. A continuous signal is a smooth, unbroken flow of information, like a sound wave in the air. A discrete signal is a sequence of individual numbers, like the data stored on a computer. This theorem tells us exactly how to turn a smooth signal into numbers without losing any information. It establishes the conditions needed to perfectly reconstruct the original signal from its digital samples.

Nyquist sampling.gif
Nyquist sampling.gif

Sampling is the process of converting a continuous signal into a sequence of values. To do this, we measure the signal at specific intervals. The time between these measurements is called the sample period or sampling interval. If we want to turn the numbers back into a smooth signal, we must use a process called interpolation. A mathematically ideal way to interpolate involves using sinc functions. Each sample is replaced by a sinc function centered at its location. These functions are then summed together to recreate the original continuous wave.

Sinc function (normalized).svg
Sinc function (normalized).svg

For this reconstruction to work perfectly, we must respect the signal's bandwidth. The bandwidth is the range of frequencies present in the signal. The theorem applies to band-limited functions, which are signals that have zero frequency components outside a specific range. The theorem states that a sufficient sample rate is anything larger than twice the signal's bandwidth. This threshold is known as the Nyquist rate. If the sample rate is higher than this rate, the process is called oversampling. Oversampling is helpful because it leaves room for error in the reconstruction process.

Bandlimited.svg
Bandlimited.svg

There are two important terms to distinguish: the Nyquist rate and the Nyquist frequency. The Nyquist rate is an attribute of the continuous-time input signal itself. It is defined by the signal's bandwidth. The Nyquist frequency is an attribute of the sampling equipment. It is exactly one-half of the sampling rate. For a signal to be reconstructed without errors, all meaningful frequency components must stay below the Nyquist frequency. This requirement is known as the Nyquist criterion.

ReconstructFilter.svg
ReconstructFilter.svg

The history of this discovery involves several brilliant mathematicians. While the theorem is named after Harry Nyquist and Claude Shannon, it was discovered earlier. E. T. Whittaker published his findings on this topic in 1915. Because of this, the principle is often called the Whittaker–Shannon sampling theorem. It is also referred to as the Whittaker–Nyquist–Shannon theorem or the cardinal theorem of interpolation. These scientists provided the mathematical proof that digital samples can fully represent a continuous world.

Nyquist sampling.gif
Nyquist sampling.gif

If the sampling rate is too low, a problem called aliasing occurs. Aliasing happens when the Nyquist criterion is not satisfied. In this state, high-frequency components become indistinguishable from lower-frequency components. The samples create an "alias," which is a false signal that was not in the original. This makes perfect reconstruction impossible because the original information is lost. To prevent this, engineers use an anti-aliasing filter. This is a lowpass filter that removes high frequencies before the signal is sampled.

AliasedSpectrum.png
AliasedSpectrum.png

Aliasing does not just affect sound; it also affects visual information. In digital images, insufficient sampling can create strange, wavy patterns called Moiré patterns. These patterns appear when the sampling rate is too low to capture the fine details of a scene. For example, a pattern of bricks might look distorted in a digital photo.

Moire pattern of bricks.jpg
Moire pattern of bricks.jpg
The theorem can be extended to functions of many variables, such as grayscale images. In these cases, the theorem helps determine how many pixels are needed to represent an image accurately.
Moire pattern of bricks small.jpg
Moire pattern of bricks small.jpg

The significance of this theorem cannot be overstated in the modern age. It allows us to digitize audio, video, and images with high fidelity. Without it, we would not have digital music, streaming video, or digital photography. It provides the mathematical certainty needed to move information from the physical world into the digital realm. By understanding the relationship between bandwidth and sampling, we can capture the world with incredible precision.

678 words
🖼️ Images & Media (9)
File:Bandlimited.svg
Bandlimited.svg
File:Sinc function (normalized).svg
Sinc function (normalized).svg
File:CPT-sound-nyquist-thereom-1.5percycle.svg
CPT-sound-nyquist-thereom-1.5percycle.svg
File:AliasedSpectrum.png
AliasedSpectrum.png
File:ReconstructFilter.svg
ReconstructFilter.svg
File:Nyquist sampling.gif
Nyquist sampling.gif
File:Moire pattern of bricks small.jpg
Moire pattern of bricks small.jpg
File:Moire pattern of bricks.jpg
Moire pattern of bricks.jpg
File:CriticalFrequencyAliasing.svg
CriticalFrequencyAliasing.svg
Up Next
🔢
Fast Fourier transform
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.