Output
Output
http://web.evanchen.cc/napkin.html
Evan Chen
Version: v1.5.20220208
When introduced to a new idea, always ask why you should care.
Do not expect an answer right away, but demand one eventually.
http://ko-fi.com/evanchen/
This is (still!) an incomplete draft. Please send corrections, comments, pictures of kittens, etc.
to evan@evanchen.cc, or pull-request at https://github.com/vEnhance/napkin.
I’ll be eating a quick lunch with some friends of mine who are still in high school.
They’ll ask me what I’ve been up to the last few weeks, and I’ll tell them that I’ve been
learning category theory. They’ll ask me what category theory is about. I tell them
it’s about abstracting things by looking at just the structure-preserving morphisms
between them, rather than the objects themselves. I’ll try to give them the standard
example Grp, but then I’ll realize that they don’t know what a homomorphism is.
So then I’ll start trying to explain what a homomorphism is, but then I’ll remember
that they haven’t learned what a group is. So then I’ll start trying to explain what a
group is, but by the time I finish writing the group axioms on my napkin, they’ve
already forgotten why I was talking about groups in the first place. And then it’s
1PM, people need to go places, and I can’t help but think:
“Man, if I had forty hours instead of forty minutes, I bet I could actually have explained
this all”.
This book was initially my attempt at those forty hours, but has grown considerably
since then.
Source code
The project is hosted on GitHub at https://github.com/vEnhance/napkin. Pull
requests are quite welcome! I am also happy to receive suggestions and corrections by
email.
v
vi Napkin, by Evan Chen (v1.5.20220208)
� Someone tells you about the hairy ball theorem in the form “you can’t comb the
hair on a spherical cat” then doesn’t tell you anything about why it should be true,
what it means to actually “comb the hair”, or any of the underlying theory, leaving
you with just some vague notion in your head.
� You take a class and prove every result in full detail, and at some point you stop
caring about what the professor is saying.
Presumably you already know how unsatisfying the first approach is. So the second
approach seems to be the default, but I really think there should be some sort of middle
ground here.
Unlike university, it is not the purpose of this book to train you to solve exercises or
write proofs1 , or prepare you for research in the field. Instead I just want to show you
some interesting math. The things that are presented should be memorable and worth
caring about. For that reason, proofs that would be included for completeness in any
ordinary textbook are often omitted here, unless there is some idea in the proof which
I think is worth seeing. In particular, I place a strong emphasis over explaining why a
theorem should be true rather than writing down its proof. This is a recurrent theme of
this book:
My hope is that after reading any particular chapter in Napkin, one might get the
following out of it:
� Knowing the precise statements of famous theorems, and having a sense of why
they should be true.
Understanding “why” something is true can have many forms. This is sometimes
accomplished with a complete rigorous proof; in other cases, it is given by the idea of the
proof; in still other cases, it is just a few key examples with extensive cheerleading.
Obviously this is nowhere near enough if you want to e.g. do research in a field; but if
you are just a curious outsider, I hope that it’s more satisfying than the elevator pitch or
Wikipedia articles. Even if you do want to learn a topic with serious depth, I hope that
it can be a good zoomed-out overview before you really dive in, because in many senses
the choice of material is “what I wish someone had told me before I started”.
Acknowledgements
add more
acknowledg- I am indebted to countless people for this work. Here is a partial (surely incomplete)
ments
list.
� Thanks to all my teachers and professors for teaching me much of the material
covered in these notes, as well as the authors of all the references I have cited here.
A special call-out to [Ga14], [Le14], [Sj05], [Ga03], [Ll15], [Et11], [Ko14], [Va17], [Pu02],
[Go18], which were especially influential.
� Thanks also to dozens of friends and strangers who read through preview copies
of my draft, and pointed out errors and gave other suggestions. Special mention
to Andrej Vuković and Alexander Chua for together catching over a thousand
errors. Thanks also to Brian Gu and Tom Tseng for many corrections. (If you find
mistakes or have suggestions yourself, I would love to hear them!)
� I’d also like to express my gratitude for many, many kind words I received during
the development of this project. These generous comments led me to keep working
on this, and were largely responsible for my decision in November 2018 to begin
updating the Napkin again.
Finally, a huge thanks to the math olympiad community, from which the Napkin
(and me) has its roots. All the enthusiasm, encouragement, and thank-you notes I have
received over the years led me to begin writing this in the first place. I otherwise would
never have the arrogance to dream a project like this was at all possible. And of course I
would be nowhere near where I am today were it not for the life-changing journey I took
in chasing my dreams to the IMO. Forever TWN2!
2
Alternatively: “ . . . and spent the next two years forgetting everything I had painstakingly learned”.
Which made me grateful for all the past notes in the Napkin!
Advice for the reader
�1 Prerequisites
As explained in the preface, the main prerequisite is some amount of mathematical
maturity. This means I expect the reader to know how to read and write a proof, follow
logical arguments, and so on.
I also assume the reader is familiar with basic terminology about sets and functions
(e.g. “what is a bijection?”). If not, one should consult Appendix E.
ix
x Napkin, by Evan Chen (v1.5.20220208)
� An inline exercise is more meaty than a question, but shouldn’t have any “tricky”
steps. Often I leave proofs of theorems and propositions as exercises if they are
instructive and at least somewhat interesting.
� Each chapter features several trickier problems at the end. Some are reasonable,
but others are legitimately difficult olympiad-style problems. Harder problems are
marked with up to three chili peppers ( ), like this paragraph.
In addition to difficulty annotations, the problems are also marked by how important
they are to the big picture.
– Normal problems, which are hopefully fun but non-central.
– Daggered problems, which are (usually interesting) results that one should
know, but won’t be used directly later.
– Starred problems, which are results which will be used later on in the book.1
�4 Paper
At the risk of being blunt,
Read this book with pencil and paper.
Here’s why:
You are not God. You cannot keep everything in your head.2 If you’ve printed out a
hard copy, then write in the margins. If you’re trying to save paper, grab a notebook or
something along with the ride. Somehow, some way, make sure you can write. Thanks.
�6.iii Functions
This is brief, intended as a reminder for experts. Consult Appendix E for full details.
f
Let X −
→ Y be a function:
� By f pre (T ) I mean the pre-image
f pre (T ) := {x ∈ X | f (x) ∈ T } .
This is in contrast to the f −1 (T ) used in the rest of the world; I only use f −1 for
an inverse function.
By abuse of notation, we may abbreviate f pre ({y}) to f pre (y). We call f pre (y) a
fiber.
� By f img (S) I mean the image
f img (S) := {f (x) | x ∈ S} .
Almost everyone else in the world uses f (S) (though f [S] sees some use, and f “(S)
is often used in logic) but this is abuse of notation, and I prefer f img (S) for emphasis.
This image notation is not standard.
� If S ⊆ X, then the restriction of f to S is denoted f �S , i.e. it is the function
f �S : S → Y .
� Sometimes functions f : X → Y are injective or surjective; I may emphasize this
sometimes by writing f : X �→ Y or f : X � Y , respectively.
Advice for the reader xiii
�6.v Rings
All rings have a multiplicative identity 1 unless otherwise specified. We allow 0 = 1 in
general rings but not in integral domains.
All rings are commutative unless otherwise specified. There is an elaborate
scheme for naming rings which are not commutative, used only in the chapter on
cohomology rings:
On the other hand, an algebra always has 1, but it need not be commutative.
�6.vi Choice
We accept the Axiom of Choice, and use it freely.
�7 Further reading
The appendix Appendix A contains a list of resources I like, and explanations of peda-
gogical choices that I made for each chapter. I encourage you to check it out.
In particular, this is where you should go for further reading! There are some topics
that should be covered in the Napkin, but are not, due to my own ignorance or laziness.
The references provided in this appendix should hopefully help partially atone for my
omissions.
Contents
Preface v
I Starting Out 33
0 Sales pitches 35
0.1 The basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
0.2 Abstract algebra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
0.3 Real and complex analysis . . . . . . . . . . . . . . . . . . . . . . . . . . 37
0.4 Algebraic number theory . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
0.5 Algebraic topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
0.6 Algebraic geometry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
0.7 Set theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
1 Groups 41
1.1 Definition and examples of groups . . . . . . . . . . . . . . . . . . . . . . 41
1.2 Properties of groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
1.3 Isomorphisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.4 Orders of groups, and Lagrange’s theorem . . . . . . . . . . . . . . . . . 48
1.5 Subgroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
1.6 Groups of small orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
1.7 Unimportant long digression . . . . . . . . . . . . . . . . . . . . . . . . . 51
1.8 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 51
2 Metric spaces 53
2.1 Definition and examples of metric spaces . . . . . . . . . . . . . . . . . . 53
2.2 Convergence in metric spaces . . . . . . . . . . . . . . . . . . . . . . . . 55
2.3 Continuous maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.4 Homeomorphisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.5 Extended example/definition: product metric . . . . . . . . . . . . . . . 58
2.6 Open sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
2.7 Closed sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
2.8 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 63
15
16 Napkin, by Evan Chen (v1.5.20220208)
3.2 Homomorphisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.3 Cosets and modding out . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
3.4 (Optional) Proof of Lagrange’s theorem . . . . . . . . . . . . . . . . . . . 73
3.5 Eliminating the homomorphism . . . . . . . . . . . . . . . . . . . . . . . 73
3.6 (Digression) The first isomorphism theorem . . . . . . . . . . . . . . . . 76
3.7 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 76
5 Flavors of rings 91
5.1 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5.2 Integral domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5.3 Prime ideals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
5.4 Maximal ideals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
5.5 Field of fractions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
5.6 Unique factorization domains (UFD’s) . . . . . . . . . . . . . . . . . . . 95
5.7 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 96
8 Compactness 117
8.1 Definition of sequential compactness . . . . . . . . . . . . . . . . . . . . . 117
Contents 17
10 Eigen-things 147
10.1 Why you should care . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
10.2 Warning on assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
10.3 Eigenvectors and eigenvalues . . . . . . . . . . . . . . . . . . . . . . . . . 148
10.4 The Jordan form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
10.5 Nilpotent maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
10.6 Reducing to the nilpotent case . . . . . . . . . . . . . . . . . . . . . . . . 152
10.7 (Optional) Proof of nilpotent Jordan . . . . . . . . . . . . . . . . . . . . 153
10.8 Algebraic and geometric multiplicity . . . . . . . . . . . . . . . . . . . . 154
10.9 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 155
12 Determinant 165
12.1 Wedge product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.2 The determinant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
12.3 Characteristic polynomials, and Cayley-Hamilton . . . . . . . . . . . . . 169
12.4 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 171
21 Characters 241
21.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
21.2 The dual space modulo the commutator . . . . . . . . . . . . . . . . . . 242
21.3 Orthogonality of characters . . . . . . . . . . . . . . . . . . . . . . . . . . 243
21.4 Examples of character tables . . . . . . . . . . . . . . . . . . . . . . . . . 245
21.5 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 247
28 Differentiation 303
28.1 Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
28.2 How to compute them . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
28.3 Local (and global) maximums . . . . . . . . . . . . . . . . . . . . . . . . 307
28.4 Rolle and friends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
28.5 Smooth functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
28.6 A few harder problems to think about . . . . . . . . . . . . . . . . . . . 312