How do I solve this? Find determinant of a matrix












0












$begingroup$


I have a matrix with n rows and n columns: $A=(a_{j,k})$ is defined:
$$(a_{j,k})=begin{cases}
begin{split}
2j (jneq k) \ 0(j=k)
end{split} end{cases}$$


And I need to find $det(A)$. I think that I need to use gauss elimination but I have no idea how to do this here. can anyone help please? thanks.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    You may start from factoring out $2j$ from each column in the determinant.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:05










  • $begingroup$
    @A.Γ. sorry, I did not write the question well. I needed to write a(j,k) insted of a(k,j) but this is still the same, so now i need to factor 2j from each row. I have done that, and i get a messy matrix with much 1's, i understood that on the diagnole there are 0's and the other are 1's, but how can i calculate the determinant of that matrix?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:21










  • $begingroup$
    If you add the identity matrix to the result, you will get a very nice matrix.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:22










  • $begingroup$
    @A.Γ. Yes, I see, I will get a matrix of 1's, and its determinant of this is 0. but, there is no formula for det(A+B) as an expression of detA and detB, nothing that I was tought at least... so how does that help me?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:29


















0












$begingroup$


I have a matrix with n rows and n columns: $A=(a_{j,k})$ is defined:
$$(a_{j,k})=begin{cases}
begin{split}
2j (jneq k) \ 0(j=k)
end{split} end{cases}$$


And I need to find $det(A)$. I think that I need to use gauss elimination but I have no idea how to do this here. can anyone help please? thanks.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    You may start from factoring out $2j$ from each column in the determinant.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:05










  • $begingroup$
    @A.Γ. sorry, I did not write the question well. I needed to write a(j,k) insted of a(k,j) but this is still the same, so now i need to factor 2j from each row. I have done that, and i get a messy matrix with much 1's, i understood that on the diagnole there are 0's and the other are 1's, but how can i calculate the determinant of that matrix?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:21










  • $begingroup$
    If you add the identity matrix to the result, you will get a very nice matrix.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:22










  • $begingroup$
    @A.Γ. Yes, I see, I will get a matrix of 1's, and its determinant of this is 0. but, there is no formula for det(A+B) as an expression of detA and detB, nothing that I was tought at least... so how does that help me?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:29
















0












0








0





$begingroup$


I have a matrix with n rows and n columns: $A=(a_{j,k})$ is defined:
$$(a_{j,k})=begin{cases}
begin{split}
2j (jneq k) \ 0(j=k)
end{split} end{cases}$$


And I need to find $det(A)$. I think that I need to use gauss elimination but I have no idea how to do this here. can anyone help please? thanks.










share|cite|improve this question











$endgroup$




I have a matrix with n rows and n columns: $A=(a_{j,k})$ is defined:
$$(a_{j,k})=begin{cases}
begin{split}
2j (jneq k) \ 0(j=k)
end{split} end{cases}$$


And I need to find $det(A)$. I think that I need to use gauss elimination but I have no idea how to do this here. can anyone help please? thanks.







linear-algebra determinant






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 23 '18 at 17:21







Omer

















asked Dec 23 '18 at 16:37









OmerOmer

3969




3969








  • 1




    $begingroup$
    You may start from factoring out $2j$ from each column in the determinant.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:05










  • $begingroup$
    @A.Γ. sorry, I did not write the question well. I needed to write a(j,k) insted of a(k,j) but this is still the same, so now i need to factor 2j from each row. I have done that, and i get a messy matrix with much 1's, i understood that on the diagnole there are 0's and the other are 1's, but how can i calculate the determinant of that matrix?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:21










  • $begingroup$
    If you add the identity matrix to the result, you will get a very nice matrix.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:22










  • $begingroup$
    @A.Γ. Yes, I see, I will get a matrix of 1's, and its determinant of this is 0. but, there is no formula for det(A+B) as an expression of detA and detB, nothing that I was tought at least... so how does that help me?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:29
















  • 1




    $begingroup$
    You may start from factoring out $2j$ from each column in the determinant.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:05










  • $begingroup$
    @A.Γ. sorry, I did not write the question well. I needed to write a(j,k) insted of a(k,j) but this is still the same, so now i need to factor 2j from each row. I have done that, and i get a messy matrix with much 1's, i understood that on the diagnole there are 0's and the other are 1's, but how can i calculate the determinant of that matrix?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:21










  • $begingroup$
    If you add the identity matrix to the result, you will get a very nice matrix.
    $endgroup$
    – A.Γ.
    Dec 23 '18 at 17:22










  • $begingroup$
    @A.Γ. Yes, I see, I will get a matrix of 1's, and its determinant of this is 0. but, there is no formula for det(A+B) as an expression of detA and detB, nothing that I was tought at least... so how does that help me?
    $endgroup$
    – Omer
    Dec 23 '18 at 17:29










1




1




$begingroup$
You may start from factoring out $2j$ from each column in the determinant.
$endgroup$
– A.Γ.
Dec 23 '18 at 17:05




$begingroup$
You may start from factoring out $2j$ from each column in the determinant.
$endgroup$
– A.Γ.
Dec 23 '18 at 17:05












$begingroup$
@A.Γ. sorry, I did not write the question well. I needed to write a(j,k) insted of a(k,j) but this is still the same, so now i need to factor 2j from each row. I have done that, and i get a messy matrix with much 1's, i understood that on the diagnole there are 0's and the other are 1's, but how can i calculate the determinant of that matrix?
$endgroup$
– Omer
Dec 23 '18 at 17:21




$begingroup$
@A.Γ. sorry, I did not write the question well. I needed to write a(j,k) insted of a(k,j) but this is still the same, so now i need to factor 2j from each row. I have done that, and i get a messy matrix with much 1's, i understood that on the diagnole there are 0's and the other are 1's, but how can i calculate the determinant of that matrix?
$endgroup$
– Omer
Dec 23 '18 at 17:21












$begingroup$
If you add the identity matrix to the result, you will get a very nice matrix.
$endgroup$
– A.Γ.
Dec 23 '18 at 17:22




$begingroup$
If you add the identity matrix to the result, you will get a very nice matrix.
$endgroup$
– A.Γ.
Dec 23 '18 at 17:22












$begingroup$
@A.Γ. Yes, I see, I will get a matrix of 1's, and its determinant of this is 0. but, there is no formula for det(A+B) as an expression of detA and detB, nothing that I was tought at least... so how does that help me?
$endgroup$
– Omer
Dec 23 '18 at 17:29






$begingroup$
@A.Γ. Yes, I see, I will get a matrix of 1's, and its determinant of this is 0. but, there is no formula for det(A+B) as an expression of detA and detB, nothing that I was tought at least... so how does that help me?
$endgroup$
– Omer
Dec 23 '18 at 17:29












2 Answers
2






active

oldest

votes


















2












$begingroup$

After factoring out $2j$ you will get the matrix
$$
begin{bmatrix}1\1\vdots\1end{bmatrix}begin{bmatrix}1 &1&ldots&1end{bmatrix}-I=ee^T-I.
$$

Now use the Sylvester determinant formula
$$
det(ee^T-I)=(-1)^ndet(I-ee^T)=(-1)^n(1-e^Te)=(-1)^n(1-n).
$$






share|cite|improve this answer











$endgroup$





















    1












    $begingroup$

    Taking out the $2j$ factors as suggested leaves $E-I$, with $I$ the identity matrix and $E$ all $1s$. If $a$ has shape $ntimes n$ the eigenvalues of $E$ are $0,,n$, of respective multiplicity $n-1,,1$. Then $$det (E-I)=(-1)^{n-1}(n-1),,det a=-n!(n-1)(-2)^n.$$






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
      $endgroup$
      – Omer
      Dec 23 '18 at 17:42










    • $begingroup$
      @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
      $endgroup$
      – J.G.
      Dec 23 '18 at 17:45











    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',
    autoActivateHeartbeat: false,
    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%2f3050471%2fhow-do-i-solve-this-find-determinant-of-a-matrix%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2












    $begingroup$

    After factoring out $2j$ you will get the matrix
    $$
    begin{bmatrix}1\1\vdots\1end{bmatrix}begin{bmatrix}1 &1&ldots&1end{bmatrix}-I=ee^T-I.
    $$

    Now use the Sylvester determinant formula
    $$
    det(ee^T-I)=(-1)^ndet(I-ee^T)=(-1)^n(1-e^Te)=(-1)^n(1-n).
    $$






    share|cite|improve this answer











    $endgroup$


















      2












      $begingroup$

      After factoring out $2j$ you will get the matrix
      $$
      begin{bmatrix}1\1\vdots\1end{bmatrix}begin{bmatrix}1 &1&ldots&1end{bmatrix}-I=ee^T-I.
      $$

      Now use the Sylvester determinant formula
      $$
      det(ee^T-I)=(-1)^ndet(I-ee^T)=(-1)^n(1-e^Te)=(-1)^n(1-n).
      $$






      share|cite|improve this answer











      $endgroup$
















        2












        2








        2





        $begingroup$

        After factoring out $2j$ you will get the matrix
        $$
        begin{bmatrix}1\1\vdots\1end{bmatrix}begin{bmatrix}1 &1&ldots&1end{bmatrix}-I=ee^T-I.
        $$

        Now use the Sylvester determinant formula
        $$
        det(ee^T-I)=(-1)^ndet(I-ee^T)=(-1)^n(1-e^Te)=(-1)^n(1-n).
        $$






        share|cite|improve this answer











        $endgroup$



        After factoring out $2j$ you will get the matrix
        $$
        begin{bmatrix}1\1\vdots\1end{bmatrix}begin{bmatrix}1 &1&ldots&1end{bmatrix}-I=ee^T-I.
        $$

        Now use the Sylvester determinant formula
        $$
        det(ee^T-I)=(-1)^ndet(I-ee^T)=(-1)^n(1-e^Te)=(-1)^n(1-n).
        $$







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Dec 23 '18 at 17:53

























        answered Dec 23 '18 at 17:46









        A.Γ.A.Γ.

        22.8k32656




        22.8k32656























            1












            $begingroup$

            Taking out the $2j$ factors as suggested leaves $E-I$, with $I$ the identity matrix and $E$ all $1s$. If $a$ has shape $ntimes n$ the eigenvalues of $E$ are $0,,n$, of respective multiplicity $n-1,,1$. Then $$det (E-I)=(-1)^{n-1}(n-1),,det a=-n!(n-1)(-2)^n.$$






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
              $endgroup$
              – Omer
              Dec 23 '18 at 17:42










            • $begingroup$
              @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
              $endgroup$
              – J.G.
              Dec 23 '18 at 17:45
















            1












            $begingroup$

            Taking out the $2j$ factors as suggested leaves $E-I$, with $I$ the identity matrix and $E$ all $1s$. If $a$ has shape $ntimes n$ the eigenvalues of $E$ are $0,,n$, of respective multiplicity $n-1,,1$. Then $$det (E-I)=(-1)^{n-1}(n-1),,det a=-n!(n-1)(-2)^n.$$






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
              $endgroup$
              – Omer
              Dec 23 '18 at 17:42










            • $begingroup$
              @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
              $endgroup$
              – J.G.
              Dec 23 '18 at 17:45














            1












            1








            1





            $begingroup$

            Taking out the $2j$ factors as suggested leaves $E-I$, with $I$ the identity matrix and $E$ all $1s$. If $a$ has shape $ntimes n$ the eigenvalues of $E$ are $0,,n$, of respective multiplicity $n-1,,1$. Then $$det (E-I)=(-1)^{n-1}(n-1),,det a=-n!(n-1)(-2)^n.$$






            share|cite|improve this answer









            $endgroup$



            Taking out the $2j$ factors as suggested leaves $E-I$, with $I$ the identity matrix and $E$ all $1s$. If $a$ has shape $ntimes n$ the eigenvalues of $E$ are $0,,n$, of respective multiplicity $n-1,,1$. Then $$det (E-I)=(-1)^{n-1}(n-1),,det a=-n!(n-1)(-2)^n.$$







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Dec 23 '18 at 17:33









            J.G.J.G.

            29.4k22846




            29.4k22846












            • $begingroup$
              sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
              $endgroup$
              – Omer
              Dec 23 '18 at 17:42










            • $begingroup$
              @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
              $endgroup$
              – J.G.
              Dec 23 '18 at 17:45


















            • $begingroup$
              sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
              $endgroup$
              – Omer
              Dec 23 '18 at 17:42










            • $begingroup$
              @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
              $endgroup$
              – J.G.
              Dec 23 '18 at 17:45
















            $begingroup$
            sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
            $endgroup$
            – Omer
            Dec 23 '18 at 17:42




            $begingroup$
            sorry for keep asking stupid questions, but i still did not understand the last part of det(E-I). Is there a way to show this using gauss elimination
            $endgroup$
            – Omer
            Dec 23 '18 at 17:42












            $begingroup$
            @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
            $endgroup$
            – J.G.
            Dec 23 '18 at 17:45




            $begingroup$
            @Omer Which part is unclear: how I get the eigenvalues' multiplicities, how I get the determinant from there, or the scaling to compute $det a$? If it's the first part, the trick is that $Ev=0$ only places one constraint on an eigenvector, so the eigenspace has dimension $n-1$, while any $lambda=n$ eigenvector is parallel to the all-$1$s vector.
            $endgroup$
            – J.G.
            Dec 23 '18 at 17:45


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3050471%2fhow-do-i-solve-this-find-determinant-of-a-matrix%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Index of /

            Tribalistas

            Listed building