Hacker News new | ask | show | jobs
by dragandj 3294 days ago
I'm not so sure about that. I intentionally direct the reader to the textbook for real understanding. The aim of the article is to connect the dots from that textbook to clojure code, as is stated at the beginning. I am not a mathematician, nor I think a blog post is enough on its own to teach someone linear algebra.
1 comments

It depends on your goal.

If your goal is real understanding, the approach that I stated is the right one. If you've learned it the other way and wish to actually understand it, you'll still have to learn the approach that I stated.

Your goal is explicitly not real understanding. And most textbooks do it in the order that you did. (Partly because professors think that most students aren't going to try to understand, so there is no point in giving explanation.) So you probably made the right choice.

But I would still like to see even a passing mention that matrices of just a representation of a linear function given two bases, and matrix multiplication is function composition. That could set a lightbulb on for someone struggling through a problem.

I do not know whether you've read part 3 of this series. It explicitly treats matrix multiplication as function composition, and goes with this at length.

As for the rest, you might be right or not; but I am not competent to reform world's math education. If you can write better linear algebra guides than the standard textbooks, I'm all for it. Please inform me if you do that, I'd love to read that. (BTW It's not sarcasm - I'd really love to see linear algebra explained better than in standard textbooks. So far all fancy tutorials turned to be good only as entertainment).

I had not yet read it. Having just fixed it, it is missing the role of a basis. And without it, you'll have trouble figuring out coordinate systems, changing your basis, and so on. Which gives you no way to keep straight such confusing things as the fact that if your coordinate system rotates one way, your representation of things rotates the other. (Try it! Stand up, turn clockwise and see the world spin counter-clockwise!)

Let me offer an abstract example. Consider the polynomials of degree at most 2. There is an obvious basis, namely 1, x, and x^2. A polynomial like x^5 - 3x + 2 can now easily be written in coordinates as (2, -3, 1).

However we have many other coordinate systems that might be convenient. For example suppose that we're sampling data, and can measure p(0), p(1) and p(2). How do we find what polynomial that is? Here is an easy way. We can easily find the new coordinates for our basis vectors: 1 -> (1, 1, 1), x -> (0, 1, 2), x^2 -> (0, 1, 4). That means that we can write down the matrix representing the identity transform (nothing happened), going from the basis we have, to the new coordinate system:

    ( 1  1  1)
    ( 1  2  3)
    ( 1  2  4)
That's the change of basis matrix one way. Invert it.

    ( 2 -1  0)
    (-3  2 -1)
    ( 1 -2  1)
And now we can go the other way. The polynomial that we want from our sample data will be (2-3x+x^2)p(0) + (-1+2x-2x^2)p(1) + (-x+x^2)p(2).

There are a lot of problems where linear algebra comes up that you can think through more clearly if you think about things this way (complete with the role of the basis!) than if it isn't fully digested.

As for a better book, well, I already recommended Down With Determinants! :-)

I'm not sure if you'll see this 2 days later, but I've been trying to make heads or tails of your example and I think there’s a mistake in there somewhere.

Maybe I'm hopelessly lost, but, for one, the inverse of

    ( 1  1  1)
    ( 1  2  3)
    ( 1  2  4)
is not:

    ( 2 -1  0)
    (-3  2 -1)
    ( 1 -2  1)
On the off chance you see this, any pointers?
I did not see it.

As I commented in email, I did it by hand while very tired and made multiple mistakes.

Down with Determinants is a paper, and I guess it is super-clear once you know the stuff already. For non mathematicians, and people who'd like to learn linear algebra? Right...

Anyway, who is missing the role of the basis? It's in practically every textbook, including the one I used.

I agree with the maths that you've written, but it's the same thing that the textbook explains, practically in the same way. The road to understanding is not the same for all people, I guess...

Sheldon Axler, Linear Algebra Done Right.

There are now videos! http://www.linear.axler.net/LADRvideos.html

BTW, Thank you for all these suggestions. Although I am not sure whether they make any difference for a programmer who is not yet fluent in linear algebra, I think they are great for people to explore once they are a bit more confident with the basic stuff.