IAE Academy

GATE EC · EE · IN

Sampling and reconstruction

Sampling turns a continuous-time signal into a sequence of numbers; the sampling theorem says when those numbers still carry the whole signal, and reconstruction says how an ideal lowpass filter rebuilds it from them. The standard calculations — the Nyquist rate of a sum, product or square of signals, the apparent frequency of an aliased tone, the allowed cutoff of the reconstruction filter, the output when a sampled signal is filtered, the minimum rate for a bandpass signal — all follow from one picture: sampling repeats the spectrum at every multiple of , scaled by .

8 previous-year questions · 7 solved · 6 practice questions

Ideal sampling and the spectrum of the sampled signal

Conventions on this page. The Fourier transform is written in (Hz), symmetric form: and . In (rad/s) the forward transform is and the inverse carries ; the form of each result is given where you will meet it. (normalised: , zeros at every nonzero integer). for and for ; for and otherwise. is the sampling interval, the sampling rate in samples/s, . Digital frequency is in rad/sample.

Ideal sampling multiplies by a unit impulse train of period . Multiplication in time is convolution in frequency, and the transform of an impulse train is another impulse train — spacing , strength . Convolving with it places a copy of at every integer multiple of , each multiplied by .

So the sampled spectrum is periodic in with period . Sampling in time makes the spectrum periodic, just as a periodic time signal has a line spectrum.

IMPULSE TRAIN AND ITS TRANSFORM

In : the transform is , with .

IDEALLY SAMPLED SIGNAL

Uses : only the sample values survive, as impulse strengths.

SPECTRUM OF THE IDEALLY SAMPLED SIGNAL

Replicas of at every multiple of , each scaled by . In : — the scale factor is still , not .

EXAM TIP

The scaling is why the ideal reconstruction filter is specified with passband gain : the two cancel and comes back at its original amplitude. If a question's filter has gain 1 instead, the output is .

SUM OF THE SAMPLES

Put in the spectrum formula above. The first equality holds generally; the second needs for every , which a signal band-limited to guarantees — the rate does not have to reach the Nyquist rate for this. It turns an infinite sum of sinc-type samples into a single transform value.

WORKED EXAMPLE

Evaluate .

Solution
  1. Read the terms as samples of taken at , so s and Hz.

  2. with gives : band-limited to Hz, with .

  3. , so for every and the sum is .

  4. Direct check: unless 3 divides (then it is 0), so the sum is , using .

Answer: 3

The sampling theorem and the Nyquist rate

Let be band-limited: for . The replica centred at occupies . Neighbouring replicas do not overlap when , that is , and then a lowpass filter can cut out the baseband copy intact.

The empty band between the top of the baseband copy and the bottom of the first replica is the guard band. A real filter needs it to roll off from passband to stopband.

SAMPLING THEOREM

For a signal band-limited to Hz. If has impulses exactly at (the highest component is a sinusoid), the inequality must be strict: .

NYQUIST RATE AND NYQUIST INTERVAL

Nyquist rate = twice the HIGHEST frequency present (equal to twice the bandwidth only for a lowpass signal). Nyquist interval = the largest allowed sampling interval. In rad/s: .

BAND LIMITS OF THE SINC FORMS

for ; for . So reaches Hz and its square reaches Hz. In : is band-limited to rad/s Hz, so its Nyquist rate is samples/s.

Most Nyquist-rate questions give a signal built from simpler ones. Find the highest frequency of the combination with the rules below, then double it. Let be band-limited to , to and to (all lowpass). The entries are the band edges in general; a special cancellation can only make them smaller.

Signal

Highest frequency

Nyquist rate

(convolution)

, ,

(a bandpass signal when )

after an ideal LPF of cutoff

EXAM TIP

Multiplication in time adds band limits (the spectra convolve); convolution in time keeps the smaller one (the spectra multiply). Squaring doubles the band limit: contains .

EXAM TIP

Convert to Hz before anything else. is a 500 Hz tone, not 1000 Hz. A missing factor of is the commonest slip in these questions.

EXAM TIP

A periodic signal with finitely many harmonics has Nyquist rate its highest harmonic, not its fundamental. A time-limited signal (a rectangular or triangular pulse) is never band-limited: its Nyquist rate is infinite, and some aliasing is unavoidable unless it is filtered first.

WORKED EXAMPLE

Let and . Find the Nyquist rate of (a) , (b) , (c) .

Solution
  1. is a rectangle in frequency reaching Hz.

  2. reaches 150 Hz. Squaring convolves its spectrum with itself, so reaches Hz.

  3. (a) Sum: highest frequency Hz, so the Nyquist rate is Hz.

  4. (b) Product: highest frequency Hz, so the Nyquist rate is Hz.

  5. (c) is a 1000 Hz carrier. The product occupies 900 to 1100 Hz; highest frequency 1100 Hz, Nyquist rate Hz. (It is a bandpass signal of bandwidth 200 Hz, so bandpass sampling could go as low as Hz — see the bandpass section.)

Answer: (a) 600 Hz, (b) 800 Hz, (c) 2200 Hz

Aliasing and the apparent frequency

If , the replica centred at overlaps the baseband copy. A component at has images at for every integer , and one of them lands in . After sampling, that image is indistinguishable from a genuine tone at that frequency — the two produce identical samples. This is aliasing.

is the folding frequency: the part of the spectrum above it is reflected back into , like a sheet folded at , then at , and so on.

APPARENT (ALIASED) FREQUENCY

The frequency an ideal reconstruction filter of cutoff outputs for a tone at sampled at . If , and — no aliasing.

Finding the output tone, with its phase, when the samples pass through an ideal lowpass filter of cutoff and passband gain (so amplitudes carry over unchanged):

  1. Write the tone in Hz: .

  2. Reduce modulo : with chosen so that .

  3. If : the output is — same phase. (If this is the DC value .)

  4. If : the tone folds. The output frequency is and the phase changes sign: . A sine also flips sign: becomes .

  5. If exactly: the samples are and the phase is lost (next formula).

  6. Tones that land on the same frequency add as phasors. If the filter's passband gain is 1 instead of , multiply the result by .

SINUSOID SAMPLED AT EXACTLY TWICE ITS FREQUENCY

The samples depend only on : a sine () gives all-zero samples, and different pairs give identical samples. A sinusoid therefore needs strictly. In the spectrum, the impulses at fall on each other's replicas at .

WORKED EXAMPLE

is sampled by an ideal impulse train at kHz, and the samples are passed through an ideal lowpass filter with cutoff 500 Hz and passband gain . Find the output .

Solution
  1. In Hz the tones are 700 Hz and 1300 Hz. Both exceed Hz, so both alias.

  2. 700 Hz: , so it folds to Hz and the sine changes sign: .

  3. 1300 Hz: , so no fold: .

  4. Check on the samples (): and .

  5. Both land on 300 Hz and add: . The gain cancels the from sampling.

Answer: — a 300 Hz tone of amplitude 1; the two inputs partly cancel.

EXAM TIP

Never add the amplitudes of tones that alias onto the same frequency without checking which of them folded: a folded tone has its phase reversed, so they can reinforce or cancel.

EXAM TIP

In rad/s the same rule reads with . Pick one unit and stay in it.

Reconstruction with an ideal lowpass filter

When , an ideal lowpass filter with passband gain keeps the baseband copy and rejects every replica. Its cutoff only has to lie in the empty band between the top of the baseband copy () and the bottom of the first replica ().

In time, the filter's impulse response is a sinc, so the output is a sum of sinc pulses, one centred on each sampling instant and weighted by that sample — the sinc interpolation formula. With each sinc is zero at all the other sampling instants, so the rebuilt signal passes exactly through the samples.

RECONSTRUCTION FILTER AND ALLOWED CUTOFF

Passband gain restores the amplitude. The range exists only when ; at it shrinks to the single value . The endpoints are also acceptable when has no impulses at .

IMPULSE RESPONSE OF THE RECONSTRUCTION FILTER

With : and for every .

SINC INTERPOLATION FORMULA

Exact for band-limited to , using . For any other allowed cutoff: .

ENERGY FROM THE SAMPLES

For an energy signal band-limited to with . It follows from the sinc interpolation formula: the pulses are mutually orthogonal and each has energy .

Below the Nyquist rate no cutoff works. The overlapping parts of adjacent replicas are already added together inside , and no filter can separate a sum. The ideal LPF with cutoff then outputs the original components below plus the aliases found in the previous section.

EXAM TIP

Check a given cutoff against both ends of the gap. A cutoff above lets in the bottom of the first replica even though ; for a tone at sampled at , the first replica tone sits at , and the filter must stop it.

Practical sampling: natural, flat-top, aperture effect and anti-aliasing

Real samplers use pulses of finite width , not impulses. In natural sampling a switch passes for seconds in every , so the pulse tops follow the signal. In flat-top sampling (sample-and-hold) the value at the sampling instant is held constant for , so the pulse tops are flat.

The difference shows up in the spectrum: natural sampling weights each replica by a constant, while flat-top sampling multiplies the whole spectrum, baseband copy included, by .

NATURAL SAMPLING

times a unit-height rectangular pulse train (width , period , pulses centred on ). are the pulse train's Fourier-series coefficients — one constant per replica. The baseband copy is , undistorted; an ideal LPF with gain recovers .

FLAT-TOP (SAMPLE-AND-HOLD) SAMPLING

Impulse samples convolved with the hold pulse (width , starting at each sampling instant), whose transform is . The factor varies with , so the baseband copy itself is distorted — the aperture effect — and delayed by .

APERTURE-EFFECT ATTENUATION AND EQUALISER

Attenuation relative to DC, worst at the top of the band . The equaliser, placed with the reconstruction filter, undoes the magnitude distortion; the delay is simply left in. The effect is small when : with the loss even at is under 0.04 dB.

ZERO-ORDER HOLD (DAC) RECONSTRUCTION

Flat-top with : each sample is held until the next, giving a staircase. It droops across the band (needs a equaliser) and passes attenuated images (needs a smoothing lowpass filter).

Property

Ideal (impulse)

Natural

Flat-top

Pulse top

impulse of strength

follows for

held at for

Weight on replica

, a constant

, varies with

Baseband copy

exact, scaled by

exact, scaled by

distorted by , delayed by

Recovery

ideal LPF, gain

ideal LPF, gain

ideal LPF, gain , plus equaliser

Anti-aliasing filter. An analog lowpass filter placed before the sampler, removing signal and noise above the wanted band so that nothing can fold into it. It cannot work after the sampler: once a component has folded it sits at a legitimate in-band frequency.

Its transition band may run from up to . A component at between and folds to , which lies between and — outside the wanted band , so a later filter that keeps only removes it. A component in (and likewise near , , …) folds into , so the filter must stop everything from upward. This is why practical systems sample faster than : the guard band is room for real filters to roll off.

WORKED EXAMPLE

A signal band-limited to 4 kHz is sampled at 10 kHz. Find the aperture-effect attenuation at 4 kHz, relative to DC, in dB, for (a) flat-top pulses of width and (b) a zero-order hold ().

Solution
  1. . The attenuation factor at kHz is .

  2. (a) , so , and dB.

  3. (b) , so , and dB.

  4. Narrow pulses make the aperture effect negligible. The full-interval hold needs an equaliser gain of at 4 kHz.

Answer: (a) about dB; (b) about dB

Bandpass sampling

A bandpass signal occupies only , with bandwidth . Sampling at always works, but much lower rates can too: the shifted copies of the positive and negative bands only have to avoid the original band — they may sit in the empty space between and or above . The minimum depends on how many whole bandwidths fit under .

MINIMUM BANDPASS SAMPLING RATE

is the greatest-integer function. If is an integer multiple of , . In general .

ALL ALIAS-FREE UNIFORM SAMPLING RATES

For the upper limit is : ordinary sampling at . Rates in the gaps between these windows alias, so a rate above the minimum is not automatically safe.

WORKED EXAMPLE

A bandpass signal occupies 18 kHz to 25 kHz. Find the minimum sampling rate that avoids aliasing, and decide whether kHz is acceptable.

Solution
  1. kHz and , so .

  2. kHz.

  3. Alias-free windows: : kHz; : kHz; : kHz.

  4. 20 kHz lies in the gap between 18 and 25 kHz, so it aliases. Check: the negative band kHz shifted by kHz lands on kHz, overlapping the original kHz.

Answer: kHz; 20 kHz is not acceptable (it causes aliasing).

EXAM TIP

The Nyquist rate is by definition. The bandpass formula answers a different question — the lowest rate at which a bandpass signal can be sampled without aliasing. For with band-limited to , the Nyquist rate is , while the bandpass minimum uses and . Read which one is asked.

From continuous to discrete frequency, and sampling followed by filtering

The samples form a discrete-time signal. Its DTFT is the sampled spectrum with the frequency axis relabelled: a continuous-time frequency (Hz) or (rad/s) appears at the digital frequency rad/sample. The folding frequency maps to , and the -periodicity of becomes the -periodicity of the DTFT.

CT TO DT FREQUENCY MAPPING

One-to-one only on the baseband, . sampled gives with ; reduce modulo into to read off the alias.

PERIODICITY OF A SAMPLED SINUSOID

A continuous-time sinusoid is always periodic; its samples need not be — , from , never repeats. Examples: 1 kHz sampled at 3 kHz gives , ; 700 Hz sampled at 1 kHz gives , . A sum of such sequences with periods and repeats every samples.

DTFT OF THE SAMPLES

is the continuous-time transform in (rad/s). This is evaluated at .

DISCRETE-TIME PROCESSING OF A CT SIGNAL

Sampler at , then an LTI discrete-time system , then ideal reconstruction (cutoff , gain ). Valid when is band-limited below . A DT cutoff acts as a CT cutoff : at kHz, gives kHz.

Sampling followed by a bandpass filter. The impulse-sampled signal contains every replica, so a bandpass filter after the sampler can select a replica instead of the baseband copy — sampling used as frequency translation. The output can sit at a frequency the input never contained. That is not aliasing; aliasing is a replica landing inside the band the reconstruction filter keeps. Work line by line.

Procedure: sample, then filter.

  1. Write as spectral lines: has at and at .

  2. Impulse sampling copies every line to for all integers , with strength multiplied by . (For natural sampling, multiply by that replica's weight instead.)

  3. Keep the lines inside the filter's passband — a real filter passes the and bands together — and multiply by its gain.

  4. Pair each line at with its mirror at to form a real cosine. A line at keeps phase ; a line at (with ) came from the line and carries .

  5. Add everything that lands on the same frequency as phasors.

WORKED EXAMPLE

is sampled by an ideal impulse train at kHz. The sampled signal passes through an ideal bandpass filter with gain for and zero elsewhere. Find the output .

Solution
  1. is a 1 kHz tone: lines at kHz and at kHz.

  2. The sampled spectrum has lines at kHz — at 1, 2, 4, 5, 7, 8, … kHz and their negatives — each multiplied by .

  3. The passband keeps 4 kHz (, from the kHz line, phase ) and 5 kHz (, from the kHz line, phase ). The gain cancels the factor .

  4. Pairing with the mirror lines at and kHz gives and .

Answer:

EXAM TIP

A DT sinusoid is unchanged when changes by , and . These two identities are aliasing and folding seen from the discrete-time side; use them to check any apparent-frequency answer.

PREVIOUS-YEAR QUESTIONS

8 questions from the EC, EE and IN papers

Try each question first, then open the answer. One shows the official answer only. We placed each question under a topic ourselves; the exam paper does not label topics.

See these papers in full: GATE ECE 2026 · GATE ECE 2025 · GATE ECE 2024 · GATE ECE 2023 · GATE ECE 2018 · GATE EE 2023 · GATE IN 2024 · GATE IN 2020

GATE 2026 EC Q.15

GATE 2026 · ECQ.15 · 1 mark · MCQ

Two analog signals and ( in second), are sampled at a rate , where

, and .

The first ten samples (starting from ) are considered for the analysis.

Which of the following statements is TRUE?

  1. (A)

    All of the first three samples of are greater than the corresponding samples of .

  2. (B)

    All of the last three samples of are greater than the corresponding samples of .

  3. (C)

    All of the samples of are greater than the corresponding samples of .

  4. (D)

    All of the fourth to seventh samples of are equal to the corresponding samples of .

Answer and solution
See the question in the paper
GATE 2026 EC Q.15: answer and solution

GATE 2025 EC Q.38

GATE 2025 · ECQ.38 · 2 marks · MCQ

Consider a continuous-time finite-energy signal whose Fourier transform vanishes outside the frequency interval , where is in rad/sec.

The signal is uniformly sampled to obtain . Here,

with being the Dirac impulse, , and . The sampled signal is passed through an ideal lowpass filter with cutoff frequency and passband gain .

The output of the filter is given by ________.

  1. (A)

    if

  2. (B)

    if

  3. (C)

    if

  4. (D)

    if

Answer and solution
See the question in the paper
GATE 2025 EC Q.38: answer and solution

GATE 2024 EC Q.48

GATE 2024 · ECQ.48 · 2 marks · MCQ

A continuous time signal is sampled at a rate of 15 Hz. The sampled signal when passed through an LTI system with impulse response

produces an output . The expression for is ______.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
See the question in the paper
GATE 2024 EC Q.48: answer and solution

GATE 2023 EC Q.50

GATE 2023 · ECQ.50 · 2 marks · MCQ

Let and be two band-limited signals having bandwidth rad/s each. In the figure below, the Nyquist sampling frequency, in rad/s, required to sample , is

GATE 2023 EC question 50: Block diagram with two branches.Tap to open full size
Figure from the GATE 2023 EC paper. It is part of the question.
Figure description

Block diagram with two branches. Top branch: x_1(t) enters a multiplier (circle with X), whose other input, coming from above, is cos (4 π × 10^3 t). Bottom branch: x_2(t) enters a second multiplier, whose other input, coming from above, is cos (12 π × 10^3 t). The two multiplier outputs go into a summing junction (circle with +; neither input has a minus sign). The summer's output is y(t). So y(t) = x_1(t) cos (4 π × 10^3 t) + x_2(t) cos (12 π × 10^3 t).

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2023 EC Q.50: answer and solution

GATE 2020 IN Q.22

GATE 2020 · INQ.22 · 1 mark · NAT

A sinusoid of 10 kHz is sampled at 15 k samples/s. The resulting signal is passed through an ideal low pass filter (LPF) with cut-off frequency of 25 kHz. The maximum frequency component at the output of the LPF (in kHz) is ____

Official answer

Official answer: 25Source: Official answer key, GATE 2020 IN (IIT Delhi)

See the question in the paper
GATE 2020 IN Q.22: official answer

GATE 2018 EC Q.54

GATE 2018 · ECQ.54 · 2 marks · NAT

A band limited low-pass signal of bandwidth 5 kHz is sampled at a sampling rate . The signal is reconstructed using the reconstruction filter whose magnitude response is shown below:

[Figure]

The minimum sampling rate (in kHz) for perfect reconstruction of is ______.

GATE 2018 EC question 54: Plot of |H(f)| (vertical axis) against f (kHz) (horizontal axis).Tap to open full size
Figure from the GATE 2018 EC paper. It is part of the question.
Figure description

Plot of |H(f)| (vertical axis) against f (kHz) (horizontal axis). The magnitude response is a symmetric trapezoid centred at f = 0: it is flat at height K for -6 ≤ f ≤ 6 kHz (dashed vertical lines drop from the corners at f = -6 and f = 6), falls linearly from K to 0 between f = 6 and f = 8 kHz on the right and between f = -6 and f = -8 kHz on the left, and is zero for |f| ≥ 8 kHz. Axis labels marked: -8, -6, 0, 6, 8 on the frequency axis; K on the vertical axis.

Answer and solution
GATE 2018 EC Q.54: answer and solution

PRACTICE

6 questions to test yourself

PRACTICE 11 mark · MCQ

Let and . The Nyquist rate of (twice its highest frequency) is

  1. (A)

    240 Hz

  2. (B)

    340 Hz

  3. (C)

    480 Hz

  4. (D)

    960 Hz

Answer and solution

Answer: (C)

  1. is band-limited to 50 Hz.

  2. is a 120 Hz tone, so reaches 120 Hz.

  3. Squaring doubles the band limit: reaches 240 Hz (the term from is present; the cross term reaches only Hz and the squared sinc only 100 Hz).

  4. Nyquist rate Hz.

PRACTICE 22 marks · MSQ

A real bandpass signal has its spectrum confined to . It is sampled uniformly by an ideal impulse train. Which of the following sampling rates avoid aliasing, so that the signal can be recovered exactly by an ideal bandpass filter?

  1. (A)

    19.5 kHz

  2. (B)

    22 kHz

  3. (C)

    28 kHz

  4. (D)

    70 kHz

Answer and solution

Answer: (A), (C)

  1. kHz and .

  2. Alias-free windows , in kHz: : ; : ; : ; : .

  3. 19.5 kHz lies in the window and 28 kHz in the window, so both are valid.

  4. 22 kHz (between 20 and 25.33) and 70 kHz (between 60 and 76) lie in gaps. Check 70 kHz: the band kHz shifted by kHz lands on kHz, overlapping kHz.

PRACTICE 31 mark · NAT

The value of , with the term taken as its limiting value , is ________.

Answer and solution

Answer:

  1. The terms are the samples at ( s, Hz) of .

  2. By the sinc-form pair with Hz, : band-limited to Hz, with .

  3. Hz, so for every and the sum equals .

  4. Check: for ; with the full sum is .

PRACTICE 42 marks · NAT

The signal is multiplied by a periodic rectangular pulse train of unit height, pulse width and period , with the pulses centred at (natural sampling). The product passes through an ideal bandpass filter of unit gain for and zero elsewhere. The amplitude of the output sinusoid is ________ (round off to two decimal places).

Answer and solution

Answer: (accepted range )

  1. kHz and the duty cycle is . The pulse train's Fourier-series coefficients are , with .

  2. has lines of strength 2 at kHz. The product has lines at kHz: 1, 4, 6, 9, … kHz and their negatives.

  3. Only the 4 kHz pair is in the passband: (from ) and (from ), each of strength since .

  4. .

  5. The output is , amplitude (exactly ).

PRACTICE 51 mark · NAT

The signal is sampled by an ideal impulse train at 1000 samples/s, and the samples are passed through an ideal lowpass filter with cutoff 500 Hz and passband gain . The output is a single sinusoid. Its frequency, in Hz, is ________.

Answer and solution

Answer:

  1. , so Hz.

  2. Reduce modulo : Hz.

  3. , so the tone folds to Hz, with its phase reversed: the output is .

PRACTICE 61 mark · MSQ

Which of the following statements are TRUE?

  1. (A)

    In natural sampling with a rectangular pulse train, the replica centred at is multiplied by a constant that depends on but not on .

  2. (B)

    In flat-top sampling with pulse width , the baseband part of the sampled spectrum is multiplied by a factor whose magnitude is proportional to .

  3. (C)

    Sampling at exactly , with samples at , gives all-zero samples.

  4. (D)

    An anti-aliasing filter placed after the sampler removes aliasing that has already occurred.

Answer and solution

Answer: (A), (B)

  1. A — true: natural sampling multiplies by a pulse train with Fourier-series coefficients , giving ; each depends on only.

  2. B — true: flat-top sampling convolves the impulse samples with a hold pulse whose transform is , which multiplies the baseband copy (aperture effect).

  3. C — false: . It is a sine that gives all-zero samples.

  4. D — false: a folded component occupies an in-band frequency and cannot be filtered out afterwards; the anti-aliasing filter must come before the sampler.

OFFICIAL GATE 2027 SYLLABUS WORDING

Copied from the GATE 2027 syllabus; see all 2027 syllabi.

GATE EC

Nyquist sampling theorem, sampling and reconstruction

GATE EE

sampling theorem

GATE IN

sampling

Preparing in Kolkata? IAE Academy's course for GATE ECE, GATE EE or GATE IN.