In this control engineering tutorial, we explain how to calculate the magnitude and phase of transfer functions. Also, the purpose of this tutorial is to practice complex number transformations and algebra that are important for signal processing and control engineering. The YouTube tutorial accompanying this tutorial is given below.
We consider the following transfer function:
(1)
Our goal is to calculate the magnitude and phase of this transfer function. In this tutorial, we assumed a particular form of the transfer function. However, everything explained in this tutorial can easily be generalized to other forms of transfer functions.
The first step when computing the phase and magnitude is to compute the sinusoidal transfer function. This transfer function is obtained by substituting by in (1), where is the imaginary unit and is the angular frequency. As the result of this substitution, we obtain
(2)
After some transformation that we will explain later in this tutorial, this complex number can be represented as follows
(3)
where and are the real and imaginary parts of the sinusoidal transfer functions. The polar form of this complex number is given by
(4)
where
There are two approaches for computing the magnitude and phase. The first approach is based on the definitions given by (5) and (6). This approach might be a little bit complex. The second approach is easier and it is based on first transforming the complex numbers in the numerator and denominator of (2) into the polar form.
Let us first present the first approach. We need to compute the real and imaginary parts of (2). We can do that as follows
(7)
From this expression and from the definition of the magnitude given by the equation (5), we obtain
(8)
On the other hand, by using (6) and (7), we can compute the phase
(9)
Next, we explain the second approach for computing the magnitude and phase. The idea is to transform the complex numbers in the numerator and denominator of (2) into polar forms. Consequently, we have
(10)
From this expression, we obtain
(11)
We can observe that the magnitude is equal to the magnitude computed by using the first approach. On the other hand, it seems that the phase is different. However, let us recall this trigonometric formula
(12)
By using this formula, from (11), we have
(13)
This is exactly the phase computed by using the first approach.