261 points · by Zolomon · 14y ago · 115 comments
It works, but there's no connection between that process and the intuition of a linear transformation; it's just a rote computation. And checking a long string of matrix multiplications to see if they intuitively make sense (shouldn't everything intuitively make sense?) is especially aggravating when you constantly have to interrupt your intuition to switch to a rote calculation.
I never thought to think of the columns of B as vectors that physically travel through A; to think of a dataflow or pipeline from right to left on the page. Sure, it's not a cure-all, but it'll be a useful mental tool to have.
Oh, and it's also an excellent introduction to the subject, although the Linear Operations section gets a bit muddled... first something's not a linear operation, and then it is, wat? Still, an excellent post.
Okay, that lets you visualize it (in the finite case) but it's a terrible way to sell it. Spreadsheets are booooring. Did you know that functions are vectors? Okay, better. Did you know that quantum mechanics is all about linear algebra? Okay, sold!
1. Almost any time you work in more than one dimension you will want linear algebra in your toolbox. There are a zillion methods for solving (non-linear) equations out there, and in more than one dimension, they use linear algebra. Newton's method? Incredibly useful in practice due (quadratic convergence rocks!), and with some linear algebra sauce BOOM you have Newton's method in as many dimensions as you can sneeze at.
2. Oh, by the way... did you know that the Fourier transform is linear?
3. Back to quantum mechanics... there's a thing you can do with a linear operator (a matrix is a kind of linear operator) where you get the "spectrum" of the linear operator. It's useful for making sense of big matrices. But in QM, the wavefunctions for electrons are described as eigenfunctions of a linear operator, and taking the "spectrum" of the linear operator gives you the actual spectrum of light that the chemical under study emits. Hence the name, "spectral theorem". It may be linear algebra on paper, but it's laser beams and semiconductors in the real world.
4. Oh hey, want to learn about infinite-dimensional vector spaces? Maybe some other time..
5. It's hella useful for modeling. Any model is wrong, but Markov processes are useful. Say you run an agency that rents out moving vans, and you have facilities in 30 cities. Vans rented in city A have a 10% chance of being dropped off in city B, 7% in city C, 9.2% in city D, etc. At this rate, how long till you run out of vans in city F? It's a differential equations problem with like 30 different equations! Or you could rewrite it as a single equation with matrices. You'll end up with weird things like 'e^(A*t)' where A is a matrix, and you thought "no way I can exponentiate to the power of a matrix" but spectral decomposition is like "yes way!" and you can solve the equation by diagonalization. Radical! (Basically, linear algebra rescues differential equations from the pits of intractability. I'm using rental vans as an example, but it could be a chemical reaction or a nuclear reaction or a million subway riders or whatever you want.)
So the question is:
Do you find economics, quantum physics, chemistry, engineering, classical mechanics, machine learning, statistics, etc. useful?
Then get some linear algebra in you!
- you've mixed in with nonlinear phenomena (most physical processes) with linear, and there's less and less reason to pretend linearity with increasing computer speeds (although in fairness you alluded to models being wrong)
- poo pooed spreadsheets without explaining why (you alluded to QM etc. but they don't care about useless proofs in linear algebra unless they're pencil pushing time wasters)
- implied infinite-dimensions is practically useful when it isn't (unless you're a mathematician/theoretical-somethingist seeking to extract tax-payer money)
There's little need to get linear algebra in you unless you want to waste time.
Those people may exist. But I don't see any of them here.
You've gone too far in the other direction by saying it's a stupid and complete waste of time to study math. There are real breakthroughs in insight there, even if sometimes obscured by pompous nonsense.
Your comments are fueled by anger, rather than a sincere effort to inform others, and this is why you've been downvoted.
I'm willing to bet you can be a constructive contributor here if you try. You're probably right that a simplified and more pragmatic approach to learning math might make it accessible to a larger group of people. If so, it would be better to go help make that happen than to blindly criticize everyone else.
1. Yes, I mixed in linear and non-linear processes. My point is that you use linear algebra even when working with non-linear processes.
2. Yes, I poo-pooed spreadsheets as a bad way to market linear algebra (I thought that was clear?)
3. Yes, I implied infinite dimensions is useful. Linear algebra in QM tends to be infinite-dimensional.
I'm reading a lot of hostility towards mathematics in general and linear algebra specifically (you've put a bunch of toxic comments all over this thread), and I'm not really sure why.
You don't have to appeal to QM for their usefulness. Function spaces are important in applied and computational mathematics because of their use in understanding integral equations (the theory of integral equations before Hilbert spaces was a giant mess), partial differential equations, calculus of variations, approximation theory, etc. No doubt marshallp will respond that this is all bullshit because it ultimately boils to finite processes running on finite state machines, where there are no infinite sets in sight, let alone infinite dimensions. The equivalent approach to physics would be an extreme form of empiricism, banning the use of concepts like electrons (as some logical positivists actually proposed to do in the early twentieth century) and requiring all physical laws to be stated in terms of directly observable phenomena, whatever that means.
For me it is too computational. I prefer understanding the topic from first principles as described at http://news.ycombinator.com/item?id=4086325. (Then again I don't particularly like spreadsheets either.)
After going through that course I finally understood things like eigenvectors, null spaces, and projections. Now I see them everywhere (unless you think that's a curse)
Linear algebra is so far-reaching, I find it surprising that other branches of mathematics often seem to get preferential treatment (usually normal algebra and geometry), in spite of the fact that linear algebra is both:
a) fairly advanced (i.e. not often taught in school, at least not the deeper stuff)
b) not very difficult to learn (unlike lots of other 'introductory' topics in mathematics).
Perhaps there is something about matrices (being mere tables of numbers for most folks) that people find unattractive, almost statistics-like.
(On the other hand, it could be a simple extension of the symbol barrier [1], given those long vertical brackets.)
[1] Prof Keith Devlin introduces this concept here: http://profkeithdevlin.org/2012/02/22/how-to-design-video-ga...
Even then, it was a question I had to ask my brilliant, constantly-pissed looking young professor. "Hey, uh, the Jacobian... what does the determinant mean, uh, geometrically?". He looked at me like a slug, before explaining it was the measure of the newly mapped unit square. Fireworks went off in my head. Two linear algebra classes before only ever explained it by its algorithm or its usefulness (e.g., ∃ A^(-1) for A \in R^{n,n} iff det(A) != 0)
Side note: that professor had the most effective teaching style for pure math I've ever seen. Besides lectures that expanded on the contents of Rudin and interesting problem sets, he gave us a list of a hundred theorems, propositions, and exercises. Told us the final exam would be six problems, four of which would come from that list, another of which would be a clever new one, the last something truly hard.
Never learned analysis better than when sitting down and working through (not memorizing) each of those proofs and theorems for possible later recapitulation.
FWIW, that book has two explanations: the first on p 296 is a lot like "that's how it works out" and the second on p 320 is geometric.
> why does the determinant work to solve linear equations (i.e. Cramer's rule)?
Does the explanation on p 331 of joshua.smcvt.edu/linearalgebra/book.pdf help? (It uses the geometric understanding of the determinant.)
Recently, learning to do Principal Components Analysis to solve a handwriting recognition problem is what finally shed an enchanted light on linear algebra. The way that a simple matrix of data samples is transformed into an ordered set of principle components (eigenvectors, ordered by eigenvalue) is.. "unreasonably effective" (as they say). The principal components are your signal, and the rest (with eigenvalues ~0) are the noise. the handwriting recognition, btw, works fantastic for my simple application. no need for non-linear kernels and whatnot.
Even better now, in this hacking life after pure math in college and grad school, is that I can build intuition now not just by proofs and exercises, but also efficient, coded implementation. Gives a different feel for the tools and concepts.
As mathematicians, we didn't do any of this matrix and vector stuff with numbers when introducing linear algebra in university. There were a bunch of axioms, and you proved things. That's how you know.
What the author sees as abstract "(2d vectors! 3d vectors!)" was way more applied than the stuff we dealt in.
But, granted, the purpose wasn't learning about how to get mini-spreadsheets for equations. It was about how to rigorously navigate a useful axiomatic setting.
(Later on, we proved that you can find a base, and write down your linear transformation as a bunch of numbers and call that a matrix; same for points and vectors. But we always saw that as somewhat ugly, and anyway limited to the finite dimensional case.)
Also during a Computational Complexity course, when we were studying de-randomization techniques, computing the Spectrum of an expander graph[2] and looking into the eigenvalues and eigenvectors of the graphs' adjacency matrix to understand topological properties from graphs, I realized how powerful and general Linear Algebra can be.
2d and 3d vectors over the Field of Real Numbers are easy to see, and a good way to get started. But many beautiful and powerful things come from this theory.
[1] http://en.wikipedia.org/wiki/Degree_of_a_field_extension
If anyone is interested in building an understanding of Linear Algebra from the ground up, I would suggest some of Israel Gelfand's work: http://www.scribd.com/doc/35985818/Gelfand-Lectures-on-Linea... It's not for the light hearted, but when you get through it, you will be deeply changed and have a new perspective on even basic math, such as integration.
If that's true, I'm sorry for the engineers who took this course.
I did not see a single number in my algebra course, neither 2d or 3d vectors. As a matter of fact, we followed the same program that math students (axioms, theorems, linear spaces, rings, ...). Even some teachers were teaching in both faculties, and our exams usually were more difficult (this was just a policy, there were too many engineering students).
Now, I'm in a different university where the maths future engineers study are much more "practical". It's sad seeing that students cannot understand, for example, that a principal direction in a stress tensor is just an eigen-value or that a rotation is just a change of base and, therefore, there are many theorems and properties you can apply to these concepts just making use of some basic algebra.
It's always good to know well the tools you have to use and, for an engineer, algebra is one of the most important tools.
edit: downvoters downvote instead of providing refutation. A lot in common with fundamental religionists.
Theorems are useful in all sorts of unexpected ways. At the turn of the 20th century group theory was considered a worthless corner of mathematics, but understanding group theory allows modern chemical instrumentation to work.
edit:
> It seems like it's the full employment act for pencil pushers
> downvoters downvote instead of providing refutation. A lot in common with fundamental religionists
You've proven the downvoters right by piling one ad hominem attack upon another.
Most theory I have read[2] on AI, machine learning, and knowledge deals in depth with the concept of symbols and symbol manipulation. Some would claim (correctly!) that computers are in essence simply symbol manipulation machines. The thing is, these symbols are really just ways of encapsulating a piece of information. Often, symbols are described as being 'made-up' of other symbols; symbols are used to describe other symbols. As a simple and obvious example:
- bits (low level 'axiomatic' symbols) are organised into groups to create bytes (still low level, not much meaning here yet)
- bytes are associated with letters (in an isomorphic relation which imparts meaning[3])
- letters are organised into groups to form words (a significant amount of meaning has now appeared)
- words are strung together in sentences
- sentences are woven into paragraphs/chapters/themes/poems/stories/epics
If I was to claim that a poem or story has no meaning simply because I can craft it from simple bits I would be missing something very important about symbol manipulation.
When I take a collection of ideas, snippets of information and learning, and am able to label them with a name I can transcend my current level of understanding and deal with ideas which are invisible on the lower level. For a programmer, this hierarchy of symbols presents itself as a hierarchy of low, medium and high level languages. Writing a python program in assembly would be absurd!(although perhaps appropriate in some cases)
Theorems (and Axioms) are the symbols of mathematics, and proving Theorems is symbolic manipulation in one of its purest forms. In fact, proving Theorems is the main way in which new 'meaningful'[4] symbols are created.
So why is proving Theorems useful? In short, because it is how new knowledge is created! (in this context, mathematical knowledge)
Is mathematical knowledge useful? I think anyone living in this modern world of ours (and I think that phrase applies to most people in most of humanity's history) can see that at least some mathematics is useful. Many have here argued about the different merits of developing mathematical knowledge (ie proving Theorems) before an application is well known, so I won't labour that point. Instead, I think I'll direct the interested reader to G.H. Hardy's 'A Mathematician's Apology'[5] for a great essay on the many merits a joy of mathematics can bring the suitably inclined soul.
If knowledge is a good thing, and proving Theorems increases knowledge, than proving Theorems is a good thing. To say it is better than other ways of spending our efforts is hard, but I think we can definitely agree that it is useful.
[1] My own definition!
[2] Which is tragically less than I would like
[3] Douglas Hofstadter in Gödel, Escher, Bach explains this idea so much better than I can - see https://en.wikipedia.org/wiki/Gödel,_Escher,_Bach
[4] An idea again borrowed from Hofstadter. We can string any string of words together that we want, doesn't mean that they mean anything to us. Formal system such as mathematics give us a way to combine symbols to give us new meaningful symbols. My claim that it is the main way they are created is founded on wild speculation and heavily biased historical observation.
[5] http://www.math.ualberta.ca/~mss/misc/A%20Mathematicians%20A...
Exhibit 2: In your profile, you describe yourself as "Machine Learning Expert"
Hmm.
So what would you need me to do to show that proving theorems is important? What would convince you? What is your criterion for a successful response?
Thanks for the link!
http://linear.ups.edu/xml/latest/fcla-xml-latest.xml#fcla-xm...
http://joshua.smcvt.edu/linearalgebra/book.pdf
Also, the common 1st year texts (Anton, Lang, Hoffman/Kunze and Friedberg/insel/Spence) can be found easily for cheap, used. The old edition of Strang I used to have was good too, but some people react really strongly when you bring it up. There's lots of ways ot sequence LA and the needs of EE's, econometrics/game theory, prob/stats and applied mathies are different from physics/math majors. Look at ToC's and read the Holyoke prof's writeup:
http://www.amazon.com/Introduction-Linear-Algebra-Fourth-Gil...
(i think they're 1st year texts, my Dad's a physics prof and he started talking about determinants around 7th grade)
Other things that might be nice to include are dot products (projecting one vector onto another as a measure of co-linearity) and rotation matrices (you could keep it to 3x3).
I am looking for the kind of book that will make you fell in love with Linear Algebra. For Calculus, I used Piskunovs Differential and Integral Calculus which was miles away from what my classmates were using. That along with Maple help to double check that my stuff was correct proved a good combo. My current Linear Algebra book is an honest book but it is a boring book, it fails to entertain or to amaze or to give you those moments of insight that puts a grin in your face.
I think I just wish I had better books as an undergrad :-(
This is the first, simplest, off-hand example I can come up with.
Things are blocked "in parallel" (assuming the camera is far away from the objects) because that projection is a linear map (I repeat, assuming "far away focus") and has a one dimensional kernel: 2d + 1d = 3d, which means (flat TV + orthogonal lines = 3d world), that is the dimension formula.
http://nostarch.com/linearalgebra
:D
Do schools really not teach the underlying concepts of math, or do people just fail to understand them the first time through and then blame their teachers?
/took linear algebra in the math department, then TAed it.
It is absolutely the case that a great many students will not remember seeing material that they definitely were exposed to. As someone who's TA'd physics classes for a few years, I'd often ask a recitation whether they'd covered some particular subject yet in lecture, and they'd often say (as a class) no.
I'd ask the professor later, and of course they had -- but students rarely go into lecture having done the reading or prep work, and so have a piss-poor retention rate.
I've found that even if do the reading, my brain is often, well, a bit leaky... TT
Whether or not someone is sufficiently motivated to study something should not affect their ability to understand it. Vector spaces and linear maps are actually much easier to understand, and I think that at some point in mathematics (probably your first analysis course) your motivation has to come from the beauty of the theory itself rather than some real-world application.
What will have more societal impact? Should anyone wishing to use a wordprocessor be required to understand turing machines and computer architecture?
The thing that you are missing is that linear algebra is about much more than matrix multiplication. It is about the properties of linear transformations in general. While matrix multiplication may have simple implementations in spreadsheets, many other concepts in linear algebra don't, for example calculations of and properties of eigenvectors and the corresponding eigenvalues, or the various matrix decompositions (themselves closely related to eigenvalues and eigenvectors). The matrix decompositions in particular give results that not only are mathematically interesting, but are enormously important computationally.
In terms of societal impact, other than calculus, no field of mathematics has had a greater impact than linear algebra. From quantum mechanics to the google search engine to machine learning, linear algebra is fundamental. Spreadsheets are awesome and a brilliant idea, but they are aimed at solving a different set of problems. Important though they may be, they pale in comparison to linear algebra.