Skip to content

Commit 705678f

Browse files
committed
After-lecture tweaking
1 parent 8c2ac0c commit 705678f

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

src/03_Matrix_eigenproblems.jl

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ Based on the quadratic form we can show
284284
> \begin{align}
285285
> &\nabla q_A(v) = \lambda \nabla g(v)
286286
> \\
287-
> &\begin{cases}
288-
> A^T \bar v = \lambda \bar v & \qquad \text{(Wirtinger derivative wrt }x) \\ A v = \lambda v & \qquad \text{(Wirtinger derivative wrt } \bar x)
287+
> &(\ast) \begin{cases}
288+
> v^H A = \lambda v^H & \qquad \text{(Wirtinger derivative wrt }x) \\ A v = \lambda v & \qquad \text{(Wirtinger derivative wrt } \bar x)
289289
> \end{cases}
290290
> \end{align}
291291
> ```
@@ -298,19 +298,15 @@ Our special interest are Hermitian matrices, particularly due to the importance
298298
As a reminder, Hermitian matrices satisfy $A^H = A$, i.e. $\langle u, Au \rangle = \langle Au, u \rangle$.
299299
For these, we have two key results :
300300
301-
!!! note "Theorem 4"
301+
!!! note "Corollary 4"
302302
Eigenvalues of Hermitian matrices are real.
303303
304304
> *Proof.*
305-
> If $(\lambda, u)$ is an eigenpair of Hermitian $A \in \mathbb C^{n \times n}$ with $\langle u, u \rangle = 1$, then
305+
> If $A = A^H$ we can rewrite the first condition $(\ast)$ in the above proof as
306306
> ```math
307-
> \begin{align}
308-
> \lambda &= \lambda \langle u, u \rangle
309-
> \\ &= \langle u, A u \rangle
310-
> \\ &= \langle A u, u \rangle
311-
> \\ &= \overline{\langle u, A u \rangle} = \bar \lambda &&& \square
312-
> \end{align}
307+
> v^H A^H = λ v^H \quad \Longleftrightarrow \quad A v = \bar \lambda v
313308
> ```
309+
> which in combination with the second condition of $(\ast)$ implies $\lambda = \bar \lambda$.
314310
"""
315311

316312
# ╔═╡ b7ad00f2-4112-458c-bf79-6c78a722fde2
@@ -343,7 +339,7 @@ md"""
343339
> V^H A V = \begin{pmatrix} \lambda_1 & C \\ 0 & B \end{pmatrix}
344340
> ```
345341
> where $B \in \mathbb C^{(n-1) \times (n-1)}, C \in \mathbb C^{1 \times (n-1)}$.
346-
> - As $W$ is an invariant subspace of $A$, so is $W^\perp$ by Lemma 5, and thus $C = 0$.
342+
> - Since $A$ is Hermitian and $V$ unitary, $V^H A V$ is Hermitian, which implies $B^H = B$ and $C = 0$.
347343
> - By induction hypothesis $B = Q D Q^T$ with $D$ real and diagonal and $Q$ unitary.
348344
> The decomposition is thus obtained as
349345
> ```math

src/04_Matrix_error_bounds.jl

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ md"""
9999
> ```math
100100
> M_{i j}= \begin{cases}0 & \text{if } i=j \\ \frac{A_{i j}}{A_{i i}-\lambda} & \text {otherwise }\end{cases}
101101
> ```
102-
> - Due to (2), we thus have $\sum_{j=1}^{n}\left|M_{i j}\right|<1$ $\forall i$, therefore $\|M\|_{\infty}< 1$, and $\|M\|_{2}<\|M\|_{\infty}<1$.
103-
> - Since $\|M\|_{2}$ bounds the modulus of the eigenvalues of $M$, we have that $I+M$ is non-singular, which implies $A-\lambda I$ is non-singular. Therefore $\lambda$ cannot be an eigenvalue of $A$.
102+
> - Due to (2), we thus have $\sum_{j=1}^{n}\left|M_{i j}\right|<1$ $\forall i$, therefore $\|M\|_{\infty}< 1$, and $\varrho(M) < \|M\|_{\infty}<1$.
103+
> - Since $\varrho(M)$ bounds the modulus of the eigenvalues of $M$, we have that $I+M$ is non-singular, which implies $A-\lambda I$ is non-singular. Therefore $\lambda$ cannot be an eigenvalue of $A$.
104104
> - This contradicts our initial statement.
105105
> $\hspace{7cm} \square$
106106
@@ -172,7 +172,7 @@ md"""
172172
> $\hspace{12cm} \square$
173173
"""
174174

175-
# ╔═╡ fd5bcfb5-86c5-4097-a8b0-3f12ef8ed752
175+
# ╔═╡ bf7bc022-c5d2-40a1-ae48-731ee97d9a32
176176
md"""
177177
This is a simple way to get general error bound by establishing a **residual-error relationship**, i.e. a relation between the residual as a computable check for convergence and the error of our quantity of interest against the exact result.
178178
We will note that there is no need to know the exact result !
@@ -190,8 +190,17 @@ We will note that there is no need to know the exact result !
190190
Note that there is no reason for $q$ or $C$ to be identical in both cases.
191191
192192
This suggests the following important point: error-residual relationships are not unique.
193+
"""
194+
195+
# ╔═╡ a70cff6b-b3d6-4f49-aed0-4d01813d6a95
196+
md"""
197+
In fact in many practical examples such as [Herbst, Levitt, Cances 2020, *Figure 7*](https://michael-herbst.com/publications/2020.04.28_error_nonscf_kohn_sham.pdf) one sees that Bauer-Fike does not follow the convergence behaviour of the true error.
198+
193199
In fact for our case a better bound is the Kato-Temple bound, which we will derive next.
200+
"""
194201

202+
# ╔═╡ 5e85fbbb-b9b6-49f2-b33f-539ddd7f4cc0
203+
md"""
195204
## Kato-Temple bound
196205
"""
197206

@@ -463,7 +472,11 @@ Consider the near-diagonal matrix
463472
M = $(latexify_md(M))
464473
465474
466-
with some Sliders to tune the off-diagonal elements:
475+
with some Sliders to tune the off-diagonal elements, shown below. As approximate eigenvectors we assume the unit vectors, that is $\tilde{v}_i = e_i$. As a result the corresponding approximate eigenvalues are just
476+
```math
477+
R_M(\tilde{v}_i) = \tilde{v}_i^T M \tilde{v}_i = M_{ii},
478+
```
479+
i.e. the diagonal entries of $M$.
467480
"""
468481

469482
# ╔═╡ a7e14252-02ee-49c1-9f46-5699cf590923
@@ -1687,7 +1700,9 @@ version = "1.9.2+0"
16871700
# ╟─9c189c48-497e-43c1-a50e-fc1ebe7f0714
16881701
# ╟─371399ec-a571-4aed-b910-7307d90edad1
16891702
# ╟─5466b137-915b-4118-9dbf-f97750303784
1690-
# ╟─fd5bcfb5-86c5-4097-a8b0-3f12ef8ed752
1703+
# ╟─bf7bc022-c5d2-40a1-ae48-731ee97d9a32
1704+
# ╟─a70cff6b-b3d6-4f49-aed0-4d01813d6a95
1705+
# ╟─5e85fbbb-b9b6-49f2-b33f-539ddd7f4cc0
16911706
# ╟─54fea52c-6adb-4c83-b380-416bfdaeacec
16921707
# ╟─f172a676-599b-4be7-9b5d-ceba6b1794dc
16931708
# ╟─3ec0e31c-3d09-43d1-9d9a-506320f7d964

0 commit comments

Comments
 (0)