Algebra
feynmanlectures.caltech.edu
feynmanlectures.caltech.edu
It remained so in the late 70's when I attended.
The prices it still fetches on Amazon shows its timeless worth.
e^{i*ɸ} = cos ɸ + i * sin ɸ
can be discovered from a simple assumption of what raising to the power i could mean.
Namely, that for very small x, e^x is close to 1+x, not just for real numbers x, but also for complex numbers x.
PS: how do I write superscripts in HN markup?
This has it backwards as far as intuition is concerned. The geometric interpretation is the obvious one, and the use of `i` in finding zeros is a special case.
(Well... I guess it does in a sense, because all it means to be additive is that it's linear, so you can add up all the complex-valued terms in e^(i ɸ) and give their coefficients the name sin().)
Figuring out what e^(iɸ) means requires figuring out "What `i` is" and "What e^x means on non-numbers" at the same time. That is, it requires you to perform two intellectual jumps at once instead of one at a time. No wonder it is so confusing.
If these concepts are made sufficiently simple, I imagine that we could live in a world where we also teach e^(a d/dx) f(x) = f(x + a) in high school.
(In particular, if you know about delta functions... a lot of weirdness around x=0 goes away if you write everything in terms of r \sgn (r) and take the derivatives of both terms. e.g. This gives "for free" the fact that the divergence of 1/r^2 is 4 pi delta(r).)
I have heard of systems in which one sticks more lines out from 0 than just the positive and negative numbers. At some level that's what R^2 is, with four copies of the positive number line, but I don't see a strong reason why in principle you couldn't have an odd number of lines, which would correspond to... uh... R^1.5. But you have to define how these lines rotate into each other, and it is gonna be weird.
x + 1 = 0
to have a solution, you need to invent negative numbers, now if you want the equation
x^2 + 1 = 0
to have a solution, you need to invent complex numbers and 'i'. (Also, complex numbers, turns out, are enough for higher powers as well)
The line and plane are just convenient representations of R and C but there is nothing inherently profound about them, in my opinion
edit: I should add, by O^2 I mean O ∘ O, so there's no definition of "multiplication" on these necessarily, just composition.
[0] http://geometry.mrao.cam.ac.uk/wp-content/uploads/2015/02/00...
Given (* is geometric product, . is scalar product, ^ is wedge product)
e_i * e_i = e_i . e_i + e_i ^ e_i = 1 + 0 = 1
e_i * e_j = e_i . e_j + e_i ^ e_j = 0 + -e_j ^ e_i = -(e_j * e_i)
where the e_i are the basis elements along the infinite rays mentioned.To move to a rotated basis, make a rotor
R = cos(theta/2) - e_i e_j sin(theta/2)
~R = cos(theta/2) + e_i e_j sin(theta/2)
then you get the relationship in the new coordinate system: x' = R * x * ~R
Since it's parameterized for any theta in [0..4pi], there's infinite of them, furthermore you get to pick which path you are taking to do the transformation along the way - either the 'negative' direction [0..2pi] or 'positive' direction [2pi..4pi]With that said, we abandoned `ab = ba` because it's not useful for e.g. linear algebra. Elementary algebra is a very specific (but very useful) mathematical "DSL" over the reals. It's also not necessarily going to help you learn to reason about the kinds of abstractions you have whilst programming, per se, because we can't reverse `a . b` to `b . a` when we code either.
Make no mistake, this is a knowledge for knowledge's sake endeavor. A liberal arts of the STEM fields, if you will.
In the context of linear algebra, it would also be good for folks to know that matrix multiplication (/linear transformation composition) is not commutative.
In FP arithmetic, operations are commutative, not associative.
The requirement for order independence is literally everywhere … where would we be without being able to add or do set unions or lattice joins without fear of getting the order wrong?! Imagine getting two different waveforms when adding one to the other, depending on the order!
a = f(c) b = g(d)
can be rearranged if f and g take different input data, and calling independent functions is something seen literally everywhere in programming. Optimizing compilers often take advantage of that.
If so, I agree with you, but not quite in the way you mean (I think). We don't account for it just as fish don't have to account for water. The fact that you can swap two rows in an excel file and have the results be unchanged is a property that we just take for granted. It needs to be pointed out how remarkable it is, because there are situations where this doesn't work. Debits and credits in finance are not commutative because of overdraft limits. I'm sure you know all this, so I'm curious what you really mean.
Thanks to BeetleB for pointing out that addition in IEEE floats is indeed commutative (I originally claimed "+0 + -0 = +0 vs. -0 + +0 = -0" which is incorrect).
As for IEEE-754 floats, addition is commutative as long as you don't care about exact bit patterns:
NaN + NaN may return different bit patterns. The result is still NaN, so the only way you can tell this apart is by bit-casting floats to ints or byte arrays.
Multiplication over floats is also commutative modulo the caveat above.
These are not exceptions.
First, I will note that your result above depends on the rounding mode.
Second, IEEE 754 mandates that +0 and -0 are equal (i.e. any equality operator should return True when comparing these two). Therefore both expressions are equal.
NaN has several representations in bits, but they are all "equal" to one another.[1] If an operation gives you NaN, then so will doing it commutatively. It doesn't matter that the underlying bits are the same.
[1] Except for the signaling aspect. But I believe that is preserved in commutative operations.
Also, yes, +0 == -0, but they can produce different results when used in the same expression, so the distinction does matter (although this doesn't affect commutativity, which is the larger point). For example, let f(x) = 1 / x. Then f(+0) = +inf, f(-0) = -inf.
I also agree with you about NaN, that's why I mentioned having to go outside floating point numbers (bit-casting).
Specifically, (-0.0) + (+0.0) = (+0.0) + (-0.0) = +0.0 (assuming round-to-nearest-or-even). OTOH, (-0.0) + (-0.0) = -0.0. This has nothing to do with +0.0 == -0.0 for comparison, addition just is commutative outright[0].
0: Pedantically, I'm not sure IEEE-754 requires the specific choice of which NaN you get when you do `some_nan + a_different_nan` versus `a_different_nan + some_nan` to be commutative, but it should.
If a + b results in an overflow, so will b + a.
if a = 0.3 b=0.4 and c=5 as f32 in rust, then the following "well known results" from the article are all false:
(b) a+(b+c) = (a+b)+c is false
(d) a*(b+c) = a*b+a*c is false
(f) (ab)^c = a^c b^c is false
(g) a^b a^c = a^(b+c) is false
(h) (a^b)^c = a^(b*c) is false
https://play.rust-lang.org/?version=stable&mode=debug&editio...e^(ipi) = -1
You only have to see that cos(pi)=-1 and sin(pi)=0, giving:
-1 + i0 = -1
I agree, at first it *is* surprising to see a Nobel laureate walk from the most-obvious-count-on-my-fingers-elementary-school-math all the way up to Euler's Formula, only to stop there without taking the very short step, done in the comment above, to land on Euler's Equation. After all, that is how I see it done most often.
The goal here is not to reproduce famous results. That would be the "we could bring forth this formula in two minutes or so, and be done with it" thing that is deliberately called out at the start. Instead, it is explained
> Every so often it is a great pleasure to look back to see what territory has been covered, and what the great map or plan of the whole thing is.
Seeing famous relations reduced to one another is probably enjoyable for you, and judging how many authors do it I think you've got a lot of good company. What is done here is different. It starts with things we all know as children and ends with a relationship between algebra and geometry, covering lots of mathematical apparatuses in between. It is notable that this is done without relying on the formality of landing on "famous results" at each step. That approach, combined with the easygoing language, is what I found most enjoyable about the writing.
https://archive.org/details/j.e.thompsoncalculusforthepracti...
I can't help feeling like my math upbringing was akin to a child being raised by parents who speak their own made-up language. Integrating with the rest of the normal-language-speaking world is anxiety inducing and filled with challenges that may never be completely overcome.
What do you want to produce? People who can come up with new solutions to new problems on their own, or people who do cookie-cutter rules? How do you keep doing that throughout your life, long after school? People say they want the former until they come up against the reality of uncertainty, the possibility that there might not actually be any answers, and then they go right back to memorizing and teaching rules. They go back to justifying things the way they are.
This is how I learn mathematics – mostly because I'm empirically incapable of doing otherwise. I will achieve a lower grade than I “could”, and miss out on many opportunities as a result.
Really smart people, and sometimes even just moderately smart people, coast along as A, B, or C students while learning what they want and just doing the minimum of the requirements to coast along. And then a bunch of other people have academic-like side-interests that they pursue in their free time.
Among the best, Feynman was singular in his ability to communicate math and physics.
In other words, don't be so hard on the teachers who were disappointing in comparison to the stellar examples you see from top mathematical communicators. What you're reading is quite rare and, while education quality could certainly improve, its not fair to expect this of a 5th grade teacher who covers 5 topics in a day. Even for the best, developing this type of material takes time and thought that a school teacher probably does not have.
It certainly doesn't help. The tendency to pile more and more into standards, and then to have haphazard treatment in the textbooks, with problems that don't make sense... isn't great.
Stick a new teacher in the classroom, and they're going to run their book's recommended pacing and content. And even a veteran is probably going to lean on the book a lot in a pinch.
And, your course needs to fit together with 2 other teachers who are too likely to be running the absurd pacing and content in the courses before and after yours. The rushed pace leaves no choice but to devote a huge fraction of the time to procedural knowledge.
The net result doesn't serve anyone: the top students are left unchallenged and without the context and enrichment that could let them really grow. The bottom students are in painful struggle. And the middle are perpetually slightly confused, learning specific tools that they'll immediately forget when the unit completes.
I never did any homework, and that worked great until undergrad, where the strategy of reading things on my phone all day instead of listening to anything in class stopped working quite so well.
I'm not very good at proofs, but following arbitrary rules provided with no motivation? Decades of experience!
Unfortunately, this selection misses (most?) children who may not be well suited to "school maths" - for whatever reason. But these children may succeed just as well in "higher mathematics".
Two anecdotes: (1) June Huh dropped out of high school and stagnated for 6 years in university. In his 6th year, he ran into the fields medal Heisuke Hironaka. It was only then his "slow thinking" and deep creative insight (perhaps the things that hindered him in "school maths" type courses?) proved to be fruitful in higher mathematics. June Huh now has a fields medal.
(https://www.quantamagazine.org/june-huh-high-school-dropout-...)
(2) I was frequently in trouble at school and underachieved relative to my predicted grades. I resented the route learning and arbitrariness of "school mathematics". Due to some miracle I'm currently working towards a PhD in theoretical physics, in the mathematics department of a top university, and I also spend about 90% of my free time working through various advanced maths textbooks for fun. Turns out I'm quite suited for thinking about higher mathematics, despite not being particularly well disposed for school. If my school experience was different, I probably would have done a PhD in pure mathematics instead.
I somewhat disagree. There were plenty of students who start to hit higher classes and just don't have the aptitude for it. They really didn't know it wasn't their thing until junior year of undergrad, despite always being told they were "good at math" as a kid.
"Back in my day," my school district adopted a math curriculum that introduced sets in first grade, and eased us into proofs. We were not unfamiliar with proofs when we hit high school geometry, which was almost entirely proofs. Also, by doing proofs we could recognize that the manipulations we were doing in the regular problem sets could be seen as mini-proofs, rather than just guessing the right algorithm and grinding through it without knowing why.
When my kids took math, no proofs. Even geometry was all problems and no proofs. Moreover, kids are all aware of the conventional wisdom that "you just need math to get through school, you will never use it after you graduate."
For me, proofs were what made math come alive, and I started college as a math major. Today, despite my theoretical bent, I'm one of the few people at my workplace who is willing to solve practical math problems that don't have a canned solution in a software package.
You could wonder why you feel this way. If there is a sense of play which makes it interesting, and you are reading it and enjoying it today, why isn't that enough? What is the resentment about - you haven't missed out on the interesting math explanation - it's right here, you're reading it and enjoying it.
(This is the work of cognitive behavioural therapy - "I read a math thing which I found interesting, but instead of feeling elevated, happy, awed in the presence of brilliance, greatful that I stumbled upon such a thing when I could have gone my whole life not knowing about it, I instead jumped to feelings of resentment about things which happened many years ago, leaving me in a bad mood. I wonder what in my head made that connection and why?" Ref: a different person I was replying to in a different thread who was claiming that CBT is about colouring-in while handwaving problems away or waiting for acceptance that life sucks to bestow itself upon you).
Could I have been a decent mathematician if the opportunity was not missed while I was totally unaware of its existence? Obviously there can be no definitive answer to that question.
And it’s also ok to be a little resentful of having been tortured for many hours with something that clearly could have been a lot of fun.
Similarly, I squeaked out of high school before it was required to learn a second language. At the time I was high-five-ing myself, thinking I'd dodged a bullet. Now, as an adult, I can only begin to imagine how much of the world is closed off to me.
But there can be a definitive (personal, subjective) answer to the question "why am I torturing myself with resentment over this hypothetical world which never existed? Why does 'being a decent mathematician' have such a hold over me whereas 'being a decent sculptor' or 'being a decent botanist' is emotionally neutral or disinteresting by comparison?
It's quite possible that studying apple tree cultivation and propagation and plant genetics and growth factors could be the most interesting thing you've never been exposed to a good teacher on, and that you could have had a fulfilling and satisfying career doing that, if only, if only.
> "And it’s also ok to be a little resentful of having been tortured for many hours with something that clearly could have been a lot of fun."
Are you equally resentful of being "tortured" with all the other subjects you don't care about and weren't interested in? Does listening to good music make you resentful of your highschool music teacher? Does listening to people speak Spanish make you resentful of your highschool Spanish teacher? Anything "could have been a lot of fun" with the right people, right? Bad days at work can be a lot of fun with a good team and good management but you don't live in resentment every time you go into a shop where the cashier seems happy, going "Imagine how much better my life could have been, I'm full of resentment of the bitchy store manager I worked for at age 18, woe, woe" - not at all.
With hindsight, there was nothing stopping anyone studying math independently in highschool, forming a study group of friends, trying to make it fun, asking other teachers or students, trying to get some money together to pool for a tutor; pinning the next twenty years of resentment on MRS JONES WHO DIDN'T MAKE MATH FUN AND RUINED MY LIFE is a mental behaviour pattern that deserves debugging - or at least noticing - not defending.
The way my mind works, in order to grasp a concept well enough to be able to actively use it, I need to see it in action by way of a non-contrived, realistic example. The way any math past basic arithmetic tends to be taught in abstract dramatically slows acquisition.
It’s a quality that cuts both ways. It doesn’t work well with a lot of traditional academics, but it enables me to self-teach highly applied subjects like programming with little friction.
Like math, you brute force language learning. Imitation and memorization. Only after years, or decades, can you go from basic language understanding to appreciating the beauty of words, poetry, literature. I don’t think there is a short cut in language or math. You have to go through the unfun multiplication table, spelling test phase to build the foundation for higher level appreciation l.
> "To discuss this subject we start in the middle. We suppose that we already know what integers are, what zero is, and what it means to increase a number by one unit. You may say, “That is not in the middle!” But it is the middle from a mathematical standpoint, because we could go even further back and describe the theory of sets in order to derive some of these properties of integers. But we are not going in that direction, the direction of mathematical philosophy and mathematical logic, but rather in the other direction, from the assumption that we know what integers are and we know how to count."
Beyond that, an understanding of algebraic concepts in terms of how equations can be manipulated from one form to another (and of the rationale for why one can) might benefit from the addition of the concepts of distribution and commutation, which are not included in this lecture (although the important basic idea of a successor is).