From 6e70f28ccbd5afc1506f71f013278a9d157ef03a Mon Sep 17 00:00:00 2001 From: Prefetch Date: Thu, 27 Oct 2022 20:40:09 +0200 Subject: Optimize last images, add proof template, improve CSS --- source/_includes/image.html | 19 +++++-- source/_includes/preamble.html | 4 +- source/_includes/proof/end.html | 3 + source/_includes/proof/start.html | 6 ++ source/blog/2022/email-server-revisited/index.md | 4 +- .../email-server-revisited/microsoft-bounce.avif | Bin 0 -> 12188 bytes source/index.md | 11 +++- source/infra/css/main.css | 61 ++++++++++++-------- source/infra/css/syntax.css | 16 ++++++ source/infra/image/logo-cgit.png | Bin 0 -> 1245 bytes source/infra/image/logo-yu4qu3.avif | Bin 0 -> 2341 bytes source/infra/image/logo-yu4qu3.png | Bin 0 -> 7152 bytes source/infra/image/logo256.png | Bin 7152 -> 0 bytes source/infra/image/logo96x64.gif | Bin 467 -> 0 bytes source/know/concept/binomial-distribution/index.md | 33 ++++------- source/know/concept/boltzmann-equation/index.md | 31 +++------- source/know/concept/convolution-theorem/index.md | 23 +++----- .../know/concept/curvilinear-coordinates/index.md | 35 +++++------- source/know/concept/detailed-balance/index.md | 10 +--- source/know/concept/dirac-delta-function/index.md | 20 ++----- source/know/concept/dynkins-formula/index.md | 23 +++----- .../concept/equation-of-motion-theory/index.md | 10 +--- source/know/concept/euler-bernoulli-law/index.md | 11 ++-- source/know/concept/fourier-transform/index.md | 23 +++----- source/know/concept/fundamental-solution/index.md | 22 +++---- source/know/concept/greens-functions/index.md | 22 +++---- .../concept/gronwall-bellman-inequality/index.md | 33 ++++------- source/know/concept/guiding-center-theory/index.md | 22 +++---- source/know/concept/hamiltonian-mechanics/index.md | 33 ++++------- .../know/concept/heaviside-step-function/index.md | 10 +--- source/know/concept/holomorphic-function/index.md | 32 ++++------- source/know/concept/impulse-response/index.md | 10 +--- source/know/concept/ito-integral/index.md | 24 +++----- source/know/concept/ito-process/index.md | 34 +++++------ source/know/concept/laplace-transform/index.md | 21 +++---- source/know/concept/lindhard-function/index.md | 23 +++----- .../concept/matsubara-greens-function/index.md | 41 +++++--------- .../know/concept/maxwell-bloch-equations/index.md | 10 +--- .../know/concept/multi-photon-absorption/index.md | 13 ++--- source/know/concept/parsevals-theorem/index.md | 10 +--- source/know/concept/repetition-code/index.md | 63 ++------------------- source/know/concept/residue-theorem/index.md | 10 +--- source/know/concept/selection-rules/index.md | 46 ++++++--------- source/know/concept/superdense-coding/index.md | 63 ++------------------- 44 files changed, 320 insertions(+), 565 deletions(-) create mode 100644 source/_includes/proof/end.html create mode 100644 source/_includes/proof/start.html create mode 100644 source/blog/2022/email-server-revisited/microsoft-bounce.avif create mode 100644 source/infra/image/logo-cgit.png create mode 100644 source/infra/image/logo-yu4qu3.avif create mode 100644 source/infra/image/logo-yu4qu3.png delete mode 100644 source/infra/image/logo256.png delete mode 100644 source/infra/image/logo96x64.gif diff --git a/source/_includes/image.html b/source/_includes/image.html index a9bc3fd..5b4f35f 100644 --- a/source/_includes/image.html +++ b/source/_includes/image.html @@ -12,22 +12,29 @@ {% comment %} If 'name' ends in "full", half-size image must exist {% endcomment %} {% assign name_full = name %} {% if suffix == "full" %} - {% assign name_half = prefix | append: "half" %} + {% assign name_half = prefix | append: "half" %} {% else %} - {% assign name_half = name_full %} + {% assign name_half = name_full %} {% endif %} {% comment %} Insert the image, linking to the full-size version {% endcomment %} +{% if include.class %} + {% assign add_class = 'class="' | append: include.class | append: '"' %} +{% endif %} +{% if include.style or include.width %} + {% assign set_width = "width:" | append: include.width %} + {% assign set_style = include.style | default: set_width %} + {% assign add_style = 'style="' | append: set_style | append: '"' %} +{% endif %}

- {% assign set_width = "width:" | append: include.width %} - + {% if name_full == name_half %} - {{ include.alt }} + {{ include.alt }} {% else %} - {{ include.alt }} + {{ include.alt }} {% endif %} diff --git a/source/_includes/preamble.html b/source/_includes/preamble.html index 312f1cf..c94741b 100644 --- a/source/_includes/preamble.html +++ b/source/_includes/preamble.html @@ -1,9 +1,9 @@ {% if page.layout == "blog" or page.syntax %} - + {% endif %} {% if page.layout == "concept" or page.maths %} {% endif %} - + diff --git a/source/_includes/proof/end.html b/source/_includes/proof/end.html new file mode 100644 index 0000000..29533a4 --- /dev/null +++ b/source/_includes/proof/end.html @@ -0,0 +1,3 @@ + + + diff --git a/source/_includes/proof/start.html b/source/_includes/proof/start.html new file mode 100644 index 0000000..780b159 --- /dev/null +++ b/source/_includes/proof/start.html @@ -0,0 +1,6 @@ +

+ + +
+
+ diff --git a/source/blog/2022/email-server-revisited/index.md b/source/blog/2022/email-server-revisited/index.md index 4519bae..eb3fc18 100644 --- a/source/blog/2022/email-server-revisited/index.md +++ b/source/blog/2022/email-server-revisited/index.md @@ -181,9 +181,7 @@ One day, I tried to send an email to an Outlook-based account, and OpenSMTPD reported it had been unable to make the delivery, because Microsoft had thrown an error: - - - +{% include image.html file="microsoft-bounce.png" width="100%" class="darkinv" alt="Bounce message due to error from Microsoft" %} To their credit, they seem to be offering a way out. This approach is reasonable: preventively ban high-risk IP ranges, diff --git a/source/blog/2022/email-server-revisited/microsoft-bounce.avif b/source/blog/2022/email-server-revisited/microsoft-bounce.avif new file mode 100644 index 0000000..bc1c4f5 Binary files /dev/null and b/source/blog/2022/email-server-revisited/microsoft-bounce.avif differ diff --git a/source/index.md b/source/index.md index 680b577..7847d5f 100644 --- a/source/index.md +++ b/source/index.md @@ -4,7 +4,14 @@ date: 2021-02-22 layout: "default" --- - +{% comment %} Not using includes/image.html to avoid link {% endcomment %} +

+ + +預取 (yùqǔ): 'prefetch'; literally 'take in advance' + +

Welcome to my website. @@ -15,5 +22,5 @@ where I explain STEM concepts I've learned over the years. This website is made by me using [Hugo](https://gohugo.io), and served to you by [nginx](https://nginx.org/). -I intend to keep it free of advertising and trackers, +I intend to keep it free of advertising, and to maintain my A+ score for [TLS quality](https://www.ssllabs.com/ssltest/analyze.html?d=prefetch.eu). diff --git a/source/infra/css/main.css b/source/infra/css/main.css index 5127873..3f64520 100644 --- a/source/infra/css/main.css +++ b/source/infra/css/main.css @@ -11,10 +11,21 @@ --f: #ededed; --a: #ffff00; } - .darkinv {filter: invert(100%)} + .darkinv {filter: invert(100%);} } /* Basic elements */ +/* See also https://github.com/necolas/normalize.css/blob/master/normalize.css */ +html { + line-height: 1.5; + -webkit-text-size-adjust: none; + text-size-adjust: none; +} +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} body { background: #ededed; background: var(--b); @@ -26,43 +37,42 @@ body { padding: 1rem 0; font-family: sans-serif; - line-height: 1.5; } -h1,h2,h3 {text-align: center;} +h1, h2, h3 {text-align: center;} h1 {font-size: 2.0rem;} h2 {font-size: 1.6rem;} h3 {font-size: 1.2rem;} a { + background-color: transparent; text-decoration: none; color: #0000ff; color: var(--a); } img { + border-style: none; display: block; max-width: 100%; height: auto; margin: auto; } +table {margin: auto;} +td {padding: 0 1.5rem;} +/*code, pre { + font-family: monospace, monospace; + font-size: 1em; +}*/ +b, strong {font-weight: bolder;} /* Header and footer */ .nav { height: 3rem; font-size: 2.4rem; - padding: 0.25rem 0; -} -.navl { - float: left; - text-align: left; } -.navr { - float: right; - text-align: right; -} -.footl { +.navl, .footl { float: left; text-align: left; } -.footr { +.navr, .footr { float: right; text-align: right; } @@ -82,18 +92,19 @@ img { color: var(--a); } -/* Collapsible boxes */ -label { +/* IE-compatible collapsible proofs */ +div.proof { + display: block; + border: dotted; + padding: 0.25rem 0.5rem; +} +label.proof { color: #0000ff; color: var(--a); cursor: pointer; } -.accordion { - display: block; - padding: 0.3rem 0.5rem; - border-style: dotted; -} -input {display: none;} -input + label + .hidden {display: none;} -input:checked + label {display: none;} -input:checked + label + .hidden {display: block;} +.proof-hidden {display: none;} +input.proof {display: none;} +input.proof:checked + label {display: none;} +input.proof:checked + label + .proof-hidden {display: block;} +.proof-starts + p {margin-top: 0;} diff --git a/source/infra/css/syntax.css b/source/infra/css/syntax.css index 8772351..50191d2 100644 --- a/source/infra/css/syntax.css +++ b/source/infra/css/syntax.css @@ -1,3 +1,19 @@ +.highlighter-rouge { + border: 1px solid; + border-color: #999988; + background-color: #f8f8f8; +} +@media only screen and (prefers-color-scheme: dark) { +.highlighter-rouge { + background-color: #0d1117; + border-color: #8b949e; +} +} +div.highlight { overflow: auto; } +pre.highlight { margin: 0.5em; } + + + /* From https://github.com/brazacz/rouge-themes/blob/main/css/github.css */ .highlight { background-color: #f8f8f8; } .highlight .bp { color: #999999; } diff --git a/source/infra/image/logo-cgit.png b/source/infra/image/logo-cgit.png new file mode 100644 index 0000000..9b7b783 Binary files /dev/null and b/source/infra/image/logo-cgit.png differ diff --git a/source/infra/image/logo-yu4qu3.avif b/source/infra/image/logo-yu4qu3.avif new file mode 100644 index 0000000..b0be209 Binary files /dev/null and b/source/infra/image/logo-yu4qu3.avif differ diff --git a/source/infra/image/logo-yu4qu3.png b/source/infra/image/logo-yu4qu3.png new file mode 100644 index 0000000..d6b9961 Binary files /dev/null and b/source/infra/image/logo-yu4qu3.png differ diff --git a/source/infra/image/logo256.png b/source/infra/image/logo256.png deleted file mode 100644 index d6b9961..0000000 Binary files a/source/infra/image/logo256.png and /dev/null differ diff --git a/source/infra/image/logo96x64.gif b/source/infra/image/logo96x64.gif deleted file mode 100644 index 869890b..0000000 Binary files a/source/infra/image/logo96x64.gif and /dev/null differ diff --git a/source/know/concept/binomial-distribution/index.md b/source/know/concept/binomial-distribution/index.md index 1193a93..dc75221 100644 --- a/source/know/concept/binomial-distribution/index.md +++ b/source/know/concept/binomial-distribution/index.md @@ -44,11 +44,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-mean" %} + Meanwhile, we find the following variance $$\sigma^2$$, with $$\sigma$$ being the standard deviation: @@ -74,12 +71,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-var" %} + As $$N \to \infty$$, the binomial distribution turns into the continuous normal distribution, @@ -119,11 +112,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-normal" %} ## References diff --git a/source/know/concept/boltzmann-equation/index.md b/source/know/concept/boltzmann-equation/index.md index 9ed2fd2..d2631b2 100644 --- a/source/know/concept/boltzmann-equation/index.md +++ b/source/know/concept/boltzmann-equation/index.md @@ -145,11 +145,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
If we instead choose the momentum $$Q = m \vb{v}$$, we find that the **first moment** of the BTE describes conservation of momentum, @@ -174,11 +170,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Finally, if we choose the kinetic energy $$Q = m |\vb{v}|^2 / 2$$, we find that the **second moment** gives conservation of energy, @@ -237,11 +229,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-moment2" %} diff --git a/source/know/concept/convolution-theorem/index.md b/source/know/concept/convolution-theorem/index.md index 742c8ff..510417a 100644 --- a/source/know/concept/convolution-theorem/index.md +++ b/source/know/concept/convolution-theorem/index.md @@ -12,6 +12,8 @@ is equal to a product in the frequency domain. This is especially useful for computation, replacing an $$\mathcal{O}(n^2)$$ convolution with an $$\mathcal{O}(n \log(n))$$ transform and product. + + ## Fourier transform The convolution theorem is usually expressed as follows, where @@ -27,11 +29,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-fourier" %} + ## Laplace transform @@ -79,11 +78,8 @@ $$\begin{aligned} \boxed{\hat{\mathcal{L}}\{(f * g)(t)\} = \tilde{f}(s) \: \tilde{g}(s)} \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-laplace" %} diff --git a/source/know/concept/curvilinear-coordinates/index.md b/source/know/concept/curvilinear-coordinates/index.md index cb22e43..48a5a72 100644 --- a/source/know/concept/curvilinear-coordinates/index.md +++ b/source/know/concept/curvilinear-coordinates/index.md @@ -48,6 +48,7 @@ we derive general formulae to convert expressions from Cartesian coordinates to the new orthogonal system $$(x_1, x_2, x_3)$$. + ## Basis vectors Consider the the vector form of the line element $$\dd{\ell}$$, @@ -86,6 +87,7 @@ $$\begin{aligned} \end{aligned}$$ + ## Gradient In an orthogonal coordinate system, @@ -102,11 +104,8 @@ $$\begin{gathered} } \end{gathered}$$ -
- - - -
## Divergence @@ -145,11 +143,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-div" %} + ## Laplacian @@ -246,6 +241,7 @@ $$\begin{aligned} \end{aligned}$$ + ## Curl The curl of a vector $$\vb{V}$$ is as follows @@ -264,11 +260,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-curl" %} + ## Differential elements diff --git a/source/know/concept/detailed-balance/index.md b/source/know/concept/detailed-balance/index.md index b89d5da..98f9bd3 100644 --- a/source/know/concept/detailed-balance/index.md +++ b/source/know/concept/detailed-balance/index.md @@ -103,11 +103,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-reversibility" %} diff --git a/source/know/concept/dirac-delta-function/index.md b/source/know/concept/dirac-delta-function/index.md index 518eba1..0185b78 100644 --- a/source/know/concept/dirac-delta-function/index.md +++ b/source/know/concept/dirac-delta-function/index.md @@ -65,11 +65,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
An even more impressive property is the behaviour of the derivative of $$\delta(x)$$: @@ -89,11 +85,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
This property also generalizes nicely for the higher-order derivatives: diff --git a/source/know/concept/dynkins-formula/index.md b/source/know/concept/dynkins-formula/index.md index c0d20c5..307f098 100644 --- a/source/know/concept/dynkins-formula/index.md +++ b/source/know/concept/dynkins-formula/index.md @@ -39,11 +39,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
The general definition of resembles that of a classical derivative, and indeed, the generator $$\hat{A}$$ can be thought of as a differential operator. @@ -104,11 +100,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+Isolating this equation for $$\mathbf{E}[Y_\tau \!\mid\! X_0]$$ then gives Dynkin's formula. +{% include proof/end.html id="proof-dynkin" %} + A common application of Dynkin's formula is predicting when the stopping time $$\tau$$ occurs, and in what state $$X_\tau$$ this happens. diff --git a/source/know/concept/equation-of-motion-theory/index.md b/source/know/concept/equation-of-motion-theory/index.md index 02ed856..c1ed8da 100644 --- a/source/know/concept/equation-of-motion-theory/index.md +++ b/source/know/concept/equation-of-motion-theory/index.md @@ -63,11 +63,8 @@ $$\begin{aligned} = - \sum_{\nu''} u_{\nu \nu''} \hat{c}_{\nu''} \end{aligned}$$ -
- - - -
Substituting this into $$G_{\nu \nu'}^R$$'s equation of motion, we recognize another Green's function $$G_{\nu'' \nu'}^R$$: diff --git a/source/know/concept/euler-bernoulli-law/index.md b/source/know/concept/euler-bernoulli-law/index.md index dad67ca..5a6c38d 100644 --- a/source/know/concept/euler-bernoulli-law/index.md +++ b/source/know/concept/euler-bernoulli-law/index.md @@ -81,11 +81,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-field" %} + In any case, the beam experiences a bending torque with an $$x$$-component $$T_x$$ given by: diff --git a/source/know/concept/fourier-transform/index.md b/source/know/concept/fourier-transform/index.md index 0bc849b..c86d997 100644 --- a/source/know/concept/fourier-transform/index.md +++ b/source/know/concept/fourier-transform/index.md @@ -67,6 +67,7 @@ on whether the analysis is for forward ($$s > 0$$) or backward-propagating ($$s < 0$$) waves. + ## Derivatives The FT of a derivative has a very useful property. @@ -113,6 +114,7 @@ $$\begin{aligned} \end{aligned}$$ + ## Multiple dimensions The Fourier transform is straightforward to generalize to $$N$$ dimensions. @@ -150,11 +152,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Differentiation is more complicated for $$N > 1$$, but the FT is still useful, @@ -197,11 +195,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-laplacian" %} diff --git a/source/know/concept/fundamental-solution/index.md b/source/know/concept/fundamental-solution/index.md index 312cc2e..947aada 100644 --- a/source/know/concept/fundamental-solution/index.md +++ b/source/know/concept/fundamental-solution/index.md @@ -42,11 +42,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-solution" %} + While the impulse response is typically used for initial value problems, the fundamental solution $$G$$ is used for boundary value problems. @@ -117,11 +114,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-reciprocity" %} diff --git a/source/know/concept/greens-functions/index.md b/source/know/concept/greens-functions/index.md index ddba2cd..eda5671 100644 --- a/source/know/concept/greens-functions/index.md +++ b/source/know/concept/greens-functions/index.md @@ -21,6 +21,7 @@ but in general they are not the same, except in a special case, see below. + ## Single-particle functions If the two operators are single-particle creation/annihilation operators, @@ -146,11 +147,8 @@ $$\begin{gathered} G_{\nu \nu'}^<(t, t') = G_{\nu \nu'}^<(t - t') \end{gathered}$$ -
- - - -
+{% include proof/end.html id="proof-time-delta" %} If the Hamiltonian is both time-independent and non-interacting, then the time-dependence of $$\hat{c}_\nu$$ @@ -214,6 +211,7 @@ $$\begin{aligned} \end{aligned}$$ + ## As fundamental solutions In the absence of interactions, @@ -237,11 +235,8 @@ $$\begin{aligned} = \frac{\hbar^2}{2 m} \nabla^2 \hat{\Psi}(\vb{r}) \end{aligned}$$ -
- - - -
After substituting this into the equation of motion, we recognize $$G^R(\vb{r}, t; \vb{r}', t')$$ itself: diff --git a/source/know/concept/gronwall-bellman-inequality/index.md b/source/know/concept/gronwall-bellman-inequality/index.md index 8096aaf..da1bcad 100644 --- a/source/know/concept/gronwall-bellman-inequality/index.md +++ b/source/know/concept/gronwall-bellman-inequality/index.md @@ -26,11 +26,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-original" %} + Grönwall's inequality can be generalized to non-differentiable functions. Suppose we know: @@ -84,11 +81,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-integral" %} + In the special case where $$\alpha(t)$$ is non-decreasing with $$t$$, the inequality reduces to: @@ -151,11 +145,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-special" %} diff --git a/source/know/concept/guiding-center-theory/index.md b/source/know/concept/guiding-center-theory/index.md index 5368966..412c88b 100644 --- a/source/know/concept/guiding-center-theory/index.md +++ b/source/know/concept/guiding-center-theory/index.md @@ -72,6 +72,7 @@ we can use this average to approximately remove the finer dynamics, and focus only on the guiding center. + ## Uniform electric and magnetic field Consider the case where $$\vb{E}$$ and $$\vb{B}$$ are both uniform, @@ -149,6 +150,7 @@ $$\begin{aligned} \end{aligned}$$ + ## Non-uniform magnetic field Next, consider a more general case, where $$\vb{B}$$ is non-uniform, @@ -193,11 +195,8 @@ $$\begin{aligned} \approx - \frac{u_L^2}{2 \omega_c} \nabla B \end{aligned}$$ -
- - - -
With this, the guiding center's equation of motion is reduced to the following: @@ -332,11 +330,8 @@ $$\begin{aligned} \approx - u_{gc\parallel} \frac{\vb{R}_c}{R_c^2} \end{aligned}$$ -
- - - -
With this, we arrive at the following equation of motion for the guiding center: diff --git a/source/know/concept/hamiltonian-mechanics/index.md b/source/know/concept/hamiltonian-mechanics/index.md index 19e55b0..03ff2dd 100644 --- a/source/know/concept/hamiltonian-mechanics/index.md +++ b/source/know/concept/hamiltonian-mechanics/index.md @@ -15,6 +15,7 @@ It is built on the shoulders of [Lagrangian mechanics](/know/concept/lagrangian- which is in turn built on [variational calculus](/know/concept/calculus-of-variations/). + ## Definitions In Lagrangian mechanics, use a Lagrangian $$L$$, @@ -90,6 +91,7 @@ $$\begin{aligned} \end{aligned}$$ + ## Canonical equations Lagrangian mechanics has a single Euler-Lagrange equation per object, @@ -105,11 +107,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Just like in Lagrangian mechanics, if $$H$$ does not explicitly contain $$q_n$$, then $$q_n$$ is called a **cyclic coordinate**, and leads to the conservation of $$p_n$$: @@ -175,11 +173,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Assuming that $$H$$ does not explicitly depend on $$t$$, the above property naturally leads us to an alternative @@ -247,11 +241,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-transformation" %} + If you have experience with quantum mechanics, the latter equation should look suspiciously similar diff --git a/source/know/concept/heaviside-step-function/index.md b/source/know/concept/heaviside-step-function/index.md index 15d1729..9f5d4ec 100644 --- a/source/know/concept/heaviside-step-function/index.md +++ b/source/know/concept/heaviside-step-function/index.md @@ -57,11 +57,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
The use of $$\pv{}$$ without an integral is an abuse of notation, and means that this result only makes sense when wrapped in an integral. diff --git a/source/know/concept/holomorphic-function/index.md b/source/know/concept/holomorphic-function/index.md index 5dde240..cf252c0 100644 --- a/source/know/concept/holomorphic-function/index.md +++ b/source/know/concept/holomorphic-function/index.md @@ -61,6 +61,7 @@ and imaginary parts satisfy these equations. This gives an idea of how strict the criteria are to qualify as holomorphic. + ## Integration formulas Holomorphic functions satisfy **Cauchy's integral theorem**, which states @@ -73,11 +74,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-int-theorem" %} + An interesting consequence is **Cauchy's integral formula**, which states that the value of $$f(z)$$ at an arbitrary point $$z_0$$ is @@ -110,11 +108,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Similarly, **Cauchy's differentiation formula**, or **Cauchy's integral formula for derivatives** @@ -149,11 +143,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-dv-formula" %} diff --git a/source/know/concept/impulse-response/index.md b/source/know/concept/impulse-response/index.md index 397ac2d..661ed3f 100644 --- a/source/know/concept/impulse-response/index.md +++ b/source/know/concept/impulse-response/index.md @@ -30,11 +30,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
This is useful for solving initial value problems, because any initial condition can be satisfied diff --git a/source/know/concept/ito-integral/index.md b/source/know/concept/ito-integral/index.md index f087f97..4a725e1 100644 --- a/source/know/concept/ito-integral/index.md +++ b/source/know/concept/ito-integral/index.md @@ -29,6 +29,7 @@ and $$\mathbf{E}[G_t^2]$$ is integrable for $$t \in [a, b]$$. If $$I_t$$ exists, $$G_t$$ is said to be **Itō-integrable** with respect to $$B_t$$. + ## Motivation Consider the following simple first-order differential equation for $$X_t$$, @@ -99,7 +100,8 @@ $$\begin{aligned} \end{aligned}$$ For more information about applying the Itō integral in this way, -see the [Itō calculus](/know/concept/ito-calculus/). +see the [Itō calculus](/know/concept/ito-process/). + ## Properties @@ -138,11 +140,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Furthermore, Itō integrals are [martingales](/know/concept/martingale/), meaning that the average noise contribution is zero, which makes intuitive sense, since true white noise cannot be biased. -
- - - -
+{% include proof/end.html id="proof-martingale" %} diff --git a/source/know/concept/ito-process/index.md b/source/know/concept/ito-process/index.md index f192e28..2756e33 100644 --- a/source/know/concept/ito-process/index.md +++ b/source/know/concept/ito-process/index.md @@ -61,6 +61,7 @@ since only the current value of $$X_t$$ determines the future, and $$B_t$$ is also a Markov process. + ## Itō's lemma Classically, given $$y \equiv h(x(t), t)$$, @@ -83,11 +84,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-lemma" %} + The most important application of Itō's lemma is to perform coordinate transformations, to make the solution of a given Itō SDE easier. + ## Coordinate transformations The simplest coordinate transformation is a scaling of the time axis. @@ -208,6 +207,7 @@ $$\begin{aligned} \end{aligned}$$ + ## Existence and uniqueness It is worth knowing under what condition a solution to a given SDE exists, @@ -232,11 +232,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
If a solution exists, it is also worth knowing whether it is unique. Suppose that $$f$$ and $$g$$ satisfy the following inequalities, @@ -301,11 +297,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Using these properties, it can then be shown that if all of the above conditions are satisfied, diff --git a/source/know/concept/laplace-transform/index.md b/source/know/concept/laplace-transform/index.md index c7f352a..94c3742 100644 --- a/source/know/concept/laplace-transform/index.md +++ b/source/know/concept/laplace-transform/index.md @@ -35,6 +35,7 @@ using [partial fraction decomposition](/know/concept/partial-fraction-decomposit and then looking up the individual terms. + ## Derivatives The derivative of a transformed function is the transform @@ -55,11 +56,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
The Laplace transform of a derivative introduces the initial conditions into the result. Notice that $$f(0)$$ is the initial value in the original $$t$$-domain: @@ -98,11 +95,8 @@ and $$f^{(0)}(t) = f(t)$$. As an example, $$\hat{\mathcal{L}}\{f'''(t)\}$$ becomes $$- f''(0) - s f'(0) - s^2 f(0) + s^3 \tilde{f}(s)$$. -
- - - -
+{% include proof/end.html id="proof-dv-t" %} diff --git a/source/know/concept/lindhard-function/index.md b/source/know/concept/lindhard-function/index.md index 4033148..fd620df 100644 --- a/source/know/concept/lindhard-function/index.md +++ b/source/know/concept/lindhard-function/index.md @@ -149,11 +149,8 @@ $$\begin{aligned} = \hat{n}^\dagger(\vb{q}) \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-density" %} + When neglecting interactions, it is tradition to rename $$\chi$$ to $$\chi_0$$. We insert $$\hat{n}$$, suppressing spin: @@ -290,12 +287,10 @@ $$\begin{aligned} = \hat{c}_{\vb{k}}^\dagger \hat{c}_{\vb{k}} - \hat{c}_{\vb{k} + \vb{q}}^\dagger \hat{c}_{\vb{k} + \vb{q}} \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-commutator" %} + We substitute this result into $$\chi_0$$, and reintroduce the spin index $$\sigma$$ associated with $$\vb{k}$$: diff --git a/source/know/concept/matsubara-greens-function/index.md b/source/know/concept/matsubara-greens-function/index.md index fdcadb3..fd46abf 100644 --- a/source/know/concept/matsubara-greens-function/index.md +++ b/source/know/concept/matsubara-greens-function/index.md @@ -83,11 +83,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Due to this limited domain $$\tau \in [-\hbar \beta, \hbar \beta]$$, the [Fourier transform](/know/concept/fourier-transform/) @@ -157,11 +153,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
Let us now define the **Matsubara frequencies** $$\omega_n$$ as a species-dependent subset of $$k_n$$: @@ -228,11 +220,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
If we actually evaluate this, we obtain the following form of $$C_{AB}$$, @@ -283,11 +271,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
+{% include proof/end.html id="proof-lehmann" %} + This gives us the primary use of the Matsubara Green's function $$C_{AB}$$: calculating the retarded $$C_{AB}^R$$ and advanced $$C_{AB}^A$$. diff --git a/source/know/concept/maxwell-bloch-equations/index.md b/source/know/concept/maxwell-bloch-equations/index.md index b306c7d..ba8a677 100644 --- a/source/know/concept/maxwell-bloch-equations/index.md +++ b/source/know/concept/maxwell-bloch-equations/index.md @@ -296,11 +296,8 @@ $$\begin{aligned} \equiv \frac{\gamma_g - \gamma_e}{\gamma_g + \gamma_e} \end{aligned}$$ -
- - - -
With this, the equation for the population inversion $$d$$ takes the following final form: diff --git a/source/know/concept/multi-photon-absorption/index.md b/source/know/concept/multi-photon-absorption/index.md index 5dd9887..80dbc9b 100644 --- a/source/know/concept/multi-photon-absorption/index.md +++ b/source/know/concept/multi-photon-absorption/index.md @@ -73,11 +73,8 @@ $$\begin{aligned} = 2 \pi \: \delta(x) \: t \end{aligned}$$ -
- - - -
## One-photon absorption @@ -187,6 +183,7 @@ Note that this transition is only possible when $$\matrixel{u}{\vu{p}}{0} \neq 0 i.e. for any odd-numbered final state $$\Ket{u}$$. + ## Two-photon absorption Next, we go to second-order perturbation theory. @@ -255,6 +252,7 @@ Notice that the rate is proportional to $$|\vb{E}|^4$$, so this effect is only noticeable at high light intensities. + ## Three-photon absorption For third-order perturbation theory, @@ -327,6 +325,7 @@ The rate is proportional to $$|\vb{E}|^6$$, so this effect only appears at extremely high light intensities. + ## N-photon absorption A pattern has appeared in these calculations: diff --git a/source/know/concept/parsevals-theorem/index.md b/source/know/concept/parsevals-theorem/index.md index df90244..377f3a1 100644 --- a/source/know/concept/parsevals-theorem/index.md +++ b/source/know/concept/parsevals-theorem/index.md @@ -24,11 +24,8 @@ $$\begin{aligned} } \end{aligned}$$ -
- - - -
For this reason, physicists like to define the Fourier transform with $$A\!=\!B\!=\!1 / \sqrt{2\pi}$$ and $$|s|\!=\!1$$, because then it nicely diff --git a/source/know/concept/repetition-code/index.md b/source/know/concept/repetition-code/index.md index 678211e..89e6f4d 100644 --- a/source/know/concept/repetition-code/index.md +++ b/source/know/concept/repetition-code/index.md @@ -164,63 +164,12 @@ while $$ZZI$$ cannot protect the 3rd qubit. But by using both, we know exactly which qubit was flipped thanks to the eigenvalues: - - - - - - - - - - - - - - - - - - - - - - - -
- Error - - $$ZZI$$ - - $$IZZ$$ -
- $$I$$ - - $$+1$$ - - $$+1$$ -
- $$X_1$$ - - $$-1$$ - - $$+1$$ -
- $$X_2$$ - - $$-1$$ - - $$-1$$ -
- $$X_1$$ -