Mathematical Methods: exam simulation
Practise as in the written exam: 3 or 4 exam-level exercises picked at random, against the clock. Solve them on paper; the solutions appear when you hand in.
20 exam exercises available
Your past exams
Cauchy's theorem and integral formula
Cauchy’s estimate
A function
is holomorphic in the disc
and
on the circle
. How large can
be at most? Is the bound attained?
Result:
; yes, for
.
Cauchy’s estimate (in-depth study):
.
It is attained by
: on
,
, and
.
Meaning: a holomorphic function bounded on a large disc cannot oscillate quickly at the centre. The derivatives are controlled by the values on the boundary.

Cauchy's theorem and integral formula
A consequence of Liouville
Let
be holomorphic on the whole of
with
for every
. Prove that
is constant.
Result: apply Liouville to
, which has modulus at most 1.
is not necessarily bounded (the imaginary part can grow), so Liouville does not apply directly. Consider
: it is holomorphic on the whole of
(composition of holomorphic functions) and
. By Liouville
is constant.
Then
, and since
never vanishes,
everywhere:
is constant.
This is the typical scheme: transform the function with another one (exponential, reciprocal,
) to obtain a bounded function.
Cauchy's theorem and integral formula
Maximum modulus
Find the maximum of
on the disc
and the point where it is attained.
Result:
, at
(and at
).
The polynomial is holomorphic: by the maximum modulus principle the maximum lies on the circle
. With
,
. The modulus is
, maximum for
, i.e.
:
.
Check: at
,
, modulus
. At
, the most “natural” value to try, one gets only 3.

The residue theorem
The keyhole with a equal to one third
Compute
.
Result:
.
It is the formula of the in-depth study
with
, i.e.
:
.
Redoing the computation: on the lower edge of the cut
; residue at
:
. So
,
. ✓
The circles do not contribute because
: the integrand is integrable both near 0 (
) and at infinity (
).


The residue theorem
The sector for the fourth power
Compute
with a sector of opening
.
Result:
.
Rotating by
,
does not change: on the ray
we have
and
, so that piece, traversed towards the origin, equals
. The arc tends to zero (ML). Inside the sector there is a single pole,
, with residue
.
. With
and
:
.
It is half of the integral over the whole line,
, computed in the in-depth study with the semicircle: two different contours, same result.

The residue theorem
A modulated Gaussian
Compute
.
Result:
.
With the rectangle of the in-depth study and
: the height is
, and on the upper side
. Cauchy’s theorem (no poles) and the vertical sides tending to zero give
, i.e.
(the sine part vanishes by symmetry).
General formula:
. With
one gets back the Gaussian integral
.


The residue theorem
Summing a series with the hyperbolic cotangent
Compute
.
Result:
.
As in the in-depth study, use
: at every integer
it has residue
. The other poles are
:
![]()
With
and
odd: both residues equal
, in total
.
On the square
the integral tends to 0, so the sum of all residues is 0:
. Removing
and dividing by 2:
.


The residue theorem
Summary: which contour?
For each of the following integrals state the complex function and the contour to use, without computing them: (a)
; (b)
; (c)
; (d)
; (e)
.
Result: (a) semicircle; (b)
with indentation and Jordan; (c) keyhole; (d) unit circle with
; (e) sector of opening
.
(a) Rational function with denominator 6 degrees higher: semicircle, poles
,
,
. Result
.
(b) Simple pole on the real axis (at 0) and slow decay: use
, indented contour around 0, Jordan for the large arc, pole
inside. Result
.
(c) Non-integer power: cut along the positive half-axis, keyhole (or the formula for
). Result
.
(d) Trigonometric integral over one period:
,
; it becomes a double pole inside the circle. Result
.
(e)
is invariant under rotations by
: a sector with that opening, a single pole
. Result
.
Choosing the contour is half the exercise: it depends on where the poles are, on how the integrand decays and on the symmetries.

The Fourier transform
A pulse through an RC filter
A rectangular pulse of amplitude 1 and duration
enters an RC filter with
. Compute the output in time with convolution and explain the result in frequency.
Result:
for
,
for
;
.
Impulse response
. The output is
.
For
:
. For
:
. At the end of the pulse
.
In frequency.
. The filter attenuates the components beyond
rad/s: they are the ones that make up the steep edges, which indeed become exponential. The main lobe of the pulse spectrum (up to
rad/s) passes almost entirely, and the output gets close to level 1. With
much larger than
the output would stay small: the filter would “not have time” to follow the pulse.

The Fourier transform
How much energy is in the band
For the signal
, what fraction of the energy lies in the band
?
Result: 50 %.
Total energy in time:
.
In frequency,
, and the energy in the band is
![]()
Fraction:
%. To contain 90 % one would need
: the slow tails of the Lorentzian make the bandwidth of a signal with a jump wide.

The Fourier transform
Aliasing
A signal
is sampled at 5 kHz. What frequency does the processor “see”? And if it were sampled at 8 kHz?
Result: 2 kHz with 5 kHz sampling; 3 kHz (correct) with 8 kHz.
With
kHz the Nyquist limit is 2.5 kHz, and 3 kHz exceeds it. The samples are
. Since
, they are identical to those of a cosine at
Hz.
In general the apparent frequency is the distance from the nearest multiple of
:
kHz. The processor has no way of telling them apart: the information is lost at the moment of sampling.
At 8 kHz the limit is 4 kHz and the 3 kHz signal is represented correctly.

The Fourier transform
The uncertainty principle for the Gaussian
For
, compute the duration
and the bandwidth
defined as in the in-depth study, and check that the product is
.
Result:
,
, product
.
is a Gaussian with variance
(compare with
:
). The weighted mean of
is the variance:
.
In frequency
, a Gaussian with variance
:
.
Product:
, the minimum possible. No other signal is as concentrated in time and frequency: this is why Gaussian pulses are used in radar and communications (GMSK modulation in GSM, Bluetooth).

The Laplace transform
An RLC circuit switched on to a step
A series RLC circuit with
Ω,
H,
F, initially uncharged, is connected at time 0 to a 10 V source. Find the current
.
Result:
A.
In the
domain (lesson): inductor
, capacitor
, source
. Mesh law:
![]()
Poles
.
, so
A.
Checks:
(the inductor prevents jumps in current);
(the charged capacitor blocks DC). The circuit is underdamped because
Ω: with a larger resistance the current would not oscillate.

The Laplace transform
The specifications of a second-order system
A system has transfer function
. Find
,
, the overshoot, the peak time and the 2 % settling time of the step response.
Result:
rad/s,
;
%;
s;
s.
Comparison with the standard form
:
,
;
,
.
.
s.
s. Static gain
: the output goes to 1.
The formulas come from the step response
: the peak is where the derivative first vanishes, i.e.
.

The Laplace transform
A periodic signal
Find the transform of the square wave with period
that is 1 for
and 0 for
.
Result:
.
Transform of the first period:
. With the formula for periodic signals:
![]()
Poles:
and the zeros of
, i.e.
: the odd harmonics
rad/s, exactly those of the Fourier series of the square wave (Analysis 2 lesson). The mean value
corresponds to the pole at 0:
.

The Laplace transform
An integral equation
Find
such that
for
.
Result:
.
Transforming, the integral becomes a division by
:
. So
and
, i.e.
.
Check:
, and
.
It is the law of an RC circuit seen from the current: the voltage across the resistor plus that across the capacitor (integral of the current) equals the source. Equations of this kind (Volterra equations) appear in models with memory, and Laplace turns them into algebra.

The Z transform
Discretising a process with ZOH
The process
is driven by a D/A with hold, with
s. Find
and check that, for a step, the samples coincide with the continuous response.
Result:
.
Formula of the in-depth study with
:
.
Step response:
, whose inverse transform gives
: exactly the continuous response
at the instants
. ZOH is exact for piecewise-constant inputs, because that is precisely what the D/A produces.

The Z transform
Euler versus Tustin
A controller has a pole at
. With
s, where does the pole end up when discretising with forward Euler and with Tustin? And with ZOH?
Result: Euler
(unstable); Tustin
(stable); ZOH
.
Forward Euler:
. Outside the circle: a stable pole has become unstable, because
.
Tustin:
. Stable, but negative: it introduces an oscillation at the Nyquist frequency that the continuous system did not have.
ZOH (exact correspondence):
.
Moral: with poles that are fast compared with the sampling the approximate methods give very different results. The practical rule is to sample at least 10-20 times faster than the fastest dynamics to be controlled.

The Z transform
Tustin with prewarping
A digital low-pass filter with a cut-off frequency of 1 kHz, sampled at 4 kHz, is to be obtained with Tustin from a continuous prototype. At what frequency should the prototype be designed?
Result: at
rad/s (1273 Hz) instead of 6283 rad/s (1000 Hz).
Desired digital angular frequency:
,
, so
.
With the Tustin warping,
corresponds to
rad/s, i.e. 1273 Hz.
If the prototype were designed at 1000 Hz without correction, the digital filter would cut off at
Hz, 15 % lower.
In MATLAB: c2d(H, T, 'tustin') with the option c2dOptions('PrewarpFrequency', 2*pi*1000); in Python, scipy.signal.bilinear after scaling the prototype, or control.sample_system(H, T, method='tustin', prewarp_frequency=2*pi*1000).

The Z transform
From the continuous PI to the microcontroller code
A PI controller
, with
and
s
, must run on a microcontroller with
ms. Discretise it with Tustin, write the difference equation and the code.
Result:
.
With
:
. So
![]()
with
and
.
From
:
. Each
is a variable that keeps the value of the previous step. In C, run by a periodic interrupt every 10 ms:
static float u_prev = 0.0f, e_prev = 0.0f;
const float b0 = 2.05f, b1 = -1.95f;
float pi_step(float setpoint, float measure)
{
float e = setpoint - measure;
float u = u_prev + b0 * e + b1 * e_prev;
if (u > 10.0f) u = 10.0f; /* actuator saturation */
if (u < -10.0f) u = -10.0f;
u_prev = u; /* z^-1 on the output */
e_prev = e; /* z^-1 on the error */
return u;
}Saturating
and saving the already-limited value in u_prev is a simple anti-windup protection: the integrator does not keep growing when the actuator is at its limit. This is exactly the scheme that in car ECUs controls engine idle speed, turbo boost pressure or the torque of an electric motor.
