Skip to content
Lex Fridman PodcastLex Fridman Podcast

Gilbert Strang: Linear Algebra, Teaching, and MIT OpenCourseWare | Lex Fridman Podcast #52

Lex Fridman and Gilbert Strang on gilbert Strang on Linear Algebra’s Power, Beauty, and Global Classroom.

Lex FridmanhostGilbert Strangguest
Nov 25, 201949mWatch on YouTube ↗

EVERY SPOKEN WORD

  1. 0:0015:00

    The following is a…

    1. LF

      The following is a conversation with Gilbert Strang. He's a professor of mathematics at MIT, and perhaps one of the most famous and impactful teachers of math in the world. His MIT Open Courseware lectures on linear algebra have been viewed millions of times. As an undergraduate student, I was one of those millions of students. There's something inspiring about the way he teaches, that is at once calm, simple, and yet full of passion for the elegance inherent to mathematics. I remember doing the exercises in his book, Introduction to Linear Algebra, and slowly realizing that the world of matrices, of vector spaces, of determinants and eigenvalues, of geometric transformations, and matrix decompositions reveal a set of powerful tools in the toolbox of artificial intelligence; from signals to images, from numerical optimization to robotics, computer vision, deep learning, computer graphics, and everywhere outside AI, including, of course, a quantum mechanical study of our universe. This is the Artificial Intelligence Podcast. If you enjoy it, subscribe on YouTube, give it five stars on Apple Podcasts, support it on Patreon, or simply connect with me on Twitter @lexfridman, spelled F-R-I-D-M-A-N. This podcast is supported by ZipRecruiter. Hiring great people is hard, and to me, is the most important element of a successful mission-driven team. I've been fortunate to be a part of and to lead several great engineering teams. The hiring I've done in the past was mostly through tools that we built ourselves, but reinventing the wheel was painful. ZipRecruiter's a tool that's already available for you. It seeks to make hiring simple, fast, and smart. For example, Codable co-founder, Gretchen Huebner, used ZipRecruiter to find a new game artist to join her education tech company. By using ZipRecruiter's screening questions to filter candidates, Gretchen found it easier to focus on the best candidates and finally hiring the perfect person for the role in less than two weeks from start to finish. ZipRecruiter, the smartest way to hire. See why ZipRecruiter's effective for businesses of all sizes by signing up, as I did, for free at ziprecruiter.com/lexpod. That's ziprecruiter.com/lexpod. This show is presented by Cash App, the number one finance app in the App Store. I personally use Cash App to send money to friends, but you can also use it to buy, sell, and deposit Bitcoin. Most Bitcoin exchanges take days for a bank transfer to become investable. Through Cash App, it takes seconds. Cash App also has a new investing feature. You can buy fractions of a stock, which to me is a really interesting concept. So you can buy of $1 worth, no matter what the stock price is. Brokerage services are provided by Cash App Investing, a subsidiary of Square and member SIPC. I'm excited to be working with Cash App to support one of my favorite organizations that many of you may know and have benefited from called FIRST, best known for their FIRST Robotics and Lego competitions. They educate and inspire hundreds of thousands of students in over 110 countries and have a perfect rating on Charity Navigator, which means the donated money is used to maximum effectiveness. When you get Cash App from the App Store or Google Play and use code LEXPODCAST, you'll get $10 and Cash App will also donate $10 to FIRST, which again is an organization that I've personally seen inspire girls and boys to dream of engineering a better world. And now here's my conversation with Gilbert Strang. How does it feel to be one of the, uh, modern day rockstars of mathematics?

    2. GS

      (laughs) I don't feel like a rockstar. That's kind of crazy for old math person. But, uh, it's true that, um, the videos in linear algebra that I made way back in 2000, I think, uh, have been watched a lot. And, uh, well, partly the importance of linear algebra, uh, which we- I'm sure you'll ask me and give me a chance to say that linear algebra as a subject has just surged in importance. But also, I, it was a class that I taught a bunch of times, so I kind of got it organized and, uh, an- and enjoyed doing it. It was just the videos were just the class, so they're on Open Courseware and on YouTube and translated-

    3. LF

      But th-

    4. GS

      ... as one.

    5. LF

      But there's something about that chalkboard and the, and the simplicity of the way you explain the basic concepts in the beginning. I, you know, to be honest, when I went to undergrad, you know...

    6. GS

      You didn't do linear algebra probably.

    7. LF

      Of course, I did linear algebra.

    8. GS

      You did? Okay, yeah.

    9. LF

      Yeah, yeah, yeah, of course.

    10. GS

      Right.

    11. LF

      But I, before going through the course at my university, I li- there was going through Open Course where I was, you were my instructor for linear algebra.

    12. GS

      Oh, I see. Right, yeah.

    13. LF

      (laughs) And that, uh, I mean, we were using your book, and, I mean, that, that, the fact that there is thousands, you know, hundreds of thousands, millions of people that watch that video, I think that's-

    14. GS

      Yeah.

    15. LF

      ... that's really powerful. So, uh, how do you think the idea of putting lectures online wo- would really... MIT Open Courseware has innovated?

    16. GS

      That was a wonderful idea. You know, I think, uh, uh, the story that I've heard is the committee, uh, committee was appointed by the president, President Vest at that time, a wonderful guy. And, uh, the idea of the committee was to figure out how MIT could make, uh, be like other universities market, uh, market the work we were doing. And then they didn't see a way and after a weekend and they had an inspiration and came back to the President Vest and said, "What if we just gave it away?" And, uh, he decided that was g- okay, good idea.... so...

    17. LF

      You know, that's a crazy idea, that's, uh-

    18. GS

      Yeah.

    19. LF

      ... if we think of a university as a thing that creates a product-

    20. GS

      Yes.

    21. LF

      ... isn't knowledge-

    22. GS

      Right.

    23. LF

      ... the, uh, you know, the kind of educational knowledge, isn't the product, and giving that away?

    24. GS

      Yeah.

    25. LF

      Are you surprised that (laughs) -

    26. GS

      Th- the-

    27. LF

      ... that it went through?

    28. GS

      ... uh, th- the result that it w- that he did it? Well, knowing a little bit, President Vest, it was like him, I think.

    29. LF

      (laughs)

    30. GS

      And, uh, and it was really the right idea. You know, uh, um, MIT is a kind of... It's known for being high-level technical things. And, and this is the best way we can, say, w- tell, we can show what MIT really is like, uh, 'cause th- the, the, v- in my case, those 18.06 videos are just teaching the class. They were there in 26.100. They're kind of fun to look at. People write to me and say, "Oh, you've got a sense of humor," but I, I don't know where (laughs) that comes through. Somehow, I've been friendly with the class. I like students-

  2. 15:0030:00

    ... I mean if…

    1. LF

      (laughs)

    2. GS

      ... I mean if everything is flat, you can't go wrong.

    3. LF

      So w- what concept or theorem in linear algebra or in math you find most beautiful, that gives you pause-

    4. GS

      Most beautiful.

    5. LF

      ... that leaves you in awe?

    6. GS

      Well, I'll stick with linear algebra here. Uh, I hope the viewer knows that really mathematics is amazing, amazing subject and deep, deep, uh, connections between ideas that didn't look connected. Some, they turned out they were. But if we stick with linear algebra, so we have a matrix. That, that's like the basic thing, a rectangle of numbers, and might be a rectangle of data. You're probably gonna ask me later about data science-

    7. LF

      Yeah.

    8. GS

      ... where an often data comes in a matrix. You have, you know, the... uh, maybe every column corresponds to a, to a drug, and every row corresponds to a patient. And, and, uh, if the patient, uh, uh, reacted favorably to the drug then you put up some positive number in there. Anyway, m- m- rectangle of n- of numbers, a matrix is basic. So, uh, the big problem is to understand all those numbers. You got a big, big set of numbers and what are the patterns, what's going on? And, uh, so one of the ways to break down that matrix into simple pieces is uses something called singular values.

    9. LF

      Mm-hmm.

    10. GS

      And that's come on as fundamental in the last... in, certainly in my lifetime. Uh, eigenvalues pro- if you have viewers who've done engineering math or, or, uh, or basic linear algebra, eigenvalues were in there. Uh, but those are restricted to square matrices. And data comes in rectangular matrices, so you gotta take that... you gotta take that next step.

    11. LF

      (laughs)

    12. GS

      I'm, I'm always pushing-

    13. LF

      (laughs)

    14. GS

      ... math faculty, "Get on, do, do, do it. Do it," uh, singular values. So those are a way to break, to, to make, to find the es- the important pieces of the matrix w- which add up to the whole matrix. So, so you're breaking a matrix into simple pieces and, uh, the first piece is the most important part of the data, the second piece is the second most important part. And, uh, then often... So a data scientist will have to like... if you, if a data scientist can find those first and second pieces, stop there, the rest of, of the data is probably round off, you know, er- um, experimental error maybe. So you're looking for the important part.

    15. LF

      Yeah. So what do you find beautiful about singular values? What, what is the problem-

    16. GS

      Well, yeah, I didn't give the theorem. Yeah, so here's the, here's the idea of singular values. Every matrix, every matrix, uh, rectangular, square, whatever-... can be written as a product of three very simple special matrices. So that's the theorem. Every matrix can be written as a rotation, times a stretch, which is a s- just a matrix, a diagonal matrix, otherwise all zeros except on the one diagonal, and then a thir- and the third factor is another rotation. So rotation, stretch, rotation is the breakup of a, of a, of any matrix.

    17. LF

      The structure that, uh, the ability that you can do that, what- what- what do you find appealing? What do you find beautiful about it?

    18. GS

      Well, geometrically, as I freely admit, the- the ma- action of a matrix, this is not so easy to visualize. But everybody can visualize a rotation. Take- take- take two-dimensional space and just turn it around the, around the center. Take three-dimensional space. So a pilot has to know about, well, what are the three, the yaw is one of them. I've forgotten all of the three turns that a pilot makes. Uh, up to ten dimensions, you got ten ways to turn. But, uh, you can visualize a rotation. Take the space and turn it. And you can visualize a stretch. So to break a- a- a- a matrix with all those numbers in it into something you can visualize, rotate, stretch, rotate, is pretty neat.

    19. LF

      Yeah.

    20. GS

      Pretty neat.

    21. LF

      That's pretty powerful. On YouTube, just consuming a bunch of videos and just watching what people connect with and what they really enjoy and are inspired by, math seems to come up again and again. I- I'm trying to understand why that is. Perhaps you can help-

    22. GS

      Yeah.

    23. LF

      ... me, give me clues. So it's not just the lec- the kinds of lectures that y- you give, but it's also just the other folks, like with Numberphile, there's a channel-

    24. GS

      Yeah.

    25. LF

      ... where they just chat about things that are extremely complicated, actually.

    26. GS

      Yeah.

    27. LF

      People, nevertheless, connect with them.

    28. GS

      Yeah.

    29. LF

      What do you think that is? What-

    30. GS

      It's wonderful, isn't it?

  3. 30:0045:00

    Linear algebra is a…

    1. GS

      you see the pattern there? Can you figure out a way for a new input, which we haven't seen, to, to get the, to, to understand what the output will be from that new input? So we've got a million inputs with their outputs. So we're trying to create some pattern, some rule that will take those inputs, those million training inputs which we know about, to the correct million outputs.... and, uh, this idea of a neural net is part of the structure of the, of our new way to create a, create a rule. We're looking for a rule that will take these training inputs to the known outputs, and then we're gonna use that rule on new inputs that we don't know the output and, and see what comes.

    2. LF

      Linear algebra is a big part of defining- of finding that rule.

    3. GS

      That's right. Linear algebra is a big part, not all the part. People were leaning on matrices, that's good, still do. Linear is something special. It's, it's all about straight lines and flat planes, and, uh, and, and data isn't quite like that, you know? It's, uh, it's, it's more complicated. So you gotta introduce some complication, so you have to have some function that's not a straight line-

    4. LF

      Nonlinear.

    5. GS

      ... and it turned out that... Nonlinear, nonlinear-

    6. LF

      Scary.

    7. GS

      ... not linear. And it turned out that, uh, it was enough to use the function that's one straight line and then a different one halfway-

    8. LF

      That's- (laughs)

    9. GS

      ... so piecewise linear.

    10. LF

      Piecewise linear.

    11. GS

      One piece of- one piece has one slope, one piece, the other piece has a second slope.

    12. LF

      Yeah.

    13. GS

      And, uh, so that introdu-

    14. LF

      That's-

    15. GS

      ... getting that nonlinear, simple nonlinearity in, uh, blew the problem open.

    16. LF

      That little piece makes it sufficiently complicated to make things interesting.

    17. GS

      Exactly, 'cause you're gonna use that piece over and over a million times, so you, so you... It has a, it has a fold in the, in the graph, the graph two pieces, and, but when you fold something a million times, you got, you've got a pretty complicated function that's pretty realistic.

    18. LF

      So that's the thing about neural networks is they have a lot of these-

    19. GS

      A lot of these, that's right.

    20. LF

      ... so why do you think neural networks, by using, uh, sort of formulating an objective function, very not a plane-

    21. GS

      Yeah.

    22. LF

      ... uh, uh, function-

    23. GS

      Lots of folds, yeah.

    24. LF

      Lots of folds, of the inputs, the outputs, why do you think they work to be able to find a rule that we don't know is optimal but is just- seems to be pretty good in a lot of cases? What's your intuition? Is it surprising to you as it is to many people? Do you have an intuition of why this works at all?

    25. GS

      Well, I'm beginning to have a better intuition. This idea of things that are piecewise linear, flat pieces but, but with folds between them, like think of a roof of a complicated, i- infinitely complicated house or something, that, that, that curve, it almost curve, but it- but every piece is flat. Uh, that, that's been used by engineers, that idea has been used by engineers, uh, is used by engineer- big time, something called the finite-element method. If you wanna, if you wanna design a bridge, design a building, d- design a pl- airplane, you're, you're using this idea of piecewise flat as, as, as a good, a simple computable approximation.

    26. LF

      So, but you're- you have a sense that, um, that there's a lot of expressive power in this kind of piecewise linear-

    27. GS

      Yeah. That's-

    28. LF

      ... functions combined together?

    29. GS

      That- you used the right word. Ex- if you measure the expressivity-

    30. LF

      Yeah.

  4. 45:0049:47

    Yeah. …

    1. LF

      you are teaching a concept, are there moments of learning that y- you just see in the students' eyes, you don't need to look at the grades-

    2. GS

      Yeah.

    3. LF

      ... but you see in their eyes that, that you hook them. That, you know, that you connect with them in a way where, you know what, they, they f- they fall in love with this-

    4. GS

      Yeah.

    5. LF

      ... with this beautiful world of mathematics.

    6. GS

      They see that it's got some beauty there.

    7. LF

      It g- it, it, see-

    8. GS

      Yeah.

    9. LF

      Or conversely-

    10. GS

      Yeah.

    11. LF

      ... that they give up at that point-

    12. GS

      Uh-huh.

    13. LF

      ... is the opposite, the, the, the dark, say, the math, "I'm just not good at math. I wanna"-

    14. GS

      Yeah.

    15. LF

      "... walk away."

    16. GS

      Yeah. Yeah. Maybe because of the approach in the past, they were discouraged. But don't be discouraged, it's, it's too good to miss. Um, yeah, I, uh, uh, uh, well, if I'm teaching a big class, do I know when, I think maybe I do, sort of, uh, I mentioned at the very start the, uh, four fundamental sub-spaces and the structure of the, the fundamental theorem of linear algebra. The fundamental theorem of linear algebra. That t- is the relation of those four sub-spaces, those four spaces. Yeah. So I think that, m- I, I feel that the class gets it.

    17. LF

      When they, when they-

    18. GS

      Like-

    19. LF

      ... see it.

    20. GS

      Yeah.

    21. LF

      What advice do you have to a student just starting their journey in mathematics today? How do they get started? (laughs)

    22. GS

      (laughs) Oh, yeah, that's hard. Well, I hope you, you have a teacher, professor who, uh, is still enjoying what he's doing.

    23. LF

      Mm-hmm.

    24. GS

      What he's teaching. He's still looking for new ways to teach and to, and to understand math. Uh, 'cause that's the pleasure to, to, the moment when you see, "Oh, yeah, that works."

    25. LF

      So it's less about the material, you-

    26. GS

      Yeah.

    27. LF

      ... you study, it's more about the source of the teacher being full of passion for the subject.

    28. GS

      Yeah, more about the fun. Yeah.

    29. LF

      The fun.

    30. GS

      The, the, the moment of un- of getting it.

Episode duration: 49:52

Install uListen for AI-powered chat & search across the full episode — Get Full Transcript

Transcript of episode lEZPfmGCEk0

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.

Add to Chrome