-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
458 lines (456 loc) · 13.3 KB
/
preamble.tex
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
\newcommand{\definedTerm}[1]{\textbf{#1}}
\newcommand{\dfn}[1]{\textbf{#1}}
% These macros are automatically generated from the "macros"
% XML element. Make permanent edits there.
%
% History
% 2004/01/01 Initiated for FCLA, evolved from there
% 2006/09/17 Converted _, ^ to \sb, \sp for TeX4ht
% 2014/02/01 Updated for MathBook XML projects
% Obsolete in FCLA: \codeindent, \computerfont, \define
% Change: MathJax wants \lt, so replaced by \lteval
% 2014/02/22 New: \orderof, \reals, \per
% 2015/08/16 Incorporated into MathBook XML version of FCLA
%
%%%%%%%%%%%%%%%%%%%%%
%
% Conveniences
%
%%%%%%%%%%%%%%%%%%%%%
%
% Order of (asymptotically limit of fraction is 1)
% Usage: \orderof{some function}
%
\newcommand{\orderof}[1]{\sim #1}
%
% Integers
% Usage: \Z
\newcommand{\Z}{\mathbb{Z}}
%
% Real numbers, as set of scalars
% Usage: \reals
\newcommand{\reals}{\mathbb{R}}
%
% n-space over real field
% Usage: \complex{integer-dimension}
\newcommand{\real}[1]{\mathbb{R}^{#1}}
%
% Complex numbers, as set of scalars
% Usage: \complexes
\newcommand{\complexes}{\mathbb{C}}
%
% n-space over complex field
% Usage: \complex{integer-dimension}
\newcommand{\complex}[1]{\mathbb{C}^{#1}}
\newcommand{\CC}{\mathbb{C}}
%
% Complex conjugation (scalar, vector, matrix)
% Usage: \conjugate{object}
\newcommand{\conjugate}[1]{\overline{#1}}
%
% Complex number modulus
% Usage: \modulus{a+bi}
% Presumes math mode
\newcommand{\modulus}[1]{\left\lvert#1\right\rvert}
%
% Zero vector
% Usage: \zerovector
\newcommand{\zerovector}{\vect{0}}
%
% Zero matrix
% Usage: \zeromatrix, use a subscript when size is important
\newcommand{\zeromatrix}{\mathcal{O}}
%
% Inner product (brackets, not quadratic form)
% Usage: \innerproduct{a-vector}{a-vector}
\newcommand{\innerproduct}[2]{\left\langle#1,\,#2\right\rangle}
%
% Norm of a vector
% Usage: \norm{a-vector}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
%
% Dimension
% Usage: \dimension{vector-space-letter}
\newcommand{\dimension}[1]{\dim\left(#1\right)}
%
% Nullity
% Usage: \nullity{matrix-or-lintrans-letter}
\newcommand{\nullity}[1]{n\left(#1\right)}
%
% Rank
% Usage: \rank{matrix-or-lintrans-letter}
\newcommand{\rank}[1]{r\left(#1\right)}
%
% Direct sum
% Usage: \ds between a couple of subspaces
%
\newcommand{\ds}{\oplus}
%
% Determinant of a matrix (functional)
% Usage: \detname{A}
\newcommand{\detname}[1]{\det\left(#1\right)}
%
% Determinant of a matrix (vertical bars)
% Usage: \detbars{A}
\newcommand{\detbars}[1]{\left\lvert#1\right\rvert}
%
% Trace of a Matrix
% Usage: \trace{matrix name}
\newcommand{\trace}[1]{t\left(#1\right)}
%
% Square Root of a Matrix
% Usage: \sr{a-matrix}
\newcommand{\sr}[1]{#1^{1/2}}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Subspace Constructions
%
%%%%%%%%%%%%%%%%%%%%%
%
% Span of a set of vectors
% \span and \sp are used by TeX for other things
% Usage: \spn{set-of-vectors}
\newcommand{\spn}[1]{\left\langle#1\right\rangle}
%
% Null space of a matrix
% Usage: \nsp{A}
\newcommand{\nsp}[1]{\mathcal{N}\!\left(#1\right)}
%
% Column space of a matrix
% Usage: \csp{A}
\newcommand{\csp}[1]{\mathcal{C}\!\left(#1\right)}
%
% Row space of a matrix
% Usage: \rsp{A}
\newcommand{\rsp}[1]{\mathcal{R}\!\left(#1\right)}
%
% Left null space of a matrix
% Usage: \lns{A}
\newcommand{\lns}[1]{\mathcal{L}\!\left(#1\right)}
%
% Orthogonal complement of a vector space
% Avoiding TeX's \perp
% Usage: \per{A}
\newcommand{\per}[1]{#1^\perp}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Systems of Equations
%
%%%%%%%%%%%%%%%%%%%%%
%
% In-line form of an augmented matrix for a system of equations
% Usage: \augmented{coefficient-matrix}{constant-vector}
\newcommand{\augmented}[2]{\left\lbrack\left.#1\,\right\rvert\,#2\right\rbrack}
%
% Notation for a linear system before introducing matrix multiplication
% Usage: \linearsystem{coefficient-matrix}{constant-vector}
\newcommand{\linearsystem}[2]{\mathcal{LS}\!\left(#1,\,#2\right)}
%
% Notation for a homogenous system before introducing matrix multiplication
% Usage: \homosystem{coefficient-matrix}
\newcommand{\homosystem}[1]{\linearsystem{#1}{\zerovector}}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Row Operations, Echelon Form
%
%%%%%%%%%%%%%%%%%%%%%
%
% Row operations on matrices
%
% Three commands to shorten up descriptions of gaussian elimination
%
% Usage: \rowopswap{row-i}{row-j}
% Usage: \rowopmult{scalar}{row-i}
% Usage: \rowopadd{scalar}{row-multiplied}{row-added-to}
\newcommand{\rowopswap}[2]{R_{#1}\leftrightarrow R_{#2}}
\newcommand{\rowopmult}[2]{#1R_{#2}}
\newcommand{\rowopadd}[3]{#1R_{#2}+R_{#3}}
%
% Mark leading 1's in echelon form with fbox
% Usage: \leading{a-1-usually}
\newcommand{\leading}[1]{\fbox{#1}}
%
% Row-reduce arrow
% Usage: \rref inbetween a matrix and its reduced row-echelon form
\newcommand{\rref}{\xrightarrow{\text{RREF}}}
%
% Elementary Matrices
% Usage: \elemswap{subscript}{subscript}
% Usage: \elemmult{scalar}{subscript}
% Usage: \elemadd{scalar}{subscript-mult}{subscript-target}
%
\newcommand{\elemswap}[2]{E_{#1,#2}}
\newcommand{\elemmult}[2]{E_{#2}\left(#1\right)}
\newcommand{\elemadd}[3]{E_{#2,#3}\left(#1\right)}
%
%%%%%%%%%%%%%%%%%%%%%
%
% 2-D Constructions (Lists, Vectors, Matrices)
%
%%%%%%%%%%%%%%%%%%%%%
%
% A list of scalars of generic length
% Usage: \scalarlist{scalar letter}{terminal subscript}
\newcommand{\scalarlist}[2]{{#1}_{1},\,{#1}_{2},\,{#1}_{3},\,\ldots,\,{#1}_{#2}}
%
% Vector styling, bold (or use wiggles, arrows, whatever)
% Subscripts go outside this construction
% Usage: \vect{a symbol to use as a vector}
% Have to already be in math mode
%
\newcommand{\vect}[1]{\mathbf{#1}}
%
% A column vector
% Usage: \colvector{list-delimited-by-\\}
%
\newcommand{\colvector}[1]{\begin{bmatrix}#1\end{bmatrix}}
%
% A generic vector with components
% Usage: \vectorcomponents{component-letter}{final-subscript}
\newcommand{\vectorcomponents}[2]{\colvector{#1_{1}\\#1_{2}\\#1_{3}\\\vdots\\#1_{#2}}}
%
% A list of vectors of generic length
% Usage: \vectorlist{vector letter}{terminal subscript}
\newcommand{\vectorlist}[2]{\vect{#1}_{1},\,\vect{#1}_{2},\,\vect{#1}_{3},\,\ldots,\,\vect{#1}_{#2}}
%
% Vector entries, entry i of vector v
% (vector-expession still needs \vect, etc.)
% Usage: \vectorentry{vector-expression}{single-subscript}
\newcommand{\vectorentry}[2]{\left\lbrack#1\right\rbrack_{#2}}
%
% Matrix entries, entry i,j of matrix A
% Usage: \matrixentry{matrix-expression}{paired-subscripts}
%
\newcommand{\matrixentry}[2]{\left\lbrack#1\right\rbrack_{#2}}
%
% A generic linear combination
% Usage: \lincombo{scalar letter}{vector letter}{terminal subscript}
\newcommand{\lincombo}[3]{#1_{1}\vect{#2}_{1}+#1_{2}\vect{#2}_{2}+#1_{3}\vect{#2}_{3}+\cdots +#1_{#3}\vect{#2}_{#3}}
%
% Matrix, column by column, as vectors
% Usage: \matrixcolumns{matrix letter}{terminal subscript}
\newcommand{\matrixcolumns}[2]{\left\lbrack\vect{#1}_{1}|\vect{#1}_{2}|\vect{#1}_{3}|\ldots|\vect{#1}_{#2}\right\rbrack}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Special Matrices
%
%%%%%%%%%%%%%%%%%%%%%
%
% Transpose of a matrix
% Usage: \transpose{A}
\newcommand{\transpose}[1]{#1^{t}}
%
% Inverse of a matrix
% Usage: \inverse{A}
\newcommand{\inverse}[1]{#1^{-1}}
%
% Submatrix (for minors, determinants)
% Usage: \submatrix{matrix-name}{delete-row}{delete-col}
\newcommand{\submatrix}[3]{#1\left(#2|#3\right)}
%
% Adjoint of a matrix (twice)
% This macro is a convenience to call \transpose and \conjugate properly
% It shouldn't need to be modified (or mathematical meanings will change)
% Usage: \adj{A}
\newcommand{\adj}[1]{\transpose{\left(\conjugate{#1}\right)}}
%
% This macro controls the symbol used for the adjoint
% It can be edited to taste
% Usage: \adjoint{A}
\newcommand{\adjoint}[1]{#1^\ast}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Sets
%
%%%%%%%%%%%%%%%%%%%%%
%
% A convenience for simple sets
% Usage: \set{list of element}
\newcommand{\set}[1]{\left\{#1\right\}}
%
% Sets with vertical bar, "such that", sized for objects, not condition
% Usage: \setparts{objects}{condition}
%
%%\newcommand{\setparts}[2]{\left\{ #1\mid#2\right\}}
%%\newcommand{\setparts}[2]{\left\{\left. #1\right\rvert#2\right\}}
\newcommand{\setparts}[2]{\left\lbrace#1\,\middle|\,#2\right\rbrace}
%
% Set Cardinality
% Usage: \card{a-set-letter}
\newcommand{\card}[1]{\left\lvert#1\right\rvert}
%
% Set Union
% Use \cup
%
% Set Intersection
% Use \cap
%
% Set Complement
% Usage: \setcomplement{a-set-letter}
\newcommand{\setcomplement}[1]{\overline{#1}}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Eigenvalues and Eigenspaces
%
%%%%%%%%%%%%%%%%%%%%%
%
% Characteristic polynomial
% Usage: \charpoly{matrix-letter}{variable-letter}
\newcommand{\charpoly}[2]{p_{#1}\left(#2\right)}
%
% Eigenspace
% Usage: \eigenspace{matrix-letter}{eigenvalue-letter}
\newcommand{\eigenspace}[2]{\mathcal{E}_{#1}\left(#2\right)}
%
% 2013/10/03 Including ampersands is problematic here,
% think about fixes later
% 2014/02/22 Limited testing, seems & is fine for HTML and LaTeX
% 2016-07-20 only employed in Archetypes, MBX has gather/align override
% Eigensystem (presumes wrapped in an mrow within md)
% Usage: \eigensystem{matrixletter}{eigenvalue}{list of basis vectors}
\newcommand{\eigensystem}[3]{\lambda&=#2&\eigenspace{#1}{#2}&=\spn{\set{#3}}}
%
% Generalized Eigenspace
% Usage: \geneigenspace{lin-trans-letter}{eigenvalue-letter}
\newcommand{\geneigenspace}[2]{\mathcal{G}_{#1}\left(#2\right)}
%
% Algebraic multiplicty
% Usage: \algmult{matrix-letter}{eigenvalue-letter}
\newcommand{\algmult}[2]{\alpha_{#1}\left(#2\right)}
%
% Geometric multiplicty
% Usage: \geomult{matrix-letter}{eigenvalue-letter}
\newcommand{\geomult}[2]{\gamma_{#1}\left(#2\right)}
%
% Index (of eigenvalue)
% Usage: \indx{matrix-letter}{eigenvalue-letter}
\newcommand{\indx}[2]{\iota_{#1}\left(#2\right)}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Linear Transformations
%
%%%%%%%%%%%%%%%%%%%%%
%
% MathJax defines \lt to ease XML confusion
%
% Linear transformation definition
% Usage: \ltdefn{name-letter}{domain}{range}
\newcommand{\ltdefn}[3]{#1\colon #2\rightarrow#3}
%
% Linear transformation evaluation
% Usage: \lteval{name-letter}{input}
% Replaces old \lt desired by MathJax
\newcommand{\lteval}[2]{#1\left(#2\right)}
%
% Linear transformation inverse
% Usage: \ltinverse{name-letter}
\newcommand{\ltinverse}[1]{#1^{-1}}
%
% Linear transformation restriction
% Usage: \restrict{name-letter}{subspace-letter}
\newcommand{\restrict}[2]{{#1}|_{#2}}
%
% Linear transformation preimage
% Usage: \preimage{name-letter}{codomain-element}
\newcommand{\preimage}[2]{#1^{-1}\left(#2\right)}
%
% Range of a linear transformation
% TeX uses \range for something else
% Usage: \rng{T}
\newcommand{\rng}[1]{\mathcal{R}\!\left(#1\right)}
%
% Kernel of a linear transformation
% TeX uses \ker to do something different
% Usage: \krn{T}
\newcommand{\krn}[1]{\mathcal{K}\!\left(#1\right)}
%
% Linear transformation composition
% Usage: \compose{function-name}{function-name}
\newcommand{\compose}[2]{{#1}\circ{#2}}
%
% Vector space of linear transformations
% Usage: \vslt{domains}{codomains}
% Presumes math mode
\newcommand{\vslt}[2]{\mathcal{LT}\left(#1,\,#2\right)}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Vector and Matrix Representations
%
%%%%%%%%%%%%%%%%%%%%%
%
% Isomorphism symbol
% Usage: \isomorphic
\newcommand{\isomorphic}{\cong}
%
% Similarity
% Usage: \similar{inner-matrix}{outer-invertible-matrix}
% Rearranging this will not "fix" all desired changes throughout
%
\newcommand{\similar}[2]{\inverse{#2}#1#2}
%
% Vector representation function name
% Usage: \vectrepname{basis-letter}
\newcommand{\vectrepname}[1]{\rho_{#1}}
%
% Vector representation output
% Usage: \vectrep{basis-letter}{input}
\newcommand{\vectrep}[2]{\lteval{\vectrepname{#1}}{#2}}
%
% Vector representation inverse function name
% (Added later, not used consistently in FCLA)
% Usage: \vectrepinvname{basis-letter}
\newcommand{\vectrepinvname}[1]{\ltinverse{\vectrepname{#1}}}
%
% Vector representation inverse output
% Usage: \vectrepinv{basis-letter}{input}
\newcommand{\vectrepinv}[2]{\lteval{\ltinverse{\vectrepname{#1}}}{#2}}
%
% Matrix representation
% Usage: \matrixrep{transformation-letter}{domain-basis-letter}{codomain-basis-letter}
\newcommand{\matrixrep}[3]{M^{#1}_{#2,#3}}
%
% Matrix representation column-by-colum
% 2016-07-20 only employed once?
% Usage: \matrixrepcolumns{transformation-letter}{codomain-basis-letter}{codomain-basis-vector-letter}{final-index}
\newcommand{\matrixrepcolumns}[4]{\left\lbrack \left.\vectrep{#2}{\lteval{#1}{\vect{#3}_{1}}}\right|\left.\vectrep{#2}{\lteval{#1}{\vect{#3}_{2}}}\right|\left.\vectrep{#2}{\lteval{#1}{\vect{#3}_{3}}}\right|\ldots\left|\vectrep{#2}{\lteval{#1}{\vect{#3}_{#4}}}\right.\right\rbrack}
%
% Change of basis matrix
% Usage: \cbm{domain-basis-letter}{codomain-basis-letter}
\newcommand{\cbm}[2]{C_{#1,#2}}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Canonical Forms
%
%%%%%%%%%%%%%%%%%%%%%
%
% Jordan blocks
% Usage: \jordan{size}{diagonal-element}
\newcommand{\jordan}[2]{J_{#1}\left(#2\right)}
%
%%%%%%%%%%%%%%%%%%%%%
%
% Hadamard Matrices
% Contributed by Elizabeth Million
%
%%%%%%%%%%%%%%%%%%%%%
%
% Hadamard Product
% Usage: \hadamard{a-matrix}{a-matrix}
\newcommand{\hadamard}[2]{#1\circ #2}
%
% Hadamard identity matrix
% Usage: \hadamardidentity{paired-subscripts-size-of-matrix}
\newcommand{\hadamardidentity}[1]{J_{#1}}
%
% Hadamard inverse matrix
% Usage: \hadamardinverse{matrix-expression}
\newcommand{\hadamardinverse}[1]{\widehat{#1}}