Proving associativity of matrix multiplication

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to prove that matrix multiplication is associative, but seem to be making mistakes in each of my past write-ups, so hopefully someone can check over my work.



Theorem. Let $A$ be $alpha times beta$, $B$ be $beta times gamma$, and $C$ be $gamma times delta$. Prove that $(AB)C = A(BC)$.



Proof. Define general entries of the matrices $A$, $B$, and $C$ by $a_g,h$, $b_i,j$, and $c_k,m$, respectively. Then, for the LHS:
beginalign*
& (AB)_alpha, gamma = sumlimits_p=1^beta a_alpha,p b_p,gamma \
& left((AB)Cright)_alpha, delta = sumlimits_n=1^gamma left(ABright)_alpha, n c_n, delta = sumlimits_n=1^gamma left(sumlimits_p=1^beta a_alpha,p b_p,n right) c_n, delta = sumlimits_n=1^gamma sumlimits_p=1^beta left(a_alpha,p b_p,nright) c_n, delta.
endalign*
For the RHS:
beginalign*
& left(BCright)_beta, delta = sumlimits_n=1^gamma b_beta, n c_n, delta \
& left(Aleft(BCright)right)_alpha,delta = sumlimits_p=1^beta a_alpha,p (BC)_p, delta = sumlimits_p=1^beta a_alpha,p left(sumlimits_n=1^gamma b_p, n c_n, delta right) = sumlimits_p=1^beta sumlimits_n=1^gamma a_alpha,p left(b_p, n c_n, delta right).
endalign*
Assuming I have written these correctly, we can make two observations: first, the summands are equivalent, as multiplication is associative. Second, the order of the summations doesn't matter when we're summing a finite number of entries. Thus, $(AB)C = A(BC)$.



How does this look?










share|cite|improve this question

















  • 2




    $checkmark,!$
    – David
    Sep 11 at 4:37






  • 1




    Just a point on notation: you are using $alpha$ as both the number of rows of $A$ and as a general row-index; and same for$beta$, $gamma$ and $delta$. You should clean that up for a completely correct proof.
    – ancientmathematician
    Sep 11 at 6:56










  • This is very true and I hadn't realized it. Thank you. A general entry of $(AB)C$ and $A(BC)$ should have the indices $g,m$, I believe.
    – Matt.P
    Sep 11 at 14:23















up vote
0
down vote

favorite












I'm trying to prove that matrix multiplication is associative, but seem to be making mistakes in each of my past write-ups, so hopefully someone can check over my work.



Theorem. Let $A$ be $alpha times beta$, $B$ be $beta times gamma$, and $C$ be $gamma times delta$. Prove that $(AB)C = A(BC)$.



Proof. Define general entries of the matrices $A$, $B$, and $C$ by $a_g,h$, $b_i,j$, and $c_k,m$, respectively. Then, for the LHS:
beginalign*
& (AB)_alpha, gamma = sumlimits_p=1^beta a_alpha,p b_p,gamma \
& left((AB)Cright)_alpha, delta = sumlimits_n=1^gamma left(ABright)_alpha, n c_n, delta = sumlimits_n=1^gamma left(sumlimits_p=1^beta a_alpha,p b_p,n right) c_n, delta = sumlimits_n=1^gamma sumlimits_p=1^beta left(a_alpha,p b_p,nright) c_n, delta.
endalign*
For the RHS:
beginalign*
& left(BCright)_beta, delta = sumlimits_n=1^gamma b_beta, n c_n, delta \
& left(Aleft(BCright)right)_alpha,delta = sumlimits_p=1^beta a_alpha,p (BC)_p, delta = sumlimits_p=1^beta a_alpha,p left(sumlimits_n=1^gamma b_p, n c_n, delta right) = sumlimits_p=1^beta sumlimits_n=1^gamma a_alpha,p left(b_p, n c_n, delta right).
endalign*
Assuming I have written these correctly, we can make two observations: first, the summands are equivalent, as multiplication is associative. Second, the order of the summations doesn't matter when we're summing a finite number of entries. Thus, $(AB)C = A(BC)$.



How does this look?










share|cite|improve this question

















  • 2




    $checkmark,!$
    – David
    Sep 11 at 4:37






  • 1




    Just a point on notation: you are using $alpha$ as both the number of rows of $A$ and as a general row-index; and same for$beta$, $gamma$ and $delta$. You should clean that up for a completely correct proof.
    – ancientmathematician
    Sep 11 at 6:56










  • This is very true and I hadn't realized it. Thank you. A general entry of $(AB)C$ and $A(BC)$ should have the indices $g,m$, I believe.
    – Matt.P
    Sep 11 at 14:23













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to prove that matrix multiplication is associative, but seem to be making mistakes in each of my past write-ups, so hopefully someone can check over my work.



Theorem. Let $A$ be $alpha times beta$, $B$ be $beta times gamma$, and $C$ be $gamma times delta$. Prove that $(AB)C = A(BC)$.



Proof. Define general entries of the matrices $A$, $B$, and $C$ by $a_g,h$, $b_i,j$, and $c_k,m$, respectively. Then, for the LHS:
beginalign*
& (AB)_alpha, gamma = sumlimits_p=1^beta a_alpha,p b_p,gamma \
& left((AB)Cright)_alpha, delta = sumlimits_n=1^gamma left(ABright)_alpha, n c_n, delta = sumlimits_n=1^gamma left(sumlimits_p=1^beta a_alpha,p b_p,n right) c_n, delta = sumlimits_n=1^gamma sumlimits_p=1^beta left(a_alpha,p b_p,nright) c_n, delta.
endalign*
For the RHS:
beginalign*
& left(BCright)_beta, delta = sumlimits_n=1^gamma b_beta, n c_n, delta \
& left(Aleft(BCright)right)_alpha,delta = sumlimits_p=1^beta a_alpha,p (BC)_p, delta = sumlimits_p=1^beta a_alpha,p left(sumlimits_n=1^gamma b_p, n c_n, delta right) = sumlimits_p=1^beta sumlimits_n=1^gamma a_alpha,p left(b_p, n c_n, delta right).
endalign*
Assuming I have written these correctly, we can make two observations: first, the summands are equivalent, as multiplication is associative. Second, the order of the summations doesn't matter when we're summing a finite number of entries. Thus, $(AB)C = A(BC)$.



How does this look?










share|cite|improve this question













I'm trying to prove that matrix multiplication is associative, but seem to be making mistakes in each of my past write-ups, so hopefully someone can check over my work.



Theorem. Let $A$ be $alpha times beta$, $B$ be $beta times gamma$, and $C$ be $gamma times delta$. Prove that $(AB)C = A(BC)$.



Proof. Define general entries of the matrices $A$, $B$, and $C$ by $a_g,h$, $b_i,j$, and $c_k,m$, respectively. Then, for the LHS:
beginalign*
& (AB)_alpha, gamma = sumlimits_p=1^beta a_alpha,p b_p,gamma \
& left((AB)Cright)_alpha, delta = sumlimits_n=1^gamma left(ABright)_alpha, n c_n, delta = sumlimits_n=1^gamma left(sumlimits_p=1^beta a_alpha,p b_p,n right) c_n, delta = sumlimits_n=1^gamma sumlimits_p=1^beta left(a_alpha,p b_p,nright) c_n, delta.
endalign*
For the RHS:
beginalign*
& left(BCright)_beta, delta = sumlimits_n=1^gamma b_beta, n c_n, delta \
& left(Aleft(BCright)right)_alpha,delta = sumlimits_p=1^beta a_alpha,p (BC)_p, delta = sumlimits_p=1^beta a_alpha,p left(sumlimits_n=1^gamma b_p, n c_n, delta right) = sumlimits_p=1^beta sumlimits_n=1^gamma a_alpha,p left(b_p, n c_n, delta right).
endalign*
Assuming I have written these correctly, we can make two observations: first, the summands are equivalent, as multiplication is associative. Second, the order of the summations doesn't matter when we're summing a finite number of entries. Thus, $(AB)C = A(BC)$.



How does this look?







linear-algebra proof-verification






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Sep 11 at 4:30









Matt.P

1,015414




1,015414







  • 2




    $checkmark,!$
    – David
    Sep 11 at 4:37






  • 1




    Just a point on notation: you are using $alpha$ as both the number of rows of $A$ and as a general row-index; and same for$beta$, $gamma$ and $delta$. You should clean that up for a completely correct proof.
    – ancientmathematician
    Sep 11 at 6:56










  • This is very true and I hadn't realized it. Thank you. A general entry of $(AB)C$ and $A(BC)$ should have the indices $g,m$, I believe.
    – Matt.P
    Sep 11 at 14:23













  • 2




    $checkmark,!$
    – David
    Sep 11 at 4:37






  • 1




    Just a point on notation: you are using $alpha$ as both the number of rows of $A$ and as a general row-index; and same for$beta$, $gamma$ and $delta$. You should clean that up for a completely correct proof.
    – ancientmathematician
    Sep 11 at 6:56










  • This is very true and I hadn't realized it. Thank you. A general entry of $(AB)C$ and $A(BC)$ should have the indices $g,m$, I believe.
    – Matt.P
    Sep 11 at 14:23








2




2




$checkmark,!$
– David
Sep 11 at 4:37




$checkmark,!$
– David
Sep 11 at 4:37




1




1




Just a point on notation: you are using $alpha$ as both the number of rows of $A$ and as a general row-index; and same for$beta$, $gamma$ and $delta$. You should clean that up for a completely correct proof.
– ancientmathematician
Sep 11 at 6:56




Just a point on notation: you are using $alpha$ as both the number of rows of $A$ and as a general row-index; and same for$beta$, $gamma$ and $delta$. You should clean that up for a completely correct proof.
– ancientmathematician
Sep 11 at 6:56












This is very true and I hadn't realized it. Thank you. A general entry of $(AB)C$ and $A(BC)$ should have the indices $g,m$, I believe.
– Matt.P
Sep 11 at 14:23





This is very true and I hadn't realized it. Thank you. A general entry of $(AB)C$ and $A(BC)$ should have the indices $g,m$, I believe.
– Matt.P
Sep 11 at 14:23











1 Answer
1






active

oldest

votes

















up vote
2
down vote













Your proof is fine.



We can change the order of summation as the sum is finite. When we mention multiplication is associative, we might want to mention multiplicative of which object, such as multiplicative of real numbers or complex number.






share|cite|improve this answer




















    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "69"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2912743%2fproving-associativity-of-matrix-multiplication%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    Your proof is fine.



    We can change the order of summation as the sum is finite. When we mention multiplication is associative, we might want to mention multiplicative of which object, such as multiplicative of real numbers or complex number.






    share|cite|improve this answer
























      up vote
      2
      down vote













      Your proof is fine.



      We can change the order of summation as the sum is finite. When we mention multiplication is associative, we might want to mention multiplicative of which object, such as multiplicative of real numbers or complex number.






      share|cite|improve this answer






















        up vote
        2
        down vote










        up vote
        2
        down vote









        Your proof is fine.



        We can change the order of summation as the sum is finite. When we mention multiplication is associative, we might want to mention multiplicative of which object, such as multiplicative of real numbers or complex number.






        share|cite|improve this answer












        Your proof is fine.



        We can change the order of summation as the sum is finite. When we mention multiplication is associative, we might want to mention multiplicative of which object, such as multiplicative of real numbers or complex number.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Sep 11 at 4:36









        Siong Thye Goh

        92k1460113




        92k1460113



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2912743%2fproving-associativity-of-matrix-multiplication%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            How to combine Bézier curves to a surface?

            Carbon dioxide

            Why am i infinitely getting the same tweet with the Twitter Search API?