---
title: Problem set 1
heading: "Problem set 1: Fourier series"
eyebrow: A10 · Problem set 1
type: problems
---

::: hook
These problems use lessons 1 to 5: building signals from sinusoids, finding coefficients, the complex form, and power in the harmonics. Use symmetry first: it often tells you half the coefficients are zero before you integrate anything.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 1 | 5; n = 3 | 5

## A square wave switches between $+\given{A}$ and $-\given{A}$.

::: part
answer: 4*A/(pi*n)
tolerance: 0.5%

### What is the amplitude of harmonic {n}?

::: misses
- [4*A/pi] That's the fundamental.
- [any] $\frac{4A}{\pi n}$ for odd $n$.
:::
:::

::: part
answer: 2*A/(pi*n)
tolerance: 0.5%

### What is $|c_n|$ for that harmonic?

::: misses
- [any] Half the amplitude.
:::
:::
:::

::: check
kind: parts
given: A = 5 | 12; D = 0.2 | 0.1

## A pulse train of height {A} V has duty cycle {D}.

::: part
answer: A*D

### What is its DC level?

::: misses
- [any] $AD$.
:::
:::

::: part
answer: 2*A*D*sin(pi*D)/(pi*D)
tolerance: 0.5%

### What is the amplitude of its fundamental?

::: misses
- [any] $2AD\,\text{sinc}(D)$.
:::
:::
:::

::: check
kind: parts
given: D = 0.05 | 0.1 | 0.125 | 0.2 | 0.25 | 0.5

## A pulse train has duty {D}.

::: part
answer: 1/D

### Which harmonic first vanishes?

::: misses
- [any] $nD = 1$.
:::
:::

::: part
answer: 2/D

### Which is the second to vanish?

::: misses
- [any] $nD = 2$.
:::
:::
:::

::: check
kind: parts
given: a = 3 | 6; b = 4 | 8

## A harmonic is $\given{a}\cos(n\omega_0t) + \given{b}\sin(n\omega_0t)$.

::: part
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

### What is its amplitude?

::: misses
- [any] $\sqrt{a^2 + b^2}$.
:::
:::

::: part
answer: atan(-b/a)*180/pi
tolerance: 0.5%

### What is the angle of $c_n$, in degrees?

::: misses
- [any] The angle of $a - jb$.
:::
:::
:::

::: check
kind: parts
given: a0 = 2 | 0.5; a1 = 4 | 3; a3 = 1 | 2

## A signal is $\given{a0} + \given{a1}\sin(\omega t) + \given{a3}\sin(3\omega t)$.

::: part
answer: sqrt(a0^2 + a1^2/2 + a3^2/2)
tolerance: 0.5%

### What is its RMS value?

::: misses
- [any] Parseval.
:::
:::

::: part
answer: 100*a3/a1
tolerance: 0.5%

### What is its THD, in percent?

::: misses
- [any] Harmonics over fundamental, ignoring DC.
:::
:::
:::

::: check
kind: parts
given: N = 1 | 3 | 5 | 7 | 9

## The square wave's harmonics up to {N}.

::: part
answer: 100*8/pi^2*(1 + step(N - 2)/9 + step(N - 4)/25 + step(N - 6)/49 + step(N - 8)/81)
tolerance: 0.5%

### What percent of the power do they carry?

::: misses
- [any] $\frac{8}{\pi^2}\sum\frac{1}{n^2}$ over odd $n \le N$.
:::
:::

::: part
answer: 100 - 100*8/pi^2*(1 + step(N - 2)/9 + step(N - 4)/25 + step(N - 6)/49 + step(N - 8)/81)
tolerance: 1%

### What percent is left out?

::: misses
- [any] The remainder.
:::
:::
:::

::: check
kind: parts
given: A1 = 10 | 2; A2 = 0.5 | 0.1; A3 = 1 | 0.2

## An amplifier's output has harmonics of {A1}, {A2} and {A3} V.

::: part
answer: 100*sqrt(A2^2 + A3^2)/A1
tolerance: 0.5%

### What is its THD, in percent?

::: misses
- [any] $\frac{\sqrt{A_2^2 + A_3^2}}{A_1}$.
:::
:::

::: part
answer: sqrt((A1^2 + A2^2 + A3^2)/2)
unit: V
tolerance: 0.5%

### What is its total RMS?

::: misses
- [any] Parseval.
:::
:::
:::

::: check
kind: parts
given: f0 = 1 | 50; fc = 2.5 | 400

## A square wave at {f0} kHz passes a filter that keeps everything below {fc} kHz and removes the rest.

::: part
answer: floor(fc/f0)
tolerance: 0.5%

### What is the highest harmonic number that gets through?

::: misses
- [any] $\lfloor f_c/f_0\rfloor$.
:::
:::

::: part
answer: floor((floor(fc/f0) + 1)/2)
tolerance: 0.5%

### How many odd harmonics get through?

::: misses
- [any] Count 1, 3, 5, ... up to that number.
:::
:::
:::

::: check
kind: parts
given: J = 1..20 int

## A signal with jumps of {J} V is rebuilt from its first 50 harmonics.

::: part
answer: 0.09*J
unit: V
tolerance: 3%

### About how big is the overshoot at each jump?

::: misses
- [any] About 9% of the jump.
:::
:::

::: part
answer: 0.09*J
unit: V
tolerance: 3%

### With 500 harmonics instead?

::: misses
- [any] The Gibbs overshoot doesn't shrink; it narrows.
:::
:::
:::

::: check
kind: parts
given: A = 1..10 int

## A triangle wave of peak {A}.

::: part
answer: A/sqrt(3)
tolerance: 0.5%

### What is its RMS value?

::: misses
- [A/sqrt(2)] That's a sine.
- [any] $\sqrt{\frac{1}{T}\int x^2dt}$ for a straight ramp.
:::
:::

::: part
answer: 8*A/pi^2
tolerance: 0.5%

### What is its fundamental's amplitude?

::: misses
- [any] $\frac{8A}{\pi^2}$.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 3; n = 2 | 4

## A triangle wave of peak {A} V has half-wave symmetry, with harmonics of amplitude $\frac{8A}{\pi^2n^2}$ for odd $n$.

::: part
answer: 8*A/(9*pi^2)
unit: V
tolerance: 0.5%

### What is the amplitude of its third harmonic?

::: misses
- [8*A/(3*pi^2)] The triangle's harmonics fall as $\frac{1}{n^2}$.
- [any] $\frac{8A}{9\pi^2}$.
:::
:::

::: part
answer: 0
unit: V

### What is the amplitude of its harmonic {n}?

::: misses
- [any] Half-wave symmetry removes even harmonics.
:::
:::
:::

::: check
kind: parts
given: c1 = 3 | 1; c0 = 2 | 4

## A real signal has $c_0$ = {c0} and $c_1 = \given{c1}j$.

::: part
answer: -c1

### What is the imaginary part of $c_{-1}$?

::: misses
- [any] $c_{-1} = c_1^*$.
:::
:::

::: part
answer: 2*c1
tolerance: 0.5%

### What is the amplitude of its fundamental?

::: misses
- [any] $2|c_1|$.
:::
:::
:::

::: check
kind: parts
given: A = 2 | 5; n = 3 | 5

## A ±{A} V triangle wave.

::: part
answer: 8*A/pi^2
unit: V
tolerance: 0.5%

### What is its fundamental's amplitude?

::: misses
- [4*A/pi] That's a square wave's.
- [any] $\frac{8A}{\pi^2}$.
:::
:::

::: part
answer: 8*A/(pi^2*n^2)
unit: V
tolerance: 0.5%

### And harmonic {n}'s?

::: misses
- [8*A/(pi^2*n)] Triangle harmonics fall as $\frac{1}{n^2}$.
- [any] $\frac{8A}{\pi^2n^2}$.
:::
:::
:::

::: check
kind: parts
given: A = 5 | 9 | 10 | 12 | 15 | 24

## A half-wave rectified sine of peak {A} V.

::: part
answer: A/pi
unit: V
tolerance: 0.5%

### What is its DC level?

::: misses
- [2*A/pi] That's full-wave.
- [any] $\frac A\pi$.
:::
:::

::: part
answer: A/2
unit: V
tolerance: 0.5%

### What is its fundamental's amplitude?

::: misses
- [any] Half the peak.
:::
:::
:::

::: check
kind: parts
given: f = 0.5 | 1 | 2 | 3 | 5 | 10

## A ±1 square wave at 1 kHz passes through an RC low-pass with its corner at {f} kHz.

::: part
answer: (1/3)*sqrt((1 + 1/f^2)/(1 + 9/f^2))
tolerance: 0.5%

### What is the output's 3rd harmonic relative to its fundamental?

::: misses
- [1/3] The filter cuts the 3rd harmonic more than the fundamental.
- [any] $\frac13\frac{|H(3)|}{|H(1)|}$.
:::
:::
:::
:::
