Live data from Hacker News

A 2020 Vision of Linear Algebra

ocw.mit.edu

161–170 of 205 posts

Re: A 2020 Vision of Linear Algebra

#161

my linear algebra professor began his first lecture with a 5 minute rant informally titled “how you could have gotten an A in differential equations last semester without ever having taken calculus” That certainly got our attention. I’ve always found linear algebra to be kind of ... almost soothing.

That's a rant I'd like to hear.

Re: A 2020 Vision of Linear Algebra

#162
post #21

So I like this outline. It is very MIT-ish where there is a sense of teaching someone to solve practical engineering problems with matrices. But, I do foresee some difficulties. One thing that I find really difficult, for example, is that I take undergrads who have had linear algebra and ask "what is the determinant?" and seldom get back the "best" conceptual answer, "the determinant is the product of the eigenvalues…

The most intuitive definition of determinant for me is it’s the growth or shrink factor of a differentiable function at a point. The eigenvalues of the Jacobian just demonstrate the various sources and sinks in a dynamic system.

This view also motivates the concept of vector bundles and vector spaces at a point.

Re: A 2020 Vision of Linear Algebra

#163

Have not watched the videos yet, but that seems to me more like an 1820 vision of linear algebra :-) If you look at the order of topics in his book "An Introduction to Linear Algebra", you will find the topic "Linear Transformation" way back in chapter 8! Even after the chapters eigenvalue decomposition and singular value decomposition. But understanding that a matrix is just the representation of a linear transforma…

Gaussian Elimination is indeed from the 1820s. All the rest is more recent than that. The idea of matrix decomposition per se comes from the 1850s. The earliest work on something like the SVD is from the 1870s. You are onto something though. Strang is coming from a direction of numerical computations and algorithms for solving real-world problems. Pure mathematics departments for at least the past maybe 80 years ofte…

If you want to get into serious physics/engineering, the abstract aspect of linear algebra is much more important than the boring computational mechanics. And quite a bit of those computational mechanics lead you astray when you go to infinite dimensions.

Re: A 2020 Vision of Linear Algebra

#164
post #95

Earlier quoted context omitted.

Thanks for this -- do you know if there's a consolidated list anywhere of other books Springer is making available for free right now?

https://link.springer.com/search/page/1?facet-discipline=%22...

Woah. That's a lot of books. Between the math, physics, and cs sections, years from now you'd look back and wonder if you really should have downloaded all of them.

Re: A 2020 Vision of Linear Algebra

#165

Earlier quoted context omitted.

> I paid attention to lectures and stared at the text, but couldn't really understand the material. For the first part of a linear algebra course, students who don't mind blindly following mechanical processes for solving problems can do very well. I had a similar, though sort of opposite experience. In high school, I breezed through the material, and started teaching myself calculus during the summer to prepare for…

I think that whether or not students do well, there's a common theme in university math curricula for non-math majors. Basically, math gets taught as a kind of "toolbox" of techniques. Unless there's a strong follow-up in subject matter courses (for example in engineering coursework), those math skills effectively evaporate. Some places use a rigorous "proof-theoretic" approach in math curricula. It's much harder and…

> More CS, engineering and science students, IMHO, should dabble in math department courses beyond the the usual "required" sequence for their majors

That was absolutely not allowed at my faculty (admittely computational linguistics, but I would have massively benefited from math courses). No courses other than the predefined ones, no matter how relevant. Now I have to learn so much afterwards, it's not even funny.

Re: A 2020 Vision of Linear Algebra

#166

Earlier quoted context omitted.

> seldom get back the "best" conceptual answer, "the determinant is the product of the eigenvalues." I found that the "best conceptual" answer depends a lot on taste, and what concepts you are familiar with. In this case: - Calculating exact eigenvalues of matrices larger than 4x4 is impractical, since it requires you to solve a polynomial of degree >4. - The EV exist only in algebraically closed fields (complex numb…

I don’t have an intuition for these concepts I’m afraid (I probably should watch the videos). What I don’t see for instance is how this relates to the fact that a matrix A with det(A) = 0 is not invertible.

So an eigenvector is a special direction which most linear transformations have. If you ask them to transform a vector in that direction, they do not rotate that direction to some other direction, they only scale it by a constant called the eigenvalue. Usually there are a bunch of these directions for one transform, and they do not need to be orthogonal. We often choose one vector as representative, like (-1, 1): but this is shorthand for all vectors (-t, t) for all t. One important thing is that the zero vector (0, 0) doesn't count (even though T 0 = 0) because it can't represent a whole direction.

So for example if I take (x, y) to T (x, y) = (3x + y, 2x + 4y), that is an example of what we call a linear transformation -- it obeys T(p1 + p2) = T p1 + T p2, it distributes over addition.

Now in addition to noticing that this is linear we may happen to notice that T (-1, 1) = (-3 + 1, -2 + 4) = (-2, 2). So in the direction (-t, t) we are just scaling vectors by a factor of 2, to (-2t, 2t). Similarly we might notice that T (1, 2) = (3 + 2, 2 + 8) = (5, 10). So in the direction (t, 2t) we are just scaling vectors by a factor of 5 to (5t, 10t).

These two scaling factors, 2 and 5, are called the eigenvalues of T. Their product, 10, is called the determinant of T. And in this case their eigenvectors span the entire space -- you can make any other (a, b) as a combination (-t1, t1) + (t2, 2 t2), for some numbers t1, t2. Actually t1 = (-2a + b)/3 and t2 = (a + b)/3, I can work out pretty quickly. And in this t-space this transformation is very easy to think about, it has been "diagonalized."

Sometimes these eigenvalues and eigenvectors don't exist, but we can patch that up with one of two tricks. The first trick is, for example, used for the 2x2 rotation matrices. These rotate every direction into some other direction, so how will I find some direction which "stands still"? The answer here is complex numbers, in this case it turns out that any 2x2 rotation by angle t will map the complex vector (1, i) to (cos t + i sin t, -sin t + i cos t) = (cos t + i sin t) * (1, i), so it has two complex eigenvalues e^(it), e^(-it). So the first trick is complex numbers. There is, it turns out, only one other class of weird transformation. In these weird transformations, it is possible to define chains of "generalized eigenvectors". Each chain starts with one ordinary eigenvector with an ordinary eigenvalue q, T v1 = q v1, and then the next element of the chain is a "generalized eigenvector of rank 2" which has T v2 = v1 + q v2, and then the next element of the chain is a "generalized eigenvector of rank 3" which has T v3 = v2 + q v3, and so on.

So it is a theorem that any NxN complex linear transformation has N linearly independent generalized eigenvectors which span the space, and "usually" these are all just normal eigenvectors and the matrix is "diagonalizable" (and even if they aren't, they come in families which start from one normal eigenvector and the matrix can be put into "Jordan normal form").

If you understood all of that, you are ready for the main result that you asked about. :)

For a linear transformation to be invertible, it needs to map distinct input vectors to distinct output vectors. If it maps two different input vectors to the same output, then invertibility fails.

So we know that invertibility fails when we can find distinct v1 and v2 such that T v1 = T v2.

Put another way, T v1 - T v2 = 0. But by the linearity property, T distributes over additions and subtractions, so this is the same as saying that T (v1 - v2) = 0 for v1 - v2 nonzero. This is enough to establish that v1 - v2 is an eigenvector with eigenvalue zero.

What does this do to the determinant, the product of all the eigenvalues? Well, zero times anything is zero. So if some linear transformation T is not invertible, then you immediately can conclude that det(T) = 0.

Furthermore this argument goes the other way too, with only a little subtlety related to these "generalized eigenvalues" -- basically, that the generalized eigenvalues always exist and there is always at least one eigenvector which actually has that eigenvalue, and that complex numbers still have this property that any finite product of complex numbers which results in zero can only come about if one of those numbers was zero. If you know all of those things, then you can work your way backwards to conclude that det(T) = 0 implies that one of the generalized eigenvalues is zero, which has at least one normal eigenvector v such that T v = 0, which I can then use to find many inputs for any given output, T u = T (u + k v) for any k

So to say that this product-of-eigenvalues is zero is to say that one of the eigenvalues is zero, and therefore the linear transformation is projecting down to some smaller, flatter subspace in a way that cannot be uniquely undone. If there is no such smaller flatter subspace, then the transformation must have been invertible all along.

Re: A 2020 Vision of Linear Algebra

#167
post #24

I am familiar with the material of linear algebra but haven't read his books. Could someone who has absorbed linear algebra from different sources and familiar with Strang's books comment on what's good and bad and unique about them. In my time I had picked LA from Ben Noble, Halmos and Axler and the computation side of things from Golub & van Loan.

I like your bibliography! Ben Noble's book was my entry to LA. I was an undergraduate and involved in a research activity that demanded a lot of knowledge of the eigenvalue problem. The concrete approach in that book helped a lot. It was only later on that I took a class based on G&vL (implementing a bunch of basic LA factorizations in Matlab), and in my spare time read Halmos's book. I understand the coordinate-free…

Self-reply: Here's a comparative review of Noble+Daniel vs. Strang: https://pdf.sciencedirectassets.com/271586/1-s2.0-S002437950...

Re: A 2020 Vision of Linear Algebra

#168

my linear algebra professor began his first lecture with a 5 minute rant informally titled “how you could have gotten an A in differential equations last semester without ever having taken calculus” That certainly got our attention. I’ve always found linear algebra to be kind of ... almost soothing.

That's a rant I'd like to hear.

"look guys, at end of class, exam is always long list of silly second order system of differential equations.

Well, every time, we can make so-called "guess" that solution looks like e*rt. Why? We know that because professors will only give well-behaved systems on final exams because it's hard to grade the other kind.

So we know characteristic polynomials look like so (because of course they do, you can just memorize this) ... so now we lift out the coefficients into nifty thing called _matrix_ and now follow these easy four steps to get roots, plug back in, and incidentally these are "eigenvalues", we'll talk about this later ...

Bam. Done. A-, easy. No sweat."

Re: A 2020 Vision of Linear Algebra

#170
post #123

I had very intelligent linear algebra professor in college but he was, in my opinion, a very poor communicator. I paid attention to lectures and stared at the text, but couldn't really understand the material. For the first part of a linear algebra course, students who don't mind blindly following mechanical processes for solving problems can do very well. Unfortunately I'm one of those people who tends to reject the…

I took linear algebra through a community college and had one of those rare, really awesome CC instructors. He had spent most of his career at Cray and later Raytheon and then semi-retired as a community college instructor. He took time to make really great interactive Jupyter notebooks. That combined with 3 brown 1 blue videos really made linear algebra click for me. My only regret is that I took the class as a six…

Has he published these notebooks online anywhere?
Post reply on HN