Evaluating the Determinant of a Matrix

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • When it comes to matrices, beyond addition, subtraction, and multiplication, we have to learn how to evaluate something called a determinant. This is a new concept that only applies to square matrices, so let's learn what it means and how to do it!
    Watch the whole Mathematics playlist: bit.ly/ProfDave...
    Classical Physics Tutorials: bit.ly/ProfDave...
    Modern Physics Tutorials: bit.ly/ProfDave...
    General Chemistry Tutorials: bit.ly/ProfDave...
    Organic Chemistry Tutorials: bit.ly/ProfDave...
    Biochemistry Tutorials: bit.ly/ProfDave...
    Biology Tutorials: bit.ly/ProfDaveBio
    EMAIL► ProfessorDaveExplains@gmail.com
    PATREON► / professordaveexplains
    Check out "Is This Wi-Fi Organic?", my book on disarming pseudoscience!
    Amazon: amzn.to/2HtNpVH
    Bookshop: bit.ly/39cKADM
    Barnes and Noble: bit.ly/3pUjmrn
    Book Depository: bit.ly/3aOVDlT

Комментарии • 116

  • @katiepickrel
    @katiepickrel 4 года назад +51

    if you all are are looking for a quicker way, you can put your matrix in upper triangular form and take the product of the diagonal of your square matrix. (e.g. make sure all your entries under the diagonal are zero and then multiply all your diagonal entries=det of matrix.) Its way easier for larger matrices.

  • @emlmm88
    @emlmm88 5 лет назад +48

    Oh man, I'd love full courses in algebra and linear algebra from you. I have a feeling that your exposition of Galois groups and multilinear forms would be legendary. Great work, as usual.

  • @eldersprig
    @eldersprig 5 лет назад +29

    What's a permanent? Actually, *what* is a determinant? yeah, I know its *area*, but I don't know what it really means or what you do with it.

    • @jds189
      @jds189 4 года назад +5

      ruclips.net/video/Ip3X9LOh2dk/видео.html

    • @nebulousdraconic4642
      @nebulousdraconic4642 3 года назад +1

      @@jds189 Incredibly helpful series, thank you

    • @sivakumar-oh2if
      @sivakumar-oh2if 3 года назад

      Same question here why we need determinate

    • @dominus_ignaviae
      @dominus_ignaviae 2 месяца назад

      would highly recommend 3blue1brown's linear algebra series! give it a try!

  • @123enat
    @123enat 5 лет назад +8

    Literally saving my life!! Thank you so much, explained and shown so beautifully it's actually so hard to believe! Can you pls cover linear independence/dependence and singular matrix decomposition? Thank you!!

  • @jaclynrosenthal6939
    @jaclynrosenthal6939 3 года назад +6

    In what cases do we need to solve for the determinant? In other words, what are some examples of reasons as to why we do this?

    • @zeinabchouman7770
      @zeinabchouman7770 3 года назад +7

      It helps with getting the inverse of a matrix

    • @carultch
      @carultch Год назад +1

      One application of the determinant is the cross product, and its similar operation in vector calculus called the curl of a vector field.
      Another application of the determinant, is the second derivative test, in multivariable calculus. You have a stationary point where a function of multiple variables is locally flat. You want to determine if it is a local maximum, local minimum, or a saddle point. There is a second derivative test that uses the determinant of a matrix of second derivatives, that evaluates this, to determine whether you have a saddle point as opposed to a local max or min.
      Another application is Cramer's rule, for solving systems of linear equations. In the event you just want one of the solutions, Cramer's rule can be easier to calculate than some of the alternatives. The denominator in Cramer's rule is the coefficient matrix's determinant. The numerator swaps a column out for the matrix of constants.

  • @randymartin5500
    @randymartin5500 2 года назад +6

    Thank you this is the best series on matrices. I went through 3Blue1Brown's series on linear algebra and his was a bit too much on the graphics and not enough on the computational. He even says he does not do the calculations because a computer can do that for you. The whole point is how to compute manually so you understand from the ground up.

    • @thotarojoestar3045
      @thotarojoestar3045 2 года назад +3

      I've noticed the same, 3B1Bs videos tend to be a bit on the "heavier" side taking (me) quite a few rewinds to adequately grasp each one, though they're a lot more theoretical and should imo serve as a solid foundation for students to move onto the computational side of things. TL;DR: 3B1Bs videos are excellent, unless you're in a time crunch

    • @MuffinsAPlenty
      @MuffinsAPlenty Год назад +5

      @@thotarojoestar3045 Exactly! The 3Blue1Brown videos are not intended to be a full course in linear algebra. They are intended to be a theoretical/conceptual _supplement_ to a course in linear algebra. 3Blue1Brown's playlist is intended to show you why we define things the way we do and _why_ certain techniques work. That way, when faced with a new problem you have never seen before, you can use your conceptual and theoretical understanding to come up with a proper solution.

  • @shaz-z506
    @shaz-z506 5 лет назад +8

    Why is while we calculate the determinant, we take a subtraction first and then addition?

  • @evanbrunner3589
    @evanbrunner3589 3 года назад +3

    This makes a great recursion problem

  • @beaugalbraith3242
    @beaugalbraith3242 3 года назад +3

    So in practical terms what does the determinant tell us? What do matrices with the same determinant value have in common?

    • @Casper76
      @Casper76 2 года назад +2

      3Blue1Brown has a great video on this. The determinant defines what size the 1x1 unit square has in the matrix's coordinate system. So, if the determinant is >1, everything's enlarged. If it's negative, the system has been flipped.

  • @ahhhhhhhhhhhh6742
    @ahhhhhhhhhhhh6742 Год назад

    Thanks, was trying to program n by n matrix determinant calculator. ^^

  • @jenm1
    @jenm1 5 месяцев назад

    Hey professor Dave, thank you for the videos. I keep getting -320 rather than -338 since I’m getting -3 for the efgijkmno 3x3 matrix and subsequently getting +18 rather than -18 for the d portion of the determinant of the last 4x4 matrix question. I’m not sure what I’m doing wrong

  • @_WubbleU
    @_WubbleU 2 года назад +2

    I very much appreciate this. Thank you!

  • @saththiyambharathiyan8175
    @saththiyambharathiyan8175 5 лет назад +5

    For 2x2 matrix i understand.... it comes from solving of 2 variables linear equations by elimination of one variable.... But what is the intuition in the calculation of determinat of 3×3 matrix .... Why it is calculated in this method...? When I try to same elimination of variable method... I didn't get the same result.... Could you explain...?

  • @abdullahn9827
    @abdullahn9827 4 года назад +3

    I like how he goes straight to the point without bullshit

  • @hansisbrucker813
    @hansisbrucker813 4 года назад +28

    I really miss the why in this picture 😳

    • @MarleneWalker-su8ku
      @MarleneWalker-su8ku 8 месяцев назад

      For a system of two equations it's easy to see wha the determinant of X and y are but when I use the same method on three equations I get a determinant which is composed of four other determinants. Kind of like determinants within a bigger determinant, not yet found the answer why it works the way it is shown for a three by three matrix and not seen it covered in any book yet or on u tube and it's an obvious question one would ask , not spent much time trying to figure it because I have been doing some other maths . Think I'm missing something really simple in my algebra as I isolate x y and z in a system of three equations or it needs to be looked at from another perspective that I am not aware . Gonna give it some more time soon so that if I die I may rest in peace lol😊. Sorry I couldn't help any more

    • @MarleneWalker-su8ku
      @MarleneWalker-su8ku 8 месяцев назад

      For a system of two equations it's easy to see wha the determinant of X and y are but when I use the same method on three equations I get a determinant which is composed of four other determinants. Kind of like determinants within a bigger determinant, not yet found the answer why it works the way it is shown for a three by three matrix and not seen it covered in any book yet or on u tube and it's an obvious question one would ask , not spent much time trying to figure it because I have been doing some other maths . Think I'm missing something really simple in my algebra as I isolate x y and z in a system of three equations or it needs to be looked at from another perspective that I am not aware . Gonna give it some more time soon so that if I die I may rest in peace lol😊. Sorry I couldn't help any more

    • @MarleneWalker-su8ku
      @MarleneWalker-su8ku 8 месяцев назад +1

      For a system of two equations it's easy to see wha the determinant of X and y are but when I use the same method on three equations I get a determinant which is composed of four other determinants. Kind of like determinants within a bigger determinant, not yet found the answer why it works the way it is shown for a three by three matrix and not seen it covered in any book yet or on u tube and it's an obvious question one would ask , not spent much time trying to figure it because I have been doing some other maths . Think I'm missing something really simple in my algebra as I isolate x y and z in a system of three equations or it needs to be looked at from another perspective that I am not aware . Gonna give it some more time soon so that if I die I may rest in peace lol😊. Sorry I couldn't help any more

    • @MarleneWalker-su8ku
      @MarleneWalker-su8ku 8 месяцев назад

      For a system of two equations it's easy to see wha the determinant of X and y are but when I use the same method on three equations I get a determinant which is composed of four other determinants. Kind of like determinants within a bigger determinant, not yet found the answer why it works the way it is shown for a three by three matrix and not seen it covered in any book yet or on u tube and it's an obvious question one would ask , not spent much time trying to figure it because I have been doing some other maths . Think I'm missing something really simple in my algebra as I isolate x y and z in a system of three equations or it needs to be looked at from another perspective that I am not aware . Gonna give it some more time soon so that if I die I may rest in peace lol😊. Sorry I couldn't help any more

    • @hansisbrucker813
      @hansisbrucker813 8 месяцев назад

      @@MarleneWalker-su8ku thank you for your answer :)

  • @haydenbryant328
    @haydenbryant328 5 лет назад +2

    Took my test on this last week dude.

  • @PaddyMcCarthy2.1
    @PaddyMcCarthy2.1 7 месяцев назад

    Great, easy to understand.

  • @awesomecraftstudio
    @awesomecraftstudio Год назад +2

    Can anyone recomend good ressources on why this works?

  • @Tausif-n7x
    @Tausif-n7x Месяц назад

    Love you professor. You're doing a great work❤❤

  • @libelldrian173
    @libelldrian173 3 года назад +7

    Nice, I got -338 first try without calculator! 🤗

    • @RadoHudran
      @RadoHudran 2 года назад +5

      I got -336 but it's so hard to see where I made the mistake lol

    • @blue3094
      @blue3094 Год назад +2

      i got 684....

    • @teothedoor
      @teothedoor 11 месяцев назад

      Got -348

  • @emangthuso4383
    @emangthuso4383 2 года назад

    Why do you SUBTRACT the product of the second entry from the first row, which is two, and the determinant of the two by two matrix and instead ADD for the next one?

  • @simplyaweys6968
    @simplyaweys6968 5 лет назад +1

    thanks

  • @Tory5972
    @Tory5972 6 месяцев назад

    Thank you 💕

  • @LisaPhilip-p5t
    @LisaPhilip-p5t 10 месяцев назад

    Am an IT Boy but am new to this, referring to my current class am talking

  • @divvy1400yam600
    @divvy1400yam600 Год назад

    I hope this gets read : as a very old fogey I occasionly return to maths .
    I was taught what is in this vid a long time ago but I have NO interpretation of what is obtained when the determinant is calculated.
    I notice a few others have asked the same question.

    • @stephend.4342
      @stephend.4342 Год назад +1

      Determinants can be used for various purposes, such as determining the solutions to a system of linear equations using Cramer’s Rule.

    • @griggpev
      @griggpev Год назад

      Math PhD student here
      The determinant is characterized uniquely by the properties of a function which measures volume of boxes spanned by a set of vectors (what makes them unique is that the determinant of the box spanned by the standard basis vectors is normalized to 1.)
      The video gives algorithms for computing them, but never defines the determinant with a formula or characterizing properties. There is only one formula for the determinant, involving symmetries on a set, and these are just mnemonics.

  • @asetrahmgaliev1149
    @asetrahmgaliev1149 9 месяцев назад

    Using the algorithms described in this lesson I get the answer: 1*4 - (-2)*54 + 9*(-62) - (-6)*(-3) = -418, and I still don’t understand if this is a mistake?

  • @veerrajuannamdevula9939
    @veerrajuannamdevula9939 5 лет назад +1

    Sir why don't we define an angle in terms of line or line segment why only rays?why anti clock wise measure is positive and vice versa? Is it a convention that we follow in maths?

    • @ProfessorDaveExplains
      @ProfessorDaveExplains  5 лет назад +2

      You can define angles with line segments. Just look at any shape! As for the counterclockwise thing yes that’s just an arbitrary convention.

    • @veerrajuannamdevula9939
      @veerrajuannamdevula9939 5 лет назад +1

      Tnxx sir

  • @haripriyadebnath7969
    @haripriyadebnath7969 10 месяцев назад

    Thankyousomuch sir!

  • @mikezhang2266
    @mikezhang2266 2 года назад

    Super! thanks Dave.

  • @antiquarian1773
    @antiquarian1773 3 года назад +1

    what if the length of the row doesn't equal the length of the column ? Is finding the matrix the same way?

    • @hassanahmed2275
      @hassanahmed2275 2 года назад +1

      no, because it's no longer a square matrix

    • @jenm1
      @jenm1 5 месяцев назад

      Then you can’t multiply those matrices if the row of A is not the same length as the length of the column of B. If you’re talking about a non square matrix multiplied by some other matrix, you just have to make sure the length of A’s rows are the same length as B’s columns

  • @mathcritic
    @mathcritic 2 года назад +2

    I'd have to write code for anything bigger than 2x2 😀

  • @pasindumadushan3048
    @pasindumadushan3048 3 года назад

    Thankyou

  • @rpdeka
    @rpdeka Год назад

    Why do we put alternat signs plus minus in evaluating determinants

    • @griggpev
      @griggpev Год назад

      Has to do with the sign of a given permutation corresponding to swapping columns. Look into S_n and the Laplace formula for the determinant.

  • @zhikai6228
    @zhikai6228 2 месяца назад

    For a 3x3 matrix, "Sarrus rule" can be used to find the determinant
    For a 4x4 matrix, one can re-arrange the matrix and find the diagonal to get the determinant (Link: m.ruclips.net/video/h69gvD5FNgg/видео.html&pp=ygUTNHg0IG1hdHJpeCBzaG9ydGN1dA%3D%3D)
    Alternatively, one can express the 4x4 matrix as "a (3x3 matrix determinant) - b(3x3 matrix determinant) + c(3x3 matrix determinant) - d(3x3 matrix determinant" using the algorithm thought in this video for finding determinant of larger matrices and use the "Sarrus rule" to find the 4 individual (3x3 matrix determinant) to get the solution with less steps
    I hope this helps!

  • @QwertyUiop-hf4ez
    @QwertyUiop-hf4ez 3 года назад +1

    The answer is I got is -866. And I used a calculator to check it.

  • @jds189
    @jds189 4 года назад +3

    ill take your word for it that the product is -338 lolol

  • @codevader4177
    @codevader4177 3 года назад

    Thanks❤️ sir

  • @debilista
    @debilista 11 месяцев назад +2

    MY PROFESSORS SUCK SO BAD they do not know this method it appears
    I learned most maths in english because in any other language the resources are too scarce or too low quality for effective learning, not even my professors it seems try to find any other methods. Nobody here speaks english? Its first world after all, for real? While others suffer finding and learning from local trash resources wasting half of their lives i can just turn the thing on and pass the semester that easy. 5 minutes of this channel explained more than 2 lectures of local fat professors. The easiest way of finding determinants, unlike professors that encounter unnecessarily huge strings of numbers at 5x5 matrices. So much free time for games, youtube and cola remains at my disposal. Unbelivable.

    • @madypheus
      @madypheus 5 месяцев назад

      Same here lmao

  • @leandrobayonito
    @leandrobayonito 10 месяцев назад

    I try the exercises in the paper.
    I got -436 instead of -338.
    😢

  • @synonymous123
    @synonymous123 Год назад

    When you get the determinant of a 3 by 3 matrix, why is the middle a2 in negative, whats the intuitive reason?

    • @vladimircankov1492
      @vladimircankov1492 Год назад

      It's more complicated then you think and for non-mathematicians, it's best to just remember that the sign alternates. One thing that most RUclips videos don't say, for some reason, is that you can take ANY row OR column and follow the same algorithm for the determinant. You just need to be careful with the +/- signs.

    • @synonymous123
      @synonymous123 Год назад

      @@vladimircankov1492 where can i get more information regarding this to learn?

    • @vladimircankov1492
      @vladimircankov1492 Год назад

      @@synonymous123 I have no idea. I have a set of old math books from the 70s, that my father used when he was student (he was a mechanical engineer). The explanation in there is about 10 pages long so...
      Btw, the sign is calculated by raising (-1) to the power of, the sum of the indices of that element.
      For example:
      The sign of the 3rd element of the 2nd row (a_23)? (-1) to the power 2+3. (-1)⁵ = -1. So this one is a negative.
      The sign of the 5th element on the 3rd row (a_35)? (-1) to the power 5+3. (-1)⁸ = 1. So this one positive.

    • @griggpev
      @griggpev Год назад

      @@synonymous123any rigorous text will have your answer. I recommend Jerry Shurman’s Calculus and Analysis in Euclidean Space

  • @vaiterius
    @vaiterius 3 года назад +2

    My linear algebra gave us a 6x6 matrix to find the determinant of for homework...

  • @Boxing_Gamer
    @Boxing_Gamer 3 года назад

    Whats the purpose of it?

    • @carultch
      @carultch Год назад

      One application is Cramer's rule, for solving systems of linear equations. The determinant of the matrix will appear in the denominator of each solution you do by Cramer's rule. The numerator of each solution will be the determinant of a modified version of the coefficient matrix, where you swap a column for the column matrix of constants.

  • @ValorZeroAdvent
    @ValorZeroAdvent 4 года назад

    Could you use another row to evaluate the determinant for any square matrix with size 3x3 or larger? Like say, instead of first row, I use second row or third row (basically any row which I could compute the determinant for), because I see zeroes which is easy to evaluate? And if it is the case, will I have to follow the checkerboard matrix sign convention for the determinant to be calculated correctly?

    • @ardraanil9536
      @ardraanil9536 3 года назад

      You can take any row or column (horizontal or vertical), but the 'j' th term (i j k) always have a negative sign in front.

  • @raytheboss4650
    @raytheboss4650 2 года назад

    the comprehension took me 3 hours of suffering..... but i finally did it

  • @PriyanshuSen-l4u
    @PriyanshuSen-l4u 11 месяцев назад +1

    This was exhausting

  • @omarel-nemr6506
    @omarel-nemr6506 4 года назад +3

    Ok, I do understand what the matrix is, as it is all about some equations with same variables.. but but but what is the determinant? why to treat it in that way or that method not another? what is it trying to tell us? what the hell is that even suppose to mean? i spend all my day trying to understand what it is and i didn't get any fucking clear answer, it's like a universal Conspiracy on us to not understand what it is; I hope to get a response.

    • @jds189
      @jds189 4 года назад +1

      ruclips.net/video/Ip3X9LOh2dk/видео.html

  • @16psycho
    @16psycho 3 месяца назад

    6:23 how tf did i get -53060 ?

  • @aurora9183
    @aurora9183 3 года назад +2

    ahhhhhhhhhhh the method is easy but the calculations are killing me! I wish i was allowed to use a calculator :/

  • @teothedoor
    @teothedoor 11 месяцев назад

    Got -348, perhaps mistype. I figured out. I forgot to mention -1 2(0 - 1) instead of 2(0 - 0) in first and last 3x3 matrices.

  • @STKeTcH
    @STKeTcH 3 года назад

    My answer is -340 !!!!!! I've spend over an hour trying again and agian, could you please show the solution to the comprehension problem?

    • @johnnyrosenberg9522
      @johnnyrosenberg9522 3 года назад +1

      I tried once with paper and pen only and I got -340 too. I'm sure I missed something small (like some +2 somewhere in that mess). Too many opportunities to miss stuff …
      I guess I will try again later.

    • @johnnyrosenberg9522
      @johnnyrosenberg9522 3 года назад +1

      Okay, second try, -314 … What the … ?? I think I'd better start over from scratch … Later.

    • @STKeTcH
      @STKeTcH 3 года назад +1

      @@johnnyrosenberg9522 good luck! I got a 7/10 for my exam, so I am happy!

    • @johnnyrosenberg9522
      @johnnyrosenberg9522 3 года назад +4

      @@STKeTcH I finally got it right! I entered all the numbers in a spreadsheet (not using any calculations, just using it to have my numbers structured and easy to follow and edit), and I still got it wrong, but this time it was just my brain not working. I calculated -9·62 as -358 for some reason (or maybe I did a typo), so the result ended up at -138. It's -558, of course (9·(60+2)=540+18=558), and the end result is -338, just as the video clearly states.
      The results of the 3·3 determinants are:
      14, 94, -62 and -3. Multiply each one with 1, -2, 9 and 6 respectively and add and subtract using those rules, and we get:
      1·14-(-2·94)+(-9·62)-(-6·3) = 14+188-558+18=-338.
      Yay! 😁
      It's actually easy. The tough part is to not mess up the numbers, since there are so many of them.
      I remember studying this in the late 1980's, but I never used them since and I remember that I wasn't too interested in this particular field of the world of maths.

    • @STKeTcH
      @STKeTcH 3 года назад

      @@johnnyrosenberg9522 If you don't mind answering, what made you look into this subject again after so many years?

  • @handsumm
    @handsumm 11 месяцев назад

    thank you. its still not clicking but thank you lol

  • @ahanrjgaming8866
    @ahanrjgaming8866 3 года назад

    The answer is ...334....please check...

  • @malikataizhbek
    @malikataizhbek 6 месяцев назад

    I got -374

  • @laiaplaiap1688
    @laiaplaiap1688 5 лет назад +4

    👍👍👍💛

  • @navinsahu2946
    @navinsahu2946 Месяц назад +1

    I know the concepts but I cannot calculate sorry

  • @aarushking7702
    @aarushking7702 2 года назад

    damn dude,u r awesome

  • @veilsnzills
    @veilsnzills 11 месяцев назад

    I got -330 😅

  • @abriellh
    @abriellh Год назад

    im not getting the right answer. im just too disorganized

  • @ToanPham-wr7xe
    @ToanPham-wr7xe 8 месяцев назад

    😮

  • @mohammedvakil4611
    @mohammedvakil4611 23 дня назад

    India

  • @小有賴
    @小有賴 5 лет назад +2

    I am frustrated after evaluating that 4X4 matrix ..

    • @HDitzzDH
      @HDitzzDH 5 лет назад +2

      Same, spent 20 minutes evaluating it just to find out it was wrong, got -264...

    • @ajtroyer7306
      @ajtroyer7306 4 года назад +1

      There's a much simpler way of doing it.

    • @maiqiding2995
      @maiqiding2995 4 года назад

      you can replicate this process in STATA using mat det(A)

  • @davidmurphy563
    @davidmurphy563 3 года назад +1

    Yeah, but you didn't really explain the purpose of it...

    • @adhiyanthaprabhujeyashanka2091
      @adhiyanthaprabhujeyashanka2091 3 года назад

      I think you will use it in Physics

    • @davidmurphy563
      @davidmurphy563 3 года назад

      @@adhiyanthaprabhujeyashanka2091 Actually, I think I've got it. The penny dropped after I thought about it.
      The determinant is the scaling factor of the area. When you multiply the x with the y and vice versa you're just working out the area/volume, the same as you would on a graph. Say if you had a basis matrix with x, y and z vectors all running in the same direction. Then the determinant is zero, there's no area covered. If you multiplied a matrix by a scalar then you scale the determinant.
      So, it makes sense that we take the expanded determinant of two vectors with the identity vector we can output a third vector which is orthogonal to the other two: the cross product.

  • @leonardsetiawan9603
    @leonardsetiawan9603 4 года назад

    i think the answer is -368

  • @thatkingdomheartsguy9615
    @thatkingdomheartsguy9615 2 месяца назад +1

    I love you and hate this math. This is by far the worst.