aboutsummaryrefslogtreecommitdiffstats
path: root/ElMag.tex
blob: 940f00be5302a1f08a8e8b29b12d1808e8546757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
% !TeX program = xelatex
% !TeX encoding = utf8
% !TeX root = ElMag.tex
% vim: sw=2 ts=2 et:

%% TODO: publish to CTAN
\documentclass[margin=normal]{tex/hsrzf}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages

%% TODO: publish to CTAN
\usepackage{tex/hsrstud}

%% Language configuration
\usepackage{polyglossia}
\setdefaultlanguage{english}

%% License configuration
\usepackage[
    type={CC},
    modifier={by-nc-sa},
    version={4.0},
    lang={english},
]{doclicense}

%% Theorems
\usepackage{amsthm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Metadata

\course{Electrical Engineering}
\module{ElMag}
\semester{Fall Semseter 2021}

\authoremail{naoki.pross@ost.ch}
\author{\textsl{Naoki Pross} -- \texttt{\theauthoremail}}

\title{\texttt{\themodule} Zusammenfassung}
\date{\thesemester}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Macros and settings

%% Theorems
\newtheoremstyle{elmagzf} % name of the style to be used
  {\topsep}
  {\topsep}
  {}
  {0pt}
  {\bfseries}
  {.}
  { }
  { }

\theoremstyle{elmagzf}
\newtheorem{theorem}{Theorem}
\newtheorem{method}{Method}
\newtheorem{application}{Application}
\newtheorem{definition}{Definition}
\newtheorem{remark}{Remark}
\newtheorem{note}{Note}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Document

\begin{document}

% use roman numberals for introductiory pages
\pagenumbering{roman}

\maketitle

% \begin{abstract}
% \end{abstract}

\tableofcontents

\section*{License}
\doclicenseThis

% actual content
\clearpage
\twocolumn
\setcounter{page}{1}
\pagenumbering{arabic}

\section{Vector Analysis Recap}

\begin{definition}[Gradient vector]
  The \emph{gradient} of a function \(f(\vec{x}), \vec{x}\in\mathbb{R}^m\) is a
  column vector containing the partial derivatives
  in each direction.
  \[
    \grad f (\vec{x}) = \sum_{i=1}^m \partial_{x_i} f(\vec{x}) \vec{e}_i
      = \begin{pmatrix}
        \partial_{x_1} f(\vec{x}) \\
        \vdots \\
        \partial_{x_m} f(\vec{x}) \\
      \end{pmatrix}
  \]
\end{definition}

\begin{theorem}[Gradient in curvilinear coordinates]
  Let \(f: \mathbb{R}^3 \to \mathbb{R}\) be a scalar field. In cylindrical coordinates \((r,\phi,z)\)
  \[
    \grad f = \uvec{r}\,\partial_r f 
      + \uvec{\phi}\,\frac{1}{r}\partial_\phi f
      + \uvec{z}\,\partial_z f,
  \]
  and in spherical coordinates \((r,\theta,\phi)\)
  \[
    \grad f = \uvec{r}\,\partial_r f
      + \uvec{\theta}\,\frac{1}{r} \partial_\theta f
      + \uvec{\phi}\,\frac{1}{r \sin\theta} \partial_\phi f.
  \]
\end{theorem}

\begin{definition}[Divergence]
  Let \(\vec{F}: \mathbb{R}^m \to \mathbb{R}^m\) be a vector field.
  The divergence of \(\vec{F} = (F_{x_1},\ldots, F_{x_m})^t\) is
  \[
    \div\vec{F} = \sum_{i = 1}^m \partial_{x_i} F_{x_i} ,
  \]
  as suggested by the (ab)use of the dot product notation.
\end{definition}

\begin{theorem}[Divergence in curvilinear coordinates]
  Let \(\vec{F}: \mathbb{R}^3 \to \mathbb{R}^3\) be a field. In cylindrical coordinates \((r,\phi,z)\)
  \[
    \div \vec{F} = \frac{1}{r} \partial_r (r F_r)
      + \frac{1}{r}\partial_\phi F_\phi
      + \partial_z F_z,
  \]
  and in spherical coordinates \((r,\theta,\phi)\)
  \begin{align*}
    \div \vec{F} = \frac{1}{r^2} \partial_r (r^2 F_r)
      & + \frac{1}{r \sin\theta} \partial_\theta (\sin\theta F_\theta) \\
      & + \frac{1}{r \sin\theta} \partial_\phi F_\phi
  \end{align*}
\end{theorem}

\begin{theorem}[Divergence theorem, Gauss's theorem]
  Because the flux on the boundary \(\partial V\) of a volume \(V\) contains
  information of the field inside of \(V\), it is possible relate the two with
  \[
    \int_V \div \vec{F} \,dv = \oint_{\partial V} \vec{F} \dotp d\vec{s} .
  \]
\end{theorem}

\begin{definition}[Curl]
  Let \(\vec{F}\) be a vector field. In 2 dimensions
  \[
    \curl \vec{F} = \left(\partial_x F_y - \partial_y F_x\right)\uvec{z}.
  \]
  And in 3D
  \[
    \curl \vec{F} = \begin{pmatrix}
      \partial_y F_z - \partial_z F_y \\
      \partial_z F_x - \partial_x F_z \\
      \partial_x F_y - \partial_y F_x
    \end{pmatrix}
    = \begin{vmatrix}
      \uvec{x} & \uvec{y} & \uvec{z} \\
      \partial_x & \partial_y & \partial_z \\
      F_x & F_y & F_z
    \end{vmatrix} .
  \]
\end{definition}

\begin{definition}[Curl in curvilinear coordinates]
  Let \(\vec{F}: \mathbb{R}^3 \to \mathbb{R}^3\) be a field. In cylindrical coordinates \((r,\phi,z)\)
  \begin{align*}
    \curl \vec{F} =
      &\left(\frac{1}{r} \partial_\phi F_z - \partial_z F_\phi \right) \uvec{r} \\
      &+ \left(\partial_z F_r - \partial_r F_z \right) \uvec{\phi} \\
      &+ \frac{1}{r} \bigg[
        \partial_r (rF_\phi) - \partial_\phi F_r
        \bigg] \uvec{z},
  \end{align*}
  and in spherical coordinates \((r,\theta,\phi)\)
  \begin{align*}
      \curl \vec{F} =
        &\frac{1}{r \sin\theta} \bigg[
          \partial_\theta (\sin\theta F_\phi) - \partial_\phi F_\theta
        \bigg] \uvec{r} \\
        &+ \frac{1}{r} \bigg[
          \frac{1}{\sin\theta} \partial_\phi F_r - \partial_r (r F_\phi)
        \bigg] \uvec{\theta} \\
        &+ \frac{1}{r} \bigg[
          \partial_r (r F_\theta) - \partial_\theta F_r
        \bigg] \uvec{\phi} .
  \end{align*}
\end{definition}

\begin{theorem}[Stokes' theorem]
  \[
    \int_\mathcal{S} \curl \vec{F} \dotp d\vec{s}
    = \oint_{\partial\mathcal{S}} \vec{F} \dotp d\vec{r}
  \]
\end{theorem}

\begin{definition}[Laplacian operator]
  A second vector derivative is so important that it has a special name.  For a
  scalar function \(f: \mathbb{R}^m \to \mathbb{R}\) the divergence of the
  gradient
  \[
    \laplacian f = \div (\grad f) = \sum_{i=1}^m \partial_{x_i}^2 f_{x_i}
  \]
  is called the \emph{Laplacian operator}.
\end{definition}

\begin{theorem}[Laplacian in curvilinear coordinates]
  Let \(f: \mathbb{R}^3 \to \mathbb{R}\) be a scalar field. In cylindrical coordinates \((r,\phi,z)\)
  \[
    \laplacian f = \frac{1}{r} \partial_r (r \partial_r f)
      + \frac{1}{r^2} \partial_\phi^2 f
      + \partial_z^2 f
  \]
  and in spherical coordinates \((r,\theta,\phi)\)
  \begin{align*}
    \laplacian f = 
      \frac{1}{r^2} \partial_r ( r^2 \partial_r f)
      & + \frac{1}{r^2\sin\theta} \partial_\theta (\sin\theta \partial_\theta f) \\
      & + \frac{1}{r^2 \sin^2 \theta} \partial_\phi^2 f.
  \end{align*}
\end{theorem}

\begin{definition}[Vector Laplacian]
  The Laplacian operator can be extended on a vector field \(\vec{F}\) to the 
  \emph{Laplacian vector} by applying the Laplacian to each component:
  \[
    \vlaplacian \vec{F} 
      = (\laplacian F_x)\uvec{x} 
      + (\laplacian F_y)\uvec{y} 
      + (\laplacian F_z)\uvec{z} .
  \]
  The vector Laplacian can also be defined as
  \[
    \vlaplacian \vec{F} = \grad (\div \vec{F}) - \curl (\curl \vec{F}).
  \]
\end{definition}

\begin{theorem}[Product rules and second derivatives]
  Let \(f,g\) be sufficiently differentiable scalar functions \(D
  \subseteq\mathbb{R}^m \to \mathbb{R}\) and \(\vec{A}, \vec{B}\) be
  sufficiently differentiable vector fields in \(\mathbb{R}^m\) (with \(m = 2\)
  or 3 for equations with the curl).
  \begin{itemize}
    \item Rules with the gradient
      \begin{align*}
        \grad (\div \vec{A}) &= \curl \curl \vec{A} + \vlaplacian \vec{A} \\
        \grad (f\cdot g) &= (\grad f)\cdot g + f\cdot \grad g \\
        \grad (\vec{A} \dotp \vec{B}) &= 
          (\vec{A} \dotp \grad) \vec{B}
          + (\vec{B} \dotp \grad) \vec{A} \\
          & + \vec{A} \crossp (\curl \vec{B})
          + \vec{B} \crossp (\curl \vec{A})
      \end{align*}
    \item Rules with the divergence
      \begin{align*}
        \div (\grad f) &= \laplacian f \\
        \div (\curl \vec{A}) &= 0 \\
        \div (f\cdot \vec{A}) &= (\grad f) \dotp \vec{A} + f\cdot (\div \vec{A}) \\
        \div (\vec{A}\crossp\vec{B}) &= (\curl \vec{A})\dotp \vec{B} 
          - \vec{A} \cdot (\curl\vec{B})
      \end{align*}
    \item Rules with the curl
      \begin{align*}
        \curl (\grad f) &= \vec{0} \\
        \curl (\curl \vec{A}) &= \grad (\div \vec{A}) - \vlaplacian \vec{A} \\
        \curl (\vlaplacian \vec{A}) &= \vlaplacian (\curl \vec{A}) \\
        \curl (f\cdot \vec{A}) &= (\grad f)\crossp \vec{A} + f\cdot \curl \vec{A} \\
        \curl (\vec{A}\crossp\vec{B}) &= 
          (\vec{B} \dotp \grad) \vec{A} - (\vec{A} \dotp \grad) \vec{B} \\
          &+ \vec{A} \dotp (\div \vec{B}) - \vec{B} \dotp (\div \vec{A})
      \end{align*}
  \end{itemize}
\end{theorem}

\section{Electrodynamics Recap}

\subsection{Maxwell's equations}

Maxwell's equations in matter in their integral form are
\begin{subequations}
  \begin{align}
    \oint_{\partial S} \vec{E} \dotp d\vec{l} &= -\frac{d}{dt} \int_S \vec{B} \dotp d\vec{s}, \\
    \oint_{\partial S} \vec{H} \dotp d\vec{l} &= \int_S \left(
      \vec{J} + \partial_t \vec{D}
    \right) \dotp d\vec{s}, \\
    \oint_{\partial V} \vec{D} \dotp d\vec{s} &= \int_V \rho \,dv, \\
    \oint_{\partial V} \vec{B} \dotp d\vec{s} &= 0.
  \end{align}
\end{subequations}
Where \(\vec{J}\) and \(\rho\) are the \emph{free current density} and \emph{free charge density} respectively.

\subsection{Isotropic linear materials and boundary conditions}

Inside of so called isotropic linear materials the fields and flux (or current) densities are proportional, i.e.
\begin{align*}
  \vec{D} &= \varepsilon \vec{E}, & \vec{J} &= \sigma \vec{E}, & \vec{B} &= \mu \vec{H}.
\end{align*}

Between two materials (1) and (2) the following boundary conditions must be satisfied:
\begin{align*}
  &\uvec{n} \dotp \vec{D}_1 = \uvec{n} \dotp \vec{D}_2 + \rho_s &
    &\uvec{n} \crossp \vec{E}_1 = \uvec{n} \crossp \vec{E}_2 \\
  &\uvec{n} \dotp \vec{J}_1 = \uvec{n} \dotp \vec{J}_2 - \partial_t \rho_s &
    &\uvec{n} \crossp \vec{H}_1 = \uvec{n} \crossp \vec{H}_2 + \vec{J}_s \\
  &\uvec{n} \dotp \vec{B}_1 = \uvec{n} \dotp \vec{B}_2 - \partial_t \rho_s &
    &\uvec{n} \crossp \vec{M}_1 = \uvec{n} \crossp \vec{M}_2 + \vec{J}_{s,m}
\end{align*}

\subsection{Magnetic vector potential}

\section{Laplace and Poisson's equation}


\end{document}