<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mathematics on 四方喫茶舘</title><link>http://blog.cedard.top/tags/mathematics/</link><description>Recent content in Mathematics on 四方喫茶舘</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 14 Jun 2026 14:51:26 +0800</lastBuildDate><atom:link href="http://blog.cedard.top/tags/mathematics/index.xml" rel="self" type="application/rss+xml"/><item><title>Feedback Linearization, Part 3</title><link>http://blog.cedard.top/p/feedback-linearization-3/</link><pubDate>Sun, 14 Jun 2026 14:51:26 +0800</pubDate><guid>http://blog.cedard.top/p/feedback-linearization-3/</guid><description>&lt;h2 id="feedback-linearization-theorem"&gt;Feedback Linearization Theorem
&lt;/h2&gt;&lt;p&gt;We talked about feedback linearization theorem last time. As a recap:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Feedback Linearization Theorem&lt;/strong&gt;: Nonlinear system $\Sigma: \dot{x} = f(x) + g(x)u$ is feedback linearizable if:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;$[g(x), ad_fg(x), \ldots, ad_f^{n-1}g(x)]$ has rank $n$ $\forall x$.&lt;/li&gt;
&lt;li&gt;$\Delta = \text{span}{g(x), ad_fg(x), \ldots, ad_f^{n-2}g(x)}$ is involutive.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The first condition guarantees controllability, while the second condition guarantees that we can always find an output $y = h(x)$ that has relative degree equal to the system degree, according to Frobenius theorem. Actually, this is also just observability.&lt;/p&gt;
&lt;p&gt;We now look at some examples.&lt;/p&gt;
&lt;p&gt;Consider the system
&lt;/p&gt;
$$ \dot{x} = \begin{pmatrix} a \sin x_2 \\ -x_1^2 \end{pmatrix} + \begin{pmatrix}0 \\ 1 \end{pmatrix}u $$&lt;p&gt;
We would like to ask 2 questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Is the system feedback linearizable?&lt;/li&gt;
&lt;li&gt;If so, how shall we find the output $y = h(x)$?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To answer the first question, we first validate if the first condition is met from feedback linearization theorem.
&lt;/p&gt;
$$
g(x) = \begin{pmatrix}0 \\ 1 \end{pmatrix}
$$&lt;p&gt;
&lt;/p&gt;
$$ad_fg = [f, g] = \begin{pmatrix} -a \cos x_2 \\ 0 \end{pmatrix}$$&lt;p&gt;
Therefore,
&lt;/p&gt;
$$
[g(x), ad_fg(x)] = \begin{pmatrix}0 &amp; -a \cos x_2 \\ 1 &amp; 0 \end{pmatrix}
$$&lt;p&gt;
This new matrix is always rank 2, for all $x$, except when $\cos x_2 = 0$.
The distribution $\Delta = \text{span}{g(x) }$ has only one element, so it&amp;rsquo;s trivially involutive. Therefore we conclude the system is feedback linearizable.&lt;/p&gt;
&lt;p&gt;Now, how shall we find the output $y$? We would like to find an output $y = h(x)$ such that it has relative degree of $2$, i.e.:&lt;/p&gt;
$$\begin{cases}
\begin{align}
\frac{\partial h}{\partial x} g(x) &amp;= 0 \\
\frac{\partial L_f h}{\partial x} g(x) &amp;\neq 0
\end{align}
\end{cases}
$$&lt;p&gt;The first PDE will give us
&lt;/p&gt;
$$ \frac{\partial h}{\partial x_2} = 0 $$&lt;p&gt;
meaning $h(x)$ shall be independent of $x_2$. We sub this fact into the second PDE:
&lt;/p&gt;
$$ \frac{\partial L_f h}{\partial x} g(x) = \frac{\partial L_fh}{\partial x_2} = \frac{\partial h}{\partial x_1}a \cos x_2 \neq 0$$&lt;p&gt;
Therefore, we can pick a few candidate $h(x)$, for example: $x_1$, $x_1^5$, and so forth. If we pick $h(x) = x_1$, then we can linearize the system as
&lt;/p&gt;
$$ \ddot{y} = v$$&lt;p&gt;
where the state and control transform is given by
&lt;/p&gt;
$$ \begin{cases}
\begin{align}
y &amp;= x_1 \\
\dot{y} &amp;= a\sin x_2 \\
u &amp;= (x_1^2 + v) \frac{1}{a\cos x_2}
\end{align}
\end{cases}
$$&lt;p&gt;
The audience is encouraged to verify the linearization by substituting the transforms back into the original system.&lt;/p&gt;
&lt;p&gt;As a result, we are able to design a linear control between $y$ and $v$ by LQR or pole placement, and we utilize the state and control transform to convert the system back into the original nonlinear system.&lt;/p&gt;
&lt;h2 id="mimo-feedback-linearization"&gt;MIMO Feedback Linearization
&lt;/h2&gt;&lt;p&gt;We now move forward to a more complex and generalized system: the multi-input multi-output nonlinear system. For the sake of simplicity, we limit the MIMO to be the square case (meaning we have the same number of inputs and outputs).&lt;/p&gt;
&lt;p&gt;If we have a square MIMO system that looks like:
&lt;/p&gt;
$$
\begin{align}
\displaystyle \Sigma: \dot{x} &amp;= f(x) + \Sigma_{i=1}^n g_i(x) u_i \quad x \in \mathbb{R}^n \\
&amp;= g(x)u \\
y &amp;= \begin{pmatrix} h_1(x) \\ \vdots \\ h_n(x) \end{pmatrix}
\end{align}
$$&lt;p&gt;
where
&lt;/p&gt;
$$
\begin{align}
g(x) &amp;= \begin{pmatrix} g_1(x) &amp; \cdots &amp; g_n(x) \end{pmatrix} \\
u &amp;= \begin{pmatrix} u_1 \\ \vdots \\ u_n\end{pmatrix}
\end{align}
$$&lt;p&gt;
The question is now, how shall we define the relative degree of the MIMO system?&lt;/p&gt;
&lt;h3 id="vector-relative-degree"&gt;Vector Relative Degree
&lt;/h3&gt;&lt;p&gt;We introduce the concept of vector relative degree in this case.
&lt;strong&gt;(Definition) Vector Relative Degree&lt;/strong&gt;: Nonlinear system $\Sigma$ has relative degree $(r_1, r_2, \ldots, r_n)$ at $x_0$ if:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For all $1 \le j \le n, 1 \le i \le n, 0 \le k \le r_i - 2$,

$$ L_{g_j}L_f^kh_i = 0, \quad \forall x \text{ in a neighborhood of } x_0 $$&lt;/li&gt;
&lt;li&gt;The $n \times n$ matrix, also known as the &lt;strong&gt;Decoupling Matrix&lt;/strong&gt;,

$$
A(x) = \begin{pmatrix}
L_{g_1}L_f^{r_1-1}h_1 &amp; \cdots &amp; L_{g_n}L_f^{r_n-1}h_n \\
\vdots &amp; \cdots &amp; \vdots \\
L_{g_1}L_f^{r_n-1}h_1 &amp; \cdots &amp; L_{g_n}L_f^{r_n-1}h_n
\end{pmatrix}
$$
Then, for the i-th output, we can always express it in terms of

$$
\begin{align}
y_i^{(r_i)} &amp;= L_f^{r_i} h_i(x)+ L_{g_1}L_f^{r_i-1}h_i(x)u_1 + \cdots + L_{g_n}L_f^{r_i-1}h_i(x)u_n \\
&amp;= L_f^{r_i} h_i(x) + \displaystyle \Sigma_j L_{g_j}L_f^{r_i-1}h_i(x)u_j
\end{align}
$$&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If, at least one $L_{g_j}L_f^{r_i-1}h_i(x)$ is non-zero, then the system is feedback linearizable.
Therefore, we can also do IO linearization:&lt;/p&gt;
$$
\begin{align}
\begin{pmatrix}
y_1^{(r_1)} \\
\vdots \\
y_n^{(r_n)}
\end{pmatrix}&amp;=\begin{pmatrix}
L_f^{r_1}h_1(x) \\ \vdots \\ L_f^{r_n}h_n
\end{pmatrix} +
\begin{pmatrix}
L_f^{r_1} h_1(x) &amp; \cdots &amp; L_{g_n}L_f^{r_1-1}h_1(x) \\
\vdots &amp; \cdots &amp; \vdots \\
L_f^{r_n} h_n(x) &amp; \cdots &amp; L_{g_n}L_f^{r_n-1}h_n(x)
\end{pmatrix}
\begin{pmatrix}
u_1 \\
\vdots \\
u_n
\end{pmatrix} \\
&amp;= L_fh(x) + A(x) u
\end{align}
$$&lt;p&gt;where, notice that we implicitly extended the definition of Lie derivative to its vector form.
And the control can be transformed as:
&lt;/p&gt;
$$
u(x) = A^{-1}(x)(L_fh(x)+ v) \rightarrow \begin{pmatrix} y_1^{(r_1)} \\ \vdots \\ y_n^{(r_n)} \end{pmatrix} = v
$$&lt;p&gt;
.&lt;/p&gt;
&lt;h3 id="mimo-feedback-linearization-theorem"&gt;MIMO Feedback Linearization Theorem
&lt;/h3&gt;&lt;p&gt;Now we state the feedback linearization theorem in MIMO form:
&lt;strong&gt;Theorem(MIMO Feedback Linearization)&lt;/strong&gt;: A MIMO nonlinear system $\Sigma$ is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;feedback linearizable, if its vector relative degree $r = (r_1, r_2, \ldots, r_n)$ satisfies such that

$$ r_1 + \ldots + r_n = \displaystyle \Sigma_{i=1}^n r_i \ge n$$&lt;/li&gt;
&lt;li&gt;If the sum

$$ r_1 + \ldots + r_n = \displaystyle \Sigma_{i=1}^n r_i &lt; n$$
, then the system can only be IO linearizable, where we have to rely on the internal zero dynamic to be also stable in order for the full system to be stable.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="examples"&gt;Examples
&lt;/h3&gt;&lt;p&gt;Consider a motion of a wheeled vehicle moving in a horizontal plane. The kinematics of the vehicle are given by the differential equations:
&lt;/p&gt;
$$
\begin{align}
\dot{x} &amp;= V \cos \theta \\
\dot{y} &amp;= V \sin \theta \\
\dot{\theta} &amp;= \omega
\end{align}
$$&lt;p&gt;
Here $(x, y)$ is the location in the horizontal 2D plane, $V$ is the vehicle speed, and $\theta$ denotes the vehicle heading angle, and $\omega$ denotes the vehicle turning rate.&lt;/p&gt;
&lt;h4 id="ill-defined-vector-relative-degree"&gt;Ill-defined Vector Relative Degree
&lt;/h4&gt;&lt;p&gt;If we consider the vehicle speed $V$ and the vehicle turning range $\omega$ as two control inputs, and the vehicle locations in the plane as two outputs, the vector relative degree is not well-defined. We notice the system now looks like:
&lt;/p&gt;
$$
\begin{align}
\frac{d}{dt}\begin{pmatrix} x \\ y \\ \theta \end{pmatrix} &amp;= \begin{pmatrix}u_1 \cos \theta \\ u_1 \sin \theta \\ u_2 \end{pmatrix}
 \\
\begin{pmatrix} y_1 \\ y_2 \end{pmatrix}
&amp;= \begin{pmatrix} x \\ y \end{pmatrix}
\end{align}
$$&lt;p&gt;
If we take the first time derivative of the outputs
&lt;/p&gt;
$$
\begin{align}
\frac{d}{dt}\begin{pmatrix} y_1 \\ y_2 \end{pmatrix} &amp;= \frac{d}{dt}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} u_1 \cos \theta \\ u_1 \sin \theta \end{pmatrix}
\end{align}
$$&lt;p&gt;
Only the first control input shows up, which is a red flag. If we consider the coupling matrix
&lt;/p&gt;
$$
A(x) = \begin{pmatrix}
\cos \theta &amp; 0 \\
\sin \theta &amp; 0
\end{pmatrix}
$$&lt;p&gt;
is actually singular. Therefore the relative degree in this case is not well defined.&lt;/p&gt;
&lt;h4 id="well-defined-vector-relative-degree"&gt;Well-defined Vector Relative Degree
&lt;/h4&gt;&lt;p&gt;If we now consider the vehicle acceleration and the vehicle turning rate as the two control inputs, and we still use the vehicle position as the two outputs, this time the vehicle relative degree is actually well-defined, so long as $V &amp;gt; 0$ for this 4-th order nonlinear system. We have the original system expressed as:
&lt;/p&gt;
$$
\begin{align}
\frac{d}{dt} \begin{pmatrix} x \\ y \\ \theta \\ V \end{pmatrix} &amp;= \begin{pmatrix} V \cos \theta \\ V \sin \theta \\ u_2 \\ u_1 \end{pmatrix} \\
\begin{pmatrix} y_1 \\ y_2 \end{pmatrix} &amp;= \begin{pmatrix} x \\ y \end{pmatrix}
\end{align}
$$&lt;p&gt;If we take the first time derivative of the output vector:
&lt;/p&gt;
$$
\frac{d}{dt}\begin{pmatrix} y_1 \\ y_2 \end{pmatrix} = \begin{pmatrix} V \cos \theta \\ V \sin \theta \end{pmatrix}
$$&lt;p&gt;
We realize that both inputs don&amp;rsquo;t explicitly show up, therefore we take another round of differentiation:
&lt;/p&gt;
$$
\frac{d^2}{dt^2}\begin{pmatrix} y_1 \\ y_2 \end{pmatrix} = \begin{pmatrix} u_1 \cos \theta - u_2 V \sin \theta \\ u_1 \sin \theta + u_2 V \cos \theta \end{pmatrix}
$$&lt;p&gt;
Now, both inputs show up which is a good sign. We verify this by considering the decoupling matrix:
&lt;/p&gt;
$$
A(x) = \begin{pmatrix} \cos \theta &amp; -V \sin \theta \\ \sin \theta &amp; V \cos \theta \end{pmatrix} 
$$&lt;p&gt;
And the determinant is given by
&lt;/p&gt;
$$
\text{det}(A(x)) = V
$$&lt;p&gt;
We now realize that the decoupling matrix is non-singular, as long as the speed is non-zero. Therefore the vector relative degree is well-defined.&lt;/p&gt;
&lt;h4 id="control-law"&gt;Control Law
&lt;/h4&gt;&lt;p&gt;Given that $r_1 = r_2 = 2$ in this case, and we satisfy $r_1 + r_2 = 4 = n$, we can find a state transformation and a control transformation so that the original system can be feedback linearized. We consider the control transformation as
&lt;/p&gt;
$$
\begin{pmatrix}
\xi_1 = y_1 = x\\
\xi_2 = y_2 = y\\
\xi_3 = \dot{y_1} \\
\xi_4 = \dot{y_2}
\end{pmatrix}
$$&lt;p&gt;
And we can derive the control transformation as
&lt;/p&gt;
$$
\begin{pmatrix}
v_1 = u_1 \cos \theta - u_2 V \sin \theta \\
v_2 = u_2 \sin \theta + u_2 V \cos \theta 
\end{pmatrix}
$$&lt;p&gt;
and the resulting system now looks like
&lt;/p&gt;
$$
\begin{align}
\begin{cases}
\dot{\xi_1} &amp;= \xi_3 \\
\dot{\xi_2} &amp;= \xi_4 \\
\dot{\xi_3} &amp;= v_1 \\
\dot{\xi_4} &amp;= v_2 
\end{cases}
\end{align}
$$&lt;p&gt;
Which is happily a double integrator system, thus can be controlled (pole placed, or LQRed) to be stable.&lt;/p&gt;</description></item><item><title>Feedback Linearization, Part 2</title><link>http://blog.cedard.top/p/feedback-linearization-2/</link><pubDate>Fri, 12 Jun 2026 19:33:35 +0800</pubDate><guid>http://blog.cedard.top/p/feedback-linearization-2/</guid><description>&lt;h3 id="more-facts-about-io-linearization"&gt;More Facts about IO Linearization
&lt;/h3&gt;&lt;p&gt;We are now aware of how to perform input-output linearization. To summarize:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For an output with relative degree $r$, we are able to construct a feedback linearization mapping such that the input-output linearized system is of order $r$.&lt;/li&gt;
&lt;li&gt;The remaining state will construct a &amp;ldquo;zero plane&amp;rdquo; $Z$ where the zero dynamics on the plane will determine the stability of the overall system.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now, we can draw an obvious conclusion if the zero dynamic is indeed stable:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Theorem&lt;/strong&gt;: If $z = 0$ is locally exponentially stable for the zero dynamics, $\dot{z} = q(0, z)$, then $u_{IO}, v$ locally exponentially stabilizes $x = 0$.&lt;/p&gt;
&lt;p&gt;The proof is as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Proof&lt;/strong&gt;: The closed loop system is given by
&lt;/p&gt;
$$
\begin{align}
\dot{\xi} &amp;= A_{CL} \xi, A_{CL} = A - BK \\
\dot{z} &amp;= q(\xi, z)
\end{align}
$$&lt;p&gt;
where
&lt;/p&gt;
$$
A_{CL} = \begin{pmatrix}
0 &amp; 1 &amp; 0 &amp;\ldots &amp; 0 \\
0 &amp; 0 &amp; 1 &amp; \ldots &amp; 0 \\
\vdots &amp; \vdots &amp; \vdots &amp; \ddots &amp; \vdots \\
-k_1 &amp; -k_2 &amp; -k_3 &amp; \ldots &amp; -k_r
\end{pmatrix}
$$&lt;p&gt;
where $\Re{\lambda_i} &amp;lt; 0$ for all $i = 1, \ldots, r$.
If we linearize the system at $\xi = z = 0$, we get the following:&lt;/p&gt;
$$
\frac{d}{dt} \begin{pmatrix} \delta \xi \\ \delta z \end{pmatrix} = \begin{pmatrix}
A_{CL} &amp; 0 \\
\frac{\partial q}{\partial \xi}(0, 0) &amp; \frac{\partial q}{\partial z}(0, 0)
\end{pmatrix} \begin{pmatrix} \delta \xi \\ \delta z \end{pmatrix}
$$&lt;p&gt;
The matrix is Hurwitz, thus the end of the proof.&lt;/p&gt;
&lt;p&gt;We notice that the relationship between the new states $\xi$ and original states $x$ is such that
&lt;/p&gt;
$$ \xi = T(x)$$&lt;p&gt;
To verify if $T$ is a diffeomorphism, we introduce the following theorem:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Inverse Function Theorem&lt;/strong&gt;: A function $T: \mathbb{R}^n \to \mathbb{R}^n$, $T \in C^1$ satisfies
&lt;/p&gt;
$$ \frac{\partial T}{\partial x}(x_0) \neq 0 $$&lt;p&gt;
is full rank, then $T^{-1}$ exists, and is continuous and differentiable.&lt;/p&gt;
&lt;p&gt;Now let&amp;rsquo;s connect IO linearization back to feedback linearization. It&amp;rsquo;s not hard to see that if we can guarantee the zero dynamic to be stable, then the original system will be stable; the best way to make sure the zero dynamic is always stable is that the zero plane shrinks to just a point, and this is done if $r = n$. Therefore we have the following theorem:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Isidori, chapter 4&lt;/strong&gt;: If a nonlinear system $\Sigma$ has a relative degree $r$ at $x_0$, then on the neighborhood of $x_0$, the functions
&lt;/p&gt;
$$ \{ h(x), L_fh(x), \ldots, L_f^{r-1}h(x) \} $$&lt;p&gt;
are independent.
Then, we can conclude that, $\Sigma$ is feedback linearizable, if and only if $\exists y = h(x)$ such that the output has relative degree $r = n$.&lt;/p&gt;
&lt;p&gt;In short, if the output of the system satisfies that the relative degree equals to the system degree, then the system is always linearizable. However, if the output has a relative degree smaller than the system degree, it&amp;rsquo;s possible that we didn&amp;rsquo;t pick a good output &amp;ndash; how do we know if a system can in fact be feedback linearizable? We&amp;rsquo;ll have to introduce some more new concepts to answer the question.&lt;/p&gt;
&lt;h3 id="introduction-to-differential-geometry"&gt;Introduction to Differential Geometry
&lt;/h3&gt;&lt;p&gt;Our audience may find themselves familiar with these concepts, if they have taken classes in general relativity.&lt;/p&gt;
&lt;h4 id="manifold"&gt;Manifold
&lt;/h4&gt;&lt;p&gt;Let $M$ be a non-empty set of $\mathbb{R}^n$ and let $1 \le m &amp;lt; n$, then $M$ is an n-dimensional smooth &lt;strong&gt;Manifold&lt;/strong&gt; of $\mathbb{R}^n$ if, $\forall p \in M$, $\exists r &amp;gt; 0$, $F:B_r(p) \to \mathbb{R}^{n-m}$ such that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;$M \cap B_r(p) = { x \in \mathbb{R}^n | F(x) = 0 }$&lt;/li&gt;
&lt;li&gt;$ F \in C^0 $&lt;/li&gt;
&lt;li&gt;$ \forall \bar{x} \in M \cap B_r(p)$, $\text{rank} \frac{\partial F}{\partial x}(\bar{x}) = n - m $&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Intuitively, a manifold is a shape that &amp;ldquo;embeds&amp;rdquo; into a Euclidean space. We can always find a local mapping (also known as the &amp;ldquo;atlas&amp;rdquo;) to map the manifold into another local region in Euclidean space, given these two spaces have the same dimension.&lt;/p&gt;
&lt;p&gt;Some well-known manifolds are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Circle, a 1D manifold in $\mathbb{R}^2$&lt;/li&gt;
&lt;li&gt;Mobius strip, a 2D manifold in $\mathbb{R}^3$&lt;/li&gt;
&lt;li&gt;Sphere, a 2D manifold in $\mathbb{R}^3$&lt;/li&gt;
&lt;li&gt;Klein bottle, a 2D manifold in $\mathbb{R}^4$&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="tangent-space"&gt;Tangent Space
&lt;/h4&gt;&lt;p&gt;Let $M$ be a smooth manifold in $\mathbb{R}^n$ and let $p \in M$, suppose $F: B_r{p} \to \mathbb{R}^{n-1}$ satisfies conditions from definitions of $M$.
Then the &lt;strong&gt;Tangent Space&lt;/strong&gt; of $p$, denoted as $T_pM$ is such that
&lt;/p&gt;
$$ T_pM = \{ v \in \mathbb{R}^n | \frac{\partial F}{\partial x}(p) v = 0 \} = \mathbb{N}(\frac{\partial F}{\partial x}(p)) $$&lt;p&gt;
Note that, $\text{dim}(T_pM) = m$.&lt;/p&gt;
&lt;h4 id="tangent-vector"&gt;Tangent Vector
&lt;/h4&gt;&lt;p&gt;The &lt;strong&gt;Tangent Vector&lt;/strong&gt; is a vector in tangent space.&lt;/p&gt;
&lt;p&gt;We denote the relationship of manifold, tangent space and tangent vector like below:&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="372px" data-flex-grow="155" height="224" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/feedback-linearization-2/math20260613170104.png" width="348"&gt;&lt;/p&gt;
&lt;h4 id="vector-field"&gt;Vector Field
&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;Vector Field&lt;/strong&gt; $f$ on manifold $M$ is an assignment to each $p \in M$ a vector $f(p) \in T_pM$.
Note that, the vector field is $C^k$ if $f \in C^k$.&lt;/p&gt;
&lt;h4 id="lie-bracket"&gt;Lie Bracket
&lt;/h4&gt;&lt;p&gt;Given $f, g$ as two different vector fields, the &lt;strong&gt;Lie Bracket&lt;/strong&gt; is defined as&lt;/p&gt;
$$
\begin{align}
[f, g](x) &amp;= \frac{\partial g}{\partial x}(x) f(x) - \frac{\partial f}{\partial x}(x) g(x) \\
&amp;= L_fg - L_gf \\
\end{align}
$$&lt;p&gt;The Lie bracket can also be expressed in terms of &amp;ldquo;adjoint&amp;rdquo; operator, i.e.:
&lt;/p&gt;
$$
ad_f g(x) = [f, g](x)
$$&lt;p&gt;
We can use adjoint operator to express nested Lie brackets:
&lt;/p&gt;
$$ \begin{align}
ad_f^2g(x) &amp;= [f, ad_f g(x)] \\
&amp;= [f, [f, g]](x)
\end{align} $$&lt;p&gt;
In general, we have
&lt;/p&gt;
$$
ad_f^kg(x) = [f, ad_f^{k-1}g(x)]
$$&lt;p&gt;An example of Lie bracket calculation is as follows:
&lt;/p&gt;
$$
\begin{align}
f &amp;= \begin{pmatrix} x_2 \\ -\sin x_1 - x_2 \end{pmatrix} \\
g &amp;= \begin{pmatrix} 0 \\ x_1 \end{pmatrix} \\
[f, g](x) &amp;= L_fg - L_gf \\
&amp;= \begin{pmatrix} 0 \\ x_2 \end{pmatrix} - \begin{pmatrix} x_1 \\ -x_1 \end{pmatrix} \\
&amp;= \begin{pmatrix} -x_1 \\ x_2 + x_1 \end{pmatrix}
\end{align}
$$&lt;p&gt;Some useful properties of Lie bracket:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;$[f, f ] = 0$&lt;/li&gt;
&lt;li&gt;$[f, g] = -[g, f]$&lt;/li&gt;
&lt;li&gt;If $f$ and $g$ are constant vectors, then $[f, g] = 0$.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now let&amp;rsquo;s consider a linear system $\dot{x} = Ax + Bu$, if we express this in terms of control-affine system form, we have
&lt;/p&gt;
$$\begin{align}
\dot{x} &amp;= f(x) + g(x)u \\
f(x) &amp;= Ax \\
g(x) &amp;= B
\end{align}
$$$$
\begin{align}
ad_fg &amp;= -AB \\
ad_f^2g &amp;= A^2B \\
ad_f^3g &amp;= -A^3B \\
\vdots \\
ad_f^kg &amp;= (-1)^k A^k B
\end{align}
$$&lt;h4 id="tangent-bundle"&gt;Tangent Bundle
&lt;/h4&gt;&lt;p&gt;The &lt;strong&gt;Tangent Bundle&lt;/strong&gt; of a manifold $M$ is defined as
&lt;/p&gt;
$$ TM = \bigcup_{p \in M} T_pM $$&lt;p&gt;
That is, it&amp;rsquo;s the &amp;ldquo;bundle&amp;rdquo; of all tangent spaces at each point in the manifold.&lt;/p&gt;
&lt;h4 id="distribution"&gt;Distribution
&lt;/h4&gt;&lt;p&gt;Suppose $f_1, f_2, \ldots, f_n$ are vector fields, the &lt;strong&gt;Distribution&lt;/strong&gt; is defined as
&lt;/p&gt;
$$ \Delta (x) = \text{span}\{f_1(x), f_2(x), \ldots, f_n(x)\} $$&lt;p&gt;
whereas at each specific point $x$, $\Delta(x)$ represents the subspace of the tangent space $T_xM$.&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="305px" data-flex-grow="127" height="412" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/feedback-linearization-2/math20260613172713.png" width="524"&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$\Delta$ is &lt;strong&gt;non-singular&lt;/strong&gt; distribution if $\text{dim}(\Delta(x))$ is a constant $\forall x$.&lt;/li&gt;
&lt;li&gt;$\Delta$ is &lt;strong&gt;involutive&lt;/strong&gt; if

$$ \forall f, g \in \Delta \Rightarrow [f, g] \in \Delta $$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s consider the following example:
&lt;/p&gt;
$$
\begin{align}
f_1 &amp;= \begin{pmatrix} 2x_2 \\ 1 \\ 0 \end{pmatrix} \\
f_2 &amp;= \begin{pmatrix} 1 \\ 0 \\ x_2 \end{pmatrix} \\
\Delta &amp;= [f_1, f_2]
\end{align}
$$&lt;p&gt;Because $\text{dim}\Delta(x) = 2$ for all $x$, the distribution $\Delta$ is non-singular.&lt;/p&gt;
&lt;p&gt;$\Delta$ is involutive is equivalent to
&lt;/p&gt;
$$
[f_1, f_2] = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \in \Delta
$$&lt;p&gt;
if and only if $\text{rank}(f_1, f_2, [f_1, f_2]) = 2 \quad \forall x$. Unfortunately the rank is 3, therefore $\Delta$ is not involutive.&lt;/p&gt;
&lt;h3 id="feedback-linearizability"&gt;Feedback Linearizability
&lt;/h3&gt;&lt;p&gt;With all these mathematical definitions, we are finally able to determine whether a nonlinear system can actually be feedback linearized, using the following theorem:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;A nonlinear system $\Sigma$ is feedback linearizable, if an only if:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;$[g(x), ad_fg(x), \ldots, ad_f^{n-1}g(x) ]$ has rank $n$, $\forall x$. This condition guarantees controllability.&lt;/li&gt;
&lt;li&gt;$\Delta = \text{span}{g, ad_fg, \ldots, ad_f^{n-2}g}$ is involutive.&lt;/li&gt;
&lt;/ol&gt;

 &lt;/blockquote&gt;
&lt;p&gt;If we are able to determine whether the system is feedback linearizable, the next step will be to look for the specific output with relative degree $n$. From our earlier discussion, we are looking for a function $y = h(x)$ such that it meets the following conditions:
&lt;/p&gt;
$$\begin{align}
\begin{cases}
L_gh = L_gL_f = &amp;\ldots = L_gL_f^{n-2}h = 0 \forall x \\
L_gL_f^{n-1}h &amp;\neq 0
\end{cases}
\end{align}
$$&lt;p&gt;
In fact, these two conditions are equivalent to the following two conditions:
&lt;/p&gt;
$$\begin{align}
\begin{cases}
L_gh = L_{ad_fg}h = &amp;\ldots = L_{ad_f^{n-2}g}h = 0 \forall x \\
L_{ad_f^{n-1}g}h &amp;\neq 0
\end{cases}
\end{align}
$$&lt;p&gt;
The advantage of the latter formulation is that we can write the first condition as:
&lt;/p&gt;
$$
\frac{\partial h}{\partial x} \begin{pmatrix} g(x) &amp; ad_fg(x) &amp; \cdots &amp; ad_f^{n-2}g(x) \end{pmatrix} = 0
$$&lt;p&gt;
The important fact here is that, the solution for this partial differential equation only exists, if $\Delta = {g, ad_fg, \ldots, ad_f^{n-2}g}$ is involutive, according to the (Frobenius theorem)[https://en.wikipedia.org/wiki/Frobenius_theorem_(differential_topology)].&lt;/p&gt;
&lt;p&gt;To prove that the two conditions are indeed equivalent, we use the following lemma:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;Lemma&lt;/strong&gt;: Given $L_gh = L_gL_f h = \ldots = L_gL_f^{n-2}h = 0$ for all $x \in B_\delta (x_0)$, then we have
&lt;/p&gt;
$$L_gL_f^kh = (-1)^k L_{ad_f^kg}h, \forall k = 0,1,\ldots, r-1$$&lt;p&gt;.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;This lemma can be proven using induction, and we skip the full proof here.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;In this chapter, we discussed the condition for a nonlinear system to be fully feedback linearizable. In the final chapter, we&amp;rsquo;ll give some examples and extend to multi-input multi-output case.&lt;/p&gt;</description></item><item><title>Feedback Linearization, Part 1</title><link>http://blog.cedard.top/p/feedback-linearization-1/</link><pubDate>Thu, 11 Jun 2026 21:38:58 +0800</pubDate><guid>http://blog.cedard.top/p/feedback-linearization-1/</guid><description>&lt;p&gt;Feedback linearization is a seemingly obvious but powerful technique in control theory that transforms a nonlinear system into a linear one through state and input feedback.&lt;/p&gt;
&lt;p&gt;I learned this technique when I was taking MEC237 from Berkeley, and I later realized it&amp;rsquo;s actually pretty useful and one of the most universal techniques in nonlinear control.&lt;/p&gt;
&lt;h2 id="motivation"&gt;Motivation
&lt;/h2&gt;&lt;p&gt;Let&amp;rsquo;s consider a first-order nonlinear system:&lt;/p&gt;
$$
\dot{x} = x^3 + u
$$&lt;p&gt;Where $x$ is our internal state, and $u$ is our control input. If the system has no control, state $x$ is unstable. Intuitively, if $x$ is greater than 0, $\dot{x}$ is also greater, pushing it away from the equilibrium point, and vice versa if $x &amp;lt; 0$.&lt;/p&gt;
&lt;p&gt;One caveat here is that, we can&amp;rsquo;t use Lyapunov indirect method to conclude instability, because the Jacobian matrix is 0, and nothing can be concluded from a both non-positive and non-negative Jacobian matrix eigenvalue.&lt;/p&gt;
&lt;p&gt;How shall we use the control input to stabilize the system? Let&amp;rsquo;s consider the input $u = -x^3 - x$, where if we sub-into the original system:&lt;/p&gt;
$$ \dot{x} = x^3 + (-x^3 - x) = -x $$&lt;p&gt;This is now a negative feedback system with eigenvalue strictly negative, and we can therefore conclude stability.&lt;/p&gt;
&lt;p&gt;What did we make the control input do? We use a nonlinear term $-x^3$ in the control input to cancel the original system&amp;rsquo;s unstable term, and introduce another stabilizing linear term $-x$ to ensure stability. The mechanism where we use feedback to achieve a stable linear system is called &lt;strong&gt;Feedback Linearization&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;However, is this technique universal? The answer is no. Look at the following system:&lt;/p&gt;
$$
\begin{align}
\begin{cases}
\dot{x}_1 = a \sin x_2 \\
\dot{x}_2 = -x_1^2 + u
\end{cases}
\end{align}
$$&lt;p&gt;In fact, any input $u$ can&amp;rsquo;t linearize both states $x_1$ and $x_2$. However, if we do a &lt;strong&gt;state transformation&lt;/strong&gt; like below:&lt;/p&gt;
$$
\begin{align}
z_1 &amp;= x_1 \\
z_2 &amp;= a \sin x_2 
\end{align}
$$&lt;p&gt;Then it&amp;rsquo;s not too hard to verify that the transformed system can actually be linearized. Thus by combining state transform and control transform, we are able to achieve feedback linearization.&lt;/p&gt;
&lt;h2 id="some-definitions"&gt;Some Definitions
&lt;/h2&gt;&lt;p&gt;We now give some useful definitions to help understand the feedback linearization technique.&lt;/p&gt;
&lt;h3 id="control-affine-system"&gt;Control-Affine System
&lt;/h3&gt;&lt;p&gt;A system that has the following form is called a &lt;strong&gt;Control-Affine System&lt;/strong&gt;:&lt;/p&gt;
$$
\dot{x} = f(x) + g(x)u
$$&lt;p&gt;where $f(x)$ and $g(x)$ are smooth vector fields.&lt;/p&gt;
&lt;p&gt;An example of a system that&amp;rsquo;s not control-affine is:
&lt;/p&gt;
$$
\dot{x} = f(x) + g(x)u^2
$$&lt;h3 id="diffeomorphism"&gt;Diffeomorphism
&lt;/h3&gt;&lt;p&gt;In differential geometry, a &lt;strong&gt;diffeomorphism&lt;/strong&gt; is a smooth invertible map between differentiable manifolds, whose inverse is also smooth. To express in mathematical language, such mapping $T$ satisfies $T \in C^1$ and $T^{-1} \in C^1$.&lt;/p&gt;
&lt;h3 id="feedback-linearizable"&gt;Feedback Linearizable
&lt;/h3&gt;&lt;p&gt;A nonlinear control-affine system $\Sigma: \dot{x} = f(x) + g(x)u$ is said to be &lt;strong&gt;feedback linearizable&lt;/strong&gt; if there exists a control law $u = \alpha (x) + \beta (x)v$ and state transform $z = T(x)$, where $T$ is a diffeomorphism, such that the transformed system $\dot{z} = Az + Bv$ satisfies $(A, B)$ is controllable.&lt;/p&gt;
&lt;h3 id="lie-derivative"&gt;Lie Derivative
&lt;/h3&gt;&lt;p&gt;The &lt;strong&gt;Lie Derivative&lt;/strong&gt; is an operator such that:&lt;/p&gt;
$$ 
L_f u = \frac{\partial u}{\partial x} f(x)
$$&lt;p&gt;We will see how Lie derivative helps us simplify some notations later.&lt;/p&gt;
&lt;h3 id="input-output-linearization"&gt;Input-Output Linearization
&lt;/h3&gt;&lt;p&gt;There are cases that we can&amp;rsquo;t perform full feedback linearization, but we can still achieve input-output linearization.&lt;/p&gt;
&lt;p&gt;Consider the same system that we defined earlier:&lt;/p&gt;
$$
\begin{cases}
\dot{x}_1 = a \sin x_2 \\
\dot{x}_2 = -x_1^2 + u \\
y = x_2
\end{cases}
$$&lt;p&gt;Note that now we assign the output $y$ to be only a function of $x_2$. Now, we can perform &lt;strong&gt;Input-Output Linearization&lt;/strong&gt; $ u = x_1^2 + v$ such that:&lt;/p&gt;
$$ y = x_2 = -x_1^2 + x_1^2 +v = v$$&lt;p&gt;from there, we manage to achieve a linear relationship between the new control law $v$ and output $y$. However, since $x_1$ is an unobservable state from $y$, we can&amp;rsquo;t tell just from $y$ whether the inner system is stable &amp;ndash; therefore it&amp;rsquo;s possible for the inner state to explode while the output shows nothing, causing system failure.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Now with all these definitions, we would like to answer the following questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When is a system feedback linearizable?&lt;/li&gt;
&lt;li&gt;If not feedback linearizable, when is the system IO linearizable?&lt;/li&gt;
&lt;li&gt;Is there connection between IO linearization and system linearization?&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="relative-degree-of-output-y"&gt;Relative Degree of Output $y$
&lt;/h2&gt;&lt;p&gt;Let&amp;rsquo;s consider the following system that is a generalization of a SISO control-affine system:&lt;/p&gt;
$$
\begin{align}
\dot{x} &amp;= f(x) + g(x)u \\
y &amp;= h(x)
\end{align}
$$&lt;p&gt;
Where $f, g, h$ are sufficiently smooth.&lt;/p&gt;
&lt;p&gt;We notice that $y$ is not a function of $u$, to the first order because there is no direct control term in $y$. Let&amp;rsquo;s try to take the derivative of $y$:&lt;/p&gt;
$$
\begin{align}
\dot{y} &amp;= \frac{\partial h(x)}{\partial x} \dot{x} \\
&amp;= \frac{\partial h(x)}{\partial x} (f(x) + g(x)u) \\
&amp;= L_f h(x) + L_g h(x) u
\end{align}
$$&lt;p&gt;
Note that we used the Lie derivation notation.&lt;/p&gt;
&lt;p&gt;Now assume that $L_g h(x) \neq 0$, then we have a direct term $u$ in $\dot{y}$. We can therefore make $u$ such that:&lt;/p&gt;
$$
u = L_g h(x) ^ {-1} (-L_f h(x) + v)
$$&lt;p&gt;and so that:&lt;/p&gt;
$$
\dot{y} = v
$$&lt;p&gt;What if $L_g h(x) = 0$? In that case, $u$ doesn&amp;rsquo;t appear in the first derivative of $y$:&lt;/p&gt;
$$
\dot{y} = L_f h(x)
$$&lt;p&gt;But no worries, we can take another derivative operation:
&lt;/p&gt;
$$
\ddot{y} = L_f^2 h(x) + L_gL_fh(x)u
$$&lt;p&gt;
Note that, $L_aL_bc(x) = L_a(L_b c(x))$.
Suppose we have $L_gL_fh(x) \neq 0$, then we can again IO linearize the system as:&lt;/p&gt;
$$
u = L_gL_f h(x)^{-1}[-L_f^2 h(x) + v]
$$&lt;p&gt;
and thus:
&lt;/p&gt;
$$
\ddot{y} = v
$$&lt;p&gt;
If we continue doing this, we will arrive at step $r$:
&lt;/p&gt;
$$
y^{(r)} = L_f^rh(x) +L_gL_f^{r-1}h(x)u
$$&lt;p&gt;
And if we have $L_gL_f^{r-1}h(x) \neq 0$, we can make it such that:
&lt;/p&gt;
$$
u = L_gL_f^{r-1}h(x)^{-1}[-L_f^r h(x) + v]
$$&lt;p&gt;
and therefore
&lt;/p&gt;
$$
y^{r} = v
$$&lt;p&gt;
In this case, the IO linearized system is a $r^{th}$ order linear system.&lt;/p&gt;
&lt;p&gt;We now give the definition of $r$:&lt;/p&gt;
&lt;p&gt;A SISO system $\dot{x} = f(x) + g(x)u, y = h(x)$ has &lt;strong&gt;relative degree&lt;/strong&gt; $r$ with respect to the output $y = h(x)$ around $x_0$ if:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;$\forall 0 \le k &amp;lt; r-1$, $L_gL_f^kh(x) = 0$, $\forall x \in $ neighborhood of $x_0$.&lt;/li&gt;
&lt;li&gt;$L_gL_f^{r-1}h(x) \neq 0$, $\forall x \in $ neighborhood of $x_0$.
Let&amp;rsquo;s look at some examples.&lt;/li&gt;
&lt;/ol&gt;
$$
\begin{align}
\dot{x}_1 &amp;= x_2 \\
\dot{x}_2 &amp;= -x_1^3 + u \\
y &amp;= x_1
\end{align}
$$&lt;p&gt;
It&amp;rsquo;s obvious that the relative degree is not 0 because $u$ doesn&amp;rsquo;t show up directly in $y$. We take the first derivative of $y$:
&lt;/p&gt;
$$ \dot{y} = x_2$$&lt;p&gt;
Still no $u$. Differentiate again:
&lt;/p&gt;
$$ \ddot{y}= -x_1^3 + u$$&lt;p&gt;
Now $u$ shows up, therefore the relative degree of $y$ is 2.
Note that the coefficient of $u$ is always a well-defined 1, therefore output $y$ always has relative degree of 2 anywhere in $\mathbb{R}$.&lt;/p&gt;
$$
\begin{align}
\dot{x}_1 &amp;= x_2 + x_3^3 \\
\dot{x}_2 &amp;= x_3 \\
\dot{x}_3 &amp;= u \\
y &amp;= x_1
\end{align}
$$&lt;p&gt;
We differentiate $y$ twice:
&lt;/p&gt;
$$
\ddot{y} = x_3 + 3x_3 u
$$&lt;p&gt;
Now we realize that $y$ doesn&amp;rsquo;t have a well-defined degree around $x_3 = 0$, and has a relative degree of 2 anywhere else.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s try to apply the concept to our familiar linear system:
&lt;/p&gt;
$$
\begin{align}
\dot{x} &amp;= Ax + Bu \\
y &amp;= Cx
\end{align}
$$&lt;p&gt;
If we differentiate $y$:
&lt;/p&gt;
$$
\dot{y} = CAx + CBu
$$&lt;p&gt;
Now, if $CB = 0$, we&amp;rsquo;ll have to differentiate again:
&lt;/p&gt;
$$
\ddot{y} = CA^2x + CAB u
$$&lt;p&gt;
continue doing this, we have relative degree $r$ if&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;$ CB = CAB = \ldots = CA^{r-2}B = 0$&lt;/li&gt;
&lt;li&gt;$ CA^{r-1}B \neq 0$&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Isn&amp;rsquo;t the quantity $CA^{r-1}B$ familiar? It&amp;rsquo;s a composite of the controllability matrix and observability matrix. In fact, this conclusion leads directly to the concept of &lt;a class="link" href="https://en.wikipedia.org/wiki/Kalman_decomposition" target="_blank" rel="noopener"
 &gt;Kalman decomposition&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="zero-dynamics"&gt;Zero Dynamics
&lt;/h2&gt;&lt;p&gt;A fact regarding the relative degree $r$:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;$r$ is always less than or equal to the order of the system $n$, and cannot be greater than $n$. If we keep differentiating without getting $u$ show up in $y$, the relative degree is usually undefined.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;Now, for the IO linearized system $y^{(r)} = v$, we can choose the state vector:&lt;/p&gt;
$$ 
z = \begin{pmatrix} 
y \\
\dot{y} \\
\vdots \\
y^{(r-1)}
\end{pmatrix} \in \mathbb{R}^r
$$&lt;p&gt;
Thus, we will arrive at:
&lt;/p&gt;
$$
\dot{z} = \begin{pmatrix}
 0 &amp; 1 &amp; 0 &amp; \cdots &amp; 0 \\
 0 &amp; 0 &amp; 1 &amp; \cdots &amp; 0 \\
 \vdots &amp; \vdots &amp; \vdots &amp; \ddots &amp; \vdots \\
 0 &amp; 0 &amp; 0 &amp; \cdots &amp; 1 \\
 0 &amp; 0 &amp; 0 &amp; \cdots &amp; 0 
\end{pmatrix} z + \begin{pmatrix}
 0 \\
 0 \\
 \vdots \\
 0 \\
 1 
\end{pmatrix} v
$$&lt;p&gt;
If you have read another article of mine: &lt;a class="link" href="http://blog.cedard.top/p/masons-gain-formula/" &gt;Mason&amp;rsquo;s Gain Formula and Control Canonical Forms&lt;/a&gt;, you&amp;rsquo;ll realize system follows the controllability canonical form, thus $z$ is always controllable, given matrix $A$ is a complete Jordan block. Therefore, we can always define a feedback control mechanism
&lt;/p&gt;
$$ v = -Kz$$&lt;p&gt;
such that
&lt;/p&gt;
$$ \dot{z} = (A - BK)z $$&lt;p&gt;
is always stable, or &lt;/p&gt;
$$\Re(\lambda(A - BK)) &lt; 0$$&lt;p&gt;
If we convert $v$ back in terms of $x$, we will get
&lt;/p&gt;
$$ v = -k_1 h(x) - k_2 L_f h(x) - \ldots - k_r L_f^{r-1} h(x) $$&lt;p&gt;
Now that if we have $z(t) \to 0$ as $ t \to \infty$, $y \to 0$, $\dot{y} \to 0$, etc. We can guarantee the output $y$ is stable. But, how about $x$? Is the original system stable? This leads to the discussion of &lt;strong&gt;zero dynamics&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If we define the set $Z = {x \in \mathbb{R}^n : h(x) = \dot{h}(x) = \ldots = h^{(r-1)}(x) = 0}$, then $Z$ is called the &lt;strong&gt;zero dynamics&lt;/strong&gt; of the system. It stands for the part of the system where it&amp;rsquo;s not shown explicitly on the output $y$, or it&amp;rsquo;s unobservable.&lt;/p&gt;
&lt;p&gt;Note that the dimension of the zero dynamics set is $n - r$.&lt;/p&gt;
&lt;p&gt;What we did for IO linearization are the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;We construct the surface $Z$ with dimension $n - r$.&lt;/li&gt;
&lt;li&gt;We make $Z$ attractive, i.e. we let $x$ approach the surface asymptotically.&lt;/li&gt;
&lt;li&gt;We also make $Z$ invariant, i.e. $x$ never leaves the surface once it&amp;rsquo;s on the surface.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;However, whether the dynamics &lt;em&gt;on&lt;/em&gt; the surface is stable dictates whether the original system $x$ is stable. The dynamic on the surface is also known as the &lt;strong&gt;zero dynamics&lt;/strong&gt;.
Let&amp;rsquo;s take an example to illustrate the zero dynamics. Consider the following system:
&lt;/p&gt;
$$
\begin{align}
\dot{x}_1 &amp;= x_2 \\
\dot{x}_2 &amp;= \alpha x_3 + u \\
\dot{x}_3 &amp;= \beta x_3 - u \\
y &amp;= x_1
\end{align}
$$&lt;p&gt;
It&amp;rsquo;s easy to get relative degree of 2 for output $y$ because
&lt;/p&gt;
$$
\ddot{y} = \alpha x_3 + u
$$&lt;p&gt;
Now, suppose when $t \to \infty$, both $y$ and $\dot{y}$ approach zero. What happens to the state $x$?
If $y = 0, \dot{y} = 0$, then $x_1 = x_2 = 0$, and we have
&lt;/p&gt;
$$ \dot{x}_3 = (\beta + \alpha) x_3 $$&lt;p&gt;
Therefore, the zero dynamic on $x_3$ is stable if and only if $\beta + \alpha &amp;lt; 0$.&lt;/p&gt;
&lt;p&gt;In fact, in this case $x_3$ is the uncontrollable state of the nonlinear system. Just like linear system theory, if the uncontrollable state is stable, the entire system can be stabilized.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;We discussed IO linearization in this article. In part 2, we are going to talk about actual feedback linearization.&lt;/p&gt;</description></item><item><title>Steady-state Error, part 1</title><link>http://blog.cedard.top/p/steady-state-error-1/</link><pubDate>Thu, 30 Apr 2026 22:09:36 +0800</pubDate><guid>http://blog.cedard.top/p/steady-state-error-1/</guid><description>&lt;p&gt;Before we resume talking about why adding a capacitor solves the step input problem without solving the ramp input problem, let&amp;rsquo;s review some basic knowledge from linear system.&lt;/p&gt;
&lt;h2 id="linear-system-basics"&gt;Linear System Basics
&lt;/h2&gt;&lt;h3 id="initial-value-theorem"&gt;Initial Value Theorem
&lt;/h3&gt;&lt;p&gt;For a function $f(t)$ and its Laplace transform $F(s)$, the initial value theorem states that
&lt;/p&gt;
$$
\lim_{t \to 0} f(t) = \lim_{s \to \infty} sF(s)
$$&lt;p&gt;.&lt;/p&gt;
&lt;h3 id="final-value-theorem"&gt;Final Value Theorem
&lt;/h3&gt;&lt;p&gt;For a function $f(t)$ and its Laplace transform $F(s)$, the final value theorem states that
&lt;/p&gt;
$$
\lim_{t \to \infty} f(t) = \lim_{s \to 0} sF(s)
$$&lt;p&gt;.&lt;/p&gt;
&lt;h3 id="types-of-inputs"&gt;Types of Inputs
&lt;/h3&gt;&lt;p&gt;There are a few basic types of inputs that we use to kickstart the system. Here is a summary table:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Input Type&lt;/th&gt;
					&lt;th&gt;Time Domain Response $f(t)$&lt;/th&gt;
					&lt;th&gt;Laplace Transform $F(s)$&lt;/th&gt;
					&lt;th&gt;Order&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Impulse&lt;/td&gt;
					&lt;td&gt;$\delta(t)$&lt;/td&gt;
					&lt;td&gt;1&lt;/td&gt;
					&lt;td&gt;undefined&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Step&lt;/td&gt;
					&lt;td&gt;$u(t)$&lt;/td&gt;
					&lt;td&gt;$\displaystyle\frac{1}{s}$&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Ramp&lt;/td&gt;
					&lt;td&gt;$t \cdot u(t)$&lt;/td&gt;
					&lt;td&gt;$\displaystyle\frac{1}{s^2}$&lt;/td&gt;
					&lt;td&gt;1&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Parabolic&lt;/td&gt;
					&lt;td&gt;$\displaystyle \frac{t^2}{2} \cdot u(t)$&lt;/td&gt;
					&lt;td&gt;$\displaystyle\frac{1}{s^3}$&lt;/td&gt;
					&lt;td&gt;2&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&amp;hellip;&lt;/td&gt;
					&lt;td&gt;&amp;hellip;&lt;/td&gt;
					&lt;td&gt;&amp;hellip;&lt;/td&gt;
					&lt;td&gt;&amp;hellip;&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="unity-feedback-system"&gt;Unity Feedback System
&lt;/h3&gt;&lt;p&gt;We call the following system a &lt;strong&gt;Unity-Feedback System&lt;/strong&gt;, if the feedback path has a gain of 1.&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="814px" data-flex-grow="339" height="162" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-1/math20260430222208.png" width="550"&gt;&lt;/p&gt;
&lt;h2 id="system-types"&gt;System Types
&lt;/h2&gt;&lt;p&gt;For a unity feedback system, we assume the controller has a transfer function that looks like:&lt;/p&gt;
$$ \displaystyle H(s) = \frac{K(s-z_1)(s-z_2)\cdots(s-z_m)}{s^k(s-p_1)(s-p_2)\cdots(s-p_n)} $$&lt;p&gt;That is, the controller has $m$ zeros, $n+k$ poles where $k$ poles are at the origin. To satisfy stability, $m &amp;lt; n+k$ otherwise the transfer function will not be a &lt;strong&gt;proper transfer function&lt;/strong&gt;.&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;We define the &lt;strong&gt;type&lt;/strong&gt; of the system as the number of pure integrators in $H(s)$. In our definition of $H(s)$, the type is $k$.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;Now, if we sub $H(s)$ into the unity feedback system, using Mason&amp;rsquo;s Gain Formula, we have the closed-loop transfer function of the overall system:&lt;/p&gt;
$$
\begin{align}
\displaystyle H_{cl}(s) &amp;= \frac{H(s)}{1 + H(s)} \\
&amp;= \frac{K(s-z_1)(s-z_2)\cdots(s-z_m)}{s^k(s-p_1)(s-p_2)\cdots(s-p_n) + K(s-z_1)(s-z_2)\cdots(s-z_m)}
\end{align}
$$&lt;p&gt;Therefore the transfer function of the steady-state error is given by:
&lt;/p&gt;
$$
\begin{align}
E(s) &amp;= 1 - H_{cl}(s) \\
&amp;= \frac{1}{1 + H(s)} \\
&amp;= \frac{s^k(s-p_1)(s-p_2)\cdots(s-p_n)}{s^k(s-p_1)(s-p_2)\cdots(s-p_n) + K(s-z_1)(s-z_2)\cdots(s-z_m)}
\end{align}
$$&lt;p&gt;
Now, let&amp;rsquo;s say if our input is type-N:
&lt;/p&gt;
$$
\begin{align}
F(s) &amp;= \frac{1}{s^{N+1}}
\end{align}
$$&lt;p&gt;
Then the resulting steady-state error is going to be:
&lt;/p&gt;
$$
\begin{align}
e(s) &amp;= E(s) \cdot F(s) \\
&amp;= \frac{s^{k-N-1}(s-p_1)(s-p_2)\cdots(s-p_n)}{s^k(s-p_1)(s-p_2)\cdots(s-p_n) + K(s-z_1)(s-z_2)\cdots(s-z_m)}
\end{align}
$$&lt;p&gt;
If we apply final value theorem, we get
&lt;/p&gt;
$$
\begin{align}
\lim_{t \to \infty} e(t) &amp;= \lim_{s \to 0} s \cdot e(s)
&amp;=\frac{s^{k-N}(s-p_1)(s-p_2)\cdots(s-p_n)}{s^k(s-p_1)(s-p_2)\cdots(s-p_n) + K(s-z_1)(s-z_2)\cdots(s-z_m)} 
\end{align}
$$&lt;p&gt;
It&amp;rsquo;s not too hard to see that the term of interest is $s^{k-N}$. We conclude therefore:
&lt;/p&gt;
$$
\begin{cases}
\lim_{t \to \infty} e(t) = 0 &amp; \text{if } k &gt; N \\
\lim_{t \to \infty} e(t) = \frac{1}{K} &amp; \text{if } k = N \\
\lim_{t \to \infty} e(t) = \infty &amp; \text{if } k &lt; N
\end{cases}
$$&lt;p&gt;
This is a pretty elegant result, in other words, the convergence of steady state error follows such conditions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If the system type (k) is greater than the input type (N), the steady-state error is zero.&lt;/li&gt;
&lt;li&gt;If the system type (k) is smaller than the input type (N), the steady-state error will diverge to infinity.&lt;/li&gt;
&lt;li&gt;If the system type and input type are the same, the steady state error will converge to a non-zero number, which will be a finite fraction of the input, depending on the DC gain of the system.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Another intuitive way to look into this is that, if our input is of a higher system and the system itself can&amp;rsquo;t generate fast enough response, the system will always fall behind the input, and vice versa.&lt;/p&gt;
&lt;h2 id="the-problems-with-higher-order-system"&gt;The problems with higher order system
&lt;/h2&gt;&lt;p&gt;Now if we take the original system we discussed last time when we added a capacitor, we realize that adding that capacitor helped us to increase the system type, and thus we are able to track the input better.&lt;/p&gt;
&lt;p&gt;Here is the further question: what if the input is of type 2? Based off our discussion just now, we might just want to add another integrator so as to further increase the system type, like below:&lt;/p&gt;
&lt;p&gt;&lt;img alt="type2_system" class="gallery-image" data-flex-basis="614px" data-flex-grow="255" height="468" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-1/mathtype2_system.png" srcset="http://blog.cedard.top/p/steady-state-error-1/mathtype2_system_hu_a57418f0f26f15b7.png 800w, http://blog.cedard.top/p/steady-state-error-1/mathtype2_system.png 1198w" width="1198"&gt;&lt;/p&gt;
&lt;p&gt;This makes plausible sense; however this system will unfortunately fail. Why? Let&amp;rsquo;s try to simplify the system by assuming $g_m = 1$ and $C=1$. If we perturb our system by a step input, according to our discussion above, the system should be able to track it without problem. First, the open loop gain is given by:
&lt;/p&gt;
$$
H_{ol} = \frac{1}{s^2}
$$&lt;p&gt;
Now, if we closed the loop and calculate the closed loop gain:
&lt;/p&gt;
$$
H_{cl} = \frac{1}{1 + H_{ol}(s)} = \frac{s^2}{1+s^2}
$$&lt;p&gt;
With a step input, the output has a frequency domain representation of:
&lt;/p&gt;
$$
V_{out}(s) = H_{cl} \cdot \frac{1}{s} = \frac{s}{1+s^2}
$$&lt;p&gt;
Now if we perform inverse laplace transform of the s-domain representation, we will get:
&lt;/p&gt;
$$ V_{out}(t) = \sin t$$&lt;p&gt;
That is to say, we increased the system type and we wished for the steady state error to converge faster, however the system is not even able to track a type-1 input, but start oscillating. What&amp;rsquo;s the problem here?&lt;/p&gt;
&lt;p&gt;The reason is that by introducing another pole, we introduced 90 degrees more input phase, and thus the effective &lt;strong&gt;phase margin&lt;/strong&gt; of the system is 0. From another angle, we can apply Barkhausen stability criterion and realize that the system automatically satisfies that criterion, and immediately realize that the system is oscillatory.&lt;/p&gt;
&lt;p&gt;The fix is to introduce &lt;strong&gt;damping&lt;/strong&gt; to either of the integrator to produce a zero in the forward gain, thus making the phase margin positive.&lt;/p&gt;
&lt;p&gt;&lt;img alt="type2_system_with_damping" class="gallery-image" data-flex-basis="614px" data-flex-grow="255" height="468" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-1/mathtype2_system_with_damping.png" srcset="http://blog.cedard.top/p/steady-state-error-1/mathtype2_system_with_damping_hu_448f428f557d9bbe.png 800w, http://blog.cedard.top/p/steady-state-error-1/mathtype2_system_with_damping.png 1198w" width="1198"&gt;&lt;/p&gt;
&lt;p&gt;The derivation is left to our audience if you would like to give it a try.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;For the next part, we will further expand the damping concept and introduce a few compensation techniques we can use: lead, lag, and lead-lag compensation to improve the system response.&lt;/p&gt;</description></item><item><title>Mason's Gain Formula and Control Canonical Forms</title><link>http://blog.cedard.top/p/masons-gain-formula/</link><pubDate>Thu, 23 Apr 2026 00:28:37 +0800</pubDate><guid>http://blog.cedard.top/p/masons-gain-formula/</guid><description>&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Pop quiz: what&amp;rsquo;s the transfer function $H(s) = V_{out} / V_{in}$ in the following circuit?&lt;/p&gt;
&lt;p&gt;Assumptions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$C_c$ is a big coupling capacitor.&lt;/li&gt;
&lt;li&gt;No channel-length modulation.&lt;/li&gt;
&lt;li&gt;You don&amp;rsquo;t have to solve for DC, all small signal parameters are given. Don&amp;rsquo;t assume unspecified parameters, for example $r_o$, $C_g$, etc.&lt;/li&gt;
&lt;li&gt;The circuit is linear.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="Weird Circuit" class="gallery-image" data-flex-basis="373px" data-flex-grow="155" height="367" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/mathweird_circuit_re.png" width="571"&gt;&lt;/p&gt;
&lt;p&gt;OK this circuit does look a bit intimidating. For entry-level analog circuit class takers, they might take out pencil to work through the analysis, but it&amp;rsquo;s super tedious, time consuming and error-prone.&lt;/p&gt;
&lt;p&gt;Look at the circuit, what is the main reason that makes analysis difficult? Feedback. Not just one feedback path, there are two feedbacks from each of the two stages rendering the overall analysis not so straightforward. However, we are going to introduce a very elegant mathematical tool to deal with all these kinds of closed-loop structures.&lt;/p&gt;
&lt;h2 id="masons-gain-formula"&gt;Mason&amp;rsquo;s Gain Formula
&lt;/h2&gt;&lt;p&gt;Samuel Jefferson Mason was born in 1921. As a distinguished electronics engineer, his most famous scientific contributions are Mason&amp;rsquo;s invariant and Mason&amp;rsquo;s rule, or Mason&amp;rsquo;s gain formula, both named after him.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Samuel Jefferson Mason" class="gallery-image" data-flex-basis="167px" data-flex-grow="69" height="1147" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260423004040.png" width="800"&gt;&lt;/p&gt;
&lt;p&gt;Mason&amp;rsquo;s gain formula is used to find the transfer function of a closed-loop system. A closed loop system doesn&amp;rsquo;t need to contain only one loop; it could contain multiple loops, and they can even interact with each other. Conventional algebraic way to find the transfer function usually requires solving complex simultaneous systems, but Mason&amp;rsquo;s gain formula provides an easy way to find it.&lt;/p&gt;
&lt;p&gt;Mason&amp;rsquo;s gain formula is particularly suitable for a system that can be described using a Signal Flow Graph.&lt;/p&gt;
&lt;h3 id="signal-flow-graph-sfg"&gt;Signal Flow Graph (SFG)
&lt;/h3&gt;&lt;p&gt;A Signal Flow Graph (SFG) is a graphical representation of a system. As the name suggests, an SFG is a directed graph, meaning it has the following components:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Node&lt;/strong&gt;: a node is a vertex that represents a variable in a system.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Branch&lt;/strong&gt;: a branch is a directed edge that represents a transfer function between two nodes. It has a linear gain. If the gain is 1, we don&amp;rsquo;t annotate it on the SFG.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Input/Output&lt;/strong&gt;: Input / Output nodes are special nodes where we use to denote the transfer function&amp;rsquo;s departure and arrival points.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Addition&lt;/strong&gt;: Two signals could be added together, given SFG is targeting linear systems.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="Examples from Wikipedia" class="gallery-image" data-flex-basis="109px" data-flex-grow="45" height="2099" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260424174736.png" srcset="http://blog.cedard.top/p/masons-gain-formula/math20260424174736_hu_472ea900dde5566e.png 800w, http://blog.cedard.top/p/masons-gain-formula/math20260424174736.png 960w" width="960"&gt;&lt;/p&gt;
&lt;p&gt;Now, with these simple definitions, we are able to construct more complex notations + structures:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Path&lt;/strong&gt;: a path is a sequence of branches that connect nodes in the graph, such that no node is visited more than once.
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Forward Path&lt;/strong&gt;: a forward path is a path from the input node to the output node.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Path Gain&lt;/strong&gt;: the product of the gains of all branches in a path.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Loop&lt;/strong&gt;: a loop is a path that starts and ends at the same node. A loop is a specific type of path.
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Loop Gain&lt;/strong&gt;: the product of the gains of all branches in a loop.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="example-type-2-pll"&gt;Example: Type 2 PLL
&lt;/h4&gt;&lt;p&gt;Shown below is a type-2 PLL:
&lt;img alt="SFG_type2PLL" class="gallery-image" data-flex-basis="736px" data-flex-grow="306" height="134" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/mathSFG_type2PLL.png" width="411"&gt;&lt;/p&gt;
&lt;p&gt;We are able to see 5 paths here and a simple loop. We defined 4 nodes, with 1 input node and 1 output node.&lt;/p&gt;
&lt;h3 id="the-formula"&gt;The Formula
&lt;/h3&gt;&lt;p&gt;Mason&amp;rsquo;s Gain Formula states the following:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;Mason&amp;rsquo;s Gain Formula&lt;/strong&gt;:&lt;/p&gt;
$$H(s) = \frac{\sum_{k=1}^{N} P_k \Delta_k}{\Delta}$$&lt;p&gt;where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$N$ is the number of forward paths from input to output&lt;/li&gt;
&lt;li&gt;$P_k$ is the path gain of the $k$-th forward path&lt;/li&gt;
&lt;li&gt;$\Delta$ is the determinant of the system: $\Delta = 1 - \sum L_i + \sum L_i L_j - \sum L_i L_j L_k + \ldots$
&lt;ul&gt;
&lt;li&gt;$\sum L_i$ is the sum of all individual loop gains&lt;/li&gt;
&lt;li&gt;$\sum L_i L_j$ is the sum of products of all pairs of non-touching loops&lt;/li&gt;
&lt;li&gt;$\sum L_i L_j L_k$ is the sum of products of all triplets of non-touching loops&lt;/li&gt;
&lt;li&gt;and so on&amp;hellip;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;$\Delta_k$ is the cofactor of the $k$-th forward path, obtained by removing all loops that touch the $k$-th path from $\Delta$&lt;/li&gt;
&lt;/ul&gt;

 &lt;/blockquote&gt;
&lt;h2 id="examples"&gt;Examples
&lt;/h2&gt;&lt;h3 id="a-type-2-charge-pump-pll"&gt;A Type 2 Charge Pump PLL
&lt;/h3&gt;&lt;p&gt;Let&amp;rsquo;s take the type-2 PLL system shown above for example.
&lt;img alt="SFG_type2PLL" class="gallery-image" data-flex-basis="736px" data-flex-grow="306" height="134" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/mathSFG_type2PLL.png" width="411"&gt;
In this example, there is 1 single loop, and only 1 forward path from input to output. Therefore, $N=1$, and:&lt;/p&gt;
$$\begin{align}
\Delta &amp;= 1 - L_1 = 1 + K_{PFD}I_{CP}(R + 1/sC)K_{VCO}/s / N \\
\Delta_1 &amp;= 1 \\
\displaystyle \Sigma_{k=1}^{N}P_k \Delta_k &amp;= K_{PFD}I_{CP}(R + 1/sC)K_{VCO}/s
\end{align}$$&lt;p&gt;Bear in mind that $\Delta_1 = 1$ because there is only one loop, and it does touch the forward path, therefore we remove the only contributing loop gain from $\Delta$.&lt;/p&gt;
&lt;p&gt;Thus, combining the terms together, we have the expression for the closed loop gain:&lt;/p&gt;
$$
H(s) = \frac{K_{PFD}I_{CP}(R + 1/sC)K_{VCO}/s}{1 + K_{PFD}I_{CP}(R + 1/sC)K_{VCO}/s / N}
$$&lt;p&gt;We realize that the loop gain is large when frequency is low, the loop gain dominates and $H(s) = N$, meaning the low-frequency phase noise of the PLL will be the reference times $N^2$. At high frequency, the loop gain dies out and $H(s) = 0$. Therefore the reference to output phase transfer function is a low-pass filter.&lt;/p&gt;
&lt;h3 id="a-triple-integrator-system"&gt;A Triple Integrator System
&lt;/h3&gt;&lt;p&gt;Now, let&amp;rsquo;s compute the transfer function of the SISO system below:&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="413px" data-flex-grow="172" height="595" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260425005413.png" srcset="http://blog.cedard.top/p/masons-gain-formula/math20260425005413_hu_f68ca9a9560fdc0.png 800w, http://blog.cedard.top/p/masons-gain-formula/math20260425005413.png 1024w" width="1024"&gt;&lt;/p&gt;
&lt;p&gt;We notice that there are 3 loops and 3 forwarded paths. Luckily, they all touch each other, which makes our calculation very simple.&lt;/p&gt;
$$
\begin{cases}
\Delta = 1 + a_1/s + a_2/s^2 + a_3/s^3 \\
p_1 = b1/s \\
\Delta_1 = 1 \\
p_2 = b2/s^2 \\
\Delta_2 = 1 \\
p_3 = b3/s^3 \\
\Delta_3 = 1
\end{cases}
$$&lt;p&gt;
Combining all the terms, we have&lt;/p&gt;
$$ \begin{align}
H(s) &amp;= \frac{b_1/s + b_2/s^2 + b_3/s^3}{1 + a_1/s + a_2/s^2 + a_3/s^3} \\
&amp;= \frac{b_1 s^2 + b_2 s + b_3}{s^3 + a_1 s^2 + a_2 s + a_3}
\end{align}
$$&lt;h2 id="canonical-forms"&gt;Canonical Forms
&lt;/h2&gt;&lt;p&gt;Doesn&amp;rsquo;t the last example have a very regular transfer function? This is actually intended.&lt;/p&gt;
&lt;p&gt;In a control system modeled in time domain, we have our system defined using state-space model:
&lt;/p&gt;
$$
\begin{align}
\dot{x}(t) &amp;= Ax(t) + Bu(t) \\
y(t) &amp;= Cx(t)
\end{align}
$$&lt;p&gt;
and we know that, if we perform Laplace transform, while assuming a 0 initial condition, we have
&lt;/p&gt;
$$ sX(s) = AX(s) + BU(s) $$&lt;p&gt;
Therefore, by algebraic manipulation, we have
&lt;/p&gt;
$$ Y(s)/U(s) = C(sI - A)^{-1}B $$&lt;p&gt;
Which is the transformation between state space model to transfer functions.&lt;/p&gt;
&lt;p&gt;Now, there could be only one transfer function for a state space model, but there could be infinite state space models for one simple transfer function. The general rule of thumb is that, the number of poles in a transfer function regulates the number of states in the corresponding state space model, because we need that many number of integrators. However, we could create more states (but those come with either constraints, or are redundant, meaning linearly independent of the pre-existing states).&lt;/p&gt;
&lt;p&gt;There are some state space models that are different from generic ones, if we generate from a transfer function. Here are some of them:&lt;/p&gt;
&lt;h3 id="controllable-canonical-form"&gt;Controllable Canonical Form
&lt;/h3&gt;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="320px" data-flex-grow="133" height="958" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260425010604.png" srcset="http://blog.cedard.top/p/masons-gain-formula/math20260425010604_hu_305b0b97de6ece2f.png 800w, http://blog.cedard.top/p/masons-gain-formula/math20260425010604.png 1280w" width="1280"&gt;&lt;/p&gt;
&lt;p&gt;We already encounter the controllable canonical form in the previous example.&lt;/p&gt;
&lt;p&gt;Controllable canonical form is a specific type of form because the generated state space model is always controllable. The state space model is given by:&lt;/p&gt;
$$
\begin{align}
\frac{d}{dt}X &amp;= \begin{pmatrix}
0 &amp; 1 &amp; 0 &amp; 0 &amp; \ldots &amp; 0 &amp; 0 \\
0 &amp; 0 &amp; 1 &amp; 0 &amp; \ldots &amp; 0 &amp; 0 \\
\vdots &amp; \vdots &amp; \vdots &amp; \vdots &amp; \ddots &amp; \vdots &amp; \vdots \\
0 &amp; 0 &amp; 0 &amp; 0 &amp; \ldots &amp; 1 &amp; 0 \\
-a_0 &amp; -a_1 &amp; -a_2 &amp; -a_3 &amp; \ldots &amp; -a_{n-1} &amp; -a_n
\end{pmatrix}X + \begin{pmatrix}
0 \\
0 \\
\vdots \\
0 \\
1
\end{pmatrix}U \\
Y &amp;= \begin{pmatrix}
b_0 &amp; b_1 &amp; b_2 &amp; \ldots &amp; b_n
\end{pmatrix}X
\end{align}
$$&lt;p&gt;According to Rudolf Kalman, the controllability matrix of the controllability canonical form is always going to be full rank. That&amp;rsquo;s why we call it controllable canonical form.&lt;/p&gt;
&lt;h3 id="observable-canonical-form"&gt;Observable Canonical Form
&lt;/h3&gt;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="322px" data-flex-grow="134" height="926" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260425012014.png" srcset="http://blog.cedard.top/p/masons-gain-formula/math20260425012014_hu_988c968d4da85244.png 800w, http://blog.cedard.top/p/masons-gain-formula/math20260425012014.png 1244w" width="1244"&gt;
Observability, the dual of controllability, also has its canonical form. Its state space model representation is given by:&lt;/p&gt;
$$
\begin{align}
\frac{d}{dt}X &amp;= \begin{pmatrix}
0 &amp; 0 &amp; 0 &amp; \ldots &amp; 0 &amp; -a_0 \\
1 &amp; 0 &amp; 0 &amp; \ldots &amp; 0 &amp; -a_1 \\
0 &amp; 1 &amp; 0 &amp; \ldots &amp; 0 &amp; -a_2 \\
0 &amp; 0 &amp; 1 &amp; \ldots &amp; 0 &amp; -a_3 \\
\vdots &amp; \vdots &amp; \vdots &amp; \ddots &amp; \vdots &amp; \vdots \\
0 &amp; 0 &amp; 0 &amp; \ldots &amp; 1 &amp; -a_{n-1}
\end{pmatrix}X + \begin{pmatrix}
b_0 \\
b_1 \\
b_2 \\
b_3 \\
\vdots \\
b_{n-1}
\end{pmatrix}U \\
Y &amp;= \begin{pmatrix}
0 &amp; 0 &amp; 0 &amp; \ldots &amp; 0 &amp; 1
\end{pmatrix}X
\end{align}
$$&lt;p&gt;If you take a closer look, you&amp;rsquo;ll notice that the observable canonical form is precisely the transpose of the controllable canonical form: $A_o = A_c^T$, $B_o = C_c^T$, and $C_o = B_c^T$. This is not a coincidence — it is a direct manifestation of the duality between controllability and observability. Taking the transpose of a state space realization preserves the transfer function, since
&lt;/p&gt;
$$
H(s) = C(sI - A)^{-1}B = \left[ B^T (sI - A^T)^{-1} C^T \right]^T
$$&lt;p&gt;
and the transfer function is a scalar for SISO systems, so the transpose is itself.&lt;/p&gt;
&lt;p&gt;By the dual of Kalman&amp;rsquo;s argument, the observability matrix of the observable canonical form is always full rank, which is why we call it the observable canonical form. Notice as well that, unlike the controllable form where the input coefficients $b_i$ are placed in the output matrix $C$, here they show up directly in the input matrix $B$. Each state $x_i$ accumulates a weighted contribution from $u(t)$ and feeds back through $-a_i$ to drive only the last state, which is then read out at the output. Reading the SFG above from right to left makes the structure obvious: it is the controllable canonical form with all arrows reversed.&lt;/p&gt;
&lt;h3 id="diagonal-form-and-jordan-form"&gt;Diagonal Form and Jordan Form
&lt;/h3&gt;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="302px" data-flex-grow="126" height="576" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260425012250.png" width="726"&gt;&lt;/p&gt;
&lt;p&gt;The controllable and observable canonical forms are built around the coefficients of the polynomials $a_i$ and $b_i$. The Jordan form takes a different approach: instead of starting from the polynomial coefficients, we start from the &lt;em&gt;poles&lt;/em&gt; of the transfer function. Performing partial fraction decomposition,&lt;/p&gt;
$$
H(s) = \frac{b_{n-1}s^{n-1} + \ldots + b_1 s + b_0}{(s - p_1)(s - p_2) \ldots (s - p_n)} = \sum_{i=1}^{n} \frac{r_i}{s - p_i}
$$&lt;p&gt;where $p_i$ are the poles and $r_i$ are the residues. Each first-order term $r_i/(s - p_i)$ corresponds to a single integrator with self-feedback $p_i$ and a gain $r_i$ at the output. The SFG above is exactly that — $n$ parallel branches, each with its own pole, all summed at the output.&lt;/p&gt;
&lt;p&gt;Stacking these parallel branches into a state space model gives the diagonal Jordan form (assuming distinct poles):&lt;/p&gt;
$$
\begin{align}
\frac{d}{dt}X &amp;= \begin{pmatrix}
p_1 &amp; 0 &amp; 0 &amp; \ldots &amp; 0 \\
0 &amp; p_2 &amp; 0 &amp; \ldots &amp; 0 \\
0 &amp; 0 &amp; p_3 &amp; \ldots &amp; 0 \\
\vdots &amp; \vdots &amp; \vdots &amp; \ddots &amp; \vdots \\
0 &amp; 0 &amp; 0 &amp; \ldots &amp; p_n
\end{pmatrix}X + \begin{pmatrix}
1 \\
1 \\
1 \\
\vdots \\
1
\end{pmatrix}U \\
Y &amp;= \begin{pmatrix}
r_1 &amp; r_2 &amp; r_3 &amp; \ldots &amp; r_n
\end{pmatrix}X
\end{align}
$$&lt;p&gt;Because $A$ is diagonal, the states are completely decoupled — each $x_i$ evolves independently as $\dot{x}_i = p_i x_i + u$, and the output is just a weighted sum of these modes. This makes the Jordan form particularly useful for analysis: the eigenvalues of $A$ are read off the diagonal, so stability is immediate (all $\text{Re}(p_i) &amp;lt; 0$), and each mode&amp;rsquo;s contribution to the output is exactly $r_i$.&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="327px" data-flex-grow="136" height="566" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/masons-gain-formula/math20260425012425.png" width="772"&gt;&lt;/p&gt;
&lt;p&gt;When poles are repeated, $A$ is no longer fully diagonalizable. For a pole $\lambda$ with multiplicity $k$, the corresponding diagonal block becomes a Jordan block:&lt;/p&gt;
$$
J_k(\lambda) = \begin{pmatrix}
\lambda &amp; 1 &amp; 0 &amp; \ldots &amp; 0 \\
0 &amp; \lambda &amp; 1 &amp; \ldots &amp; 0 \\
\vdots &amp; \vdots &amp; \ddots &amp; \ddots &amp; \vdots \\
0 &amp; 0 &amp; 0 &amp; \lambda &amp; 1 \\
0 &amp; 0 &amp; 0 &amp; 0 &amp; \lambda
\end{pmatrix}
$$&lt;p&gt;The superdiagonal of 1&amp;rsquo;s couples adjacent states within the block, which corresponds to terms of the form $r_{i,j}/(s - \lambda)^j$ in the partial fraction expansion. The overall $A$ matrix is still block-diagonal, with one Jordan block per distinct pole.&lt;/p&gt;
&lt;p&gt;Unlike the controllable and observable canonical forms — which are guaranteed to be controllable / observable by construction — the Jordan form is only controllable and observable when &lt;em&gt;all&lt;/em&gt; residues $r_i$ are nonzero and all poles are distinct. A zero residue corresponds to a pole-zero cancellation in $H(s)$, which means a mode that is either uncontrollable or unobservable (or both). In that sense, the Jordan form is the most honest of the three: it makes hidden modes visible rather than burying them in the structure.&lt;/p&gt;
&lt;h3 id="modified-form"&gt;Modified Form
&lt;/h3&gt;&lt;p&gt;It becomes even trickier if the original system&amp;rsquo;s poles are not on the real axis, but contains complex conjugate pairs. In this case, we can either sub in diagonal form with the complex entries, or we use what&amp;rsquo;s called the &amp;ldquo;modified form&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;modified Jordan form&lt;/strong&gt; (also known as the &lt;em&gt;real Jordan form&lt;/em&gt;) keeps the state space model entirely real-valued by replacing each pair of complex conjugate poles $p_i = \sigma \pm j\omega$ with a single $2 \times 2$ real block on the diagonal of $A$:&lt;/p&gt;
$$
\begin{pmatrix}
\sigma + j\omega &amp; 0 \\
0 &amp; \sigma - j\omega
\end{pmatrix} \quad \longrightarrow \quad \begin{pmatrix}
\sigma &amp; \omega \\
-\omega &amp; \sigma
\end{pmatrix}
$$&lt;p&gt;This block is similar to the diagonal complex form via the change of basis
&lt;/p&gt;
$$
T = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 &amp; 1 \\ j &amp; -j \end{pmatrix},
$$&lt;p&gt;
so the transfer function is preserved. Concretely, for a system whose poles consist of $m$ real poles $\lambda_1, \ldots, \lambda_m$ and $\ell$ complex conjugate pairs $\sigma_k \pm j\omega_k$, the modified form is&lt;/p&gt;
$$
A = \begin{pmatrix}
\lambda_1 &amp; &amp; &amp; &amp; &amp; &amp; \\
&amp; \ddots &amp; &amp; &amp; &amp; &amp; \\
&amp; &amp; \lambda_m &amp; &amp; &amp; &amp; \\
&amp; &amp; &amp; \sigma_1 &amp; \omega_1 &amp; &amp; \\
&amp; &amp; &amp; -\omega_1 &amp; \sigma_1 &amp; &amp; \\
&amp; &amp; &amp; &amp; &amp; \ddots &amp; \\
&amp; &amp; &amp; &amp; &amp; &amp; \begin{smallmatrix} \sigma_\ell &amp; \omega_\ell \\ -\omega_\ell &amp; \sigma_\ell \end{smallmatrix}
\end{pmatrix}
$$&lt;p&gt;The eigenvalues of each $2 \times 2$ block are exactly $\sigma_k \pm j\omega_k$, so spectral information is unchanged — we have only traded a complex diagonal representation for a real block-diagonal one. This is the form most software packages return by default, since real arithmetic is cheaper and avoids the bookkeeping of conjugate pairs. Repeated complex poles generalize to real Jordan blocks by replacing each scalar entry of the complex Jordan block with the corresponding $2 \times 2$ real block, and each superdiagonal $1$ with a $2 \times 2$ identity.&lt;/p&gt;
&lt;h2 id="where-were-we"&gt;Where were we?
&lt;/h2&gt;&lt;p&gt;We talked a lot about the famous Mason&amp;rsquo;s gain formula, and several canonical forms that we can use to represent linear time-invariant systems. Now going back to the original question: what&amp;rsquo;s the closed loop gain of the original system?&lt;/p&gt;
&lt;p&gt;Well, we do realize that the system had two loops, but they do touch; and the system has only one forward path. That makes our computation significantly easier.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s use some notations here. Let&amp;rsquo;s denote the forward gain as $F_1, F_2$ and the loop gains as $L_1, L_2$. From basic analog circuit theory, we have:
&lt;/p&gt;
$$
\begin{align}
F_1 &amp;= -\frac{g_{m1}R_{d_1}}{1 + g_{m1}R_{d_1}||1/sC_1} \\
F_2 &amp;= \frac{g_{m2}R_{s2}}{1 + g_{m2}R_{s2}} \\
L_1 &amp;= (G_m R_{gate} || R_{g1} || R_{g2} F_1) \\
L_2 &amp;= (-g_{mp} R_{gate} || R_{g1} || R_{g2} ) F_1 F_2
\end{align}
$$&lt;p&gt;
And finally, our closed loop gain:&lt;/p&gt;
$$
\frac{V_{out}}{V_{in}}(s) = \frac{F_1F_2}{1 + L_1 + L_2}
$$&lt;p&gt;This looks a lot faster compared to manually breaking down all expressions.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;I would like to point out at the end of this article that the original circuit is unstable, because both loop gains are positive. Unless the loop determinant is strictly positive in real part, the circuit will be unstable.&lt;/p&gt;</description></item><item><title>Steady-state Error, part 0</title><link>http://blog.cedard.top/p/steady-state-error-0/</link><pubDate>Thu, 16 Apr 2026 22:08:25 +0800</pubDate><guid>http://blog.cedard.top/p/steady-state-error-0/</guid><description>&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;I started to have the very first question regarding &amp;ldquo;steady-state error&amp;rdquo; when I was a sophomore. I still recall the first class in EE2002: Analog Electronics when the professor introduced the very first Operational Amplifier, and here is what he said:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;&amp;ldquo;An Operational Amplifier, or an OpAmp, is a circuit that has infinite gain, infinite input impedance, and 0 output impedance.&amp;rdquo;&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;I was very confused back then. Out from all the 3 properties, the most counterintuitive one was the &amp;ldquo;infinite gain&amp;rdquo; property. I can still understand the engineering approximation of infinite input impedance due to CMOS nature, and 0 output impedance if you treat the output as a current source, but infinite gain doesn&amp;rsquo;t make any sense. For the next few classes, I learned that infinite gain of the OpAmp allows feedback structure to kick in, so that it can provide a gain per the feedback impedance structure.&lt;/p&gt;
&lt;p&gt;&lt;img alt="unit buffer made from an ideal OpAmp" class="gallery-image" data-flex-basis="474px" data-flex-grow="197" height="92" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-0/mathideal_opamp.png" width="182"&gt;&lt;/p&gt;
&lt;p&gt;However, I feel that something is off here but I can&amp;rsquo;t quite put my finger on it. I didn&amp;rsquo;t quite get the correct terminology until I turned into a junior when I was taking EE3019: Integrated Electronics when we were introduced feedback in a more well-defined way, and I become aware that there is a term called &amp;ldquo;steady-state error&amp;rdquo; that defines the difference between the desired settling value versus the actual settled value. I feel like, yes, this is the correct word I&amp;rsquo;ve been looking for.&lt;/p&gt;
&lt;p&gt;I came across this once again when I started my PhD and started to design what&amp;rsquo;s called &amp;ldquo;Phase-Locked Loops (PLLs)&amp;rdquo;, a specific feedback structure that&amp;rsquo;s used to amplify a clean clock. I came across two different terms now: &lt;em&gt;Type-1 and Type-2 PLLs&lt;/em&gt;. (I doubt whether a lot of PLL designers can actually tell the difference between the two). Interestingly enough, the textbook, nor the slides talk anything about why it&amp;rsquo;s named type-1 or type-2, as if it&amp;rsquo;s just a naming convention.&lt;/p&gt;
&lt;p&gt;I wasn&amp;rsquo;t 100% clear on this matter until I took MEC237: linear control where I was introduced the book: &lt;em&gt;Control System Engineering&lt;/em&gt; by Norman Nise, and looking into the book actually helped me understand the entire steady-state error theory.&lt;/p&gt;
&lt;h2 id="the-problem-setup"&gt;The Problem Setup
&lt;/h2&gt;&lt;p&gt;Let&amp;rsquo;s go back and give the problem intuition. Suppose we have an OpAmp, and we would like to use it as a voltage follower, so we configure it like it&amp;rsquo;s a unit buffer:&lt;/p&gt;
&lt;p&gt;&lt;img alt="ideal_opamp" class="gallery-image" data-flex-basis="474px" data-flex-grow="197" height="92" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-0/mathideal_opamp.png" width="182"&gt;&lt;/p&gt;
&lt;p&gt;Elementary analog circuit professor will tell you that because an ideal OpAmp has infinite gain, and it will always make sure both inputs are equal to each other.
&lt;strong&gt;WRONG&lt;/strong&gt;.
There are at least two very hand-wavy explanation here:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The assumption of infinite gain is an idealization that doesn&amp;rsquo;t hold in practice.&lt;/li&gt;
&lt;li&gt;The infinite gain assumption also doesn&amp;rsquo;t explain why it will make two inputs equal to each other.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In reality, the OpAmp&amp;rsquo;s gain depends on the transconductance gain $g_m$ and the loading impedance $R$, and we define our open loop gain to be
&lt;/p&gt;
$$ A = g_m R$$&lt;p&gt;&lt;img alt="real_OTA" class="gallery-image" data-flex-basis="474px" data-flex-grow="197" height="92" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-0/mathreal_OTA.png" width="182"&gt;&lt;/p&gt;
&lt;p&gt;For the OpAmp connected in the abovementioned way, the small signal relationship between the input and output is given by:&lt;/p&gt;
$$ V_{out} = A(V_+ - V_-) $$&lt;p&gt;where $V_+$ and $V_-$ are the voltages at the non-inverting and inverting inputs, respectively.&lt;/p&gt;
&lt;p&gt;Now we try to use that relationship to analyze the behavior of the unit buffer. We realize that here we have $V_- = V_{out}$, so solving the equation we have:&lt;/p&gt;
$$
 V_{out} = A(V_{in} - V_{out}) \\
 V_{out} = \frac{A}{1+A} V_{in}
$$&lt;p&gt;Now, if we find the transfer function from input to output, we identify&lt;/p&gt;
$$ H(s) = \frac{V_{out}(s)}{V_{in}(s)} = \frac{A}{1+A} \neq 1 $$&lt;p&gt;which basically means that the output is going to be just slightly smaller compared to the input.&lt;/p&gt;
&lt;p&gt;The reason we would like to make our amplifier to be infinite gain is that, if $A \to \infty$, we easily have&lt;/p&gt;
$$
H(s) = \lim_{A \to \infty} \frac{A}{1+A} = 1
$$&lt;p&gt;which means that the output will approach the input as the gain approaches infinity; otherwise there will be an error term between the real output versus the desired output, which is given by&lt;/p&gt;
$$ \begin{align}
\Delta V &amp;= V_{out,desired} - V_{out,real} \\
&amp;= V_{in} - V_{out,real} \\
&amp;= V_{in} - \frac{A}{1+A} V_{in} \\
&amp;= \frac{1}{1+A} V_{in}
\end{align}
$$&lt;p&gt;
We can conclude two things from this expression:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The error is inversely proportional to $(1+A)$. The larger the gain is, the smaller the error is. However, if the gain is finite, no matter what non-zero input we see, the output can never achieve the desired value.&lt;/li&gt;
&lt;li&gt;The larger the input voltage is, the larger the error is.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We call the error value between the desired and actual output the &lt;strong&gt;steady-state error&lt;/strong&gt;. This phenomenon happens in closed-loop systems where we would like to control a control plant to approach a value that we want, in this example, the OpAmp is both a controller, a control plant and a detector.&lt;/p&gt;
&lt;p&gt;Now, the question becomes if we are able to reduce this error at all.&lt;/p&gt;
&lt;h2 id="the-temporary-elixir-a-capacitor"&gt;The Temporary Elixir: A Capacitor
&lt;/h2&gt;&lt;p&gt;The fix is surprisingly simple. We replace the resistor with a pure capacitor:&lt;/p&gt;
&lt;p&gt;&lt;img alt="gmC_integrator" class="gallery-image" data-flex-basis="474px" data-flex-grow="197" height="92" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-0/mathgmC_integrator.png" width="182"&gt;&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s do a time-domain calculation here first. Let&amp;rsquo;s assume the output current of the $g_m$ cell is defined as $i$, then we have the relationship between $V_{out}$ and $i$:&lt;/p&gt;
$$
\begin{align}
i &amp;= g_m (V_{in} - V_{out}) \\
i &amp;= C\frac{dV_{out}}{dt}
\end{align}
$$&lt;p&gt;This ODE is not too hard to solve by hand. Assume a 0 initial condition on $V_{out}$, we have&lt;/p&gt;
$$
V_{out} = V_{in} (1 - e^{-\frac{g_m t}{C}})
$$&lt;p&gt;
&lt;img alt="step response" class="gallery-image" data-flex-basis="403px" data-flex-grow="168" height="1762" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-0/math20260416232959.png" srcset="http://blog.cedard.top/p/steady-state-error-0/math20260416232959_hu_a59ede0fc133f055.png 800w, http://blog.cedard.top/p/steady-state-error-0/math20260416232959_hu_4af9ebfbf8f01a79.png 1600w, http://blog.cedard.top/p/steady-state-error-0/math20260416232959_hu_4b2431d191cd5b3c.png 2400w, http://blog.cedard.top/p/steady-state-error-0/math20260416232959.png 2964w" width="2964"&gt;&lt;/p&gt;
&lt;p&gt;The assumption that we had initial condition 0 is equivalent to say that, if we provide a step response at the input, the output looks like an exponential decay curve that gradually goes to the input voltage. If we let $t \to \infty$, then we can easily see that
&lt;/p&gt;
$$
\lim_{t \to \infty} V_{out} = V_{in}
$$&lt;p&gt;
Nothing too fancy here; however, let&amp;rsquo;s move one step further; how about it if my input is not a step function, but a ramp function?&lt;/p&gt;
&lt;h2 id="ramp-response"&gt;Ramp Response
&lt;/h2&gt;&lt;p&gt;Same circuit, but now my $V_{in} = t$. What happens to $V_{out}$?
The ODE now becomes:&lt;/p&gt;
$$
\begin{align}
V_{in}(t) &amp;= t \\
i &amp;= g_m (V_{in}(t) - V_{out}) \\
i &amp;= C\frac{dV_{out}}{dt}
\end{align}
$$&lt;p&gt;Again, we can solve the ODE system by direct integration. This gives us:
&lt;/p&gt;
$$
V_{out}(t) = t - \tau + \tau e^{-\frac{t}{\tau}}
$$&lt;p&gt;where $\tau = \frac{C}{g_m}$.&lt;/p&gt;
&lt;p&gt;Interestingly, if we now consider the steady-state error as a function of time, we have&lt;/p&gt;
$$
\begin{align}
e(t) &amp;= V_{in}(t) - V_{out}(t) \\
&amp;= t - (t - \tau + \tau e^{-\frac{t}{\tau}}) \\
&amp;= \tau - \tau e^{-\frac{t}{\tau}} \\
&amp;= \tau(1 - e^{-\frac{t}{\tau}})
\end{align}
$$&lt;p&gt;As $t \to \infty$, unfortunately the error doesn&amp;rsquo;t die out, which would be what we have seen for a step response case. We show the plotting here as well:&lt;/p&gt;
&lt;p&gt;&lt;img alt="ramp response" class="gallery-image" data-flex-basis="288px" data-flex-grow="120" height="3000" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/steady-state-error-0/math20260416234125.png" srcset="http://blog.cedard.top/p/steady-state-error-0/math20260416234125_hu_5db1c83cca21ee7e.png 800w, http://blog.cedard.top/p/steady-state-error-0/math20260416234125_hu_43160745907aa458.png 1600w, http://blog.cedard.top/p/steady-state-error-0/math20260416234125_hu_c21e31fd571903b3.png 2400w, http://blog.cedard.top/p/steady-state-error-0/math20260416234125.png 3600w" width="3600"&gt;&lt;/p&gt;
&lt;p&gt;In fact, we will see in later parts of this series, step input is called a &amp;ldquo;type-0&amp;rdquo; input, and ramp input is called a &amp;ldquo;type-1&amp;rdquo; input. The original R-loaded OpAmp is called a &amp;ldquo;type-0&amp;rdquo; system, and the C-loaded improved OpAmp is called a &amp;ldquo;type-1&amp;rdquo; system.&lt;/p&gt;
&lt;p&gt;In the next section, we will introduce some very useful mathematics tool to help us analyze the system without solving the ODE every single time.&lt;/p&gt;</description></item><item><title>Poisson Point Process (PPP) and Bit Error Rate (BER)</title><link>http://blog.cedard.top/p/poisson-process/</link><pubDate>Mon, 13 Apr 2026 21:42:59 +0800</pubDate><guid>http://blog.cedard.top/p/poisson-process/</guid><description>&lt;p&gt;I realize when I&amp;rsquo;m sharing my knowledge with my colleagues, they are largely not Chinese users. Therefore I&amp;rsquo;ll try to mark tech-related things down in English starting from today, in my blog.&lt;/p&gt;
&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;I was taking &lt;a class="link" href="https://undergraduate.catalog.berkeley.edu/courses/1220251" target="_blank" rel="noopener"
 &gt;STAT150&lt;/a&gt; last semester from UC Berkeley. Although the teaching wasn&amp;rsquo;t as engaging as I wished for, I was able to grasp most of the useful key concepts. One of the very useful mathematical models was the Poisson point process.&lt;/p&gt;
&lt;p&gt;I encountered this process once again when I was doing my link measurement, when we were supposed to benchmark the chip&amp;rsquo;s bit error rate.&lt;/p&gt;
&lt;p&gt;Here are two questions that arise from this:&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;ol&gt;
&lt;li&gt;If a link has a bit error rate of $10^{-15}$, what does this mean?
&lt;ul&gt;
&lt;li&gt;Does this mean that if I send $10^{15}$ bits, I&amp;rsquo;m likely to see 1 error, or I&amp;rsquo;m likely to see some error?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If I were to benchmark a link&amp;rsquo;s performance, how many bits should I send in order to confidently say that the link has a BER less than $10^{-15}$?
&lt;ul&gt;
&lt;li&gt;Does sending $10^{15}$ bits and observing no error suffice?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

 &lt;/blockquote&gt;
&lt;p&gt;Without giving direct answers to both questions, let&amp;rsquo;s review some fundamentals.&lt;/p&gt;
&lt;h2 id="poisson-distribution"&gt;Poisson Distribution
&lt;/h2&gt;&lt;p&gt;We give the formal definition of a 1D Poisson distribution here.&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;Definition (Poisson Distribution):&lt;/strong&gt;
A random variable $X$ follows a Poisson distribution with parameter $\lambda &amp;gt; 0$, denoted $X \sim \text{Poisson}(\lambda)$, if its probability mass function (PMF) is given by:&lt;/p&gt;
$$
&gt; \begin{align}
&gt; P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}, \quad k = 0, 1, 2, \ldots
&gt; \end{align}
&gt; $$&lt;p&gt;where $k!$ denotes the factorial of $k$.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key Properties:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The mean and variance of a Poisson distribution are both equal to the parameter $\lambda$:&lt;/p&gt;
$$
\begin{align}
E[X] &amp;= \lambda \\
\text{Var}(X) &amp;= \lambda
\end{align}
$$&lt;p&gt;&lt;strong&gt;Intuitive Interpretation:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Poisson distribution models the number of events occurring in a fixed interval of time or space, given that events occur independently at a constant average rate. The parameter $\lambda$ represents the expected number of events in that interval.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Common Applications:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Number of arrivals in a queue during a time period&lt;/li&gt;
&lt;li&gt;Number of photons detected by a sensor in a fixed duration&lt;/li&gt;
&lt;li&gt;Number of errors in a data transmission over a fixed number of bits&lt;/li&gt;
&lt;li&gt;Number of radioactive decays in a given time window&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="poisson-point-process"&gt;Poisson Point Process
&lt;/h2&gt;
 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;Definition (Poisson Point Process):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A Poisson point process (PPP) with rate (or intensity) $\lambda &amp;gt; 0$ is a stochastic process ${N(t) : t \geq 0}$ that counts the number of events occurring in the time interval $[0, t]$. It satisfies the following properties:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Independent Increments:&lt;/strong&gt; For any non-overlapping intervals $[t_1, t_2)$ and $[t_3, t_4)$ with $t_2 \leq t_3$, the number of events in these intervals are independent random variables.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Stationary Increments:&lt;/strong&gt; The distribution of the number of events in any interval depends only on the length of that interval, not on its starting time. Specifically, for any $t &amp;gt; 0$ and $s \geq 0$:
&lt;/p&gt;
$$
&gt; \begin{align}
&gt; N(s + t) - N(s) \sim \text{Poisson}(\lambda t)
&gt; \end{align}
&gt; $$&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;No Multiple Events:&lt;/strong&gt; The probability of more than one event occurring in an infinitesimal time interval $dt$ is negligible, i.e., $o(dt)$.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Initial Condition:&lt;/strong&gt; $N(0) = 0$.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

 &lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Counting Process Characterization:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For a Poisson point process with rate $\lambda$, the number of events $N(t)$ in a time interval $[0, t]$ follows a Poisson distribution:&lt;/p&gt;
$$
\begin{align}
P(N(t) = k) = \frac{(\lambda t)^k e^{-\lambda t}}{k!}, \quad k = 0, 1, 2, \ldots
\end{align}
$$&lt;p&gt;The expected number of events in time $t$ is:&lt;/p&gt;
$$
\begin{align}
E[N(t)] = \lambda t
\end{align}
$$&lt;p&gt;&lt;strong&gt;Inter-arrival Times:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;An important consequence of the Poisson point process is that the time intervals between consecutive events (inter-arrival times) are independent and exponentially distributed with rate $\lambda$. If $T_i$ denotes the time until the $i$-th event, then:&lt;/p&gt;
$$
\begin{align}
T_i \sim \text{Exponential}(\lambda), \quad f(t) = \lambda e^{-\lambda t}, \quad t \geq 0
\end{align}
$$&lt;p&gt;&lt;strong&gt;Condition on Event Count:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If we know $N(t) = k$, the positions of the $k$ events in the interval $[0, t]$ are distributed as independent and uniformly on $[0, t]$.&lt;/p&gt;
&lt;h2 id="how-does-this-relate-to-bit-error-rate"&gt;How does this relate to bit error rate?
&lt;/h2&gt;&lt;p&gt;If we operate a link, whether it will yield an error depends on whether the random jitter exceeds the eye width, thus we sample the incorrect data. Random jitter, however, follows a Gaussian distribution. If we assume the clock is centered at the quadrature point, and the eye width happens to be $6\sigma$, then we immediately arrive at the conclusion that the probability of success is $99.6%$. Given the clock is usually from a PLL whose jitter profile is a stationary process (after observing longer than the loop constant), we can safely say between symbols, the error probability is independent. Of course this is a very crude assumption because factors such as inter-symbol interference from a low-pass channel are not taken into account, but for simplicity let&amp;rsquo;s move forward with this assumption.&lt;/p&gt;
&lt;p&gt;A quick note is that an open loop oscillator&amp;rsquo;s jitter sequence is not a stationary process; it&amp;rsquo;s a random walk. Meaning if we observe long enough, the oscillator&amp;rsquo;s phase deviation will grow unbounded. In the time domain, the jitter is just the instantaneous standard deviation, which grows over time.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Jitter Accumulation" class="gallery-image" data-flex-basis="306px" data-flex-grow="127" height="199" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/poisson-process/math20260413221200.png" width="254"&gt;&lt;/p&gt;
&lt;p&gt;Now, if we observe 10 such samples, each of them has independent success probability of $99.6%$, it shouldn&amp;rsquo;t be hard to see that the probability of all 10 samples being successful is $(0.996)^{10}$. The probability of having 1 error will be if one of them is having an error, and all others are successful. To extend this result, the error profile should follow a binomial distribution:&lt;/p&gt;
$$
\begin{align}
\text{Error} \sim \text{Bin}(N, p)
\end{align}
$$&lt;p&gt;where $N$ is the number of bits sent, and $p$ is the probability of error for each bit.&lt;/p&gt;
&lt;p&gt;This whole story now sounds like we are flipping an uneven coin every single time, and the total error count follows a binomial distribution. How does this relate to Poisson process?&lt;/p&gt;
&lt;h2 id="law-of-rare-events"&gt;Law of Rare Events
&lt;/h2&gt;
 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;Theorem (Law of Rare Events, Poisson Limit Theorem):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let $X_n \sim \text{Bin}(n, p_n)$ be a sequence of binomial random variables where $n \to \infty$ and $p_n \to 0$ such that $n \cdot p_n \to \lambda$ for some constant $\lambda &amp;gt; 0$. Then:&lt;/p&gt;
$$
&gt; \begin{align}
&gt; \lim_{n \to \infty} P(X_n = k) = \frac{\lambda^k e^{-\lambda}}{k!}, \quad k = 0, 1, 2, \ldots
&gt; \end{align}
&gt; $$&lt;p&gt;In other words, $X_n \xrightarrow{d} X$ where $X \sim \text{Poisson}(\lambda)$.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Intuitive Explanation:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Law of Rare Events states that when we have a large number of independent trials, each with a very small probability of success, the number of successes approximately follows a Poisson distribution. The key condition is that the product $n \cdot p$ (the expected number of events) remains constant as $n$ increases and $p$ decreases.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Practical Implications for Bit Error Rate:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In our BER context:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$N$ is very large (number of bits transmitted)&lt;/li&gt;
&lt;li&gt;$p$ is very small (bit error probability, e.g., $10^{-15}$)&lt;/li&gt;
&lt;li&gt;The product $\lambda = N \cdot p$ is the expected number of bit errors&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Why This Matters:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Computing probabilities with a binomial distribution requires calculating factorials and large powers, which is computationally expensive. The Poisson approximation provides:&lt;/p&gt;
$$
\begin{align}
P(\text{Error count} = k) \approx \frac{(Np)^k e^{-Np}}{k!}
\end{align}
$$&lt;p&gt;This is much simpler to work with, especially for answering our original questions about BER testing.&lt;/p&gt;
&lt;h2 id="to-answer-the-two-ber-related-questions"&gt;To Answer the Two BER-Related Questions
&lt;/h2&gt;&lt;p&gt;Now, let&amp;rsquo;s answer the two questions we had from the beginning.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Question 1: If a link has BER = $10^{-15}$, what does this mean?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This means that, on average, we expect 1 error for every $10^{15}$ bits transmitted. In other words, the probability of any single bit being in error is $10^{-15}$. However, it&amp;rsquo;s totally possible that we receive 0 errors, 2 errors, 3 errors, and if you get super unlucky, all your received bits are erroneous, but this is super, super, super, super unlikely, although the probability is not zero.&lt;/p&gt;
&lt;p&gt;We use the following table to illustrate the probabilities of different error counts when we send exactly $10^{15}$ bits with BER = $10^{-15}$:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Error Count $k$&lt;/th&gt;
					&lt;th&gt;$P(\text{Error} = k)$&lt;/th&gt;
					&lt;th&gt;Cumulative Probability&lt;/th&gt;
					&lt;th&gt;Notes&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;$e^{-1} \approx 0.3679$&lt;/td&gt;
					&lt;td&gt;36.79%&lt;/td&gt;
					&lt;td&gt;No errors observed&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;1&lt;/td&gt;
					&lt;td&gt;$e^{-1} \approx 0.3679$&lt;/td&gt;
					&lt;td&gt;73.58%&lt;/td&gt;
					&lt;td&gt;Exactly 1 error&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;2&lt;/td&gt;
					&lt;td&gt;$\frac{1}{2}e^{-1} \approx 0.1839$&lt;/td&gt;
					&lt;td&gt;89.97%&lt;/td&gt;
					&lt;td&gt;Exactly 2 errors&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;3&lt;/td&gt;
					&lt;td&gt;$\frac{1}{6}e^{-1} \approx 0.0613$&lt;/td&gt;
					&lt;td&gt;96.10%&lt;/td&gt;
					&lt;td&gt;Exactly 3 errors&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;4&lt;/td&gt;
					&lt;td&gt;$\frac{1}{24}e^{-1} \approx 0.0153$&lt;/td&gt;
					&lt;td&gt;98.63%&lt;/td&gt;
					&lt;td&gt;Exactly 4 errors&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;5&lt;/td&gt;
					&lt;td&gt;$\frac{1}{120}e^{-1} \approx 0.0031$&lt;/td&gt;
					&lt;td&gt;99.94%&lt;/td&gt;
					&lt;td&gt;Exactly 5 errors&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;$\geq 6$&lt;/td&gt;
					&lt;td&gt;$\approx 0.0006$&lt;/td&gt;
					&lt;td&gt;$\geq 99.94%$&lt;/td&gt;
					&lt;td&gt;6 or more errors&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Interpretation:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;With $\lambda = 10^{15} \times 10^{-15} = 1$, the error count follows a Poisson distribution with parameter $\lambda = 1$. The table reveals several surprising facts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Zero errors are most likely:&lt;/strong&gt; There&amp;rsquo;s a 36.79% chance of observing no errors at all!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One error is equally likely:&lt;/strong&gt; One error is also expected with 36.79% probability.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multiple errors are possible:&lt;/strong&gt; There&amp;rsquo;s a 27.4% chance of observing 2 or more errors.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This directly answers your first question: sending $10^{15}$ bits with BER $10^{-15}$ &lt;strong&gt;does NOT guarantee&lt;/strong&gt; you&amp;rsquo;ll see exactly 1 error. You&amp;rsquo;re actually more likely to see either 0 or 1 error, with roughly equal probability.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Question 2: How many bits should I send to confidently establish BER &amp;lt; $10^{-15}$?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is more complex and requires statistical hypothesis testing. However, we can provide some intuition using the Poisson model.&lt;/p&gt;
&lt;p&gt;If we observe 0 errors after sending $N$ bits, what can we claim about the BER? Using the Poisson approximation with $\lambda = N \cdot p$:&lt;/p&gt;
$$
\begin{align}
P(\text{0 errors observed} \mid \text{true BER} = p) = e^{-Np}
\end{align}
$$&lt;p&gt;Now, here comes a concept called &amp;ldquo;confidence level.&amp;rdquo; Confidence level means the probability of getting ourselves right. For example, if we want to confirm our bit error rate is &amp;lt;1e-15, but we only send 10 bits and see 0 errors, the confidence that I can safely say my bit error rate is &amp;lt;1e-15 is very low. However if I send 1e27 bits and I see 0 error so far, I can very confidently say that the link has BER &amp;lt;1e-15.&lt;/p&gt;
&lt;p&gt;Then, how do we set our confidence level? What does this mean intuitively? Let&amp;rsquo;s take it the contrapositive way:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If I know my bit error rate = 1e-15, that means if I send 3e15 bits, it&amp;rsquo;s 95% probable that I&amp;rsquo;ll see at least 1 error.&lt;/li&gt;
&lt;li&gt;The contrapositive of the above statement is that, if I observe 0 errors after sending 3e15 bits, I can be 95% confident that the true BER is less than 1e-15.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The math is shown below:&lt;/p&gt;
$$
\begin{align}
e^{-Np} &amp;= 0.05 \\
-Np &amp;= \ln(0.05) \\
Np &amp;\approx 2.996 \approx 3
\end{align}
$$&lt;p&gt;This means to claim BER &amp;lt; $10^{-15}$ with 95% confidence after observing zero errors, we need:&lt;/p&gt;
$$
\begin{align}
N \cdot 10^{-15} &amp;= 3 \\
N &amp;= 3 \times 10^{15}
\end{align}
$$&lt;p&gt;&lt;strong&gt;So the answer to Question 2 is: No, sending $10^{15}$ bits and observing no error does NOT suffice.&lt;/strong&gt; You would need to send approximately $3 \times 10^{15}$ bits to claim with 95% confidence that the BER is less than $10^{-15}$.&lt;/p&gt;
&lt;h2 id="beyond-raw-ber-testing"&gt;Beyond Raw BER testing
&lt;/h2&gt;&lt;p&gt;SiTime has this useful &lt;a class="link" href="https://www.sitime.com/support/design-development-tools/ber-confidence-level-calculator" target="_blank" rel="noopener"
 &gt;webpage&lt;/a&gt; to calculate the experiment time based on the required confidence level and desired accuracy.&lt;/p&gt;
&lt;p&gt;In real practice, sending 1e27 bits is usually not physically possible. Take a 256Gbps parallel link for example, 1e27 bits testing will take 3.9e15 seconds, meaning 1e12 hours, meaning 123 million years to complete. I am not sure if human civilization will still exist by then. Therefore instead, people assume a jitter profile (DJ+RJ), for example dual dirac + Gaussian, and use only RJ component to estimate the true bit error rate. This is also known as the bathtub method.&lt;/p&gt;</description></item><item><title>主动滤波器(9)：频率变换(4)</title><link>http://blog.cedard.top/p/active-filter-9/</link><pubDate>Mon, 25 Aug 2025 22:17:53 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-9/</guid><description>&lt;p&gt;在频率变换（3）里，我们证明了频率变换（1）里直觉性的推导实际上是充分必要的解。基于我们的证明，我们提出了几种基本的从低通滤波器衍生其他三种高通，带通和带阻滤波器的方法。&lt;/p&gt;
&lt;p&gt;除了这三种简单的频率变换之外，这一节我们讨论几种特殊的频率变换方法。&lt;/p&gt;
&lt;h2 id="理查变换-the-richards-transformation"&gt;理查变换 (The Richard&amp;rsquo;s Transformation)
&lt;/h2&gt;&lt;p&gt;假如说我们想要把一个低通滤波器变成一个带通滤波器，但是这个带通滤波器要有周期性响应，如下图：
&lt;img class="gallery-image" data-flex-basis="705px" data-flex-grow="294" height="650" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-9/math20250825223308.png" srcset="http://blog.cedard.top/p/active-filter-9/math20250825223308_hu_5ee881064d6e7c24.png 800w, http://blog.cedard.top/p/active-filter-9/math20250825223308_hu_41a408ae04b27c52.png 1600w, http://blog.cedard.top/p/active-filter-9/math20250825223308.png 1912w" width="1912"&gt;&lt;/p&gt;
&lt;p&gt;在图中，我们将原本带宽为1 rad/s的低通滤波器变换为中心频率为π，2π&amp;hellip;以及π的整数倍的带通滤波器。我们该如何实现这种滤波器？&lt;/p&gt;
&lt;p&gt;根据频率变换（1）里讲的两条基本原则：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;零点映射&lt;/strong&gt;：$\omega = 0$必须移动到$f(\omega) = 0$，也就是说$\omega$的零点必须移动到$f(\omega)$的零点&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点映射&lt;/strong&gt;：$\omega = \infty$必须移动到$f(\omega) = \infty$，也就是说$\omega$的极点必须移动到$f(\omega)$的极点&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;我们知道，这个变换的零点一定在$0$, $\pm \pi, \pm 2\pi, \ldots, k\pi $的位置上，而变换的极点一定在$\pm \frac{\pi}{2}, \pm \frac{3\pi}{2}, \ldots, (2k+1)\frac{\pi}{2}$的位置上$k \in \mathbb{Z}$。&lt;/p&gt;
&lt;p&gt;也就是说，我们的变换应该满足这样的形式：&lt;/p&gt;
$$ \begin{aligned}
f(\omega) &amp;= \frac{l \omega (\omega^2 - \pi^2)(\omega^2 - (2\pi)^2)\ldots}{(\omega^2 - (\frac{\pi}{2})^2)(\omega^2 - (\frac{3\pi}{2})^2)\ldots} \\
&amp;= l_1\frac{[\omega(1-\frac{\omega}{\pi}^2)(1-\frac{\omega}{(2\pi)}^2)\ldots(1-\frac{\omega}{(k\pi)}^2)]}{[(1-\frac{\omega}{(\frac{\pi}{2})}^2)(1-\frac{\omega}{(\frac{3\pi}{2})}^2)\ldots(1 - \frac{\omega}{k\pi + \frac{\pi}{2}}^2)]}
\\
&amp;= l_1 \frac{\displaystyle\prod_{k=0}^{\infty}\omega(1 - \frac{\omega}{(k\pi)}^2)}{\displaystyle\prod_{k=1}^{\infty}(1 - \frac{\omega}{(k\pi + \frac{\pi}{2})}^2)}
\end{aligned} $$&lt;p&gt;实际上，如果我们绘制分子这个无限乘积，它看起来就像：
&lt;img class="gallery-image" data-flex-basis="710px" data-flex-grow="296" height="416" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-9/math20250825232402.png" srcset="http://blog.cedard.top/p/active-filter-9/math20250825232402_hu_d07aad691b2a20e8.png 800w, http://blog.cedard.top/p/active-filter-9/math20250825232402.png 1232w" width="1232"&gt;&lt;/p&gt;
&lt;p&gt;事实上，&lt;a class="link" href="https://en.wikipedia.org/wiki/Sinc_function#:~:text=The%20normalized%20sinc%20function%20has%20a%20simple%20representation%20as%20the%20infinite%20product%3A" target="_blank" rel="noopener"
 &gt;欧拉告诉我们&lt;/a&gt;这两个无限乘积都是三角函数：&lt;/p&gt;
$$ \begin{aligned}
\sin(\omega) &amp;= \prod_{k=1}^{\infty}\omega(1 - \frac{\omega}{(k\pi)}^2) \\
\cos(\omega) &amp;= \prod_{k=0}^{\infty}(1 - \frac{\omega}{(k\pi + \frac{\pi}{2})}^2)
\end{aligned} $$&lt;p&gt;因此，我们有：&lt;/p&gt;
$$ f(\omega) = l_1 \frac{\sin(\omega)}{\cos(\omega)} = l_1 \tan(\omega) $$&lt;p&gt;
如果我们把复频率换回普通的频率：&lt;/p&gt;
$$\begin{aligned}
f(s) = f(j\omega) &amp;= jl_1 \tan(\omega) \\
&amp;= jl_1 \tan(\frac{s}{j}) = l_1 \tanh (s)
\end{aligned}
$$&lt;p&gt;
由于我们把$\omega \rightarrow l_1 \tan \omega$, 因此如果截止频率为1，那么新的截止频率满足$1 = l_1 \tan(\omega_{\text{bw}}) $，也就是说如果指定一个新的截止频率，$ s \rightarrow \frac{\tanh s}{\tan \omega_{\text{bw}}}$. 如果我们不想要在$\pi$的通带中心点，我们则可以使用放缩。因此，最后的变换公式为：&lt;/p&gt;
$$ s \rightarrow \frac{\tanh \frac{s\pi}{\omega_{0}}}{\tan \omega_{\text{bw}}} $$&lt;h3 id="电路实现"&gt;电路实现
&lt;/h3&gt;&lt;p&gt;为了简单起见，我们不改变截止频率，只改变中心频率，那么$ s \rightarrow l_1 \tanh \frac{s\pi}{\omega_{0}} $. 在此变换下，一个电感$sL$将会变换成一个$Ll_1\tanh(\frac{s\pi}{\omega_{0}})$.那么问题来了，我们真的有这样一个电子元件可以实现$\tanh$的频率响应特性吗？&lt;/p&gt;
&lt;h3 id="传输线transmission-line理论"&gt;传输线(Transmission Line)理论
&lt;/h3&gt;&lt;p&gt;这个电路就是我们熟知的传输线，如果读者对射频电路有所了解的话。
一个传输线由两个平行导体和一个介质组成，信号在传输线中传播时，会在导体之间形成电场和磁场，从而实现信号的传输。传输线的特性阻抗与其几何结构和介质材料有关。波方程告诉我们，传输线需要满足电报员方程，而要满足电报员方程，我们只需要令正向传播的电压与电流和反向传播的电压与电流满足如下关系：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="591px" data-flex-grow="246" height="428" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-9/math20250826083432.png" srcset="http://blog.cedard.top/p/active-filter-9/math20250826083432_hu_c1fe88f0e4500712.png 800w, http://blog.cedard.top/p/active-filter-9/math20250826083432.png 1054w" width="1054"&gt;&lt;/p&gt;
$$ 
\begin{cases}
V(x) = V^+(x) + V^-(x) \\
I(x) = \frac{V^+(x)}{Z_0} - \frac{V^-(x)}{Z_0}
\end{cases}
$$&lt;p&gt;
其中$Z_0$是传输线的特性阻抗（characteristic impedance）。&lt;/p&gt;
&lt;p&gt;要描述一段传输线，除了传输线的特性阻抗之外，我们还需要这段传输线的时间差（time delay），这段时间差告诉我们电磁波从传输线的一端发射到另一端所需的时间，通常记为$\tau$。
现在，假如我们在某个点满足传输线方程，我们把考虑的点左移动时间$\tau$，那么正向传播的时间将会被提前$\tau$，反向传播的时间将会被延后$\tau$，但是传输线方程依然需要成立：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="1034px" data-flex-grow="431" height="404" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-9/math20250826083929.png" srcset="http://blog.cedard.top/p/active-filter-9/math20250826083929_hu_414c4f8ae61a7a57.png 800w, http://blog.cedard.top/p/active-filter-9/math20250826083929_hu_e5b5732119dfb962.png 1600w, http://blog.cedard.top/p/active-filter-9/math20250826083929.png 1742w" width="1742"&gt;&lt;/p&gt;
$$ \begin{aligned}
V^+ &amp;\rightarrow V^+e^{s\tau_1} \\
V^- &amp;\rightarrow V^-e^{-s\tau_1}
\end{aligned} $$&lt;p&gt;假如我们把传输线的一端短路，那么欧姆定律一定要成立：
&lt;/p&gt;
$$ V^+ = -V^-, V^- + V^+ = 0 $$&lt;p&gt;
那么在传输线的另外一端，
&lt;/p&gt;
$$ \begin{aligned}
V_{in} &amp;= V^+ (e^{s\tau} - e^{-s\tau}) \\
&amp;= V^+ (2\sinh(s\tau))
\end{aligned} $$&lt;p&gt;
&lt;/p&gt;
$$ \begin{aligned}
I_{in} &amp;= \frac{V^+e^{s\tau}}{Z_0} - -\frac{V^-e^{-s\tau}}{Z_0} \\
&amp;= \frac{V^+}{Z_0} (e^{s\tau} + e^{-s\tau})
&amp;= 
$$</description></item><item><title>主动滤波器(8)：频率变换(3)</title><link>http://blog.cedard.top/p/active-filter-8/</link><pubDate>Thu, 21 Aug 2025 20:58:21 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-8/</guid><description>&lt;p&gt;在上一节中，我们得出了两个关于纯LC电路输入阻抗的重要结论：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;阻抗的零点和极点必须位于虚轴上。&lt;/li&gt;
&lt;li&gt;阻抗（以及导纳）的留数必须是正实数。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;本节将进一步分析纯LC网络阻抗在虚轴上的行为，并探讨频率变换的唯一性与实现方式。&lt;/p&gt;
&lt;h2 id="柯西-黎曼方程-cauchy-riemann-equations"&gt;柯西-黎曼方程 (Cauchy-Riemann Equations)
&lt;/h2&gt;&lt;p&gt;对于复平面上的&lt;strong&gt;解析函数&lt;/strong&gt; $f(x, y) = u(x, y) + iv(x, y)$，其中 $u(x, y)$ 和 $v(x, y)$ 分别为实部和虚部，柯西-黎曼方程给出了函数解析的必要条件：&lt;/p&gt;
$$
\begin{aligned}
\frac{\partial u}{\partial x} &amp;= \frac{\partial v}{\partial y} \\
\frac{\partial u}{\partial y} &amp;= -\frac{\partial v}{\partial x}
\end{aligned}
$$&lt;p&gt;由于LC网络的阻抗是有理函数，必然满足解析性，因此阻抗也必须满足柯西-黎曼方程。对于 $Z(s)$，有：&lt;/p&gt;
$$
\frac{\partial}{\partial \sigma}\Re [Z(\sigma + j\omega)] = \frac{\partial}{\partial \omega}\Im [Z(\sigma + j\omega)]
$$&lt;p&gt;也就是说，阻抗实部对实频率的变化率等于虚部对虚频率的变化率。&lt;/p&gt;
&lt;p&gt;结合上一节的正实性结论，进一步有：&lt;/p&gt;
$$
\frac{\partial}{\partial \omega}\Im [Z(\sigma + j\omega)] = \frac{\partial}{\partial \sigma}\Re [Z(\sigma + j\omega)] &gt; 0
$$&lt;p&gt;并且，如果输入信号频率为实数，阻抗为实数；若频率为纯虚数，阻抗也为纯虚数。因此：&lt;/p&gt;
$$
\left.Z(s)\right|_{s=j\omega} = jX(\omega) \quad \therefore \frac{dX(\omega)}{d\omega} &gt; 0
$$&lt;p&gt;简单验证如下：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;对于电感：$Z(j\omega) = j\omega L \implies \frac{dX(\omega)}{d\omega} = L &amp;gt; 0$&lt;/li&gt;
&lt;li&gt;对于电容：$Z(j\omega) = \frac{1}{j\omega C} = \frac{j}{-\omega C} \implies \frac{dX(\omega)}{d\omega} = \frac{1}{\omega^2 C} &amp;gt; 0$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;因此，LC网络输入阻抗在虚轴上的导数始终为正。这意味着在虚轴上不可能出现连续的极点或零点，否则会与单调性矛盾。如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="1086px" data-flex-grow="452" height="350" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821222931.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821222931_hu_6ee4bcbb6d1ab091.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821222931.png 1584w" width="1584"&gt;&lt;/p&gt;
&lt;p&gt;所以，&lt;strong&gt;极点和零点在虚轴上必定交替出现&lt;/strong&gt;：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="565px" data-flex-grow="235" height="704" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821223914.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821223914_hu_ff2fc3b4432d3440.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821223914_hu_7d893a07f24bef19.png 1600w, http://blog.cedard.top/p/active-filter-8/math20250821223914.png 1658w" width="1658"&gt;&lt;/p&gt;
&lt;p&gt;并且，零点数与极点数的差额最多为1。综合所有结论，频率变换的推导实际上是唯一的。&lt;/p&gt;
&lt;h2 id="充分必要的频率变换"&gt;充分必要的频率变换
&lt;/h2&gt;&lt;p&gt;我们建立了所有需要证明充分性的理论基础，现在是时候来检验我们之前直觉推导的频率变换的唯一性了。&lt;/p&gt;
&lt;h3 id="低通-带通变换"&gt;低通-带通变换
&lt;/h3&gt;&lt;p&gt;低通-带通变换的映射关系如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="1341px" data-flex-grow="559" height="284" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821223243.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821223243_hu_98f17aa926894655.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821223243.png 1588w" width="1588"&gt;&lt;/p&gt;
&lt;p&gt;根据频率变换的第一节，变换函数需满足：&lt;/p&gt;
$$
f(\omega) \propto \frac{(\omega + 1)(\omega - 1)}{\omega} = \frac{\omega^2 - 1}{\omega}
$$&lt;p&gt;我们无法引入新的零点，因为差额已经为1.我们也无法引入新的极点。若新的极点为0，那么极点0的重数将不是1.若新的极点模长小于1，将不满足极点-零点交替出现的原则。若新的极点模长为1，将与零点抵消。若新的极点模长大于1，在频率为无穷大的时候的响应就不满足直觉。&lt;/p&gt;
&lt;p&gt;由于无法引入新的极点或零点，唯一可调的是比例常数 $K$，且 $K$ 必须为正实数：&lt;/p&gt;
$$
f(\omega) = K\frac{(\omega - 1)(\omega + 1)}{\omega}
$$&lt;p&gt;假设原低通滤波器带宽为 $\omega_{LP}$，则带通滤波器的两个截止频率满足：&lt;/p&gt;
$$
\omega_{LP} = K\frac{\omega^2 - 1}{\omega}
$$&lt;p&gt;舍弃负频率，解得：&lt;/p&gt;
$$
\begin{cases}
\omega_a = \frac{\omega_{LP}}{2K} + \sqrt{1 + \frac{\omega_{LP}^2}{4K^2}} \\
\omega_b = \frac{\omega_{LP}}{2K} - \sqrt{1 + \frac{\omega_{LP}^2}{4K^2}}
\end{cases}
$$&lt;p&gt;有：&lt;/p&gt;
$$
\omega_a \omega_b = \omega_{LP}^2 = 1
$$$$
\omega_a - \omega_b = \frac{\omega_{LP}}{K}
$$&lt;p&gt;即，两个截止频率的几何平均为中心频率。带通滤波器的&lt;strong&gt;品质因子(Q)&lt;/strong&gt; 定义为：&lt;/p&gt;
$$
Q = \frac{\text{Center Frequency}}{\text{Bandwidth}} = \frac{\omega_{LP}}{\omega_a - \omega_b} = K
$$&lt;p&gt;最终映射为：&lt;/p&gt;
$$
s \rightarrow Q\left(\frac{s}{\omega_0} + \frac{\omega_0}{s}\right)
$$&lt;p&gt;电感的变换：&lt;/p&gt;
$$
sL \rightarrow Q\left(\frac{s}{\omega_0} + \frac{\omega_0}{s}\right)L
$$&lt;p&gt;即，电感 $L$ 变为电感 $\frac{LQ}{\omega_0}$ 与电容 $\frac{1}{QL\omega_0}$ 的串联：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="530px" data-flex-grow="220" height="210" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821225335.png" width="464"&gt;&lt;/p&gt;
&lt;p&gt;这个结论符合我们的工程直觉，因为在DC的电感是一个短路，而在$\omega_0$的新电路也是短路。无穷频率的电感将是断路，而DC+无穷频率的新电路也是断路。&lt;/p&gt;
&lt;p&gt;电容的变换：&lt;/p&gt;
$$
C \rightarrow \frac{QC}{\omega_0} \parallel \frac{1}{QC\omega_0}
$$&lt;p&gt;即，电容 $C$ 变为电容 $\frac{QC}{\omega_0}$ 与电感 $\frac{1}{QC\omega_0}$ 的并联：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="771px" data-flex-grow="321" height="390" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821225656.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821225656_hu_900cf87f067836e5.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821225656.png 1254w" width="1254"&gt;&lt;/p&gt;
&lt;p&gt;DC的电容是断路，而在$\omega_0$的新电路也是断路。无穷频率的电容是短路，而DC+无穷频率的新电路也是短路。&lt;/p&gt;
&lt;p&gt;因此，低通-带通变换后，LC滤波器的阶数翻倍：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="852px" data-flex-grow="355" height="508" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821225807.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821225807_hu_12a267a1ee25331d.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821225807_hu_77f44288d852b613.png 1600w, http://blog.cedard.top/p/active-filter-8/math20250821225807.png 1804w" width="1804"&gt;&lt;/p&gt;
&lt;h3 id="低通-高通变换"&gt;低通-高通变换
&lt;/h3&gt;&lt;p&gt;低通-高通变换如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="1155px" data-flex-grow="481" height="292" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821225844.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821225844_hu_5830d4123d3264af.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821225844.png 1406w" width="1406"&gt;&lt;/p&gt;
&lt;p&gt;变换关系为：&lt;/p&gt;
$$
f(\omega) \propto \frac{1}{\omega}
$$&lt;p&gt;我们无法引入新的极点，否则零极点差额将会超过1.我们亦无法引入新的零点，否则无穷大的响应将不满足直觉。&lt;/p&gt;
&lt;p&gt;因此我们能改变的只有成比例常数：&lt;/p&gt;
$$
f(\omega) = \frac{-K}{\omega}
$$&lt;p&gt;我们一定要引入负号，否则新的阻抗不会是增函数。最终映射为：&lt;/p&gt;
$$
j\omega \rightarrow -j\frac{K}{\omega} \rightarrow \frac{K}{j\omega}
$$&lt;p&gt;若需任意高通频率：&lt;/p&gt;
$$
s \rightarrow \frac{\omega_0}{s}
$$&lt;p&gt;低通-高通变换后，电容变为电感，电感变为电容：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="706px" data-flex-grow="294" height="418" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821230501.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821230501_hu_654322183b29cdb9.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821230501.png 1230w" width="1230"&gt;&lt;/p&gt;
&lt;h3 id="低通-带阻变换"&gt;低通-带阻变换
&lt;/h3&gt;&lt;p&gt;低通-带阻变换如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="1196px" data-flex-grow="498" height="294" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821230547.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821230547_hu_1e18fb7df3ecea41.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821230547.png 1466w" width="1466"&gt;&lt;/p&gt;
&lt;p&gt;变换关系为：&lt;/p&gt;
$$
f(\omega) \propto \frac{\omega}{(\omega + 1)(\omega - 1)} = \frac{\omega}{\omega^2 - 1}
$$&lt;p&gt;与带通变换一样，我们无法加入任何新的极点或零点。同样，唯一未知量为比例系数，且必须为负实数：&lt;/p&gt;
$$
f(\omega) = \frac{-K\omega}{\omega^2 - 1}
$$&lt;p&gt;带阻滤波器的两个截止频率的几何平均为中心频率，品质因子定义同前。最终映射为：&lt;/p&gt;
$$
s \rightarrow \frac{1}{Q\left(\frac{s}{\omega_0} + \frac{\omega_0}{s}\right)}
$$&lt;p&gt;电感变为电容与电感的并联，电容变为电容与电感的串联：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="988px" data-flex-grow="411" height="408" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821231104.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821231104_hu_5d403fef2e92f616.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821231104_hu_9f62037a3059282a.png 1600w, http://blog.cedard.top/p/active-filter-8/math20250821231104.png 1680w" width="1680"&gt;&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="864px" data-flex-grow="360" height="444" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-8/math20250821231116.png" srcset="http://blog.cedard.top/p/active-filter-8/math20250821231116_hu_273648b350f6cb37.png 800w, http://blog.cedard.top/p/active-filter-8/math20250821231116.png 1600w" width="1600"&gt;&lt;/p&gt;
&lt;p&gt;综上，频率变换的形式和参数均由网络的物理特性唯一决定，无法随意添加极点或零点。所有变换均严格遵循正实性和极点零点交替分布的原则。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="频率变换类型总结表"&gt;频率变换类型总结表
&lt;/h2&gt;&lt;p&gt;下表总结了几种从低通出发的频率变换类型及其特性。&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;变换类型&lt;/th&gt;
					&lt;th&gt;变换公式&lt;/th&gt;
					&lt;th&gt;元件变换方式&lt;/th&gt;
					&lt;th&gt;阶数变化&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;低通 → 带通&lt;/td&gt;
					&lt;td&gt;$s \rightarrow Q\left(\frac{s}{\omega_0} + \frac{\omega_0}{s}\right)$&lt;/td&gt;
					&lt;td&gt;电感 $\rightarrow$ 串联电感+电容&lt;br&gt;电容 $\rightarrow$ 并联电感+电容&lt;/td&gt;
					&lt;td&gt;翻倍&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;低通 → 高通&lt;/td&gt;
					&lt;td&gt;$s \rightarrow \frac{\omega_0}{s}$&lt;/td&gt;
					&lt;td&gt;电感 $\rightarrow$ 电容&lt;br&gt;电容 $\rightarrow$ 电感&lt;/td&gt;
					&lt;td&gt;不变&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;低通 → 带阻&lt;/td&gt;
					&lt;td&gt;$s \rightarrow \frac{1}{Q\left(\frac{s}{\omega_0} + \frac{\omega_0}{s}\right)}$&lt;/td&gt;
					&lt;td&gt;电感 $\rightarrow$ 并联电感+电容&lt;br&gt;电容 $\rightarrow$ 串联电感+电容&lt;/td&gt;
					&lt;td&gt;翻倍&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;</description></item><item><title>主动滤波器(7)：频率变换(2)</title><link>http://blog.cedard.top/p/active-filter-7/</link><pubDate>Wed, 20 Aug 2025 19:57:30 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-7/</guid><description>&lt;p&gt;在上一节中，我们讨论了频率变换的工程直觉。简而言之，频率变换的核心准则只有一条：&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;零频点应映射到新的零点，无穷频点应映射到新的极点。&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;p&gt;基于这一原则，我们通过直觉推导了从低通滤波器到其他类型滤波器的映射关系。然而，这些推导仅能得到“成正比”的关系，属于必要但不充分条件。&lt;/p&gt;
&lt;p&gt;本节将进一步探讨纯LC电路的实现特性，并给出充分性证明。&lt;/p&gt;
&lt;h2 id="特勒根定理tellegens-theorem"&gt;特勒根定理（Tellegen&amp;rsquo;s Theorem）
&lt;/h2&gt;&lt;p&gt;在深入分析任何网络之前，我们先引入特勒根定理，为后续推导提供新的数学工具。&lt;/p&gt;
&lt;p&gt;考虑如下图所示的网络，底部节点接地，各节点已标注电压与电流。每条支路可包含任意被动或主动元件，且可能为线性或非线性。&lt;/p&gt;
&lt;p&gt;我们约定如下：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;电流方向：流入节点为正，流出为负。&lt;/li&gt;
&lt;li&gt;电压极性：高电位端为正，低电位端为负。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="332px" data-flex-grow="138" height="280" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-7/math20250820215143.png" width="388"&gt;&lt;/p&gt;
&lt;p&gt;首先，我们可在节点1、2、3建立KCL方程，或用矩阵形式表示：&lt;/p&gt;
$$\begin{bmatrix}
-1 &amp; 0 &amp; 0 &amp; 1 &amp; -1 &amp; 0 \\
1 &amp; 1 &amp; 1 &amp; 0 &amp; 0 &amp; 0 \\
0 &amp; -1 &amp; 0 &amp; 0 &amp; 1 &amp; 1
\end{bmatrix} \begin{bmatrix}
i_1 \\ i_2 \\ i_3 \\ i_4 \\ i_5 \\ i_6
\end{bmatrix} = \begin{bmatrix}
0 \\ 0 \\ 0
\end{bmatrix} $$&lt;p&gt;记为 $\textbf{A}\textbf{I} = \textbf{0}$。&lt;/p&gt;
&lt;p&gt;这一关系总是成立，否则电流将无故产生或消失，违背物理定律。$\textbf{A}$ 的每一行对应一个节点的KCL，每一列对应一条支路的电流方向。&lt;/p&gt;
&lt;p&gt;定义&lt;strong&gt;支路电压（Branch Voltage）&lt;/strong&gt; 为第n支路的电压，例如支路1的电压为 $V_1 - V_2$。构建&lt;strong&gt;支路电压向量&lt;/strong&gt;，满足：&lt;/p&gt;
$$ \textbf{V}_B = - \textbf{A}^T \textbf{V} $$&lt;p&gt;以本例验证：&lt;/p&gt;
$$\textbf{V}_B=\begin{bmatrix}
V_1 - V_2 \\
-V_2 + V_3 \\
-V_2 \\
-V_1 \\
V_1 - V_3 \\
-V_3
\end{bmatrix} = -\begin{bmatrix}
-1 &amp; 1 &amp; 0 \\
0 &amp; -1 &amp; 1 \\
0 &amp; 1 &amp; 0 \\
1 &amp; 0 &amp; 0 \\
-1 &amp; 0 &amp; 1 \\
0 &amp; 0 &amp; 1 \end{bmatrix} \begin{bmatrix}
V_1 \\
V_2 \\
V_3 \end{bmatrix} 
= -A^T V $$&lt;p&gt;由能量守恒，有：&lt;/p&gt;
$$ \textbf{V}_B^T \textbf{I} = 0 $$&lt;p&gt;或展开为：&lt;/p&gt;
$$ \sum_k v_{bk}i_k = 0 $$&lt;p&gt;证明如下：&lt;/p&gt;
$$
\begin{aligned}
\textbf{V}_B^T \cdot \textbf{I} &amp;= (-A^T \textbf{V}_B)^T \cdot \textbf{I} \\
&amp;= -\textbf{V}_B^T A \cdot \textbf{I} \\
&amp;= -\textbf{V}_B^T \cdot \textbf{0} \\
&amp;= 0
\end{aligned}
$$&lt;p&gt;上述推导基于KCL和KVL，并未假设元件类型或线性特性。特勒根定理进一步指出，即使支路电流和支路电压分别对应不同网络的元件，这一广义能量守恒关系依然成立。&lt;/p&gt;
&lt;p&gt;考虑如下两个网络，A与B实现方式完全不同，A可能由电容、电感组成，B则可能包含主动源或其他元件。&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="396px" data-flex-grow="165" height="750" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-7/math20250820222659.png" srcset="http://blog.cedard.top/p/active-filter-7/math20250820222659_hu_88e69b490f1749da.png 800w, http://blog.cedard.top/p/active-filter-7/math20250820222659.png 1238w" width="1238"&gt;&lt;/p&gt;
&lt;p&gt;同样有：&lt;/p&gt;
$$
\begin{aligned}
\sum_k{v_{b1k}i_{2k}} &amp;= - [A^T \textbf{V}_1]^T \textbf{I}_2 \\
&amp;= - \textbf{V}_1^T A \cdot \textbf{I}_2 \\
&amp;= - \textbf{V}_1^T \cdot \textbf{0} \\
&amp;= 0
\end{aligned}
$$&lt;p&gt;这一结论极具普适性，表明只要网络结构相同，无论元件如何分布，广义能量守恒都成立。该定理适用于任意线性或非线性电路。&lt;/p&gt;
&lt;p&gt;对于感性元件，功率定义为 $P = VI^*$，因此可得：&lt;/p&gt;
$$\textbf{V}^T_B \textbf{I}^* = \sum_k v_{bk} i_k^* = 0 $$&lt;h2 id="lc网络的极点与零点"&gt;LC网络的极点与零点
&lt;/h2&gt;&lt;p&gt;考虑一个仅由LC元件组成的无损耗网络：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="724px" data-flex-grow="301" height="316" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-7/math20250820223215.png" srcset="http://blog.cedard.top/p/active-filter-7/math20250820223215_hu_d6fb577618a30b58.png 800w, http://blog.cedard.top/p/active-filter-7/math20250820223215.png 954w" width="954"&gt;&lt;/p&gt;
&lt;p&gt;由能量守恒，有：&lt;/p&gt;
$$
\begin{aligned}
|I_{1}(s)|^2 Z(s) &amp;=
\sum_{\text{All L and C}} v_k(s) i_k^*(s) \\
&amp;= \sum_{\text{All L}} s L_k i_k(s) i_k^*(s) + \sum_{\text{All C}} \frac{1}{sC_k} i_k(s) i_k^*(s) \\
&amp;= \sum_{\text{All L}} s L_k |I_k(s)|^2 + \sum_{\text{All C}} \frac{1}{s C_k} |I_k(s)|^2
\end{aligned}
$$&lt;p&gt;令 $I_1(s) = 1$，则&lt;/p&gt;
$$
\begin{aligned}
Z(s) &amp;= \sum_{\text{All L}} s L_k |I_k(s)|^2 + \sum_{\text{All C}} \frac{1}{sC_k} |I_k(s)|^2 \\
&amp;= \sum_{\text{All L}} s P_1 + \sum_{\text{All C}} \frac{1}{s} P_2
\end{aligned}
$$&lt;p&gt;其中 $C$, $L$, $|I|^2$ 均为正实数，因此 $P_1, P_2 &amp;gt; 0$。&lt;/p&gt;
&lt;p&gt;由此可得两点结论：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;若频率变量 $s$ 为实数，则 $Z(s)$ 也为实数。&lt;/li&gt;
&lt;li&gt;若 $s$ 有正实部，则 $Z(s)$ 的实部也为正。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;我们将满足此性质的函数称为&lt;strong&gt;正实函数（Positive Real Function）&lt;/strong&gt;。即对于仅含L和C的网络，有：&lt;/p&gt;
$$
\Re{[Z(s)]} \begin{cases} &gt; 0 \text{ if } \Re[s] &gt; 0 \\ = 0 \text{ if } \Re[s] = 0 \\ &lt; 0 \text{ if } \Re[s] &lt; 0
\end{cases}
$$&lt;h3 id="复变函数的极点行为观察"&gt;复变函数的极点行为观察
&lt;/h3&gt;&lt;p&gt;观察复变函数在极点附近的行为。以 $\frac{1}{s - p_1}$ 为例，在极点 $p_1$ 左侧，函数实部为负；在右侧，实部为正。&lt;/p&gt;
&lt;p&gt;若引入带有相位的&lt;strong&gt;留数（Residue）&lt;/strong&gt;，则分界线会随留数相位旋转。例如，绘制 $\frac{\angle 45^{\circ}}{s}$ 的实部分布：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="240px" data-flex-grow="100" height="709" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-7/math20250820231112.png" width="709"&gt;&lt;/p&gt;
&lt;p&gt;若极点为重复极点，如 $\frac{1}{s^2}$，其实部分布如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="240px" data-flex-grow="100" height="708" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-7/math20250820231317.png" width="709"&gt;&lt;/p&gt;
&lt;p&gt;而我们期望的函数实部行为应如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="242px" data-flex-grow="101" height="701" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-7/math20250820231459.png" width="709"&gt;&lt;/p&gt;
&lt;p&gt;因此，为使函数实部符合预期，需满足以下条件：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;无左半平面极点，否则分界线将不在虚轴。&lt;/li&gt;
&lt;li&gt;无右半平面极点，同理。&lt;/li&gt;
&lt;li&gt;虚轴上的极点必须为简单极点（重数为1），否则分界线将非对称分割复平面。&lt;/li&gt;
&lt;li&gt;留数必须为正实数，否则分界线将发生旋转。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;此外，实系数函数的极点必以共轭对出现。上述讨论对导纳同样适用，因此零点也满足类似约束。&lt;/p&gt;
&lt;p&gt;下一节将进一步探讨LC网络在虚轴上的零极点分布。&lt;/p&gt;</description></item><item><title>主动滤波器(6)：频率变换(1)</title><link>http://blog.cedard.top/p/active-filter-6/</link><pubDate>Wed, 23 Jul 2025 21:35:22 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-6/</guid><description>&lt;p&gt;到目前为止，我们的所有讨论都是基于低通滤波器的。我们讨论了：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;如何进行理想低通滤波器的近似&lt;/li&gt;
&lt;li&gt;基本的网络合成方法：使用双端LC滤波器的标准形式来设计全极点滤波器，以及第二类切比雪夫滤波器&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;从这一节开始，我们讨论如何将一个低通滤波器转换为其他类型的滤波器，比如高通、带通和带阻滤波器。也就是说，在以后的工程实践中，我们并不需要从头开始设计每一种滤波器，而是可以通过频率变换，将一个低通原型滤波器转换为其他类型的滤波器。&lt;/p&gt;
&lt;h2 id="1-频率变换的基础缩放操作"&gt;1. 频率变换的基础：缩放操作
&lt;/h2&gt;&lt;h3 id="11-低通缩放scaling"&gt;1.1 低通缩放(Scaling)
&lt;/h3&gt;&lt;p&gt;我们知道最基本的频率变换：&lt;strong&gt;缩放(Scaling)&lt;/strong&gt; 。我们之前所有设计的滤波器的截止频率都是1 rad/s，然而在现实生活中，这个值显然不现实。对于一个吉他的效果器而言，我们可能需要的截止频率是1000 rad/s。我们可以通过缩放来实现这个目标。&lt;/p&gt;
&lt;p&gt;假如我们原来的传递函数是$H(s)$，只要把$s$替换为$s/\omega_0$，就可以得到一个新的传递函数$H(s/\omega_0)$，其中$\omega_0$是我们想要的截止频率：&lt;/p&gt;
$$s \rightarrow \frac{s}{\omega_0} \quad \therefore \quad H(s) \rightarrow H\left(\frac{s}{\omega_0}\right)$$&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="543px" data-flex-grow="226" height="680" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-6/math20250723214628.png" srcset="http://blog.cedard.top/p/active-filter-6/math20250723214628_hu_dc0c26a24eda7f36.png 800w, http://blog.cedard.top/p/active-filter-6/math20250723214628.png 1540w" width="1540"&gt;&lt;/p&gt;
&lt;p&gt;使用缩放操作，我们有以下关系：&lt;/p&gt;
$$\omega \rightarrow \frac{\omega}{\omega_0}, \quad j\omega \rightarrow j\frac{\omega}{\omega_0}, \quad s \rightarrow \frac{s}{\omega_0}$$&lt;h3 id="12-元件阻抗的变换"&gt;1.2 元件阻抗的变换
&lt;/h3&gt;&lt;p&gt;我们可以看到，使用缩放操作，我们只需要变换原网络里的角频率。哪些元件的值里包括了角频率？答案是只有感性元件有这个特征，因此我们有下列表格展示在缩放情况下的阻抗变换：&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;元件类型&lt;/th&gt;
					&lt;th&gt;原阻抗&lt;/th&gt;
					&lt;th&gt;缩放后的阻抗&lt;/th&gt;
					&lt;th&gt;评论&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;电阻(R)&lt;/td&gt;
					&lt;td&gt;$R$&lt;/td&gt;
					&lt;td&gt;$R$&lt;/td&gt;
					&lt;td&gt;无变化&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;电感(L)&lt;/td&gt;
					&lt;td&gt;$sL$&lt;/td&gt;
					&lt;td&gt;$\frac{sL}{\omega_0}$&lt;/td&gt;
					&lt;td&gt;除以$\omega_0$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;电容(C)&lt;/td&gt;
					&lt;td&gt;$\frac{1}{sC}$&lt;/td&gt;
					&lt;td&gt;$\frac{\omega_0}{sC}$&lt;/td&gt;
					&lt;td&gt;乘以$\omega_0$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;主动元件(G)&lt;/td&gt;
					&lt;td&gt;$G$&lt;/td&gt;
					&lt;td&gt;$G$&lt;/td&gt;
					&lt;td&gt;无变化&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;重要结论：只有感性元件的阻抗在缩放时会发生变化。&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;这种低通到低通的变换非常简单，并且是线性操作。然而很不幸，如果我们要将一个低通滤波器转换为高通滤波器，转换函数将不会是一个线性函数。&lt;/p&gt;
&lt;p&gt;一个值得注意的事实是，感性元件在经过变换之后，依然是感性元件。由于感性元件也是无损耗的，因此我们想要保留这个特性，从而保证在变换之后的滤波器依然是无损耗的。&lt;/p&gt;
&lt;h2 id="2-频率变换的基本原则"&gt;2. 频率变换的基本原则
&lt;/h2&gt;&lt;p&gt;频率变换不是想怎么变就能怎么变的。假如我们有以下的变换映射：&lt;/p&gt;
$$\omega \rightarrow f(\omega)$$&lt;p&gt;那么，$f(\omega)$必须满足以下条件：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;零点映射&lt;/strong&gt;：$\omega = 0$必须移动到$f(\omega) = 0$，也就是说$\omega$的零点必须移动到$f(\omega)$的零点&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点映射&lt;/strong&gt;：$\omega = \infty$必须移动到$f(\omega) = \infty$，也就是说$\omega$的极点必须移动到$f(\omega)$的极点&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;截止频率映射&lt;/strong&gt;：$\omega$的截止频率也必须移动到$f(\omega)$的截止频率&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="21-带通滤波器的变换"&gt;2.1 带通滤波器的变换
&lt;/h3&gt;&lt;p&gt;根据上述原则，我们可以得知如果我们要把一个低通滤波器变成一个带通滤波器，我们需要满足以下条件：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;零点映射&lt;/strong&gt;：低通滤波器的零点必须移动到带通滤波器的零点，即$\omega = 0 \rightarrow f(\pm 1) = 0$
&lt;ul&gt;
&lt;li&gt;我们同样做了归一化假设&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点映射&lt;/strong&gt;：低通滤波器的极点必须移动到带通滤波器的极点，即$\omega = \infty \rightarrow f(0, \pm \infty) = \infty$&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;因此，我们可以得出结论，转换函数至少需要拥有如下形式：&lt;/p&gt;
$$f(\omega) \propto \frac{(\omega + 1)(\omega - 1)}{\omega} = \frac{\omega^2 - 1}{\omega}$$&lt;p&gt;注意到这只是一个成正比的关系，因为我们并不知道转换函数是否有其他的因子。&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="515px" data-flex-grow="214" height="564" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-6/math20250723220606.png" srcset="http://blog.cedard.top/p/active-filter-6/math20250723220606_hu_64ef03a002f1cd7e.png 800w, http://blog.cedard.top/p/active-filter-6/math20250723220606.png 1212w" width="1212"&gt;&lt;/p&gt;
&lt;h3 id="22-高通滤波器的变换"&gt;2.2 高通滤波器的变换
&lt;/h3&gt;&lt;p&gt;同样的，对于高通滤波器而言，我们需要满足以下条件：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;零点映射&lt;/strong&gt;：低通滤波器的零点必须移动到高通滤波器的极点，即$\omega = 0 \rightarrow f(\infty) = \infty$&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点映射&lt;/strong&gt;：低通滤波器的极点必须移动到高通滤波器的零点，即$\omega = \infty \rightarrow f(0) = 0$&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;截止频率映射&lt;/strong&gt;：高通滤波器的截止频率满足$f(1) = 1$&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;因此，我们可以得出结论，转换函数至少需要拥有如下形式：&lt;/p&gt;
$$f(\omega) \propto \frac{1}{\omega}$$&lt;p&gt;再次注意到这只是一个成正比的关系，因为我们并不知道转换函数是否有其他的因子。&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="627px" data-flex-grow="261" height="476" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-6/math20250723221048.png" srcset="http://blog.cedard.top/p/active-filter-6/math20250723221048_hu_95d35fcaa92c6204.png 800w, http://blog.cedard.top/p/active-filter-6/math20250723221048.png 1244w" width="1244"&gt;&lt;/p&gt;
&lt;h3 id="23-带阻滤波器的变换"&gt;2.3 带阻滤波器的变换
&lt;/h3&gt;&lt;p&gt;同样的，对于带阻滤波器而言，我们需要满足以下条件：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;零点映射&lt;/strong&gt;：低通滤波器的零点必须移动到带阻滤波器的极点，即$\omega = 0 \rightarrow f(\pm 1) = \infty$&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点映射&lt;/strong&gt;：低通滤波器的极点必须移动到带阻滤波器的零点，即$\omega = \infty \rightarrow f(0, \pm \infty) = 0$&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;因此，我们可以得出结论，转换函数至少需要拥有如下形式：&lt;/p&gt;
$$f(\omega) \propto \frac{\omega}{(\omega + 1)(\omega - 1)} = \frac{\omega}{\omega^2 - 1}$$&lt;p&gt;我们需要做最后一次提示，注意到这只是一个成正比的关系，因为我们并不知道转换函数是否有其他的因子。&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="561px" data-flex-grow="234" height="576" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-6/math20250723221208.png" srcset="http://blog.cedard.top/p/active-filter-6/math20250723221208_hu_c348629e47d5135b.png 800w, http://blog.cedard.top/p/active-filter-6/math20250723221208.png 1348w" width="1348"&gt;&lt;/p&gt;
&lt;h2 id="24-可实现性条件"&gt;2.4 可实现性条件
&lt;/h2&gt;&lt;p&gt;除了要满足上述映射要求之外，滤波器的基本稳定性要求也必须得到满足。也就是说，滤波器的极点必须在左半平面内，否则滤波器就会不稳定。由于传递函数的倒函数也是一个有效的传递函数，因此这个要求也必须满足于零点上。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;稳定性要求&lt;/strong&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;所有极点必须位于左半平面&lt;/li&gt;
&lt;li&gt;所有零点也必须位于左半平面或虚轴上&lt;/li&gt;
&lt;li&gt;变换后的滤波器必须保持因果性和稳定性&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="3-变换函数的性质总结"&gt;3. 变换函数的性质总结
&lt;/h2&gt;&lt;p&gt;通过以上分析，我们可以总结出各种滤波器变换的基本形式：&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;滤波器类型&lt;/th&gt;
					&lt;th&gt;变换函数形式&lt;/th&gt;
					&lt;th&gt;零点-极点映射特征&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;低通→低通&lt;/td&gt;
					&lt;td&gt;$s/\omega_0$&lt;/td&gt;
					&lt;td&gt;线性缩放&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;低通→高通&lt;/td&gt;
					&lt;td&gt;$1/\omega$&lt;/td&gt;
					&lt;td&gt;零极点互换&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;低通→带通&lt;/td&gt;
					&lt;td&gt;$(\omega^2-1)/\omega$&lt;/td&gt;
					&lt;td&gt;一个极点/零点分裂为两个&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;低通→带阻&lt;/td&gt;
					&lt;td&gt;$\omega/(\omega^2-1)$&lt;/td&gt;
					&lt;td&gt;一个极点/零点分裂为两个&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;最后一次提示，以上变换函数都是成正比的关系，实际应用中可能需要根据具体情况添加其他因子。但是在下一节中，我们将证明其他因子只会是一个常数。&lt;/p&gt;</description></item><item><title>主动滤波器(5)：双端LC滤波器(2)</title><link>http://blog.cedard.top/p/active-filter-5/</link><pubDate>Wed, 23 Jul 2025 19:28:55 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-5/</guid><description>&lt;p&gt;在上一节中，我们解释了如何使用双端LC滤波器的标准形式来设计一个全极点滤波器。总结起来，我们有以下的设计流程：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;设计传递函数$H(j\omega)$&lt;/li&gt;
&lt;li&gt;进行各种归一化假设&lt;/li&gt;
&lt;li&gt;通过$H(j\omega)$推导反射系数$\Gamma(s)$&lt;/li&gt;
&lt;li&gt;通过$\Gamma(s)$推导输入阻抗$Z_{in}(s)$&lt;/li&gt;
&lt;li&gt;通过$Z_{in}(s)$推导整个滤波器的电路结构&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;我们知道，使用双端LC滤波器的标准形式，输入阻抗可以表示为：&lt;/p&gt;
$$Z_{in}(s) = sL_1 + \cfrac{1}{sC_1 + \cfrac{1}{sL_3 + \cfrac{1}{\ddots}}}$$&lt;p&gt;这是一个有限的连分数形式。我们可以通过这个公式推导出$Z_{in}(s)$，从而得到滤波器的电路结构。&lt;/p&gt;
&lt;p&gt;本节将对LC标准形式进行总结，并讲解一些特殊情况的处理方法。&lt;/p&gt;
&lt;h2 id="1-全极点lc滤波器的性质"&gt;1. 全极点LC滤波器的性质
&lt;/h2&gt;&lt;p&gt;双端LC滤波器具有以下重要性质：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;反射系数特性&lt;/strong&gt;：在通带内，反射系数几乎为0；在阻带内，反射系数接近1&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;零点特性&lt;/strong&gt;：在传递函数的零点处，反射系数为0&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;阶数限制&lt;/strong&gt;：使用LC标准形式，我们只能实现传递函数的分子和分母阶数差不超过1的滤波器
&lt;ul&gt;
&lt;li&gt;这是因为在频率趋近于无穷时，输入阻抗只能表现为L、R、C中任意一种形式的特性&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;可实现的滤波器类型&lt;/strong&gt;：
&lt;ul&gt;
&lt;li&gt;奇数阶或偶数阶巴特沃斯滤波器&lt;/li&gt;
&lt;li&gt;奇数阶第一类切比雪夫滤波器&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;无法实现偶数阶第一类切比雪夫滤波器&lt;/strong&gt;，因为其直流增益不等于1/2&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;那么，我们能否实现第二类切比雪夫滤波器？答案是肯定的，但需要对双端LC标准形式做适当的改进。&lt;/p&gt;
&lt;h2 id="2-第二类切比雪夫滤波器的电路实现"&gt;2. 第二类切比雪夫滤波器的电路实现
&lt;/h2&gt;&lt;h3 id="21-有限零点与谐振回路"&gt;2.1 有限零点与谐振回路
&lt;/h3&gt;&lt;p&gt;第二类切比雪夫滤波器具有有限零点，而标准的双端LC形式只能实现全极点滤波器。因此，仅使用标准形式无法插入有限零点，从而无法实现第二类切比雪夫滤波器。&lt;/p&gt;
&lt;p&gt;解决方案是引入&lt;strong&gt;谐振回路(Resonant Tank)&lt;/strong&gt; 。&lt;/p&gt;
&lt;h4 id="并联谐振回路"&gt;并联谐振回路
&lt;/h4&gt;&lt;p&gt;并联谐振回路的结构如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="384px" data-flex-grow="160" height="328" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-5/math20250723205716.png" width="525"&gt;&lt;/p&gt;
&lt;p&gt;对于并联谐振回路，其输入阻抗为：&lt;/p&gt;
$$Z_{in}(j\omega) = \frac{1}{j\omega C} \parallel j\omega L = \frac{j\omega L/C}{1 - \omega^2 LC}$$&lt;h4 id="串联谐振回路"&gt;串联谐振回路
&lt;/h4&gt;&lt;p&gt;对于串联谐振回路，其输入阻抗为：&lt;/p&gt;
$$Z_{in}(j\omega) = j\omega L + \frac{1}{j\omega C} = -j\frac{1 - \omega^2 LC}{\omega C}$$&lt;h4 id="谐振特性"&gt;谐振特性
&lt;/h4&gt;&lt;p&gt;在$\omega = \frac{1}{\sqrt{LC}}$时：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;串联谐振回路的阻抗为0&lt;/li&gt;
&lt;li&gt;并联谐振回路的阻抗为无穷大&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这个特殊的角频率称为&lt;strong&gt;谐振频率(Resonant Frequency)&lt;/strong&gt;。利用谐振回路的这一特性，我们就可以在滤波器中插入有限零点。&lt;/p&gt;
&lt;h3 id="22-设计实例三阶第二类切比雪夫滤波器"&gt;2.2 设计实例：三阶第二类切比雪夫滤波器
&lt;/h3&gt;&lt;p&gt;让我们尝试实现一个三阶第二类切比雪夫滤波器，使用如下电路结构：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="630px" data-flex-grow="262" height="240" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-5/math20250723210641.png" width="630"&gt;&lt;/p&gt;
&lt;h4 id="221-输入阻抗函数"&gt;2.2.1 输入阻抗函数
&lt;/h4&gt;&lt;p&gt;三阶第二类切比雪夫滤波器对应的输入阻抗为：&lt;/p&gt;
$$Z_{in}(s) = \frac{2s^3 + 0.6746s^2 + 0.2271s + 0.0400}{0.6746s^2 + 0.2271s + 0.0400}$$
 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;设计提示&lt;/strong&gt; (Shanthi Pavan): 当设计具有无理系数的滤波器时，舍入规则的经验法则是保持有效数字位数等于滤波器的阶数。例如，三阶滤波器应保留3位有效数字。否则，舍入误差会在求解电路其余部分时产生负阻抗。&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h4 id="222-高频特性分析"&gt;2.2.2 高频特性分析
&lt;/h4&gt;&lt;p&gt;在无限频率时，由于电容短路，电感占据阻抗的主导地位，因此：&lt;/p&gt;
$$L_1 + L_2 \parallel L_3 = \frac{2}{0.6746}$$&lt;h4 id="223-零点条件"&gt;2.2.3 零点条件
&lt;/h4&gt;&lt;p&gt;由于$Z_{in}(s) = sL_1 + Z_{in1}(s)$，我们需要确保在传递函数的零点处，串联谐振回路的阻抗为0。&lt;/p&gt;
&lt;p&gt;这样设计的原因有两个：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;在传递函数的零点处，反射系数为0&lt;/li&gt;
&lt;li&gt;当谐振回路将剩余阻抗全部短路时，所有输入能量都被反射，负载端电压为0&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;因此，在零点频率$\omega_z$处：&lt;/p&gt;
$$Z_{in}(j\omega_z) = j\omega_z L_1$$&lt;p&gt;通过计算可得：$L_1 = 2.8384\text{H}$&lt;/p&gt;
&lt;h4 id="224-剩余电路分析"&gt;2.2.4 剩余电路分析
&lt;/h4&gt;&lt;p&gt;去掉$L_1$后，剩余部分的输入导纳为：&lt;/p&gt;
$$Y_{in}(s) = \frac{0.6742s^2 + 0.2271s + 0.0400}{0.0852s^3 + 0.0299s^2 + 0.1135s + 0.0400}$$&lt;p&gt;串联谐振回路的导纳为：&lt;/p&gt;
$$Y_{\text{resonant}}(s) = \frac{sC_2}{1 + s^2L_2C_2}$$&lt;p&gt;在$\omega_z$处，导纳趋近于无穷大，且$\omega_z = \frac{1}{\sqrt{L_2C_2}}$。&lt;/p&gt;
&lt;p&gt;关键观察：在接近$\omega_z$时，$Y_{\text{resonant}}(s)$和$Y_{in1}(s)$的行为非常相似：&lt;/p&gt;
$$\lim_{s \to j\omega_z} Y_{in1}(s) = \lim_{s \to j\omega_z} Y_{\text{resonant}}(s)$$&lt;p&gt;由于只有一个未知数，可求得：$C_2 = 5.6745\text{F}$&lt;/p&gt;
&lt;p&gt;剩余求解过程比较直接。使用与上一节相同的方法，可求得：$L_3 = 2.838\text{H}$&lt;/p&gt;
&lt;p&gt;代入所有值后，剩余阻抗为1Ω，正符合我们的负载预期。&lt;/p&gt;
&lt;h3 id="23-偶数阶第二类切比雪夫滤波器的局限性"&gt;2.3 偶数阶第二类切比雪夫滤波器的局限性
&lt;/h3&gt;&lt;p&gt;很遗憾，我们无法使用双端LC滤波器实现偶数阶第二类切比雪夫滤波器，因为在频率趋近无穷大时，要求的传递函数值非零，这与LC电路的物理特性相矛盾。&lt;/p&gt;
&lt;h2 id="3-总结"&gt;3. 总结
&lt;/h2&gt;&lt;p&gt;本节完成了对双端LC滤波器标准形式的总结，并介绍了如何使用谐振回路来实现奇数阶第二类切比雪夫滤波器。&lt;/p&gt;
&lt;p&gt;到目前为止，我们的讨论都集中在低通滤波器的设计。读者可能会好奇：我们如何设计其他类型的滤波器——高通、带通、带阻滤波器？&lt;/p&gt;
&lt;p&gt;在接下来的章节中，我们将展示一种优雅的数学变换方法，通过频率变换技术，可以将一个低通原型滤波器等价地转换为其他类型的滤波器。这种方法不仅在理论上具有重要意义，在工程实践中也有广泛应用。&lt;/p&gt;</description></item><item><title>主动滤波器(4)：双端LC滤波器(1)</title><link>http://blog.cedard.top/p/active-filter-4/</link><pubDate>Sun, 13 Jul 2025 13:38:51 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-4/</guid><description>&lt;p&gt;我们在前三节中讨论了巴特沃斯滤波器以及两种切比雪夫滤波器的特性以及计算方法，但是我们还不知道应该怎么样使用电路元件制造这些对应的滤波器。从这一节开始，我们将从理论部分逐渐过渡到电路实现部分。&lt;/p&gt;
&lt;h2 id="1-双端lc滤波器doubly-terminated-lc-filter"&gt;1. 双端LC滤波器(Doubly-Terminated LC Filter)
&lt;/h2&gt;&lt;h3 id="11-阻抗匹配impedance-matching"&gt;1.1 阻抗匹配(Impedance Matching)
&lt;/h3&gt;&lt;p&gt;在早期的电话通信系统中，我们想要拥有最大的功率传输效率。根据欧姆定律，我们知道阻抗匹配可以使得信号的功率最大化。如果读者有关于微波电路的基础知识，那么你应该知道仅仅使得输入和输出端实阻抗相等是不够的，因为输入和输出端的感抗元件会修改相位。&lt;/p&gt;
&lt;p&gt;如果说输入端和输出端的阻抗是实数，那么令它们相等（阻抗匹配）就可以实现最大功率传输：&lt;/p&gt;
$$P = \frac{V^2}{4R}$$&lt;p&gt;如果说输出端和输入端的阻抗是复数，那么我们需要让输入端和输出端的阻抗满足共轭关系。如果我们无法实现共轭关系，那么我们需要让输入端和输出端的阻抗满足模长相等。&lt;/p&gt;
&lt;p&gt;要使得两端阻抗成共轭关系，我们需要在输入端和输出端都引入一个&lt;strong&gt;匹配网络(Matching Network)&lt;/strong&gt; 。匹配网络的作用是将输入端和输出端的阻抗变换为相同的共轭阻抗。一般来说，匹配网络会优先使用感抗元件（电容，电感）而非阻抗元件（电阻），因为感抗元件只消耗感性功率而不消耗有功功率，因此不消耗实际能量。&lt;/p&gt;
&lt;p&gt;需要注意的是，阻抗匹配不一定能实现最大功率传输。最大功率传输的条件是输入端和输出端的阻抗完全相等，而阻抗匹配仅仅是使得输入端和输出端的阻抗模长相等。&lt;/p&gt;
&lt;h3 id="12-双端lc滤波器的基本结构"&gt;1.2 双端LC滤波器的基本结构
&lt;/h3&gt;&lt;p&gt;滤波器的建立和匹配网络十分相似。我们把下面的电路称为&lt;strong&gt;双端LC滤波器(Doubly-Terminated LC Filter)&lt;/strong&gt; ，也被称为&lt;strong&gt;双端LC标准型(Doubly-Terminated LC Canonical Form)&lt;/strong&gt; ，或者&lt;strong&gt;双端LC梯形网络(Doubly-Terminated LC Ladder)&lt;/strong&gt; 。它的基本结构如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="794px" data-flex-grow="331" height="486" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-4/math20250713181555.png" srcset="http://blog.cedard.top/p/active-filter-4/math20250713181555_hu_df7d4d9fee406c6f.png 800w, http://blog.cedard.top/p/active-filter-4/math20250713181555_hu_b997df333c42744d.png 1600w, http://blog.cedard.top/p/active-filter-4/math20250713181555.png 1609w" width="1609"&gt;&lt;/p&gt;
&lt;p&gt;使用双端LC滤波器的标准形式，我们可以实现任何全极点滤波器。需要注意的是，感抗元件的数量对应于滤波器的极点数量——对于全极点滤波器而言，这就是系统的阶数。&lt;/p&gt;
&lt;p&gt;那么接下来的问题就是，假如说我们给定一个滤波器的传递函数，我们要如何设计双端LC滤波器的感抗元件呢？直觉上来说，我们可以建立这个二端网络的阻抗矩阵：&lt;/p&gt;
$$Z = \begin{bmatrix}
Z_{11} &amp; Z_{12} \\
Z_{21} &amp; Z_{22}
\end{bmatrix}$$&lt;p&gt;然后我们使用分压原理来计算输入端和输出端的阻抗，从而计算出传递函数。然而这样做十分复杂，因此我们需要一个更简单的方法。&lt;/p&gt;
&lt;h3 id="13-无损网络lossless-network功率传输反射系数reflection-coefficient"&gt;1.3 无损网络(Lossless Network)，功率传输，反射系数（Reflection Coefficient）
&lt;/h3&gt;&lt;p&gt;如果说一个网络仅由感抗元件组成，这个网络也被称为&lt;strong&gt;无损网络(Lossless Network)&lt;/strong&gt; ，因为不会有任何的功率耗散在网络里。&lt;/p&gt;
&lt;p&gt;我们将传输给负载电阻的功率定义为$P_a$，那么由于无损网络的特性，我们可以列出以下等式：&lt;/p&gt;
$$\begin{aligned}
P_a &amp;= \frac{V_o^2}{Z_0} = \frac{|H(j\omega)|^2 V_i^2}{Z_0} \\
&amp;= \frac{V_i^2}{|Z_0 + Z_{in}(s)|^2}\Re(Z_{in}(s))
\end{aligned}$$&lt;p&gt;我们的目标是找到$Z_{in}(s)$，使得上述等式成立。我们知道，最大功率在输入端和输出端的阻抗相等时实现，此时输出端的功率为：&lt;/p&gt;
$$P_{max} = \frac{V_i^2}{4Z_0}$$&lt;p&gt;如果我们将最大传输功率与实际传输功率取差：&lt;/p&gt;
$$\begin{aligned}
P_{max} - P_a &amp;= \frac{V_i^2}{4Z_0} - \frac{V_i^2}{|Z_0 + Z_{in}(s)|^2}\Re(Z_{in}(s)) \\
&amp;= \frac{V_i^2}{4Z_0} - \frac{V_i^2(Z_{in}+ Z_{in}^*)}{2(Z_0 + Z_{in})(Z_0 + Z_{in}^*)} \\
&amp;= \frac{V_i^2}{4Z_0} \frac{Z_0^2 - Z_0Z_{in}^* - Z_{in}Z_0 + Z_{in}Z_{in}^* }{(Z_0 + Z_{in})(Z_0 + Z_{in}^*)} \\
&amp;= \frac{V_i^2}{4Z_0} \frac{(Z_{in} - Z_0)(Z_{in}^* - Z_0)}{(Z_0 + Z_{in})(Z_0 + Z_{in}^*)}
\end{aligned}$$&lt;p&gt;如果我们定义：&lt;/p&gt;
$$\Gamma = \frac{Z_{in} - Z_0}{Z_{in} + Z_0}$$&lt;p&gt;那么我们可以得到：&lt;/p&gt;
$$P_{max} - P_a = \frac{V_i^2}{4Z_0} \Gamma \Gamma^* = \frac{V_i^2}{4Z_0} |\Gamma|^2$$&lt;p&gt;我们称$\Gamma$为&lt;strong&gt;反射系数(Reflection Coefficient)&lt;/strong&gt; ，它表示了输入端和输出端的阻抗不匹配程度。反射系数的模长越大，表示输入端和输出端的阻抗越不匹配。当阻抗完全匹配时，反射系数为0，此时功率传输最大。&lt;/p&gt;
$$P_a = (1 - |\Gamma|^2) P_{max}$$&lt;p&gt;回顾我们的功率传输，&lt;/p&gt;
$$\frac{V_i^2}{4Z_0} (1 - |\Gamma|^2) = \frac{V_i^2 |H(j\omega)|^2}{Z_0}$$&lt;p&gt;我们可以得到：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1 - |\Gamma|^2}{4}$$&lt;p&gt;由于$|\Gamma| &amp;gt; 0$，因此这种低通滤波器的最大DC增益只能达到$\frac{1}{2}$。&lt;/p&gt;
&lt;h3 id="14-通带阻带与反射系数"&gt;1.4 通带，阻带与反射系数
&lt;/h3&gt;&lt;p&gt;比较上述反射系数与幅度响应的关系，我们可以得出以下结论：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;在通带中&lt;/strong&gt; ，反射系数的模长$|\Gamma|$接近0，因此幅度响应$|H(j\omega)|$接近1。
&lt;ul&gt;
&lt;li&gt;此时，全部的功率都传输到负载电阻上。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;在阻带中&lt;/strong&gt; ，反射系数的模长$|\Gamma|$接近1，因此幅度响应$|H(j\omega)|$接近0。
&lt;ul&gt;
&lt;li&gt;此时，全部的功率都被反射回输入端，没有传输到负载电阻上。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这符合我们的直觉，因为在通带中，信号可以通过滤波器传输到负载，而在阻带中，信号被滤波器阻挡，无法传输到负载。&lt;/p&gt;
&lt;h3 id="15-例三阶巴特沃斯滤波器"&gt;1.5 例：三阶巴特沃斯滤波器
&lt;/h3&gt;&lt;p&gt;让我们来看一个具体的例子。我们设计这样一个双端LC滤波器，使得它的传递函数为三阶巴特沃斯滤波器。我们归一化截止频率与阻抗。&lt;/p&gt;
&lt;p&gt;首先我们可以列出以下方程：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1}{1 + \omega^6} \cdot \frac{1}{4} = \frac{1 - |\Gamma|^2}{4}$$&lt;p&gt;那么，&lt;/p&gt;
$$|\Gamma|^2 = \frac{\omega^6}{1 + \omega^6} = \Gamma(j\omega)\Gamma(-j\omega)$$&lt;p&gt;因此我们可以推得，&lt;/p&gt;
$$\Gamma(s) = \frac{s^3}{(s+1)(s^2 + s + 1)}$$&lt;p&gt;使用归一化条件$Z_0 = 1$，我们可以求得输入阻抗：&lt;/p&gt;
$$Z_{in}(s) = \frac{2s^3 + 2s^2 + 2s + 1}{2s^2 + 2s + 1}$$&lt;p&gt;现在让我们来思考一个问题。以下的两个网络都是三阶标准型，我们应该选择哪一个来实现我们的滤波器？&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="596px" data-flex-grow="248" height="557" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-4/math20250713191605.png" srcset="http://blog.cedard.top/p/active-filter-4/math20250713191605_hu_d5fb37deb922a1c2.png 800w, http://blog.cedard.top/p/active-filter-4/math20250713191605.png 1384w" width="1384"&gt;&lt;/p&gt;
&lt;p&gt;答案应该是左边的网络，因为当频率趋近于无穷大时，我们希望阻抗趋近于无穷大，而只有左边的网络才能满足这个条件。右边的网络在高频时的阻抗趋近于0，这会导致信号被短路。&lt;/p&gt;
&lt;p&gt;在$s \to \infty$时，阻抗大小趋近于1，因此可以求得第一个电感的值为1H。移除掉这个电感，再对接下来的电路进行同样的分析，我们可以得到第二个电容的值为2F，第二个电感的值为1H，而最后的负载电阻值为1Ω，正如我们所期望的。&lt;/p&gt;
&lt;h3 id="16-小结"&gt;1.6 小结
&lt;/h3&gt;&lt;p&gt;在这个例子中，我们展示了如何使用双端LC滤波器的标准形式来实现一个三阶巴特沃斯滤波器。我们通过计算反射系数和输入阻抗来设计滤波器的感抗元件，并确保在高频时阻抗趋近于无穷大。这个方法依然可以用在第一类切比雪夫滤波器的设计上，但是对于第二类切比雪夫滤波器，由于有限的零点，我们需要引入&lt;strong&gt;谐振回路(Resonant Tank)&lt;/strong&gt; 来实现有限的零点。我们将在下一节中讨论这个例子。&lt;/p&gt;</description></item><item><title>主动滤波器(3)：第二类切比雪夫滤波器</title><link>http://blog.cedard.top/p/active-filter-3/</link><pubDate>Sun, 13 Jul 2025 11:15:41 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-3/</guid><description>&lt;h2 id="引言"&gt;引言
&lt;/h2&gt;&lt;p&gt;在前一节中，我们详细讨论了切比雪夫滤波器的设计原理与数学推导。简言之，切比雪夫滤波器通过允许&lt;strong&gt;通带(passband)&lt;/strong&gt; 内的纹波来实现更陡峭的过渡带，从而在给定的阻带衰减要求下，使用更少的元件。我们可以把切比雪夫滤波器视为巴特沃斯滤波器的一种推广。&lt;/p&gt;
&lt;p&gt;然而，切比雪夫滤波器和巴特沃斯滤波器对&lt;strong&gt;阻带(stopband)&lt;/strong&gt; 没有任何特殊要求，这也就是说这两个滤波器专注于设计通带的特性，而阻带的特性是伴随而来的。&lt;strong&gt;第二类切比雪夫滤波器(Inverse Chebyshev Filter)&lt;/strong&gt; 则是切比雪夫滤波器的一个变种，它允许在阻带内引入纹波，从而进一步优化通带和阻带的特性；然而通带的特性便是伴随而来的。&lt;/p&gt;
&lt;h2 id="1-第二类切比雪夫滤波器的基本特性"&gt;1. 第二类切比雪夫滤波器的基本特性
&lt;/h2&gt;&lt;p&gt;第二类切比雪夫滤波器，也被称为&lt;strong&gt;反切比雪夫滤波器(Inverse Chebyshev Filter)&lt;/strong&gt; ，是切比雪夫滤波器的一个变种。它的幅度响应如下：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="307px" data-flex-grow="128" height="552" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-3/math20250713125226.png" width="707"&gt;&lt;/p&gt;
&lt;p&gt;可以看到，第二类切比雪夫滤波器在阻带内引入了纹波。第二类切比雪夫滤波器相比切比雪夫滤波器而言，有了一个本质上的区别：由于阻带内的纹波，我们需要在阻带内引入零点。也就是说，第二类切比雪夫滤波器的传递函数不再是一个全极点滤波器。我们将在后面的章节中看到，这个区别将导致第二类切比雪夫滤波器在电路实现上有显著区别。&lt;/p&gt;
&lt;h3 id="11-主要特点总结"&gt;1.1 主要特点总结
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;通带特性&lt;/strong&gt;：最大平坦（类似巴特沃斯滤波器）&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;阻带特性&lt;/strong&gt;：等纹波响应&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;传递函数&lt;/strong&gt;：既有极点也有零点&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;滚降速度&lt;/strong&gt;：由于阻带零点的存在，比巴特沃斯滤波器更快&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="2-第二类切比雪夫滤波器的数学推导"&gt;2. 第二类切比雪夫滤波器的数学推导
&lt;/h2&gt;&lt;h3 id="21-幅度响应函数的构造"&gt;2.1 幅度响应函数的构造
&lt;/h3&gt;&lt;p&gt;我们同样来构造幅度响应的分母函数。与第一类切比雪夫滤波器类似，我们定义：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1}{1 + \frac{1}{\epsilon^2} F(\omega^2)}$$&lt;p&gt;$F$函数应该长得像这样：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="373px" data-flex-grow="155" height="547" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-3/math20250713130459.png" srcset="http://blog.cedard.top/p/active-filter-3/math20250713130459_hu_2afca9783a34ffda.png 800w, http://blog.cedard.top/p/active-filter-3/math20250713130459.png 852w" width="852"&gt;&lt;/p&gt;
&lt;p&gt;可以发现，如果经过x轴和y轴的反函数变换，$F$函数可以直接用切比雪夫多项式来表示：&lt;/p&gt;
$$F(\omega^2) = \frac{1}{T_n^2\left(\frac{1}{\omega}\right)}$$&lt;h3 id="22-完整的幅度响应表达式"&gt;2.2 完整的幅度响应表达式
&lt;/h3&gt;&lt;p&gt;因此，第二类切比雪夫滤波器的幅度响应可以表示为：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{\epsilon^2 T_n^2\left(\frac{1}{\omega}\right)}{1 + \epsilon^2 T_n^2\left(\frac{1}{\omega}\right)}$$&lt;p&gt;或者等价地写成：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1}{1 + \frac{1}{\epsilon^2 T_n^2\left(\frac{1}{\omega}\right)}}$$&lt;h3 id="23-极点的求解"&gt;2.3 极点的求解
&lt;/h3&gt;&lt;p&gt;如果要求得第二类切比雪夫滤波器的极点，我们需要解以下方程：&lt;/p&gt;
$$1 + \frac{1}{\epsilon^2 T_n^2\left(\frac{s}{j}\right)} = 0$$&lt;p&gt;即：&lt;/p&gt;
$$T_n\left(\frac{s}{j}\right) = \pm \frac{j}{\epsilon}$$&lt;p&gt;利用第一类切比雪夫滤波器的极点结果，通过变换$s \to \frac{1}{s}$，我们可以得到第二类切比雪夫滤波器的极点。&lt;/p&gt;
&lt;p&gt;如果第一类切比雪夫滤波器的极点为$p_k$，则第二类切比雪夫滤波器的极点为：&lt;/p&gt;
$$p_{k,inv} = \frac{1}{p_k}$$&lt;h2 id="3-设计实例三阶第二类切比雪夫滤波器"&gt;3. 设计实例：三阶第二类切比雪夫滤波器
&lt;/h2&gt;&lt;h3 id="31-极点的计算"&gt;3.1 极点的计算
&lt;/h3&gt;&lt;p&gt;让我们来设计一个三阶的第二类切比雪夫滤波器。&lt;/p&gt;
&lt;p&gt;首先，从上一节可以求得，三阶切比雪夫滤波器的三个极点为：&lt;/p&gt;
$$\begin{aligned}
p_1, p_2 &amp;= -\sin\frac{\pi}{6} \sinh\left(\frac{1}{3}\sinh^{-1}\frac{1}{\epsilon}\right) \\
&amp;\quad \pm j \cos\frac{\pi}{6} \cosh\left(\frac{1}{3}\sinh^{-1}\frac{1}{\epsilon}\right) \\
p_3 &amp;= -\sin\frac{\pi}{2} \sinh\left(\frac{1}{3}\sinh^{-1}\frac{1}{\epsilon}\right)
\end{aligned}$$&lt;p&gt;切比雪夫滤波器的分母函数因此可以表示为：&lt;/p&gt;
$$\begin{aligned}
D(s) &amp;= \left(1 - \frac{s}{p_1}\right)\left(1 - \frac{s}{p_2}\right)\left(1 - \frac{s}{p_3}\right) \\
&amp;= 1 + a_1 s + a_2 s^2 + a_3 s^3
\end{aligned}$$&lt;p&gt;那么对于第二类切比雪夫滤波器，它的分母就应该是：&lt;/p&gt;
$$D_{inv}(s) = s^3 + a_1 s^2 + a_2 s + a_3$$&lt;h3 id="32-零点的计算"&gt;3.2 零点的计算
&lt;/h3&gt;&lt;p&gt;除了极点之外，我们还需要求得第二类切比雪夫滤波器的零点。零点满足：&lt;/p&gt;
$$\epsilon^2 T_n^2\left(\frac{1}{\omega_z}\right) = 0$$&lt;p&gt;在这个例子中：&lt;/p&gt;
$$T_3\left(\frac{1}{\omega_z}\right) = \cos\left(3 \cos^{-1}\left(\frac{1}{\omega_z}\right)\right) = 0$$&lt;p&gt;因此，零点满足：&lt;/p&gt;
$$3 \cos^{-1}\left(\frac{1}{\omega_z}\right) = \frac{(2k+1)\pi}{2}, \quad k = 0, 1, 2$$&lt;p&gt;即：&lt;/p&gt;
$$\frac{1}{\omega_z} = \cos\left(\frac{(2k+1)\pi}{6}\right), \quad k = 0, 1, 2$$&lt;p&gt;计算得到零点为：&lt;/p&gt;
$$\begin{aligned}
\omega_{z1}, \omega_{z2} &amp;= \pm \frac{1}{\cos\left(\frac{\pi}{6}\right)} = \pm \frac{2}{\sqrt{3}} \\
\omega_{z3} &amp;= \frac{1}{\cos \left(\frac{\pi}{2}\right)} = \infty
\end{aligned}$$&lt;p&gt;因此我们可以看到三阶第二类切比雪夫滤波器有两个有限的零点和一个无限零点。&lt;/p&gt;
&lt;h3 id="33-传递函数的完整形式"&gt;3.3 传递函数的完整形式
&lt;/h3&gt;&lt;p&gt;三阶第二类切比雪夫滤波器的传递函数可以写成：&lt;/p&gt;
$$H(s) = K \frac{s^2 + \omega_{z1}^2}{s^3 + a_1 s^2 + a_2 s + a_3}$$&lt;p&gt;其中$K$是增益常数，通过归一化条件确定。&lt;/p&gt;
&lt;h2 id="4-偶数阶第二类切比雪夫滤波器的特殊性质"&gt;4. 偶数阶第二类切比雪夫滤波器的特殊性质
&lt;/h2&gt;&lt;p&gt;对于偶数阶第二类切比雪夫滤波器而言，在$\omega \to \infty$的时候，幅度响应并不会趋近于0，而是会趋近于：&lt;/p&gt;
$$\lim_{\omega \to \infty} |H(j\omega)| = \frac{\epsilon}{\sqrt{1 + \epsilon^2}}$$&lt;p&gt;这个特性带来了一个重要的工程后果：我们将无法使用被动元件实现偶数阶第二类切比雪夫滤波器。这是因为被动LC滤波器在高频时的增益必须趋于零，而偶数阶反切比雪夫滤波器在高频时具有非零增益。&lt;/p&gt;
&lt;h2 id="5-第二类切比雪夫滤波器的通带分析"&gt;5. 第二类切比雪夫滤波器的通带分析
&lt;/h2&gt;&lt;p&gt;第二类切比雪夫滤波器在通带中会有怎样的特性？我们通过使$\omega \to 0$来分析通带的特性。&lt;/p&gt;
&lt;p&gt;在$\omega \to 0$时，以下近似成立：&lt;/p&gt;
$$\cos^{-1}\frac{1}{\omega} \approx \ln\frac{2}{\omega}$$$$\cosh\left(n \cos^{-1}\frac{1}{\omega}\right) \approx \frac{1}{2} e^{n \ln\frac{2}{\omega}} = \frac{1}{2}\left(\frac{2}{\omega}\right)^n$$&lt;p&gt;因此：&lt;/p&gt;
$$\begin{aligned}
|H(j\omega)|^2 &amp;\approx \frac{1}{1 + \frac{1}{\epsilon^2 \left(\frac{2}{\omega}\right)^{2n}}} \\
&amp;= \frac{1}{1 + \frac{\omega^{2n}}{4^n \epsilon^2}} \\
&amp;= \frac{1}{1 + \frac{1}{4^n \epsilon^2}\omega^{2n}}
\end{aligned}$$&lt;p&gt;这表明在通带中第二类切比雪夫滤波器趋近于巴特沃斯滤波器的响应形式，但是由于阻带的零点，滚降速度会更快。&lt;/p&gt;
&lt;h2 id="6-椭圆函数滤波器简介"&gt;6. 椭圆函数滤波器简介
&lt;/h2&gt;&lt;p&gt;我们看到在通带和在阻带中引入纹波可以改善滤波器的滚降速度。是否能够在通带和阻带中都引入纹波，从而进一步改善滚降速度呢？答案是肯定的，这就是&lt;strong&gt;椭圆函数滤波器(Elliptic Filter)&lt;/strong&gt; 。&lt;/p&gt;
&lt;p&gt;椭圆函数滤波器的主要特点：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;通带&lt;/strong&gt;：等纹波响应&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;阻带&lt;/strong&gt;：等纹波响应&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;滚降速度&lt;/strong&gt;：在所有滤波器类型中最陡峭&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;复杂性&lt;/strong&gt;：数学推导最为复杂，需要椭圆积分理论&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;椭圆函数滤波器允许在通带和阻带中都引入纹波，从而实现最陡峭的滚降速度。椭圆函数滤波器的数学推导涉及椭圆积分和雅可比椭圆函数，较为复杂，我们这里不再详细展开。&lt;/p&gt;
&lt;h2 id="7-总结与对比"&gt;7. 总结与对比
&lt;/h2&gt;&lt;h3 id="71-四种经典滤波器的比较"&gt;7.1 四种经典滤波器的比较
&lt;/h3&gt;&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;滤波器类型&lt;/th&gt;
					&lt;th&gt;通带特性&lt;/th&gt;
					&lt;th&gt;阻带特性&lt;/th&gt;
					&lt;th&gt;滚降速度&lt;/th&gt;
					&lt;th&gt;实现复杂度&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;巴特沃斯&lt;/td&gt;
					&lt;td&gt;最大平坦&lt;/td&gt;
					&lt;td&gt;单调下降&lt;/td&gt;
					&lt;td&gt;最慢&lt;/td&gt;
					&lt;td&gt;最简单&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;切比雪夫I&lt;/td&gt;
					&lt;td&gt;等纹波&lt;/td&gt;
					&lt;td&gt;单调下降&lt;/td&gt;
					&lt;td&gt;较快&lt;/td&gt;
					&lt;td&gt;中等&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;切比雪夫II&lt;/td&gt;
					&lt;td&gt;最大平坦&lt;/td&gt;
					&lt;td&gt;等纹波&lt;/td&gt;
					&lt;td&gt;较快&lt;/td&gt;
					&lt;td&gt;中等&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;椭圆函数&lt;/td&gt;
					&lt;td&gt;等纹波&lt;/td&gt;
					&lt;td&gt;等纹波&lt;/td&gt;
					&lt;td&gt;最快&lt;/td&gt;
					&lt;td&gt;最复杂&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="72-设计选择指南"&gt;7.2 设计选择指南
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;巴特沃斯滤波器&lt;/strong&gt;：适用于对通带平坦度要求极高的应用&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;第一类切比雪夫滤波器&lt;/strong&gt;：适用于对阻带衰减要求较高，可以容忍通带纹波的应用&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;第二类切比雪夫滤波器&lt;/strong&gt;：适用于对通带平坦度要求较高，可以容忍阻带纹波的应用&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;椭圆函数滤波器&lt;/strong&gt;：适用于对滚降速度要求极高，可以容忍通带和阻带纹波的应用&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;下图展示了四种滤波器的典型幅度响应：
&lt;img class="gallery-image" data-flex-basis="361px" data-flex-grow="150" height="790" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-3/math20250713134719.png" srcset="http://blog.cedard.top/p/active-filter-3/math20250713134719_hu_cf13134c1f1be9b3.png 800w, http://blog.cedard.top/p/active-filter-3/math20250713134719.png 1189w" width="1189"&gt;&lt;/p&gt;
&lt;h2 id="8-常用的切比雪夫多项式表"&gt;8. 常用的切比雪夫多项式表
&lt;/h2&gt;&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;阶数$n$&lt;/th&gt;
					&lt;th&gt;切比雪夫多项式 $T_n(x)$&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;1&lt;/td&gt;
					&lt;td&gt;$x$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;2&lt;/td&gt;
					&lt;td&gt;$2x^2 - 1$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;3&lt;/td&gt;
					&lt;td&gt;$4x^3 - 3x$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;4&lt;/td&gt;
					&lt;td&gt;$8x^4 - 8x^2 + 1$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;5&lt;/td&gt;
					&lt;td&gt;$16x^5 - 20x^3 + 5x$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;6&lt;/td&gt;
					&lt;td&gt;$32x^6 - 48x^4 + 18x^2 - 1$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;7&lt;/td&gt;
					&lt;td&gt;$64x^7 - 112x^5 + 56x^3 - 7x$&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="81-递推关系"&gt;8.1 递推关系
&lt;/h3&gt;&lt;p&gt;切比雪夫多项式满足以下递推关系：&lt;/p&gt;
$$T_{n+1}(x) = 2xT_n(x) - T_{n-1}(x)$$&lt;p&gt;其中：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$T_0(x) = 1$&lt;/li&gt;
&lt;li&gt;$T_1(x) = x$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这个递推关系为高阶切比雪夫多项式的计算提供了便利。&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;在下一篇中，我们将讨论这些滤波器的实际电路实现方法。&lt;/p&gt;</description></item><item><title>主动滤波器(2)：切比雪夫近似</title><link>http://blog.cedard.top/p/active-filter-2/</link><pubDate>Sat, 12 Jul 2025 20:02:28 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-2/</guid><description>&lt;p&gt;在上一篇中，我们讨论了巴特沃斯近似的设计方法及其特性。在深入探讨新的滤波器设计方法之前，我们需要首先分析一个关键问题：&lt;/p&gt;
&lt;h2 id="1-巴特沃斯滤波器的局限性分析"&gt;1. 巴特沃斯滤波器的局限性分析
&lt;/h2&gt;&lt;p&gt;巴特沃斯滤波器因其设计简单而在滤波器工程中被广泛采用。然而，在某些应用场景下，巴特沃斯滤波器并非最优选择。&lt;/p&gt;
&lt;p&gt;对于一个N阶滤波器，物理实现所需的最少无源元件（电感或电容）数量为N个。在实际工程设计中，通常给定通带最小增益和阻带最大增益的技术指标。巴特沃斯滤波器在通带内具有最大平坦特性，但这一特性在满足给定规格时可能过于严格。&lt;/p&gt;
&lt;p&gt;如本文将要证明的，切比雪夫滤波器通过在通带内引入可控的纹波，能够以更低的阶数实现相同的阻带衰减性能。这一特性在早期模拟滤波器设计中具有重要意义，因为较少的元件意味着更低的成本和更小的体积。即使在现代集成电路设计中，减少电容和电感的使用仍然意味着更小的芯片面积和更低的功耗。&lt;/p&gt;
&lt;h2 id="2-第一类切比雪夫滤波器"&gt;2. 第一类切比雪夫滤波器
&lt;/h2&gt;&lt;h3 id="21-设计原理与幅度响应特性"&gt;2.1 设计原理与幅度响应特性
&lt;/h3&gt;&lt;p&gt;切比雪夫滤波器的典型幅度响应如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="303px" data-flex-grow="126" height="552" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-2/math20250712230644.png" width="698"&gt;&lt;/p&gt;
&lt;p&gt;我们引入参数$\epsilon$来控制通带内的纹波幅度。定义滤波器的幅度平方响应为：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1}{D(\omega^2)} = \frac{1}{1 + \epsilon^2 F_1(\omega^2)}$$&lt;p&gt;其中$F_1(\omega^2)$的理想特性函数应具有如下形式：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="375px" data-flex-grow="156" height="547" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-2/math20250712233123.png" srcset="http://blog.cedard.top/p/active-filter-2/math20250712233123_hu_af2258fb60d1a0c9.png 800w, http://blog.cedard.top/p/active-filter-2/math20250712233123.png 855w" width="855"&gt;&lt;/p&gt;
&lt;h3 id="22-切比雪夫多项式的数学推导"&gt;2.2 切比雪夫多项式的数学推导
&lt;/h3&gt;&lt;h4 id="221-插值法构造多项式"&gt;2.2.1 插值法构造多项式
&lt;/h4&gt;&lt;p&gt;基于$F_1$在$0$、$\omega_2$、$\omega_4$处的零点，可以构造如下多项式插值：&lt;/p&gt;
$$F_1(\omega^2) = k^2 \omega^2 (\omega^2 - \omega_2^2)^2(\omega^2 - \omega_4^2)^2$$&lt;p&gt;对于$F_1(\omega^2) - 1$，考虑到其在$\omega_1$、$\omega_3$、$1$处的零点，可得：&lt;/p&gt;
$$F_1(\omega^2) - 1 = k^2 (\omega^2 - \omega_1^2)(\omega^2 - \omega_3^2)(\omega^2 - 1)$$&lt;p&gt;设$C_5(\omega)^2 = F_1(\omega^2)$，则：&lt;/p&gt;
$$C_5(\omega) = k \omega (\omega^2 - \omega_2^2)(\omega^2 - \omega_4^2)$$&lt;p&gt;由于$C_5$在$\omega_1$、$\omega_3$处取得极值，对其求导可得：&lt;/p&gt;
$$\frac{dC_5(\omega)}{d\omega} = k_{unknown}(\omega^2 - \omega_1^2)(\omega^2 - \omega_3^2)$$&lt;h4 id="222-微分方程的建立与求解"&gt;2.2.2 微分方程的建立与求解
&lt;/h4&gt;&lt;p&gt;当$\omega \to \infty$时，$C_5(\omega) \approx k \omega^5$，因此其导数的主导项系数为$5k$，从而$k_{unknown} = 5k$。&lt;/p&gt;
&lt;p&gt;比较$F_1 - 1$的两种表达式，可建立如下微分方程：&lt;/p&gt;
$$(\frac{1}{5}\frac{dC_5}{d\omega})^2 = \frac{C_5^2 - 1}{\omega^2 - 1}$$&lt;p&gt;整理得：&lt;/p&gt;
$$\frac{dC_5}{\sqrt{C_5^2 - 1}} = \frac{5 d\omega}{\sqrt{\omega^2 - 1}}$$&lt;p&gt;对两边积分：&lt;/p&gt;
$$
\begin{aligned}
\int \frac{dC_5}{\sqrt{C_5^2 - 1}} &amp;= \int \frac{5 d\omega}{\sqrt{\omega^2 - 1}} \\
\cosh^{-1}(C_5) &amp;= 5 \cosh^{-1}(\omega) + C_{constant}
\end{aligned}
$$&lt;p&gt;应用边界条件$C_5(1) = 1$，得$C_{constant} = -5 \cosh^{-1}(1) = 0$。&lt;/p&gt;
&lt;p&gt;因此：&lt;/p&gt;
$$C_5(\omega) = \cosh(5\cosh^{-1}(\omega))$$&lt;h4 id="223-一般化结果"&gt;2.2.3 一般化结果
&lt;/h4&gt;&lt;p&gt;将上述结果推广至n阶情况：&lt;/p&gt;
$$C_n(\omega) = \cosh(n \cosh^{-1}(\omega))$$&lt;h3 id="23-切比雪夫多项式的完整定义"&gt;2.3 切比雪夫多项式的完整定义
&lt;/h3&gt;&lt;h4 id="231-三角函数与双曲函数的关系"&gt;2.3.1 三角函数与双曲函数的关系
&lt;/h4&gt;&lt;p&gt;根据欧拉公式和双曲函数的定义，可得关键关系：&lt;/p&gt;
$$\cosh(jx) = \cos(x), \quad \cos(jx) = \cosh(x)$$&lt;p&gt;对于反函数的关系：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;当$x &amp;gt; 1$时：$\cos^{-1}(x) = j \cosh^{-1}(x)$&lt;/li&gt;
&lt;li&gt;当$0 &amp;lt; x &amp;lt; 1$时：$\cosh^{-1}(x) = j \cos^{-1}(x)$&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="232-切比雪夫多项式的定义"&gt;2.3.2 切比雪夫多项式的定义
&lt;/h4&gt;&lt;p&gt;基于上述关系，切比雪夫多项式的完整定义为：&lt;/p&gt;
$$T_n(\omega) = \begin{cases}
\cosh(n \cosh^{-1}(\omega)), &amp; \text{当 }\omega \geq 1 \\
\cos(n \cos^{-1}(\omega)), &amp; \text{当 }0 \leq \omega \leq 1
\end{cases}$$&lt;h4 id="233-多项式性质的验证"&gt;2.3.3 多项式性质的验证
&lt;/h4&gt;&lt;p&gt;对于$|\omega| \leq 1$的情况，可以验证：&lt;/p&gt;
$$
\begin{aligned}
T_1(\omega) &amp;= \cos(\cos^{-1}(\omega)) = \omega \\
T_2(\omega) &amp;= \cos(2\cos^{-1}(\omega)) = 2\omega^2 - 1
\end{aligned}
$$&lt;p&gt;通过三角恒等式（倍角公式），可证明$T_n(\omega)$确实是$\omega$的n次多项式。&lt;/p&gt;
&lt;h3 id="24-切比雪夫滤波器的工程术语"&gt;2.4 切比雪夫滤波器的工程术语
&lt;/h3&gt;&lt;p&gt;这种多项式以俄国数学家帕夫努季·切比雪夫（Pafnuty Chebyshev）命名，称为&lt;strong&gt;切比雪夫多项式&lt;/strong&gt;。基于切比雪夫近似的滤波器称为&lt;strong&gt;切比雪夫滤波器&lt;/strong&gt;，在文献中也常见以下术语：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;等纹波滤波器（Equal Ripple Filter）&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;因其通带内的最大纹波幅度恒定&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;最小最大值滤波器（Minimax Filter）&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;基于切比雪夫定理：在所有可能的n次多项式中，切比雪夫多项式使得其在给定区间内的最大偏差最小&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="3-切比雪夫多项式的重要性质"&gt;3. 切比雪夫多项式的重要性质
&lt;/h2&gt;&lt;h3 id="31-偶数阶与奇数阶的区别"&gt;3.1 偶数阶与奇数阶的区别
&lt;/h3&gt;&lt;p&gt;偶数阶切比雪夫多项式和奇数阶的最大最小值分布存在显著差异。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;例题&lt;/strong&gt;：四阶切比雪夫多项式在角频率为0时的值&lt;/p&gt;
$$T_4(0) = \cos(4\cos^{-1}(0)) = \cos(4 \times \frac{\pi}{2}) = \cos(2\pi) = 1$$&lt;p&gt;&lt;strong&gt;重要结论&lt;/strong&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;偶数阶切比雪夫多项式：在$\omega = 0$处取最大值&lt;/li&gt;
&lt;li&gt;奇数阶切比雪夫多项式：在$\omega = 0$处取最小值&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这导致偶数阶切比雪夫滤波器在直流处的幅度响应不为1，而是$\frac{1}{\sqrt{1 + \epsilon^2}}$，如下图所示：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="303px" data-flex-grow="126" height="552" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-2/math20250713100146.png" width="698"&gt;&lt;/p&gt;
&lt;h3 id="32-通带极值点的分布"&gt;3.2 通带极值点的分布
&lt;/h3&gt;&lt;h4 id="321-通带最大值"&gt;3.2.1 通带最大值
&lt;/h4&gt;&lt;p&gt;通带最大值对应于切比雪夫多项式的最小值：&lt;/p&gt;
$$\cos(n \cos^{-1}(\omega)) = 0$$&lt;p&gt;解得：&lt;/p&gt;
$$\omega = \cos\left(\frac{(2m + 1)\pi}{2n}\right), \quad m = 0, 1, \ldots, n - 1$$&lt;h4 id="322-通带最小值"&gt;3.2.2 通带最小值
&lt;/h4&gt;&lt;p&gt;通带最小值对应于切比雪夫多项式的最大值：&lt;/p&gt;
$$\cos(n \cos^{-1}(\omega)) = 1$$&lt;p&gt;解得：&lt;/p&gt;
$$\omega = \cos\left(\frac{2m\pi}{n}\right), \quad m = 0, 1, \ldots, n - 1$$&lt;h3 id="33-纹波与阻带衰减的关系"&gt;3.3 纹波与阻带衰减的关系
&lt;/h3&gt;&lt;p&gt;通过允许一定的纹波，切比雪夫滤波器能够在通带内实现更陡峭的滚降特性。纹波越大，阻带衰减也越大：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="303px" data-flex-grow="126" height="552" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-2/math20250713100845.png" width="698"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;特殊情况&lt;/strong&gt;：当$\epsilon = 0$时，切比雪夫滤波器退化为巴特沃斯滤波器。&lt;/p&gt;
&lt;h2 id="4-切比雪夫滤波器的极点分析"&gt;4. 切比雪夫滤波器的极点分析
&lt;/h2&gt;&lt;h3 id="41-极点方程的建立"&gt;4.1 极点方程的建立
&lt;/h3&gt;&lt;p&gt;切比雪夫滤波器的极点满足：&lt;/p&gt;
$$1 + \epsilon^2 T_n^2(\omega) = 0$$&lt;p&gt;即：&lt;/p&gt;
$$\cos(n \cos^{-1}(\frac{s}{j})) = \pm \frac{j}{\epsilon}$$&lt;h3 id="42-极点的求解过程"&gt;4.2 极点的求解过程
&lt;/h3&gt;&lt;p&gt;设$n \cos^{-1}(\frac{s}{j}) = u + jv$，其中$u, v \in \mathbb{R}$。&lt;/p&gt;
&lt;p&gt;使用三角恒等式：&lt;/p&gt;
$$\cos(u + jv) = \cos u \cosh v - j \sin u \sinh v = \pm \frac{j}{\epsilon}$$&lt;p&gt;分离实部和虚部：&lt;/p&gt;
$$\begin{cases}
\cos u \cosh v = 0 \\
-\sin u \sinh v = \pm \frac{1}{\epsilon}
\end{cases}$$&lt;p&gt;由于$u$和$v$是实数，要使实部为0，必须满足：&lt;/p&gt;
$$u = (2m + 1) \frac{\pi}{2}, \quad m = 0, 1, 2, \ldots$$&lt;p&gt;这使得$\sin u = (-1)^m$。解第二个方程：&lt;/p&gt;
$$v = \pm \sinh^{-1}\frac{1}{\epsilon}$$&lt;h3 id="43-极点的最终表达式"&gt;4.3 极点的最终表达式
&lt;/h3&gt;&lt;p&gt;代入得到极点的形式：&lt;/p&gt;
$$s = \pm \sin\left(\frac{(2m + 1) \pi}{2n}\right) \sinh\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right) + j \cos\left(\frac{(2m + 1) \pi}{2n}\right) \cosh\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right)$$&lt;h3 id="44-极点的几何分布"&gt;4.4 极点的几何分布
&lt;/h3&gt;&lt;p&gt;极点的实部和虚部分别为：&lt;/p&gt;
$$\begin{cases}
\sigma_0 = \pm \sin\left(\frac{(2m + 1) \pi}{2n}\right) \sinh\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right) \\
\omega_0 = \cos\left(\frac{(2m + 1) \pi}{2n}\right) \cosh\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right)
\end{cases}$$&lt;p&gt;可以得到椭圆方程：&lt;/p&gt;
$$\frac{\sigma_0^2}{\sinh^2\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right)} + \frac{\omega_0^2}{\cosh^2\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right)} = 1$$&lt;p&gt;这表明切比雪夫滤波器的极点分布在椭圆上，椭圆的半长轴和半短轴分别为：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;半长轴（虚轴）：$\cosh\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right)$&lt;/li&gt;
&lt;li&gt;半短轴（实轴）：$\sinh\left(\frac{1}{n}\sinh^{-1}\frac{1}{\epsilon}\right)$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;特殊情况&lt;/strong&gt;：当$\epsilon \to 0$时，椭圆退化为单位圆，对应巴特沃斯滤波器。&lt;/p&gt;
&lt;p&gt;以下是5阶切比雪夫滤波器的极点分布示意图（$\epsilon = 0.1$）：&lt;/p&gt;
&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="242px" data-flex-grow="101" height="790" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-2/math20250713110142.png" width="798"&gt;&lt;/p&gt;
&lt;p&gt;在下一篇中，我们将讨论切比雪夫滤波器的变种，即&lt;strong&gt;第二类切比雪夫滤波器&lt;/strong&gt;，也被称为&lt;strong&gt;反切比雪夫滤波器&lt;/strong&gt;。&lt;/p&gt;</description></item><item><title>主动滤波器(1)：巴特沃斯近似</title><link>http://blog.cedard.top/p/active-filter-1/</link><pubDate>Sat, 12 Jul 2025 19:42:37 +0800</pubDate><guid>http://blog.cedard.top/p/active-filter-1/</guid><description>&lt;h2 id="前言"&gt;前言
&lt;/h2&gt;&lt;p&gt;最近在学习IIT Madras的&lt;a class="link" href="https://youtube.com/playlist?list=PL285BE2DDBCB6839F&amp;amp;si=wG2bXsgAiww36LUM" target="_blank" rel="noopener"
 &gt;EE534&lt;/a&gt;课程，该课程由Shanthi Pavan教授讲授，专注于主动滤波器设计。课程内容丰富，涵盖了实用的设计方法、严谨的理论推导以及宝贵的工程直觉。为了巩固学习成果，我将撰写一系列笔记来记录这些重要内容。正如费曼学习法所强调的，通过教授他人来验证和深化自己的理解是最有效的学习方式。&lt;/p&gt;
&lt;h2 id="基本概念"&gt;基本概念
&lt;/h2&gt;&lt;p&gt;在深入学习主动滤波器设计之前，我们首先需要理解一些关键概念：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;主动元件（Active Element）&lt;/strong&gt;：能够提供功率增益的元件，如晶体管、运算放大器、电流源和电压源等。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;被动元件（Passive Element）&lt;/strong&gt;：不能提供功率增益的元件，主要包括电阻、电容和电感等。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;滤波器（Filter）&lt;/strong&gt;：根据频率特性选择性地放大或衰减信号的电路系统。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;线性滤波器（Linear Filter）&lt;/strong&gt;：输出信号是输入信号线性组合的滤波器。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;品质因子（Quality Factor, Q）&lt;/strong&gt;：表征滤波器频率选择性的参数，通常由中心频率与带宽的比值定义。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;零点（Zero）&lt;/strong&gt;：使传递函数分子为零的复频率点，通常对应滤波器的增益极值。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点（Poles）&lt;/strong&gt;：使传递函数分母为零的复频率点，决定滤波器的稳定性和频率响应特性。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;为什么需要使用RLC电路而非简单的RC或RL电路？&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;仅使用RC或RL电路时，无法实现共轭极点对的设计，因此无法获得高品质因子滤波器所需的陡峭过渡特性。这是因为一阶RC或RL电路只能产生实数极点，而复数共轭极点对是实现高阶滤波器特性的关键。&lt;/p&gt;
&lt;h2 id="主动滤波器概述"&gt;主动滤波器概述
&lt;/h2&gt;&lt;p&gt;主动滤波器理论起源于1920-1950年代的早期滤波器研究，其核心目标是设计能够用多项式精确逼近理想滤波器传递函数的电路。主动滤波器通过运算放大器与被动元件（电阻、电容）的组合来实现滤波功能，避免了传统LC滤波器中电感器的使用。&lt;/p&gt;
&lt;p&gt;这一理论催生了网络合成理论的发展，为被动网络的系统性分析和设计提供了坚实的理论基础。&lt;/p&gt;
&lt;p&gt;滤波器按频率特性可分为低通、高通、带通和带阻滤波器等多种类型。值得注意的是，所有类型的滤波器都可以通过频率变换从低通滤波器原型导出，因此在系统设计层面，我们主要关注低通滤波器的设计即可。&lt;/p&gt;
&lt;h2 id="传递函数的基本性质"&gt;传递函数的基本性质
&lt;/h2&gt;&lt;h3 id="理想低通滤波器"&gt;理想低通滤波器
&lt;/h3&gt;&lt;p&gt;一个理想低通滤波器的传递函数应该具有以下特性：&lt;/p&gt;
$$H(s) = \frac{N(s)}{D(s)} = \begin{cases}
1 &amp; \text{当 } 0 &lt; \omega &lt; 1 \\
0 &amp; \text{当 } \omega &gt; 1
\end{cases}$$&lt;p&gt;当我们将复变量 $s$ 替换为 $j\omega$ 时，传递函数就转化为频率响应函数。&lt;/p&gt;
&lt;h3 id="传递函数的共轭性质"&gt;传递函数的共轭性质
&lt;/h3&gt;&lt;p&gt;对于实值传递函数，以下重要性质成立：&lt;/p&gt;
$$|H(j\omega)|^2 = H(j\omega)H^*(j\omega) = H(j\omega)H(-j\omega)$$&lt;p&gt;这意味着给定传递函数，我们可以直接计算其幅度函数。&lt;/p&gt;
&lt;h3 id="从幅度函数重构传递函数"&gt;从幅度函数重构传递函数
&lt;/h3&gt;&lt;p&gt;反过来，如果我们已知幅度函数并希望求得传递函数，可以通过将 $\omega$ 替换为 $s/j$ 来实现。然而，这种方法需要求解二次方程，并且需要合理选择根。&lt;/p&gt;
&lt;p&gt;幸运的是，对于物理可实现的传递函数，以下约束条件必须满足：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;零点&lt;/strong&gt;：可以位于复平面的任意位置&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;极点&lt;/strong&gt;：必须位于左半平面（$\text{Re}(s) &amp;lt; 0$），否则系统将不稳定&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;对于实值传递函数，其幅度函数是偶函数，相位函数是奇函数。&lt;/p&gt;
&lt;p&gt;我们将在后面的笔记中说明，实际上对于纯LC滤波器，传递函数的极点和零点分布具有更严格的几何特性。&lt;/p&gt;
&lt;h3 id="全极点滤波器"&gt;全极点滤波器
&lt;/h3&gt;&lt;p&gt;如果传递函数在有限频率范围内没有零点，则称为&lt;strong&gt;全极点滤波器&lt;/strong&gt;（All-Pole Filter）。这类滤波器的设计和分析相对简单，是滤波器设计的重要基础。&lt;/p&gt;
&lt;h2 id="巴特沃斯滤波器butterworth-filter"&gt;巴特沃斯滤波器（Butterworth Filter）
&lt;/h2&gt;&lt;h3 id="设计思路与幅度函数"&gt;设计思路与幅度函数
&lt;/h3&gt;&lt;p&gt;对于全极点滤波器，我们假设其传递函数为：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1}{D(j\omega)D(-j\omega)} = \frac{1}{D_1(\omega^2)}$$&lt;p&gt;需要注意的是，如果传递函数是 $N$ 阶的，那么其幅度平方函数将是 $\omega^2$ 的 $N$ 次有理函数。&lt;/p&gt;
&lt;p&gt;我们希望 $D_1(\omega^2)$ 满足以下理想特性：&lt;/p&gt;
$$
D_1(\omega^2) = \begin{cases}
1 &amp; \text{当 } 0 &lt; \omega &lt; 1 \\
\infty &amp; \text{当 } 1 &lt; \omega &lt; \infty
\end{cases}
$$&lt;h3 id="多项式逼近"&gt;多项式逼近
&lt;/h3&gt;&lt;p&gt;设：
&lt;/p&gt;
$$D_1(\omega^2) = 1 + F(\omega^2)$$&lt;p&gt;则我们需要：
&lt;/p&gt;
$$\begin{equation}
F(\omega^2) = \begin{cases}
0 &amp; \text{当 } 0 &lt; \omega &lt; 1 \\
\infty &amp; \text{当 } 1 &lt; \omega &lt; \infty
\end{cases}
\end{equation}$$&lt;p&gt;由于系统的线性特性，传递函数必须是有理函数，因此：&lt;/p&gt;
$$F(\omega^2) = f_0 + f_1\omega^2 + f_2\omega^4 + \cdots + f_N\omega^{2N}$$&lt;h3 id="最大平坦逼近"&gt;最大平坦逼近
&lt;/h3&gt;&lt;p&gt;在 $\omega \to 0$ 时，高阶项趋于零，因此：
&lt;/p&gt;
$$F(\omega^2) \approx f_1\omega^2$$&lt;p&gt;为使 $F(\omega^2) = 0$，我们需要 $f_1 = 0$。&lt;/p&gt;
&lt;p&gt;通过类似的分析，可以得出 $f_2 = f_3 = \cdots = f_{N-1} = 0$。&lt;/p&gt;
&lt;p&gt;但是 $f_N$ 不能为零，否则滤波器将失去滤波特性。因此，我们能够实现的最佳逼近是：&lt;/p&gt;
$$F(\omega^2) = f_N\omega^{2N}$$&lt;h3 id="巴特沃斯响应"&gt;巴特沃斯响应
&lt;/h3&gt;&lt;p&gt;取 $f_N = 1$，我们得到：&lt;/p&gt;
$$|H(j\omega)|^2 = \frac{1}{1 + \omega^{2N}}$$&lt;p&gt;这就是著名的&lt;strong&gt;巴特沃斯滤波器&lt;/strong&gt; 的幅度平方函数。&lt;/p&gt;
&lt;p&gt;当 $\omega = 1$ 时，$|H(j\omega)|^2 = \frac{1}{2}$，对应 -3dB 点，这定义了巴特沃斯滤波器的截止频率。&lt;/p&gt;
&lt;p&gt;这种设计在 $\omega = 0$ 处实现了&lt;strong&gt;最大平坦&lt;/strong&gt; 特性，即在通带内具有最平坦的响应。&lt;/p&gt;
&lt;h3 id="极点分布分析"&gt;极点分布分析
&lt;/h3&gt;&lt;p&gt;现在我们来分析巴特沃斯滤波器的极点分布。由于 $D(s)$ 是 $N$ 阶多项式，我们可以建立以下方程：&lt;/p&gt;
$$D(s)D(-s) = 1 + (-s^2)^N = 1 + (-1)^N s^{2N}$$&lt;h3 id="极点的对称性"&gt;极点的对称性
&lt;/h3&gt;&lt;p&gt;如果 $\sigma_0 + j\omega_0$ 是该方程的一个根，那么以下四个点都是方程的解：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$\sigma_0 + j\omega_0$（原根）&lt;/li&gt;
&lt;li&gt;$\sigma_0 - j\omega_0$（共轭根）&lt;/li&gt;
&lt;li&gt;$-\sigma_0 + j\omega_0$（负根）&lt;/li&gt;
&lt;li&gt;$-\sigma_0 - j\omega_0$（共轭负根）&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这种对称性对所有有理函数都成立。然而，根据物理可实现性要求，极点必须位于左半平面以保证系统稳定性，因此我们只选择左半平面的极点。&lt;/p&gt;
&lt;h3 id="二阶巴特沃斯滤波器示例"&gt;二阶巴特沃斯滤波器示例
&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;例：&lt;/strong&gt; 考虑 $N = 2$ 的情况。&lt;/p&gt;
&lt;p&gt;方程 $1 + s^4 = 0$ 的解为：
&lt;/p&gt;
$$s^4 = -1 = e^{j(\pi + 2k\pi)}, \quad k = 0, 1, 2, 3$$&lt;p&gt;因此四个根为：
&lt;/p&gt;
$$s = e^{j\pi/4}, \quad e^{j3\pi/4}, \quad e^{j5\pi/4}, \quad e^{j7\pi/4}$$&lt;p&gt;转换为直角坐标：
&lt;/p&gt;
$$s = e^{j\pi/4} = \frac{1}{\sqrt{2}} + j\frac{1}{\sqrt{2}}$$&lt;p&gt;
&lt;/p&gt;
$$s = e^{j3\pi/4} = -\frac{1}{\sqrt{2}} + j\frac{1}{\sqrt{2}}$$&lt;p&gt;
&lt;/p&gt;
$$s = e^{j5\pi/4} = -\frac{1}{\sqrt{2}} - j\frac{1}{\sqrt{2}}$$&lt;p&gt;
&lt;/p&gt;
$$s = e^{j7\pi/4} = \frac{1}{\sqrt{2}} - j\frac{1}{\sqrt{2}}$$&lt;p&gt;选择左半平面的极点：
&lt;/p&gt;
$$s_1 = -\frac{1}{\sqrt{2}} + j\frac{1}{\sqrt{2}}, \quad s_2 = -\frac{1}{\sqrt{2}} - j\frac{1}{\sqrt{2}}$$&lt;h3 id="传递函数的构造"&gt;传递函数的构造
&lt;/h3&gt;&lt;p&gt;根据极点位置，我们可以构造二阶巴特沃斯滤波器的分母多项式：&lt;/p&gt;
$$D(s) = (s - s_1)(s - s_2) = s^2 + \sqrt{2}s + 1$$&lt;h3 id="滤波器参数分析"&gt;滤波器参数分析
&lt;/h3&gt;&lt;p&gt;将此结果与二阶系统的标准形式 $s^2 + \frac{\omega_n}{Q}s + \omega_n^2$ 对比：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;自然频率&lt;/strong&gt;：$\omega_n = 1$&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;品质因子&lt;/strong&gt;：$Q = \frac{1}{\sqrt{2}} \approx 0.707$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;与一阶巴特沃斯滤波器相比，二阶滤波器具有更高的品质因子，从而实现更陡峭的滚降特性。&lt;/p&gt;
&lt;h3 id="极点分布的几何特性"&gt;极点分布的几何特性
&lt;/h3&gt;&lt;p&gt;从极点分布可以看出，巴特沃斯滤波器的极点均匀分布在单位圆上，且仅选择左半平面的极点以确保系统稳定性。这种均匀分布是巴特沃斯滤波器具有最大平坦特性的根本原因。&lt;/p&gt;
&lt;p&gt;&lt;img alt="极点分布" class="gallery-image" data-flex-basis="242px" data-flex-grow="101" height="701" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-1/math20250712225817.png" width="709"&gt;&lt;/p&gt;
&lt;h3 id="常用的巴特沃斯滤波器多项式表"&gt;常用的巴特沃斯滤波器多项式表
&lt;/h3&gt;&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;阶数 $N$&lt;/th&gt;
					&lt;th&gt;分母多项式 $D(s)$&lt;/th&gt;
					&lt;th&gt;极点位置&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;1&lt;/td&gt;
					&lt;td&gt;$s + 1$&lt;/td&gt;
					&lt;td&gt;$-1$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;2&lt;/td&gt;
					&lt;td&gt;$s^2 + \sqrt{2}s + 1$&lt;/td&gt;
					&lt;td&gt;$-\frac{1}{\sqrt{2}} + j\frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}} - j\frac{1}{\sqrt{2}}$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;3&lt;/td&gt;
					&lt;td&gt;$s^3 + 2s^2 + 2s + 1$&lt;/td&gt;
					&lt;td&gt;$-\frac{1}{\sqrt{3}} + j\frac{1}{\sqrt{3}}, -\frac{1}{\sqrt{3}} - j\frac{1}{\sqrt{3}}, -1$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;4&lt;/td&gt;
					&lt;td&gt;$s^4 + 2\sqrt{2}s^3 + 4s^2 + 2\sqrt{2}s + 1$&lt;/td&gt;
					&lt;td&gt;$-\frac{1}{2} + j\frac{1}{2}, -\frac{1}{2} - j\frac{1}{2}, -\frac{1}{2} + j\frac{1}{2}, -\frac{1}{2} - j\frac{1}{2}$&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;5&lt;/td&gt;
					&lt;td&gt;$s^5 + 2\sqrt{3}s^4 + 5s^3 + 2\sqrt{3}s^2 + 1$&lt;/td&gt;
					&lt;td&gt;$-\frac{1}{\sqrt{5}} + j\frac{1}{\sqrt{5}}, -\frac{1}{\sqrt{5}} - j\frac{1}{\sqrt{5}}, -1, -\frac{1}{\sqrt{5}} + j\frac{1}{\sqrt{5}}, -\frac{1}{\sqrt{5}} - j\frac{1}{\sqrt{5}}$&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;可以发现，当阶数为奇数的时候，-1一定是极点之一，而当阶数为偶数时，-1不是极点。而无论阶数如何，都没有极点会落在j轴上。&lt;/p&gt;
&lt;h3 id="巴特沃斯滤波器的bode-plot"&gt;巴特沃斯滤波器的Bode Plot
&lt;/h3&gt;&lt;p&gt;&lt;img alt="Bode Plot" class="gallery-image" data-flex-basis="305px" data-flex-grow="127" height="552" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://blog.cedard.top/p/active-filter-1/math20250712224937.png" width="702"&gt;&lt;/p&gt;
&lt;hr&gt;</description></item><item><title>相位噪声与抖动的关系</title><link>http://blog.cedard.top/p/phase-noise-jitter/</link><pubDate>Mon, 07 Jul 2025 20:42:16 +0800</pubDate><guid>http://blog.cedard.top/p/phase-noise-jitter/</guid><description>&lt;p&gt;在现代数字通信系统和时钟生成电路中，相位噪声和抖动是两个关键的性能指标。本文将从理论基础出发，深入分析相位噪声与抖动之间的数学关系，并探讨其在工程实践中的应用意义。&lt;/p&gt;
&lt;h2 id="1-理论基础"&gt;1. 理论基础
&lt;/h2&gt;&lt;h3 id="11-随机过程与平稳性"&gt;1.1 随机过程与平稳性
&lt;/h3&gt;&lt;p&gt;在分析相位噪声与抖动的关系之前，需要建立必要的随机过程理论基础。&lt;/p&gt;
&lt;h4 id="111-平稳过程的定义"&gt;1.1.1 平稳过程的定义
&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;平稳过程（Stationary Process）&lt;/strong&gt; 是指其统计特性不随时间变化的随机过程。对于平稳过程，其均值和方差在时间上保持恒定。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;宽平稳过程（Wide-Sense Stationary Process）&lt;/strong&gt; 是平稳过程的一个重要特例，其定义为：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;均值恒定：$E[X(t)] = \mu_X$（常数）&lt;/li&gt;
&lt;li&gt;自相关函数仅依赖于时间差：$R_X(t_1, t_2) = R_X(t_2 - t_1)$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;白噪声是宽平稳过程的典型例子。&lt;/p&gt;
&lt;h4 id="112-自相关函数"&gt;1.1.2 自相关函数
&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;自相关函数（Autocorrelation Function）&lt;/strong&gt; 描述了随机过程在不同时间点之间的相关性：&lt;/p&gt;
$$R_x(\tau) = E[X(t)X(t+\tau)]$$&lt;p&gt;对于白噪声，自相关函数具有以下特性：
&lt;/p&gt;
$$R_{\text{white}}(\tau) = \sigma^2 \delta(\tau)$$&lt;p&gt;其中$\sigma^2$为噪声功率，$\delta(\tau)$为狄拉克函数。&lt;/p&gt;
&lt;h3 id="12-频域分析理论"&gt;1.2 频域分析理论
&lt;/h3&gt;&lt;h4 id="121-功率谱密度"&gt;1.2.1 功率谱密度
&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;功率谱密度（Power Spectral Density, PSD）&lt;/strong&gt; 描述了随机过程在频域中的功率分布：&lt;/p&gt;
$$S_x(f) = \lim_{T \to \infty} \frac{1}{T} E[|X_T(f)|^2]$$&lt;h4 id="122-维纳-辛钦定理"&gt;1.2.2 维纳-辛钦定理
&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;维纳-辛钦定理（Wiener-Khinchin Theorem）&lt;/strong&gt; 建立了时域自相关函数与频域功率谱密度之间的重要关系：&lt;/p&gt;
$$S_x(f) = \int_{-\infty}^{\infty} R_x(\tau) e^{-j2\pi f\tau} d\tau$$$$R_x(\tau) = \int_{-\infty}^{\infty} S_x(f) e^{j2\pi f\tau} df$$&lt;p&gt;这表明功率谱密度是自相关函数的傅里叶变换。&lt;/p&gt;
&lt;h4 id="123-帕萨瓦尔定理"&gt;1.2.3 帕萨瓦尔定理
&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;帕萨瓦尔定理（Parseval&amp;rsquo;s Theorem）&lt;/strong&gt; 给出了时域和频域能量的等价关系：&lt;/p&gt;
$$\int_{-\infty}^{\infty} |x(t)|^2 dt = \int_{-\infty}^{\infty} S_x(f) df$$&lt;p&gt;对于周期信号，有：
&lt;/p&gt;
$$\int_{-\infty}^{\infty} S_x(f) df = T \int_{-\frac{1}{2T}}^{\frac{1}{2T}} |x(t)|^2 dt$$&lt;p&gt;其中$T$为信号周期。&lt;/p&gt;
&lt;h3 id="13-时间与相位关系"&gt;1.3 时间与相位关系
&lt;/h3&gt;&lt;p&gt;相位与时间的基本关系由下式给出：
&lt;/p&gt;
$$\Delta \phi = \omega \Delta t$$&lt;p&gt;其中：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$\Delta \phi$：相位变化&lt;/li&gt;
&lt;li&gt;$\omega$：角频率&lt;/li&gt;
&lt;li&gt;$\Delta t$：时间间隔&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="2-抖动标准差与相位噪声的数学关系"&gt;2. 抖动标准差与相位噪声的数学关系
&lt;/h2&gt;&lt;h3 id="21-绝对抖动的定义"&gt;2.1 绝对抖动的定义
&lt;/h3&gt;&lt;p&gt;对于矩形波信号，&lt;strong&gt;绝对抖动（Absolute Jitter）&lt;/strong&gt; 定义为信号边沿相对于理想时刻的偏移。&lt;/p&gt;
&lt;p&gt;考虑第$k$个周期，如果相位噪声的时域表示为$\phi_n(t_k)$，则实际的相位满足：&lt;/p&gt;
$$\omega_0 t_k + \phi_n(t_k) = 2\pi k$$&lt;p&gt;因此，绝对抖动可以表示为：&lt;/p&gt;
$$
\begin{aligned}
a_k &amp;= t_k - \frac{2\pi k}{\omega_0} \\
&amp;= \frac{\phi_n(t_k)}{\omega_0}
\end{aligned}
$$&lt;h3 id="22-小信号近似分析"&gt;2.2 小信号近似分析
&lt;/h3&gt;&lt;p&gt;基于以下工程假设：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;绝对抖动是小量&lt;/li&gt;
&lt;li&gt;相位噪声在$kT_0$附近缓慢变化&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;对相位噪声进行一阶泰勒展开：&lt;/p&gt;
$$
\begin{aligned}
\phi_n(t_k) &amp;\approx \phi_n(kT_0 + a_k) \\
&amp;= \phi_n(kT_0) + \frac{d\phi_n(t)}{dt}\bigg|_{t=kT_0} a_k
\end{aligned}
$$&lt;p&gt;将此式代入绝对抖动的表达式：&lt;/p&gt;
$$
a_k = \frac{\phi_n(kT_0)}{\omega_0 - \frac{d\phi_n(t)}{dt}\bigg|_{t=kT_0}}
$$&lt;p&gt;在小信号近似下，$\frac{d\phi_n(t)}{dt} \ll \omega_0$，因此：&lt;/p&gt;
$$a_k \approx \frac{\phi_n(kT_0)}{\omega_0}$$&lt;h3 id="23-统计特性分析"&gt;2.3 统计特性分析
&lt;/h3&gt;&lt;h4 id="231-自相关函数关系"&gt;2.3.1 自相关函数关系
&lt;/h4&gt;&lt;p&gt;将相位噪声视为宽平稳过程，其自相关函数为：
&lt;/p&gt;
$$R_{\phi}(\tau) = E[\phi_n(t)\phi_n(t+\tau)]$$&lt;p&gt;相应地，抖动的自相关函数为：
&lt;/p&gt;
$$R_{a}(m) = E[a_k a_{k+m}]$$&lt;p&gt;由于抖动是相位噪声的比例采样结果，可得：&lt;/p&gt;
$$R_{a}(m) = \frac{1}{\omega_0^2} R_{\phi}(mT_0)$$&lt;h4 id="232-功率谱密度关系"&gt;2.3.2 功率谱密度关系
&lt;/h4&gt;&lt;p&gt;应用维纳-辛钦定理，抖动的功率谱密度与相位噪声功率谱密度之间存在以下关系：&lt;/p&gt;
$$S_a(f) = \frac{1}{\omega_0^2} S_{\phi}(f)$$&lt;h3 id="24-抖动方差的计算"&gt;2.4 抖动方差的计算
&lt;/h3&gt;&lt;p&gt;假设抖动为零均值过程，其方差（即均方根抖动）可通过以下方式计算：&lt;/p&gt;
$$
\begin{aligned}
\sigma_a^2 &amp;= R_a(0) \\
&amp;= \frac{1}{\omega_0^2} R_{\phi}(0) \\
&amp;= \frac{1}{\omega_0^2} \int_{-\infty}^{\infty} S_{\phi}(f) df
\end{aligned}
$$&lt;p&gt;这是相位噪声与抖动关系的核心结论：&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;随机抖动的方差等于相位噪声功率谱密度的积分除以角频率的平方。&lt;/strong&gt;&lt;/p&gt;

 &lt;/blockquote&gt;</description></item></channel></rss>