Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Calculating Determinant (of a square matrix).

  • 13-01-2011 11:55PM
    #1
    Moderators, Education Moderators, Motoring & Transport Moderators Posts: 7,396 Mod ✭✭✭✭


    I've slipped up somewhere here.

    You'll have to forgive me - I'm not yet able to do matrices using LaTeX so I've just scanned what I did this morning - I hope that isn't a problem.

    Firstly, I calculated the determinant the 'usual' way. Note that the | | signs indicate the determinant of the matrix inside them.

    I then did it a second way, by reducing the matrix to upper triangular form. Elementary row operations affect the determinant as follows
    -Swapping two rows changes the sign of the determinant
    -Adding a scalar multiple of one row to another leaves the determinant unchanged
    -If a row is multiplied by a scalar k, the determinant is also multiplied by k

    Note the square brackets just denote what E.R.O's I've performed.

    determinant.jpg

    Why am I not getting the same answers? The first answer is correct, as far as I know, but the second one is not. I could have stopped where the ** is, and got the determinant as -3, but by further simplifying, I get a different answer. I think my problem is multiplying by the -1/3.

    Thanks :o


Comments

  • Moderators, Science, Health & Environment Moderators Posts: 1,855 Mod ✭✭✭✭Michael Collins


    You multiplied the last row by -1/3, so to compensate you must multiply the determinant by -3, you have the right idea, just the wrong way around.


  • Moderators, Education Moderators, Motoring & Transport Moderators Posts: 7,396 Mod ✭✭✭✭**Timbuk2**


    You multiplied the last row by -1/3, so to compensate you must multiply the determinant by -3, you have the right idea, just the wrong way around.

    Oh :o

    That makes complete sense! Thanks! :)


  • Registered Users, Registered Users 2 Posts: 107 ✭✭seandoiler


    matrix written by (**) is already in upper triangular form, so the determinant would be -3 as you calculated (the further reduction you make works but you have multiplied it out wrong...it should be that the determinant of that matrix is (-1/3)*determinant of the original matrix and not the other way around as you've written it...)

    i.e. (-1/3)*det(A)=det(B), where B is that final matrix with the ones along the diagonal

    EDIT: Me and my slow typing!!


  • Moderators, Science, Health & Environment Moderators Posts: 1,855 Mod ✭✭✭✭Michael Collins


    No problem.

    Just to clarify, the statement "if a single row is multiplyed by the scalar k, then so is the determinant", this is meant as a consequence of your action, not a remedy!

    So if A is the original matrx, the determinant of your final matrix above will be k . det(A) = -1/3 * det(A).

    Since it's actually det(A) you want, you need to divide by k i.e. multiply by 1/k = -3 in this case.

    Edit: Damn, seandoiler gets his own back!


  • Moderators, Education Moderators, Motoring & Transport Moderators Posts: 7,396 Mod ✭✭✭✭**Timbuk2**


    Thanks! I see where I went wrong now.

    I know the further reduction past (**) wasn't necessary, but I did it to include the scalar multiplication, as that what was causing my confusion. Sometimes you have to use scalar multiplication to get it to upper triangular form, it just so happened that this example didn't need it!

    The notation that I was using is a bit sloppy and probably is more confusing than clear. I should really call the above det(B) and then at the end, relate it to det(A).

    Thanks again!


  • Advertisement
Advertisement