## Tennis: Attacking versus Defending

What is an attacking shot? Must an attacking shot be hit hard? What about a defensive shot? This essay will consider both the theory and the practice of attacking and defensive shots. And it will show that if you often lose 6-2 to an opponent then only a small amount of improvement might be enough to tip the scales the other way.

## Tennis is a Game of Probabilities

Humans are not perfect. Anyone who has tried aiming for a small target by hitting balls fed from a ball machine will know that hitting identical balls will produce different outcomes. What is often not appreciated though is how sensitive the outcome of a tennis match is to small improvements.

Imagine a match played between two robots, where on average, out of every 20 points played, one robot wins just a single more point than the other robot. This is a very small difference in abilities. Mathematically, this translates to the superior robot having a probability of 55% of winning a point against the inferior robot. (I have used robots as a way of ignoring psychological factors. While the effects of psychological factors are relatively small, at a professional level where differences in abilities are so small to begin with, psychological factors can be crucial to determining the outcome of a match.)

Using the “Probability Calculator” found near the bottom of this page, we find that such a subtle difference in abilities translates into the superior robot winning a 5-set match 95.35% of the time. (The probability of winning a 3-set match is 91%.)

The graphs found on this page show that the set score is “most likely” to be 6-2 or 6-3 to the superior robot, so the next time you lose a match 6-2 or 6-3, believe that with only a small improvement you might be able to tip the scales the other way!

## The In-Rally Effect of a Shot

While hitting a winner is a good (and satisfying) thing, no professional tries to hit a winner off every ball. Tennis is a game of probabilities, where subtle differences pay large dividends.

**The aim of every ball is to increase the probability of eventually winning the point.**

So if your opponent has hit a very good ball and you feel you are in trouble, you might think to yourself that you are down 30-70, giving yourself only 30% chance of winning the rally. Your aim with your return shot is to increase your odds. Even if you cannot immediately go back to 50-50, getting to 40-60 will then put 50-50 within reach on the subsequent shot.

So why not go for winners off every ball? If you can maintain a 55-45 advantage off each ball you hit, you will have a 62.31% chance of winning the game, an 81.5% chance of winning the set, and a 91% chance of winning a 3-set match. On the other hand, against a decent player, hitting a winner off a deep ball is difficult and carries with it a significant chance of failure, i.e., hitting the ball out. Studies have shown that even the very best players cannot control whether a ball narrowly falls in or narrowly falls out, meaning that winners hit very close to the line are rarely intentional but rather come from a shot aimed safely within the court that has drifted closer to the line than intended.

## Attacking Options

If by an attacking ball we mean playing a shot that gives us the upper hand in the rally, then our shot needs to make it difficult for our opponent to hit a challenging ball for us. How can this be done?

First, our ability to hit an accurate ball relates to how well we are balanced, how much time we have to react, how fast the incoming ball is, the spin on the ball and the height of the ball at contact. So we can make it difficult for opponents in many different ways. The opponent’s balance can be upset by

- wrong-footing her;
- making her cover a relatively long distance in a short amount of time to reach the ball;
- jamming her by hitting straight at her;
- forcing her to move backwards (so she cannot transfer her weight forwards into the ball).

The opponent’s neurones can be given a harder task by

- giving her less time to calculate how to swing the racquet;
- varying the incoming ball on each shot (different spins, heights, depths, speeds);
- making it harder for her to predict what we will do;
- getting her thinking about other things (such as the score).

Due to our physical structure, making contact with the ball outside of our comfort zone (roughly, between knee to shoulder height) decreases the margin for error because it is harder to “flatten out” the trajectory of the racquet about the contact point.

These observations lead to a variety of strategies for gaining the upper hand, including the following basic ones.

- Take the ball early, on the rise, to take time away from the opponent.
- Hit sharp angles, going near the lines.
- Hit with heavy top-spin to get the ball to bounce above the opponent’s shoulder.
- Hit hard and flat.
- Hit very deep balls close to the baseline.

Each of these strategies carries a risk of hitting out, therefore, it is generally advised not to combine strategies: if you take the ball on the rise, do not also aim close to the lines or hit excessively hard, for example.

If you find yourself losing to someone but not knowing why, it is because subtle differences in the balls you are made to hit can increase the chances of making a mistake, and only very small changes in probability (such as dropping from winning 11 balls out of 20 to only 10 balls out of 20) can hugely affect the outcome of the match (such as dropping from a 91% chance of winning the 3-set match to only a 50% chance of winning). To emphasise, if your opponent takes the ball earlier than normal, you are unlikely to notice the subtle time difference, but over the course of the match, you will feel you are playing worse than normal.

If you are hitting hard but all your balls are coming back, remember that it is relatively easy to return a hard flat ball: the opponent can shorten her backswing yet still hit hard by using your pace, making a safe yet effective return. Hit hard and flat to the open court off a high short ball, but otherwise, try hitting with more top-spin.

## Defensive Options

Just as an attacking ball need not be a fast ball, a defensive ball need not be a slow ball. Rather, a defensive ball is one where our aim is to return to an approximately 50-50 chance of winning the point. If we are off balance, or are facing a challenging ball, we cannot go for too much or we risk hitting out and immediately losing the point.

Reducing the risk of hitting out can be achieved in various ways.

- Do not swing as fast or with excessive spin.
- Take the ball later after the bounce, giving it more time to slow down.
- Block the ball back (perhaps taking it on the rise) to a safe region well away from the lines.
- Focus on being balanced, even if it means hitting with less power.

Importantly, everyone is different, and you should learn what your preferred defensive shots are. For example, while flat balls inherently have a lower margin for error, nonetheless some people may find they are more accurate hitting flat than hitting with top-spin simply due to their biomechanical structure and past practice.

Placement of a defensive shot is crucial. Because speed, spin and/or time have been sacrificed for greater safety, it is quite likely that if the opponent has time to get into a comfortable position they can punish your ball. This is yet another example of where small differences can have large consequences: if the opponent can step into the ball you might be in trouble, yet hitting just a metre deeper, or a metre further to the side, might prevent this. Moreover, never forget that placement is relative to where the opponent currently is: hitting deep to the backhand is normally a good shot unless the opponent is already there!

Changes in depth can be very effective but they must be relative to where the opponent is. If an opponent is attacking, she might have moved to being on the baseline, looking to take the next ball early. Hitting a deep top-spin shot, not necessarily very hard, is very effective in this scenario because the opponent is forced to move backwards and thus cannot generate as much power. (A skilled opponent can still hit hard, but even a 10 km/h reduction in ball speed makes a large difference.)

## Technical Considerations

Watching the slow-motion clips on YouTube of professional players hitting groundstrokes shows that the same player has many different ways of hitting her forehand and backhand. At the point of contact, you can look to see where her feet are, which way her hips are pointing, which way her shoulders are pointing, the angle of her wrist, and the contact point of the ball relative to the body. And as she hits, you can look to see which parts of the body are moving and which have momentarily become static.

While an upcoming article may consider such technical aspects in greater detail, here it is simply noted that while you should be able to hit every kind of shot from any reasonable contact point, each has advantages and disadvantages. And since tennis is a game of probabilities, it comes as no surprise that the top players instinctively know not just what type of shot to hit but also how technically to hit it in the best possible way for them at that particular moment: if they have time, and want to hit a heavy top-spin, they will probably choose a contact point further away from their body and step into the ball, while if they must return a very fast ball, they may instead use a more open stance and hit the ball more in line with their eyes, well out in front.

Next time you are on the court, experiment with how changing the contact point (even over a relatively small range of 10–20 cm) can change how hard you can hit the ball, how accurately you can hit the ball, and how much top-spin you can generate. And do not forget, this may change depending on the type of incoming ball. For example, generating pace off a slow ball is better done using a different technique than returning a fast incoming ball. Failing to recognise this may mean you “feel” you are not hitting the ball well when in fact you are just not using the best technique for the particular type of shot you want to hit.

The other side of the coin is recognising that sometimes it is necessary to play a ball using a non-optimal technique due to a funny bounce, or lack of time (or inherent laziness). In this situation, it is important to adjust the type of shot you hit. If you are forced to return a hard-hit ball at full stretch, you will lose accuracy, so do not go anywhere near the lines. If you are jammed, you are not going to be able to hit as heavy a ball as you may wish, so you may change to hit flatter, opting to take time away from the opponent. Of course, changing from heavy to flat generally means changing where you want your shot to land: a shorter top-spin that bounces above shoulder height is generally good whereas a shorter flat shot is generally bad, for example.

## Does the Voltage Across an Inductor Immediately Reverse if the Inductor is Suddenly Disconnected?

Consider current flowing from a battery through an inductor then a resistor before returning to the battery again. What happens if the battery is suddenly removed from the circuit? Online browsing suggests that the voltage across the inductor reverses “to maintain current flow” but the explanations for this are either by incomplete analogy or by emphatic assertion. Moreover, one could argue for the opposite conclusion: if an inductor maintains current flow, then since the direction of current determines the direction of the voltage drop, the direction of the voltage drop should remain the same, not change!

To understand precisely what happens, it is important to think in terms of actual electrons. When the battery is connected, there is a stream of electrons being pushed out of the negative terminal of the battery, being pushed through the resistor, being pushed through the inductor then being pulled back into the battery through its positive terminal. The question is what happens if the inductor is ripped from the circuit, thereby disconnecting its ends from the circuit. (The explanation of what happens does not change in any substantial way whether it is the battery or the inductor that is removed.)

The analogy of an inductor is a heavy water wheel. The inductor stores energy in a magnetic field while a water wheel stores energy as rotational kinetic energy. But if we switch off the water supply to a water wheel, and the water wheel keeps turning, what happens? Nothing much! And if we disconnect an inductor, so there is no “circuit” for current to flow in, what *can* happen?

One trick is to think not of a water wheel but of a (heavy) fan inside a section of pipe. Ripping the inductor out of the circuit corresponds to cutting the piping on either side of the fan and immediately capping the ends of the pipes. This capping mimics the fact that electrons cannot flow past the ends of wires; not taking sparks into consideration. Crucially then, when we disconnect the fan, there is still piping on either side of the fan, and still water left in these pipes.

Consider the water pressure in the capped pipe segments on both sides of the fan. Assume prior to cutting out the fan, water had been flowing from right to left through the fan. (Indeed, when the pump is first switched on, it will cause a pressure difference to build up across the fan. This pressure difference is what causes the fan to start to spin. As the fan spins faster, this pressure difference gets less and (ideally) goes to zero in the limit.) Initially then, there is a higher pressure on the right side of the fan. The fan keeps turning, powered partly by the pressure difference but mainly by its stored rotational kinetic energy. (Think of its blades as being very heavy, therefore not wanting to slow down.) So water gets sucked from the pipe on the right and pushed into the pipe on the left. These pipes are capped, therefore, the pressure on the right decreases while the pressure on the left increases. “Voltage drop” is a difference in pressure, therefore, the “voltage drop” across the “inductor” is changing.

There is no *discontinuous* change in pressure! **The claim that the voltage across an inductor will immediately reverse direction is false!**

That said, the pressure difference *is* changing, and there will come a time when the left pipe will have a higher pressure than the right pipe. Now there are two competing forces: the stored kinetic energy in the fan wants to keep pumping water from right to left, while the larger pressure on the left wants to force water from left to right. The fan will start to slow down and eventually stop, albeit instantaneously. At the very moment the fan stops spinning, there is a much larger pressure on the left than on the right. Therefore, this pressure difference will force the fan to start spinning in the opposite direction!

Under ideal conditions then, the voltage across the inductor will **oscillate**!

Why should we believe this analogy though? Returning to the electrons, the story goes as follows. Assume an inductor, in a circuit, has a current flowing through it, from left to right. Therefore, electrons are flowing through the inductor from right to left (because Benjamin Franklin had 50% chance of getting the convention of current flow correct). If the inductor is ripped out of the circuit, the magnetic field that had been built up will still “push” electrons through the inductor in an attempt to maintain the same current flow. The density of electrons on the right side of the inductor will therefore decrease, while the density on the left side will therefore increase. Electrons repel each other, so it becomes harder and harder for the inductor to keep pushing electrons from right to left because every electron wants its own space and it is getting more and more crowded on the left side of the inductor. Eventually, the magnetic field has used up all its energy trying to cram as many electrons as possible into the left side of the inductor. The electrons on the left are wanting to get away from each other and are therefore pushing each other over to the right side of the inductor. This “force” induces a voltage drop across the inductor: as electrons want to flow from left to right, we say the left side of the inductor is more negative than the right side. The voltage drop has therefore reversed, but it did not occur immediately, nor will it last forever, because the system will oscillate: as the electrons on the left move to the right, they cause a magnetic field to build up in the inductor, and the process repeats ad infinitum.

Adding to the explanation, we can recognise a build-up of charge as a capacitor. There is always parasitic capacitance because charge can always accumulate in a section of wire. Therefore, there is no such thing as a perfect inductor (for if there were, we could not disconnect it!). Rather, an actual inductor can be modelled by an ideal inductor in parallel with an ideal capacitor. (Technically, there should also be a resistor in series to model the inevitable loss in ordinary inductors.) An inductor and capacitor in parallel form what is known as a resonant “LC” circuit, which, as the name suggests, resonates!

## Intuition behind Caratheodory’s Criterion: Think “Sharp Knife” and “Shrink Wrap”!

Despite many online attempts at providing intuition behind Caratheodory’s criterion, I have yet to find an answer to why testing **all** sets should work.

- https://www.thestudentroom.co.uk/showthread.php?t=4284694
- https://mathoverflow.net/questions/34007/demystifying-the-caratheodory-approach-to-measurability

Therefore, I have taken the liberty of proffering my own intuitive explanation. For the impatient, here is the gist. Justification and background material are given later.

We will think of our sets as rocks. As explained later, a rock is not “measurable” if its boundary is too jagged. In the above image, the rock is not measurable because it has a very jagged boundary. On the other hand, the rock has a very nice boundary and hence we would like to consider to be “measurable”.

For to be measurable according to Caratheodory’s criterion, the requirement is for to hold for all sets . While other references generally make it clear that this is a sensible requirement if is measurable (and we will go over this below), what makes Caratheodory’s criterion unintuitive is the requirement that must hold for all sets , including non-measurable sets. However, we argue that a simple change in perspective makes it intuitively clear why we can demand holds for all .

The two ingredients of our explanation are that the boundary of serves as a knife, and that an outer measure calculates volume by using shrink wrap. (For example, Lebesgue outer measure approximates a set by a finite union of cubes that fully cover the set, and uses the volume of the cubes as an estimate of the volume of the set; precisely, the infimum over all such approximations is used.)

In the above image, the red curve represents the shrink wrap. The outer measure is given by the area enclosed by the red curve. (For rocks, which are three dimensional, we would use the volume encased by the shrink wrap.)

When we take and , we think of using part of the boundary of (the part that intersects ) to cut . If is a rectangle (or cube) then we produce a very clean straight cut of the set (or rock) .

Consider shrink wrapping and individually, as shown by the red curves in the above image. Two observations are critical.

- If the cut made by is clean then the shrink wrap fits the cut perfectly; no error is made for this part of the boundaries of and .
- For all other parts of the boundaries of and (i.e., the jagged parts), the errors made by the shrink wrap for and precisely equal the errors made by the shrink wrap for (because it is the same jagged boundary being fitted).

It follows that holds whenever has a nice boundary.

**Regardless of whether is measurable or not, Caratheodory’s criterion is blind to the boundary of and instead is only testing how “smooth” the boundary of is**. (Different sets will test different parts of the boundary of .)

## From the Beginning

First, it should be appreciated that Caratheodory’s criterion is not magical: it cannot always produce the exact sigma-algebra that you are thinking of, so it suffices to understand why, in certain situations, it is sensible. In particular, this means we can assume that the outer measure we are given, works by considering approximations of a given set by larger but nicer sets, such as finite collections of open cubes, whose measure we know how to compute. Taking the infimum of the measures of these approximating sets gives the outer measure of .

In physical terms, think of measuring the volume of rocks. An outer measure works by wrapping shrink wrap as tightly as possible around the rock, then asking for the volume encased by the shrink wrap. The key point is that if the boundary of the rock is piecewise smooth then the shrink wrap computes its exact volume, whereas if the boundary is sufficiently jagged then the shrink wrap cannot follow the contours perfectly and the shrink wrap (i.e., the outer measure) will exaggerate the true volume of the rock.

It is easy to spot rocks with bad boundaries if the volume of the whole space is finite: look at both the rock and its complement. Place shrink wrap over both of them. If the shrink wrap can follow the contours then it will measure the volume of the two interlocking parts perfectly and the sum of the volumes will equal the volume of the whole space. If not, we know the rock is too ill-shaped to be considered measurable.

If the total volume is infinite then we must zoom in on smaller portions of the boundary. For example, we might take an open ball and look at the boundary of using our shrink wrap trick: shrink wrap both and its complement in , namely, , and see if the volumes of and add up to the volume of . If not, we know is too ill-shaped to be considered measurable. This seemingly relies on our choice of being a sufficiently nice/benign shape that it does not interfere with our observation of the boundary of . For Lebesgue outer measure, the choice of an open ball for seems entirely appropriate, but perhaps the right choice will depend on the particular outer measure under consideration. Caratheodory’s criterion removes the need for such a choice by requiring to hold for **all** and not just nice . The images and explanation given at the start of this note explain why this works: the jaggedness of appears on both sides of the equation and cancels out, therefore Caratheodory’s criterion is really only testing the boundary of .

## Remarks

- Of course, intuition must be backed up by rigorous mathematics, and it turns out that Caratheodory’s criterion is useful because it is easy to work with and produces the desired sigma-algebra in many situations of interest.
- Our intuitive argument has focused on the boundary of sets. If we consider a Borel measure (one generated by the open sets of a topological space) then we know that open sets are measurable and hence it is indeed the behaviour at the boundary that matters. That said, intuition need not be perfect to be useful.

## An Alternative (and Very Simple) Derivation of the Boltzmann Distribution

This note gives a very simple derivation of the Boltzmann distribution that avoids any mention of temperature or entropy. Indeed, the Boltzmann distribution can be understood as the unique distribution with the property that when a large (or even a small!) number of Boltzmann distributions are added together, all the different ways of achieving the same “energy” have the same probability of occurrence, as now explained.

For the sake of a mental image, consider a small volume of gas. This small volume can take on three distinct energy levels, say, 0, 1 and 2. Assume the choice of energy level is random, with corresponding probabilities and . A large volume of the gas can be partitioned into many such small volumes, and the total energy is simply the sum of the energies of each of the small volumes.

Mathematically, let denote the number of small volumes and let denote the energy of the th small volume, where ranges from 1 to . The total energy of the system is .

For a fixed and a fixed total energy , there may be many outcomes with the prescribed energy . For example, with and , the possibilities are . The probabilities of these possibilities are respectively. Here, we assume the small volumes are independent of each other (non-interacting particle model). Can we choose so that all the above probabilities are the same?

Since the ordering does not change the probabilities, the problem reduces to the following. Let and denote the number of small volumes which are in energy levels 0, 1 or 2 respectively. Then and . For fixed and , we want to be constant for all valid .

A brute-force computation is informative: write and . Then . This will be independent of if and only if is constant, or in other words, . Remarkably, this is valid in general, even for small .

Up to a normalising constant, the solutions to are parametrised by and . Varying varies the average energy of the system. Letting , we can reparametrise the solutions by . (Check: ; ; and .) This is indeed the Boltzmann distribution when the energy levels are 0, 1 or 2.

More generally, we can show that the Boltzmann distribution is the unique distribution with the property that different configurations (or “microstates”) having the same and have the same probability of occurrence. In one direction, consider the (unnormalised) probabilities that define the Boltzmann distribution. Then where is the total energy of the system. (Here, the th region has energy , and there are precisely regions with this energy in the configuration under consideration.) Therefore, the probability of any particular configuration depends only on the total energy and is thus uniformly distributed conditioned on the total energy being known. In the other direction, although we omit the proof, we can derive the Boltzmann distribution in generality along the same lines as was done earlier for three specific energy levels: regardless of the total number of energy levels, it suffices to consider in turn the energy levels and with probabilities and . Assuming the are zero except for then leads to a constraint on as a function of .

## Some Comments on the Situation of a Random Variable being Measurable with respect to the Sigma-Algebra Generated by Another Random Variable

If is a -measurable random variable then there exists a Borel-measurable function such that . The standard proof of this fact leaves several questions unanswered. This note explains what goes wrong when attempting a “direct” proof. It also explains how the standard proof overcomes this difficulty.

First some background. It is a standard result that where is the set of all Borel subsets of the real line . Thus, if then there exists an such that . Indeed, this follows from the fact that since is -measurable, the inverse image of any Borel set must lie in .

A “direct” proof would endeavour to construct pointwise. The basic intuition (and not difficult to prove) is that must be constant on sets of the form for . This suggests defining by . Here, the supremum is used to go from the set to what we believe to be its only element, or to if is empty. Unfortunately, this intuitive approach fails because the range of need not be Borel. This causes problems because is the range of and must be Borel if is to be Borel-measurable.

Technically, we need a way of **extending** the definition of from the range of to a Borel set containing the range of , and moreover, the extension must result in a measurable function.

Constructing an appropriate extension requires knowing more about than simply for each individual . That is, we need a canonical representation of . Before we get to this though, let us look at two special cases.

Consider first the case when for some measurable set , where is the indicator function. If is -measurable then must lie in and hence there exists a Borel such that . Let . (It is Borel-measurable because is Borel.) To show , let be arbitrary. (Recall, random variables are actually functions, conventionally indexed by .) If then and , while because . Otherwise, if then analogous reasoning shows both and equal zero.

How did the above construction avoid the problem of the range of not necessarily being Borel? The subtlety is that the choice of need not be unique, and in particular, may contain values which lie outside the range of . Whereas a choice such as assigns a single value (in this case, ) to values of not lying in the range of , the choice can assign either or to values of not in the range of , and by doing so, it can make Borel-measurable.

Consider next the case when . As above, we can find Borel sets such that for , and moreover, gives a suitable . Here, it can be readily shown that if is in the range of then can lie in at most one . Thus, regardless of how the are chosen, will take on the correct value whenever lies in the range of . Different choices of the can result in different extensions of , but each such choice is Borel-measurable, as required.

The above depends crucially on having only *finitely* many indicator functions. A frequently used principle is that an arbitrary measurable function can be approximated by a sequence of bounded functions with each function being a sum of a finite number of indicator functions (i.e., a simple function). Therefore, the general case can be handled by using a sequence of random variables converging pointwise to . Each results in an obtained by replacing the by , as was done in the paragraph above. For in the range of , it turns out as one would expect: the converge, and gives the correct value for at . For not in the range of , there is no reason to expect the to converge: the choice of the at the th and th steps are not coordinated in any way when it comes to which values to include from the complement of the image of . Intuitively though, we could hope that each includes a “minimal” extension that is required to make measurable and that convergence takes place on this “minimal” extension. Thus, by choosing to be zero whenever does not converge, and choosing to be the limit of otherwise, we may hope that we have constructed a suitable despite how the at each step were chosen. Whether or not this intuition is correct, it can be shown mathematically that so defined is indeed the desired function. (See for example the short proof of Theorem 20.1 in the second edition of Billingsley’s book Probability and Measure.)

Finally, it is remarked that sometimes the monotone class theorem is used in the proof. Essentially, the idea is exactly the same: approximate by a suitable sequence . The subtlety is that the monotone class theorem only requires us to work with indicator functions where is particularly nice (i.e., lies in a -system generating the -algebra of interest). The price of this nicety is that must be bounded. For the above problem, as Williams points out in his book Probability with Martingales, we can simply replace by to obtain a bounded random variable. On the other hand, there is nothing to be gained by working with particularly nice , hence Williams’ admission that there is no real need to use the monotone class theorem (see A3.2 of his book).

## Poles, ROCs and Z-Transforms

Why should all the poles be inside the unit circle for a discrete-time digital system to be stable? And why must we care about regions of convergence (ROC)? With only a small investment in time, it is possible to gain a very clear understanding of exactly what is going on — it is not complicated if learnt step at a time, and there are not many steps.

## Step 1: Formal Laurent Series

Despite the fancy name, Step 1 is straightforward. Digital systems operate on sequences of numbers: a sequence of numbers goes into a system and a sequence of numbers comes out. For example, if denotes an input sequence then an example of a discrete-time system is .

How can a specific input sequence be written down, and how can the output sequence be computed?

The direct approach is to specify each individual , for example, for , , , and for . Direct substitution then determines the output: , and so forth.

The system has a number of nice properties, two of which are *linearity* and *time invariance*. This is often expressed in textbooks by saying the system is LTI, where the L in LTI stands for Linear and the TI stands for Time Invariant. When first learning about discrete-time digital systems, usually attention is restricted to linear time-invariant systems, and indeed, it is for such systems that the Z-transform proves most useful.

Any LTI system has the property that the output is the convolution of the input with the impulse response. For example, the impulse response of is found by injecting the input and for . This impulse as input produces the output , and for . It is common to denote the impulse response using the letter , that is, , and for .

By the definition of convolution, the convolution of a sequence with a sequence is . If , and for then and this is equal to ; we have verified in this particular case that the output of the original system is indeed given by convolving the input with the impulse response.

Let’s be honest: writing , and for is tedious! An alternative is to use a formal Laurent series to represent a sequence. Here, “formal” means that **we do not try to evaluate this series!** A Laurent series just means instead of limiting ourselves to polynomials in a dummy variable , we allow negative powers of , and we allow an infinite number of non-zero terms. (The variable has nothing to do with time; it will be replaced in Step 3 by where it will be referred to as the Z-transform. To emphasise, is just a dummy variable, a placeholder.)

Precisely, the sequence , and for can be encoded as ; isn’t that much more convenient to write? In general, an arbitrary sequence can be encoded as the formal series . The sole purpose of the term is as a placeholder for placing the coefficient . In other words, if we are given the formal series then we immediately know that that is our secret code for the sequence that consists of all zeros except for the -5th term which is 2, the 0th term which is 3 and the 7th term which is 1.

Being able to associate letters with encoded sequences is convenient, hence people will write to mean , , and for . Do not try to evaluate for some value of though – that would make no sense at this stage. (Mathematically, we are dealing with a commutative ring that involves an indeterminant . If you are super-curious, see Formal Laurent series.)

Now, there is an added benefit! If the input to our system is and the impulse response is then there is a “simple” way to determine the output: just multiply these two series together! The multiplication rule for formal Laurent series is equivalent to the convolution rule for two sequences. You can check that (corresponding to etc) really is the output of our system if the input were for , , , and for .

- A formal Laurent series provides a convenient encoding of a discrete-time sequence.
- Convolution of sequences corresponds to multiplication of formal Laurent series.
- Do not think of
*formal*Laurent series as functions of a variable. (They are elements of a commutative ring.) Just treat the variable as a placeholder.- In particular, there is no need (and it makes no sense) to talk about ROC (regions of convergence) if we restrict ourselves to formal Laurent series.

## Step 2: Analytic Functions

This is where the fun begins. We were told not to treat a formal Laurent series as a function, but it is very tempting to do so… so let’s do just that! 🙂 The price we pay though is that we do need to start worrying about ROC (regions of convergence) for otherwise we could end up with incorrect answers.

To motivate further our desire to break the rules, consider the LTI system . Such a system has “memory” or an “internal state” because the current output depends on a previous output and hence the system must somehow remember previous values of the output. We can assume that in the distant past the system has been “reset to zero” and hence the output will be zero up until the first time the input is non-zero. The impulse response is determined by setting to 1 and observing the output: , , and in general for . Encoding this using a formal Laurent series gives the alternative representation .

There is a more “efficient” representation of based on the Taylor series expansion . Indeed, if we were to break the rules and treat as a function, we might be tempted to write instead of . It turns out that, *with some care*, it is mathematically legitimate to do this. (Furthermore, Step 3 will explain why it is beneficial to go to this extra trouble.)

We know we can encode a sequence using a formal Laurent series, and we can reverse this operation to recover the sequence from the formal Laurent series. In Step 2 then, we just have to consider when we can encode a formal Laurent series as some type (what type?) of function, meaning in particular that it is possible to determine uniquely the formal Laurent series given the function.

Power series (and Laurent series) are studied in complex analysis: recall that every power series has a (possibly zero) radius of convergence, and within that radius of convergence, a power series can be evaluated. Furthermore, within the radius of convergence, a power series (with real or complex coefficients) defines a complex analytic function. The basic idea is that a formal Laurent series might (depending on how quickly the coefficients die out to zero) represent an analytic function on a part of the complex plane.

If the formal Laurent series only contains non-negative powers of then it is a power series and from complex analysis we know that there exists an , the radius of convergence (which is possibly zero or possibly infinite), such that the sum converges if and the sum diverges if . In particular, is an analytic function on the open disk .

If the formal Laurent series only contains non-positive powers, that is, , then we can consider it to be a power series in and apply the above result. Since , there exists a (possibly zero or possibly infinite) such that is an analytic function on . [From above, the condition would be which is equivalent to hence defining verifies the claim.]

In the general case, a formal Laurent series decomposes as . Both sums must converge if it is to define an analytic function, hence in the general case, a formal Laurent series defines an analytic function on a domain of the form .

The encoding of a sequence as an analytic function is therefore straightforward in principle: given a formal Laurent series , determine the constants and , and provided the region is non-empty, we can use the analytic function to encode the sequence . We must specify the ROC together with whenever we wish to define a sequence in this way; without knowing the ROC, we do not know the domain of definition of , that is, we would not know for what values of does describe the sequence we want. **It is possible for a function to describe different sequences depending on the ROC!** An example of this is now given.

If then we have seen that . But wait! This is not entirely true. If then certainly .Yet if then . The function for does not describe the series . It looks like a perfectly good function though, so what series does it describe?

The region is unbounded. (In fact, it is an open disc centred at the point at infinity.) This motivates us to replace by so that the domain becomes and we can attempt looking for a power series in . Precisely, . Therefore, the single function actually encodes two different series depending on whether we treat it as a function on or a function on .

Readers remembering their complex analysis will not find this bizarre because a holomorphic (i.e., complex differentiable) function generally requires more than one power series to represent it. A power series about a point is only valid up until a pole is encountered, after which another point must be chosen and a power series around that point used to continue the description of the function. When we change points, the coefficients of the power series will generally change. In the above example, the first series is a power series around the origin while the second series is a power series around the point at infinity and therefore naturally has different coefficients. (Thankfully there are only these two possibilities to worry about: a power series about a different point would look like and is not of the form we described in Step 1. Only when or does the power series match up with the formal Laurent series in Step 1.)

While it might seem that introducing analytic functions is an unnecessary complication, it actually makes certain calculations simpler! Such a phenomenon happened in Step 1: we discovered convolution of sequences became multiplication of Laurent series (and usually multiplication is more convenient than convolution). In Step 3 we will see how the impulse response of can be written down immediately.

## Step 3: The Z-transform

Define and . Clearly, the constraint implies a relationship between and , but how can we determine this relationship?

Note that is actually an infinite number of constraints, one for each . The first step is to think of these as a single constraint on the whole sequences and . We can do this either intuitively or rigorously, arriving at the same answer either way.

Intuitively, think of a table (my lack of WordPress skills prevents me from illustrating this nicely). The top row looks like . The next row looks like . The last row looks like . Stack these three rows on top of each other so they line up properly: the purpose of the table is to line everything up correctly! Then another way of expressing is by saying that the first row of the table is equal to the second row of the table plus the third row of the table, where rows are to be added elementwise.

Rigorously, what has just happened is that we are treating a sequence as a vector in an infinite-dimensional vector space: just like is a vector in , we can think of as a vector in . Each of the three rows of the table described above is simply a vector.

To be able to write the table compactly in vector form, we need some way of going from the vector to the shifted-one-place-to-the-right version of it, namely . In linear algebra, we know that a matrix can be used to map one vector to another vector provided the operation is linear, and in fact, shifting a vector is indeed a linear operation. In abstract terms, there exists a linear operator that shifts a sequence one place to the right: .

Letting and denote the vectors and respectively, we can rigorously write our system as . This is precisely the same as what we did when we said the first row of the table is equal to the second row of the table plus the third row of the table.

Our natural instinct is to collect like terms: if denotes the identity operator (think of a matrix with ones on the diagonal), so that , then is equivalent to , that is, . This equation tells us the output as a function of the input — but how useful is it? (Does the inverse exist, and even if it does, how can we evaluate it?)

While in some cases the expression might actually be useful, often it is easier to use series rather than vectors to represent sequences: we will see that the linear operator is equivalent to multiplication by , which is very convenient to work with!

Precisely, since and represent exactly the same sequence, it should be clear that the equation is equivalent to the equation . Indeed, returning to the table, corresponds to the first row, corresponds to the last row, and corresponds to the second row.

Now, from Step 2, we know that we can think of and as analytic functions (provided we are careful about the ROC). Therefore, we feel entitled to continue manipulating to obtain . Since by definition the impulse response satisfies , we seem to have immediately found the impulse response of the original system; at the very least, it agrees with the longer calculation performed at the start of Step 2.

Remark: Actually, the only way to justify rigorously that the above manipulation is valid is to check the answer we have found really is the correct answer. Indeed, to be allowed to perform the manipulations we must assume the existence of a domain on which both and are analytic. If we assume is “nice” then, under that assumption, prove that is “nice”, that does not mean is nice. It is like saying “if it is raining then we can show it really is raining, therefore it must be raining right now!”. A rigorous justification would look something like the following. First we must make some assumption about the input sequence for otherwise we have no idea what ROC to use. If we are interested in inputs that are uniformly bounded and which are zero up until time 0 then we can safely assume that is analytic on . Since is non-zero whenever , we know is analytic on . Therefore will be analytic on . This means that can be expanded as a power series in a neighbourhood of the origin, and the coefficients of that power series are what we believe the output of the system will be. To check this really is the output of the system, it suffices to show for . This is straightforward: as required, where every manipulation can be seen to be valid for (there are no divisions by zero or other bad things occurring).

The remark above shows it is (straightforward but) tedious to verify rigorously that we are allowed to perform the manipulations we want. It is much simpler to go the other way and define a system directly in terms of and its ROC. Then, provided the ROC of overlaps with the ROC of , the output is given by on the overlap, which can be correctly expanded as a Laurent series with regard to the ROC, and the output sequence read off.

All that remains is to introduce the Z-transform and explain why engineers treat as a “time shift operator”.

The Z-transform is simply doing the same as what we have been doing, but using instead of . Why rather than ? Just convention (and perhaps a bit of convenience too, e.g., it leads to stable systems being those with all poles *inside* the unit circle, rather than outside). In fact, sometimes is used instead of , hence you should always check what conventions an author or lecturer has decided to adopt.

The rule that engineers are taught is that when you “take the Z-transform” of then you replace by , by and by . The reason this rule works was justified at great length above: recall that as an intermediate mental step we can think of the input and output as vectors, and this led to thinking of them instead as series, because multiplication by will then shift the sequence one place to the right. Thus, is asserting that the sequence is equal to the sequence plus a half times the sequence shifted to the right by one place, which is equivalent to the original description .

## Step 4: Poles and Zeros

A straightforward but nonetheless rich class of LTI systems can be written in the form . Importantly, this class is “closed” in that if you connect two such systems together (the output of one connects to the input of the other) then the resulting system can again be written in the same way (but generally with larger values of ). Another important feature of this class of systems is that they can be readily implemented in hardware.

Applying the Z-transform to such a system shows that the impulse response in the Z-domain is a rational function. Note that the product of two rational functions is again a rational function, demonstrating that this class of systems is closed under composition, as stated above. Most of the time, it suffices to work with rational impulse responses.

If is rational (and in reduced form — no common factors) then the zeros of are the solutions of the polynomial equation while the poles are the solutions of the polynomial equation . [More generally, if is analytic, then the zeros are the solutions of and the poles are the solutions of .] Note that a pole of is a zero of its inverse: if we invert a system, poles become zeros and zeros become poles.

Poles are important because poles are what determine the regions of convergence and hence they determine when our manipulations in Step 3 are valid. This manifests itself in poles having a physical meaning: as we will see, the closer a pole gets to the unit circle, the less stable a system becomes.

Real-world systems are **causal: **the output cannot depend on future input. The impulse response of a causal system is zero for . Therefore, the formal Laurent series (Step 1) representation of has no negative powers of . Its region of convergence will therefore be of the form for some . (If then the system would blow up!) Since , the ROC of a causal transfer function will therefore be of the form for some . If is rational then it has only a finite number of poles, and it suffices to choose to be the largest of the magnitudes of the poles.

Let’s look at an unstable system: . This system is clearly unstable because its impulse response is readily seen to be . We put in a bounded signal ( and for ) yet obtain an unbounded output ( for ). Taking the Z-transform gives , so that . For , this gives us the correct series representation .

If we put a signal that starts at time zero (i.e., for ) into a causal system we will get an output even if the system is unstable. This is because the input will have a ROC of the form and has a ROC of the form , so will have a ROC .

If we put a signal that started at time into our system, then there might be no solution! (Intuitively, it means the system will have to have blown up before reaching time 0.) For example, with ROC represents the signal for and for . We cannot form the product because there is no value of for which both and are valid: one’s ROC is while the other’s is .

There are many different definitions of a sequence being bounded. Three examples are: 1) there exists an such that, for all , ; 2) ; and 3) . Out of these three, the easiest to detect whether is bounded given only is the second one: if the ROC of includes then, by definition (see a complex analysis textbook), is absolutely convergent for , meaning , hence because implies for all . This type of boundedness is called “bounded in “. For the reverse direction, recall that the radius of convergence is such that a power series in will converge for all and diverge for *all* . Therefore, if the boundary of the largest possible ROC of does not contain the unit circle then must be unbounded in . (The boundary case is inconclusive: the power series has a ROC yet is bounded. On the other hand, has a ROC and is unbounded.)

A sequence is bounded in if the largest possible ROC of includes the unit circle . A sequence is unbounded in if the closure of the largest possible ROC does not include the unit circle.

If the ROC of the transfer function includes the unit circle, then an -bounded input will produce an -bounded output. Indeed, the ROC of both and will include the unit circle, therefore, the ROC of will include the unit circle and will be -bounded.

If all the poles of a causal are within the unit circle then the ROC will include the unit circle, hence a bounded input will produce a bounded output. **Engineers therefore call a system stable if all the poles of are inside the unit circle.**

Note that it follows from earlier remarks that if has a pole outside the unit circle then the impulse response will be unbounded. If has a pole on the unit circle then the impulse response will resonant at the corresponding frequency indefinitely. For example, if where then for . This does not die away because for all . By writing we get and therefore we think of this as a resonance at frequency . Furthermore, if where , then and we see that there is a damped resonance at frequency . As the pole gets closer to the unit circle (that is, ) the impulse response takes longer to die out. Engineers care about pole placement!

## Epilogue

- Although often engineers can get away with just following recipes, it is safer in the long run and easier to remember the recipes if you have spent a bit more time to learn the underlying rationale for when and why the rules work.
- Linear algebra and complex analysis are considered core subjects of an undergraduate mathematics degree because they have such broad applicability: here we saw them play integral roles in discrete-time signal processing.
- This is because the “mathematical behaviour” of Laurent series matches the “physical behaviour” of discrete-time linear time-invariant systems.

- There is a close relationship between the Z-transform and the Fourier transform: just make the substitution . This is only allowed if the ROC contains the unit circle. The concept of a pole does not explicitly appear in the Fourier domain because, rather than permit to be anywhere in the complex plane, the substitution means we are only looking at the behaviour of on the unit circle.
- When it comes to system design, understanding where the poles and zeros are can be more productive than trying to understand the whole frequency spectrum.

## A Snippet of Galois Theory

The following hints at why the quintic equation cannot be solved using radicals. It follows the approach in the first part of Ian Stewart’s book “Galois Theory”. If time permits, a future post will summarise the approach in V. B. Alekseev’s book “Abel’s Theorem in Problems and Solutions”. Another candidate is Klein’s book “Lectures on the Icosahedron and the Solution of Equations of the Fifth Degree”.

To set the stage, consider the generic quadratic polynomial equation . Solving it is the same as factorising it: given the coefficients find the roots such that .

The first observation is the prominent role played by symmetric polynomials. Note . Here, and are called elementary symmetric polynomials. They are symmetric because swapping and does not change the product . This “annoying” ambiguity turns out to be a friend; the presence of symmetry forces certain relationships to be true, as will be seen presently.

Solving a quadratic equation is equivalent to the following. Given the values of the symmetric polynomials and (up to sign, these are equivalent to the coefficients and in ), find the roots .

Given , we can readily evaluate any symmetric function of the roots that we wish; this is a property of elementary symmetric polynomials that is not too difficult to prove. For example, since is symmetric, it must be capable of being written as a polynomial in . Trial and error leads to finding that , verifying the claim in this instance.

The first insight is that this is not an all or nothing affair. Although is not symmetric, it still behaves nicely when are swapped: . [If we were trying to solve cubic or quartic equations, we would look for polynomial expressions of the roots that took on only two or three distinct values as the roots were permuted.] Moreover, since , this implies is symmetric, a fact that is also self-evident. Therefore, although we cannot express as a polynomial function of , we can do the next best thing: write as the square root of a polynomial in .

Specifically, , and from earlier, we saw that , therefore .

At this point, the reader should pause to recognise that we have “rediscovered” the discriminant of a quadratic . (In our case, , and , hence .)

It is now straightforward to derive the well-known formula for solving a general quadratic equation since we have reduced it to solving linear equations: we know that and .

Why is it impossible to derive a similar type of formula for solving a quintic equation?

It comes down to a property of the symmetry group of five elements: it behaves differently from the symmetry groups on two, three or four elements, which is why formulae exist for solving polynomials of degree less than 5 but not for those of degree 5. (Generic polynomials of higher degrees also have no closed-form solutions *expressible in terms of radicals*. Note that this does not mean a formula cannot be given whatsoever; for example, degree 5 polynomials can be solved using elliptic functions.)

The remainder of this note endeavours to shed some light on why there is this remarkable connection between symmetry groups and solutions of polynomial equations.

Solving the generic quintic equation amounts to inverting the map where are the elementary symmetric polynomials. While it is possible to show that no formula exists for this inverse that uses only ordinary arithmetic operations (addition, subtraction, multiplication and division) and radicals (taking square roots, cube roots etc), we will prove a weaker but nonetheless insightful result. In his book, Stewart refers to this as showing no solution “by Ruffini radicals” exists. (Ruffini proved this result, without realising the stronger result does not follow from it.)

The type of formulae we will permit are of the same form as that used to solve the quadratic equation. We start off with known values for ; indeed, these are given by which are the coefficients of the quintic equation under consideration. At each step, we wish to determine more information about the roots by finding a rational function of the whose nth power is a rational function of the already known quantities, for some integer . At the first step, this means finding a rational function of the whose nth power is equal to a rational function of . Taking an nth root then gives us a new quantity that can be used in subsequent steps, and so forth. (Ruffini’s oversight was not realising that *a priori* it might be useful to compute nth roots of other quantities; the above description only permits an nth root to be computed if the answer is expressible as a rational function of the roots. For example, we are not allowed to take the nth root of because the nth root of cannot be written as a rational function of the roots . Abel was able to prove that computing nth roots of other quantities did not help, thereby deducing the stronger result from Ruffini’s result.)

Consider step 1. A rational function is sought such that, for some integer , the th power of is a rational function of the elementary symmetric polynomials , that is, where are rational. Without loss of generality, we may assume is a prime number. (If we wanted a sixth root, we could first take a cube root then, in step 2, take a square root.)

To emphasise the dependence on the roots, we have . *Can be chosen relatively freely, or does this constraint impose severe restrictions on the possible choices of the rational functions ?*

Here comes the crux of the matter. Despite the seemingly unwieldy equation , the symmetry of the right-hand side (irrespective of what actually is) forces and to be essentially unique. Permuting the roots does not change the right-hand side, therefore permuting the roots cannot change the left-hand side either. It might change , but it will not change . [Actually, if it did not change then would be directly expressible as a rational function of the and hence we can ignore this case, which would correspond to .]

Recall momentarily the quadratic case, where . Swapping caused the sign of to change, but that was it. Here we have, for example, that , therefore, , or in other words, there exists an nth root of unity such that . [To be clear, is a complex number satisfying .]

Different permutations of the roots will lead to possibly different values of . Sure, some might equal 1, but there will be at least one permutation such that the corresponding does not equal one. (If this were not true then would be symmetric and hence directly expressible as a rational function of the , hence we could ignore this step as no radical would need computing.)

*The mapping from the permutation of the roots to the value of is a (nontrivial) group homomorphism.* It cannot be arbitrary, and in particular, we will see that it forces to equal 2.

Denote the set of all permutations of by . This set naturally has a group structure: multiplication corresponds to applying one permutation after another, so to speak. Precisely, it is a symmetric group.

Denote by the set of all th roots of unity; must lie in . This set also has a standard group structure given by ordinary multiplication: if you multiply two th roots of unity you get another th root of unity. In fact, it is what is known as a cyclic group (and is isomorphic to , the abelian group of integers modulo ).

As mentioned above, the fact that is symmetric induces a function, call it , from to . Precisely, if is a permutation of the then ; recall from earlier that this ratio will be an element of . Crucially, has structure: because . That is, is compatible with the group structure and hence is a group homomorphism. Furthermore, from earlier observations, we know is nontrivial: there exists at least one permutation such that .

*There is only a single possible nontrivial group homomorphism from to a cyclic group of prime order!*

While is not a very small group (it has 120 elements), its group structure is what prevents more such group homomorphisms from existing. [Since is a nontrivial homomorphism then the kernel of must be a proper normal subgroup of . This proper normal subgroup must also contain every commutator because is abelian. It can be shown the only such subgroup is what is known as the alternating subgroup , implying .]

At this juncture, the group structure of has forced to be (up to a constant) the square-root of the discriminant: . [I have omitted the proof of this as it is not the main focus; I mentioned it only because it helps keep the outline as concrete as possible, and indeed, it follows closely the situation encountered at the start when the quadratic polynomial was being considered.] Going into Step 2, we know not only the values of the elementary symmetric polynomials but also the value of . It turns out though that we get blocked at Step 2 from going any further. The reasoning is similar to above, but with replaced by a smaller group.

Precisely, at Step 2, we want to find a rational function and a prime number such that is equal to a rational function of not only the but also the new quantity we found in Step 1, namely . This time it is no longer true that must be symmetric in because the new quantity is not symmetric. However, if we only look at what are known as even permutations then will remain invariant. The alternating subgroup of consists precisely of the even permutations. In particular, we therefore know that if is in then . This is the same as in Step 1 except has been replaced by . [We did not need to know that Step 1 produced . A simpler group-theoretic argument mentioned parenthetically above implies that the kernel of in Step 1 is and hence that whatever new function of the roots is determined in Step 1, it will be invariant with respect to permutations belonging to .]

Exactly as in Step 1, the invariance of forces the existence of a nontrivial group homomorphism, this time from to a cyclic group of order . And once again, the group structure of limits the possibilities.

*There are no nontrivial group homomorphisms from to a cyclic group of prime order.*

The above (which is a relatively straightforward result in group theory) immediately implies that there is no formula of the kind specified earlier for solving a quintic polynomial.

Galois theory goes well beyond the basic argument sketched here. It can be used to conclude that a generic quintic (or any higher-degree polynomial for that matter) has no solution in terms of radicals (rather than use Abel’s result to strengthen Ruffini’s result, as alluded to earlier, a cleaner proof is possible). It can also be used to conclude that there exist particular quintic polynomials whose roots cannot be expressed using radicals; this does not follow from the generic case because the generic case sought a single formula for all quintic polynomials, whereas *a priori* there might exist a different formula for each quintic equation. (Certainly, some quintic equations can be solved using radicals.)