7. Solving Ax = 0: Pivot Variables, Special Solutions

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • MIT 18.06 Linear Algebra, Spring 2005
    Instructor: Gilbert Strang
    View the complete course: ocw.mit.edu/18-06S05
    CZcams Playlist: • MIT 18.06 Linear Algeb...
    7. Solving Ax = 0: Pivot Variables, Special Solutions
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

Komentáře • 333

  • @markptak5269
    @markptak5269 Před 10 lety +599

    Its kind of cool and odd that someone who has taught this subject for so long can keep it so fresh...like he's stumbling across the Null Space Matrix for the first time. Thank you Dr. Strang and thank you MITOCW.

  • @yanshudu9370
    @yanshudu9370 Před 2 lety +52

    Conclusion: 1. To calculate Ax=0 in other words calculate the null space of A, we can use 'reduce row echelon form' (rref) method.
    2. The rank of A equal to the number of pivots or rows after reducing row echelon, notation as r.
    The column of A equal to the number of variables, notation as n.
    So n-r is equal to the number of free variables.
    3. Consider the solution of Ax=0, if we calculate the reduced row echelon form of A consisting of [T F], the solution matrix will be the transform of [-F T], where T stands for identity matrix and F stands for free matrix.
    The solution matrix would be n*(n-r) shape.

  • @thelastcipher9135
    @thelastcipher9135 Před 7 lety +180

    long live professor strang!

  • @EclecticSceptic
    @EclecticSceptic Před 12 lety +82

    This guy is giving me such a good intuitive understanding of linear algebra, rather than just presenting seemingly semi-random algorithms without explanation.

  • @Gorbleray
    @Gorbleray Před 11 měsíci +19

    This is more than a lecture on linear algebra, it's a demo on perfect teaching presentation. His way of pinpointing each question along the way that our brains need to ask and then solve is truly beautiful.

  • @MrPink029
    @MrPink029 Před rokem +39

    Every student should have at least one professor like Prof Strang. Motivating, illuminating and such great energy. I truly appreciate these classes. Thank you!

  • @youweiqin2416
    @youweiqin2416 Před 9 lety +166

    mit has high quality of blackboard

    • @iwtwb8
      @iwtwb8 Před 8 lety +18

      +YOUWEI QIN I thought the same thing. There's just like infinite sliding blackboards stacked on top of each other :)

    • @dostoguven
      @dostoguven Před 7 lety +2

      quantity?

    • @mainakbiswas2584
      @mainakbiswas2584 Před 6 lety +3

      MIT has everything of a very high quality! Its such a pity that you only noticed the blackboards!

    • @danwu7275
      @danwu7275 Před 5 lety +29

      Agree, no body mentions the chalks.

  • @xiangzhang8508
    @xiangzhang8508 Před 8 lety +419

    infinite blackboards...

  • @gizmopossible
    @gizmopossible Před 11 lety +43

    Does anyone else feel a nice smooth buttery feeling when the chalk glides against the board?

  • @17mjankowski
    @17mjankowski Před 4 lety +20

    This guy has figured out how to access the 12 dimension. Infinite chalkboards; some crazy wizardry shit.

  • @oilotnoM
    @oilotnoM Před 14 lety +25

    It's fun pausing the video and trying to figure out how the process ends before he's shown it ...

  • @kellypainter7625
    @kellypainter7625 Před 6 lety +41

    I took linear algebra 30 years ago and I thought it was pretty hard at the time. Prof. Strang makes it easy!

  • @tylerhuttenlocher5481
    @tylerhuttenlocher5481 Před 5 lety +164

    I wonder if the couple at 15:03 in the second row is still together.

  • @yufanlin352
    @yufanlin352 Před 4 lety +17

    I literally want to cry after watching this. Thank you so much for saving my ass.

  • @eswyatt
    @eswyatt Před 2 lety +11

    For anyone confused by the block matrix explanation --- the I and F and blocks of zeros --- hang in there until lecture 8 where it all becomes clearer. And yes, F may be interspersed with the I, and, contrary to the top rated answer on Stack Exchange, this cannot be remedied with permutation matrices. Basically it's just a visual cue that allows you to pluck out the relevant numbers.

    • @yuriyroman7132
      @yuriyroman7132 Před rokem +3

      This is exactly what got me confused at first. I really appreciate professor Strang and MIT for making this gem of a lecture available online, but I felt he presented a few tricks like the block matrix one for finding the spanning set of the null space of a linear map (a linearly independent one*, too, because of that I block) in a rather hand-wavy manner.
      Perhaps a better way to visualize it is as follows:
      1. Draw the RREF matrix as staircases with pivots, preferably with interlaced free columns for generality.
      2. If there are any all-zero rows at the bottom of the RREF matrix, trim off that part.
      3. Pluck out a free column from the staircase, then turn it sideways (90 degrees counterclockwise.)
      4. Multiply each component in the free column by -1, to reverse their signs. (This is for building the -F block)
      5. Insert the "selector" (coefficient of 1) component at the same index as the index of the extracted free column in the RREF matrix.
      6. Insert "N/A" (coefficient of 0) components at the same indices as the indices of the rest of the free columns in the RREF matrix.
      7. Now turn the free column back to its original position (90 degrees clockwise)
      8. Put the finished column in the "special solutions" matrix.
      9. Do the same with the rest of the free columns in the RREF.
      10. In the special cases where F is NOT interspersed with the I in the original RREF matrix, what you get is a matrix with the -F block stacked on top of the I block.
      P.S. The point of plucking out a free column and then laying it on its side is to make the step 5 and 6 easier to visualize.
      *If only one column vector has a non-zero entry at a specific row index in a set of columns, then there is no linear combination of the rest of columns in the set that is equal to that column. That is why the special solutions matrix built this way always contains a linearly independent set of columns.

    • @mistergooseman7047
      @mistergooseman7047 Před 10 měsíci +2

      This really bothered me. The block presentation wasn't exactly blocked. But I'll stick with it.

    • @eulerappeareth
      @eulerappeareth Před 2 měsíci

      yes, I'm a bit confused what to do with matrices which rreff is something like
      [ 1 * 0 * 0
      [ 0 0 1 * 0
      [ 0 0 0 0 1
      they are clearly not [I F
      I will check this answer

  • @christoskettenis880
    @christoskettenis880 Před 6 měsíci +2

    I was studying for my engineering degree when this was filmed. I just wish I was having professors like Dr. Strang and Dr. Lewin. Clear cut and practical explanations of the most abstruct branch of Mathematics!

  • @citiblocsMaster
    @citiblocsMaster Před 7 lety +106

    When you think there is no more sliding boards 33:16

    • @user-kj4wy9ru4h
      @user-kj4wy9ru4h Před 4 lety +2

      Truly agree. It's quite impressing how MIT has so many sliding boards... the # of blackboards in MIT is INFINITE. LOL

  • @genidor
    @genidor Před 4 lety +3

    W. Gilbert Strang, you are a gem of a teacher! Thank you so very much!!

  • @readap427
    @readap427 Před 8 lety +57

    The last thing he wrote at the end of the lecture was "FIN"... like the end of an old-fashioned French film.
    I thought it was funny.

  • @naterojas9272
    @naterojas9272 Před 4 lety +5

    It is mind blowing how elegant linear algebra really is

  • @shinyeong7188
    @shinyeong7188 Před 4 lety +8

    I've my linear algebra class early in the morning, and I never make it to the class
    was frustrated to catch up all this stuff but watching these videos are helping me so much
    Sincerely thank professor Strang and this channel!

  • @abdulghanialmasri5550
    @abdulghanialmasri5550 Před 3 měsíci +1

    No way there is anyone can explain linear algebra like professor Strang!

  • @JoshuaJEMarin
    @JoshuaJEMarin Před 11 lety +10

    Seriously the best thing that I could have found on the Internet. Too bad my final is in 4 days. Naturally I will be staying on youtube for quite a few hours this week

  • @michaelmolter6180
    @michaelmolter6180 Před 3 lety +4

    There's a lot of magic going on here that Dr. Strang doesn't state explicitly. It makes this lecture worth a couple listen throughs.

    • @sahil0094
      @sahil0094 Před 2 lety +3

      definitely more than a couple. I dont know why people are saying its magical

  • @rajarshighoshal6256
    @rajarshighoshal6256 Před 3 lety +5

    this is the best way possible to describe the rank of a matrix! for so long I have struggled with this concept! And now it feels so rudimentary, so basic! Thank you professor strange for such a fantastic way of explaining things

  • @warnford
    @warnford Před 8 lety +5

    enjoying these lectures tremendously - cant say I expected to find linear algebra that interesting

  • @arsalanwani2436
    @arsalanwani2436 Před 3 lety +8

    I have never seen teacher like u.....ur way of teaching and clearing the concepts of students is amazing sir..
    ...

  • @georgesadler7830
    @georgesadler7830 Před 2 lety

    From watching this lecture, DR. Strang continues to strength my knowledge of linear algebra. He makes the subject look so simple.

  • @quirkyquester
    @quirkyquester Před 4 lety +8

    learning linear algebra with you is like watching movies. it's fascinating, exciting, convincing and fun. thank you so much Professor Strang! Im so lucky to be learning this subject with you!

    • @user-fh1do9xb4n
      @user-fh1do9xb4n Před rokem +2

      Indeed! It's like a story - with characters, and plot, and plot twists...Mr Strang is a shining example of what education should be - accessible, engaging and with the sense of disccovery!

    • @judepope6196
      @judepope6196 Před rokem +1

      Yes! this is what I felt as I was watching! And I felt that I was as happy as I would be watching a favourite movie.

  • @hanzvonkonstanz
    @hanzvonkonstanz Před 13 lety

    @ Dr. Strang: OUTSTANDING!

  • @jakeaus
    @jakeaus Před 4 lety +7

    36:20 "I quit without trying, I shouldn't have done that." So true

    • @miketh4434
      @miketh4434 Před 2 lety +1

      hahahahahah me with linear algebra 2 years ago. will get a 10 now easy

  • @abhinavasthana20061
    @abhinavasthana20061 Před 5 lety +1

    Love you Prof. Strang.....I am beginning to fall in love with Linear Algebra....You are a genius Prof. Strang....

  • @AryanPatel-wb5tp
    @AryanPatel-wb5tp Před měsícem

    Great Lecturer ! Never has learning linear algebra been so interesting and well explained !

  • @animeshguha9649
    @animeshguha9649 Před 6 měsíci +2

    I'm in love with these lecs

  • @Kamillascookie
    @Kamillascookie Před 14 lety +1

    GREAT! I was a bit confused at first but in the end, he rocked my world as always! Thaaaank you!

  • @phatimakhatoon9835
    @phatimakhatoon9835 Před 5 lety +3

    Mit has done wonderful job to give us quality education for free veryyyyy thanks

  • @avidreader100
    @avidreader100 Před 3 lety +6

    The second part of the lecture going from Ux = 0 to Rx = 0 and further on to RN = 0, and proposing what is N, seemed to be full of leaps that I could not follow completely. I have done a ML course, and a Neural network course without a deeper knowledge of Linear Algebra. I thought of filling that gap. The rabbit hole seems to go deep, and again I seem to be taking a few magical things that happen to be as axiomatic. I will persist. If I can not get it from Prof Strang, I may not get it at all. Hope the pennies will drop as I move forward, and I will get rich!

    • @Q.Mechanic
      @Q.Mechanic Před 3 lety +1

      Any updates?

    • @sahil0094
      @sahil0094 Před 2 lety +1

      same issue with me

    • @toanvo2829
      @toanvo2829 Před 2 lety +1

      Dr. Strang wanted us to realize that the reduced row echelon form of the original matrix consisted of the identity matrix (when only looking at the pivot columns) and some other matrix, which he called F, when only looking at the free columns.
      He generalized this notion by defining the matrix R using placeholders I and F for the identity matrix (I) and the matrix formed by the free columns (F), with possible rows of 0s beneath. Since he was generalizing, he wrote R as a block matrix (where I and F represent matrices).
      We know I has dimensions r x r (since I is the identity matrix formed by the pivot columns, and the number of pivot columns = number of pivot variables = rank = r)
      We know F has dimensions n - r x n - r (since F is the matrix formed by the free columns, and we know there are n - r free columns).
      So our original Ax = 0 can be rewritten -- throughout the whole process of his lecture -- as Rx = 0. He then wonders what would the solution of this matrix equation would be.
      Well, since defined R generally using I and F, he unintentionally (I am assuming given how pleasantly surprised he sounded) was defining R as a block matrix, he decided to find all the special solutions at once in which he called a null space matrix N.
      This N would solve the Rx=0 equation, i.e., would make RN = 0 true.
      Well, knowing how matrix multiplication works, N needs to be a matrix that, when multiplied with the row(s) of R, would produce 0's.
      Since the first row of R is I F, what linear combination of I F would = 0? We would need to multiply I by -F, and F by I (because then we'd have -F + F = 0).
      This is how to look at it pure algorithmically. Dr. Strang actually uses wonderful logic. If the first row of R = [I F], then of course we want I in the free variable row (the second row of N) in order to preserve it, and to cancel it out, of course we would need -F in the identity row (the first row of N) in order to cancel out the F in the free variable block of R.
      This is how he knows the null space matrix N is always going to be [-F I] (obviously written as a column, but I can't type that out in this comment).
      He then goes further to show us how this actually is not surprising. Going back to Rx = 0, remember that R (as a block matrix) = [I F]. x = [x_pivot, x_free] (as a column matrix).
      If we actually did the matrix multiplication we would have:
      I * x_pivot + F * x_free = 0. Solving for x_pivot we get:
      x_pivot = -F * x_free
      So, if in our solution we make our free variables the identity (remember when Dr. Strang said "hey, these are free variables. Let's make them whatever we want. Let's make x_2 = 1 and x_4 = 0" and later he said "hey, let's make x_2 = 0 and x_4 = 1"), then by the above equation, of course x_pivot HAS to be -F.

    • @attilakun7850
      @attilakun7850 Před 2 měsíci

      @@toanvo2829 F has dimensions r x n - r (NOT n - r x n -r), no?

  • @nota2938
    @nota2938 Před rokem +1

    I've never understood null space, rref, and how null basis is immediate from rref better.
    I'd recommend Dr. Strang to anyone that tries to learn linear algebra.

  • @rudrajyotidas1538
    @rudrajyotidas1538 Před 3 lety +3

    The way he connects the flow of ideas..........

    • @briann10
      @briann10 Před 2 lety +1

      26:31 even the ghost gets mindblowned

  • @blackpepper9828
    @blackpepper9828 Před 4 lety +2

    For those like me, who did not get about the free columns and pivot columns fiasco at first.
    Firstly, note that the free columns are linear combinations of the pivot columns (you can do some scribbling to confirm this).
    This gives some intuition as to why we can allow the free columns to be scaled freely by any number, then solving for the scalars of the pivot columns, such that you get zero column/vector if you add all these scaled columns.
    Pivot variables and free variables are the names for those respected scalars.
    I hope this cleared some doubts...wish you the best of luck.

  • @CadrinTheWerecat
    @CadrinTheWerecat Před 12 lety +3

    Why does my university not allow for students to record the lectures? It is so good to have those at home in video format. You can re-watch them and rewind time anytime you missed something because you weren't paying attention. Mighty helpful.

  • @antoniolewis1016
    @antoniolewis1016 Před 8 lety +17

    I LOVE THIS GUY

  • @amarenpdas1975
    @amarenpdas1975 Před 14 lety +2

    a great prof.. abstract maths can so easily taught .... Its amazing...... Great ..... hats off to u
    U should come up with simillar lect in analysis

  • @bearcharge
    @bearcharge Před 14 lety

    indeed, rocked my world! listening to his lecture is a kind of pleasure!

  • @mushtaqdass7421
    @mushtaqdass7421 Před 5 lety +4

    every math loving student would love this great man

  • @reginaldarbruthnot1766
    @reginaldarbruthnot1766 Před 3 lety +1

    truly brilliant and impeccably clear

  • @thehyphenator
    @thehyphenator Před 11 lety +1

    Just wanted to say that blocking the rref matrix into [[I F], [0...]] form and solving for the nullspace matrix like that is one of the greatest things I've ever seen. It seems like it shouldn't work because F could have different shape than I, but it does. And it generalizes to when F doesn't exist, which helps you remember the ideas in the next lecture.

  • @thoniageo
    @thoniageo Před 6 lety +1

    Wow, great professor! Thank you!

  • @scorpionboy3
    @scorpionboy3 Před 13 lety

    @gavilanch I´m glad they were made to be found! MIT rocks, more should follow their example!

  • @rguktiiit371
    @rguktiiit371 Před 3 lety +2

    Have u observed
    First lecture got Million's of views
    And views count is slowly reduced from video to video

  • @karthik3685
    @karthik3685 Před 2 lety

    This is so spectacularly good.

  • @neverbendorbreak
    @neverbendorbreak Před 6 lety +1

    Love him so much.

  • @reshobrouth8123
    @reshobrouth8123 Před 7 lety

    Prof. Strang is a Magician, he shows that Matrix is synonymous to Magic.

  • @reiriley1780
    @reiriley1780 Před 2 lety

    its incredible what 15 years does 🙌🏽

  • @gustavoleal413
    @gustavoleal413 Před rokem +1

    Que aula! Sensacional

  • @zakeerp
    @zakeerp Před 4 lety

    19:30 Reduced row echelon form(RREF)

  • @docfromohio
    @docfromohio Před 13 lety

    Spectacular teaching !!!!

  • @sureshsadasivuni8367
    @sureshsadasivuni8367 Před 4 lety

    Really happy at these lectures... Delivered by pro. Strange

  • @yiyu9519
    @yiyu9519 Před 3 lety

    love this course

  • @mertduran2023
    @mertduran2023 Před 5 lety

    This guy is definitely PERFECTTTT!!!!

  • @imrans7545
    @imrans7545 Před 11 lety +1

    hmmm thanks for the explanation. I had to play with examples for some time to get a hang of it.

  • @alirazi9198
    @alirazi9198 Před 18 dny

    I study at a german uni and everything is so god damn formal I couldnt fathom up unti today why the core plus the rank is equal the number of culmns
    thank you mit opencourseware abd thank you dr. Strang

  • @gavilanch
    @gavilanch Před 15 lety +2

    Awesome, i´m glad I found this videos =D

  • @naletullah
    @naletullah Před 6 lety

    you're awesome professor thank you.

  • @MrYomantanepali
    @MrYomantanepali Před 13 lety

    great lecture... awesome video... thank you for posting it....

  • @TurgaySengoz
    @TurgaySengoz Před 3 lety

    43:02 "Fridi"
    God I love this man.

  • @marnk1950
    @marnk1950 Před 5 lety +1

    Such a legendary professor. He rocks! :)

  • @crystallai1002
    @crystallai1002 Před 3 lety

    Oh he is such a great teacher!!! with appropriate pause and a moderate speed!! I'm glad that I learn a lot.

  • @user-io7oc6kp3n
    @user-io7oc6kp3n Před 4 měsíci

    huge teacher -professor

  • @wuqikun4404
    @wuqikun4404 Před 4 lety

    I can't help applauding at the end...

  • @chhayankmulchandani4812

    No one teaches this better than him

  • @imranka
    @imranka Před 7 lety

    I love this guy.

  • @lindhe
    @lindhe Před 10 lety +3

    Nice tie. :)

  • @shubhamtalks9718
    @shubhamtalks9718 Před 4 lety +1

    A magician telling all his secret tricks...

  • @gangren1453
    @gangren1453 Před 10 lety

    @ Rahul Duggal, the prof doesn't mean to change the column, he's just highlighting it to be obvious.

  • @mav45678
    @mav45678 Před 5 lety +15

    For a second, I'm always surprised that people don't clap at the end of the lecture...

  • @MrYomantanepali
    @MrYomantanepali Před 13 lety

    great lecture... awesome video...

  • @hoanhuynh782
    @hoanhuynh782 Před 8 lety +14

    He is the best teacher i've ever had. How can i get in touch with him? Please!!! Thank you so much.

    • @mitocw
      @mitocw  Před 8 lety +14

      +hoan huynh See his department page for contact information: www-math.mit.edu/~gs/

  • @maxhuang4650
    @maxhuang4650 Před 4 lety +2

    Anyone understand the equation at 32:15? I think x_free should be above x_pivot?

  • @OrionConstellationHome
    @OrionConstellationHome Před 3 lety +2

    I just read the latest edition of the book for this course and it is brilliant , the best Linear Algebra textbook! Thank you Dr. Gilbert Strang! But I like the cover of older edition with the houses being transformed. Is there any software for online hw for the book? Please let me know.

  • @xiangzhang8508
    @xiangzhang8508 Před 8 lety

    great teacher I love you so much.

  • @thehyphenator
    @thehyphenator Před 11 lety +1

    F will have the same number of rows as I, but maybe not the same number of columns. So to make N, you just put -F on top and fill in the bottom with the identity matrix of the correct size (the number of columns of F). So say I is m by m and F is m by n, then N will have (m + n) rows and R will have (m + n) columns, so it works out. And each block multiplication (I * -F and F * I) also work out.

    • @qinglu6456
      @qinglu6456 Před 4 lety

      Yes. So the dimension of the identity matrix in R is not the same as the dimension of the identity matrix in N. And the sum of the dimensions of these identity matrix should be equal to the number of columns in A.

  • @yufanzhou9948
    @yufanzhou9948 Před 4 lety +1

    beautiful.

  • @imrans7545
    @imrans7545 Před 11 lety +7

    i still do not understand how it works , F and I definitely can have different shapes ? This part is not clear from the video.

  • @RobertoMartin1
    @RobertoMartin1 Před 8 lety +2

    Inspiring

  • @effortless35
    @effortless35 Před 11 lety +2

    The part I found confusing is when we write [I F]*[-F,I] = 0 F and -F are the same dimension but the identity on the left hand side is rxr and on the right hand side (n-r)x(n-r),
    Thinking it through, it makes sense. The RHS has the same number of columns as the number of free variables. It's just a little unusual to see the same letter on both sides meaning slightly different things.

  • @iqbalazmee2616
    @iqbalazmee2616 Před 11 lety

    I think the best title for this video is Understanding Null Space.

  • @damnit258
    @damnit258 Před 5 lety

    mind blowing!

  • @user-ub7bi4sz8q
    @user-ub7bi4sz8q Před rokem +3

    15:06 lovebirds

    • @turokg1578
      @turokg1578 Před rokem +2

      lol would be annoying af if sittin behind em.

  • @sivarajchinnasamy11
    @sivarajchinnasamy11 Před 2 lety

    Finally null space column has a combination of identity with free variables 👏👏

  • @alijoueizadeh8477
    @alijoueizadeh8477 Před 5 lety

    Thank you.

  • @aymensekhri2133
    @aymensekhri2133 Před 4 lety

    thanks a lot sir!

  • @TMAC02010
    @TMAC02010 Před 3 lety +1

    15:10 special solutions

  • @eswyatt
    @eswyatt Před 2 lety

    @ 32:10 X subscript "pivot" and X subscript "free" are being treated as submatrices to enable block multiplication. Hope I'm right

  • @baconpenguin94
    @baconpenguin94 Před 8 měsíci

    HES THE GOAT. THE GOOOOOAT!!!

  • @WeiliangZeng
    @WeiliangZeng Před 14 lety

    Nice example.

  • @rinkaghosh7961
    @rinkaghosh7961 Před 3 lety

    Sir , Thanks a lot Sir.. ! ..

  • @tachyon7777
    @tachyon7777 Před 5 lety +3

    19:54 "Let me suppose I got as far as u" lol

  • @jrkirby93
    @jrkirby93 Před 13 lety +3

    just hope you remember the minus F on the test.

  • @scotchandsoda123
    @scotchandsoda123 Před 12 lety

    @shinyralle all he wants is, that you get a better view for that what he wants you to see. that why he writes it that way