Linear Algebra, Least squares

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











up vote
1
down vote

favorite












I'm going through the Linear Algebra course on Brilliant.org, but can't figure out how I should know that $frac173$ is the best value for $c$ to fill in here.



My two questions are:



1) Why do we want to minimize the distance of



$$3c^2-34c+101$$



2) How can you derive where this distance is minimised?







share|cite|improve this question

























    up vote
    1
    down vote

    favorite












    I'm going through the Linear Algebra course on Brilliant.org, but can't figure out how I should know that $frac173$ is the best value for $c$ to fill in here.



    My two questions are:



    1) Why do we want to minimize the distance of



    $$3c^2-34c+101$$



    2) How can you derive where this distance is minimised?







    share|cite|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm going through the Linear Algebra course on Brilliant.org, but can't figure out how I should know that $frac173$ is the best value for $c$ to fill in here.



      My two questions are:



      1) Why do we want to minimize the distance of



      $$3c^2-34c+101$$



      2) How can you derive where this distance is minimised?







      share|cite|improve this question













      I'm going through the Linear Algebra course on Brilliant.org, but can't figure out how I should know that $frac173$ is the best value for $c$ to fill in here.



      My two questions are:



      1) Why do we want to minimize the distance of



      $$3c^2-34c+101$$



      2) How can you derive where this distance is minimised?









      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Jul 15 at 11:10









      mechanodroid

      22.3k52041




      22.3k52041









      asked Jul 15 at 10:46









      Daphne

      112




      112




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You wish to minimize the distance of $cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3$ to the vector $pmatrix5 \ 0 \ 0$.



          We have



          $$left|cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3 - pmatrix5 \ 0 \ 0right|^2 = left|pmatrixc-7 \ c-4 \ c-6right|^2 = (c-7)^2+(c-4)^2+(c-6)^2 = 3c^2-34c+101$$



          To minimize the polynomial $3c^2-34c+101$, write it as



          $$3c^2-34c+101 = 3underbraceleft(c - frac173right)^2_ge 0 + frac143$$



          so the minimum is attained for $c = frac173$ and it is equal to $frac143$.






          share|cite|improve this answer





















          • Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
            – Daphne
            Jul 15 at 11:22










          • @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
            – mechanodroid
            Jul 15 at 11:39

















          up vote
          0
          down vote













          Find the derivative of the polynomial given. The root is the number 17/3...






          share|cite|improve this answer





















          • So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
            – Daphne
            Jul 15 at 11:04










          • Can you give some intuition as in why we take the derivative in this case?
            – Daphne
            Jul 15 at 11:04










          • 6c-34.please note that minimum of the poly is the root of the last you mentioned
            – dmtri
            Jul 15 at 11:06










          • You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
            – dmtri
            Jul 15 at 11:09










          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2852388%2flinear-algebra-least-squares%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          You wish to minimize the distance of $cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3$ to the vector $pmatrix5 \ 0 \ 0$.



          We have



          $$left|cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3 - pmatrix5 \ 0 \ 0right|^2 = left|pmatrixc-7 \ c-4 \ c-6right|^2 = (c-7)^2+(c-4)^2+(c-6)^2 = 3c^2-34c+101$$



          To minimize the polynomial $3c^2-34c+101$, write it as



          $$3c^2-34c+101 = 3underbraceleft(c - frac173right)^2_ge 0 + frac143$$



          so the minimum is attained for $c = frac173$ and it is equal to $frac143$.






          share|cite|improve this answer





















          • Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
            – Daphne
            Jul 15 at 11:22










          • @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
            – mechanodroid
            Jul 15 at 11:39














          up vote
          1
          down vote



          accepted










          You wish to minimize the distance of $cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3$ to the vector $pmatrix5 \ 0 \ 0$.



          We have



          $$left|cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3 - pmatrix5 \ 0 \ 0right|^2 = left|pmatrixc-7 \ c-4 \ c-6right|^2 = (c-7)^2+(c-4)^2+(c-6)^2 = 3c^2-34c+101$$



          To minimize the polynomial $3c^2-34c+101$, write it as



          $$3c^2-34c+101 = 3underbraceleft(c - frac173right)^2_ge 0 + frac143$$



          so the minimum is attained for $c = frac173$ and it is equal to $frac143$.






          share|cite|improve this answer





















          • Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
            – Daphne
            Jul 15 at 11:22










          • @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
            – mechanodroid
            Jul 15 at 11:39












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You wish to minimize the distance of $cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3$ to the vector $pmatrix5 \ 0 \ 0$.



          We have



          $$left|cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3 - pmatrix5 \ 0 \ 0right|^2 = left|pmatrixc-7 \ c-4 \ c-6right|^2 = (c-7)^2+(c-4)^2+(c-6)^2 = 3c^2-34c+101$$



          To minimize the polynomial $3c^2-34c+101$, write it as



          $$3c^2-34c+101 = 3underbraceleft(c - frac173right)^2_ge 0 + frac143$$



          so the minimum is attained for $c = frac173$ and it is equal to $frac143$.






          share|cite|improve this answer













          You wish to minimize the distance of $cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3$ to the vector $pmatrix5 \ 0 \ 0$.



          We have



          $$left|cpmatrix1 \ 1 \ 1 -2 pmatrix1 \ 2 \ 3 - pmatrix5 \ 0 \ 0right|^2 = left|pmatrixc-7 \ c-4 \ c-6right|^2 = (c-7)^2+(c-4)^2+(c-6)^2 = 3c^2-34c+101$$



          To minimize the polynomial $3c^2-34c+101$, write it as



          $$3c^2-34c+101 = 3underbraceleft(c - frac173right)^2_ge 0 + frac143$$



          so the minimum is attained for $c = frac173$ and it is equal to $frac143$.







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 15 at 11:07









          mechanodroid

          22.3k52041




          22.3k52041











          • Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
            – Daphne
            Jul 15 at 11:22










          • @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
            – mechanodroid
            Jul 15 at 11:39
















          • Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
            – Daphne
            Jul 15 at 11:22










          • @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
            – mechanodroid
            Jul 15 at 11:39















          Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
          – Daphne
          Jul 15 at 11:22




          Thanks! So then this is the closest we can get to a real answer right? The "best" solution we can derive given there is no real possible solution
          – Daphne
          Jul 15 at 11:22












          @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
          – mechanodroid
          Jul 15 at 11:39




          @Daphne Yes, the closest solution of the form $pmatrixc \ -2$ is $pmatrixfrac173 \ -2$.
          – mechanodroid
          Jul 15 at 11:39










          up vote
          0
          down vote













          Find the derivative of the polynomial given. The root is the number 17/3...






          share|cite|improve this answer





















          • So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
            – Daphne
            Jul 15 at 11:04










          • Can you give some intuition as in why we take the derivative in this case?
            – Daphne
            Jul 15 at 11:04










          • 6c-34.please note that minimum of the poly is the root of the last you mentioned
            – dmtri
            Jul 15 at 11:06










          • You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
            – dmtri
            Jul 15 at 11:09














          up vote
          0
          down vote













          Find the derivative of the polynomial given. The root is the number 17/3...






          share|cite|improve this answer





















          • So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
            – Daphne
            Jul 15 at 11:04










          • Can you give some intuition as in why we take the derivative in this case?
            – Daphne
            Jul 15 at 11:04










          • 6c-34.please note that minimum of the poly is the root of the last you mentioned
            – dmtri
            Jul 15 at 11:06










          • You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
            – dmtri
            Jul 15 at 11:09












          up vote
          0
          down vote










          up vote
          0
          down vote









          Find the derivative of the polynomial given. The root is the number 17/3...






          share|cite|improve this answer













          Find the derivative of the polynomial given. The root is the number 17/3...







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 15 at 10:52









          dmtri

          347213




          347213











          • So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
            – Daphne
            Jul 15 at 11:04










          • Can you give some intuition as in why we take the derivative in this case?
            – Daphne
            Jul 15 at 11:04










          • 6c-34.please note that minimum of the poly is the root of the last you mentioned
            – dmtri
            Jul 15 at 11:06










          • You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
            – dmtri
            Jul 15 at 11:09
















          • So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
            – Daphne
            Jul 15 at 11:04










          • Can you give some intuition as in why we take the derivative in this case?
            – Daphne
            Jul 15 at 11:04










          • 6c-34.please note that minimum of the poly is the root of the last you mentioned
            – dmtri
            Jul 15 at 11:06










          • You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
            – dmtri
            Jul 15 at 11:09















          So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
          – Daphne
          Jul 15 at 11:04




          So you mean, first remove the ^2 from the polynomial so you are left with 3c - 34c + 101. Then take the derivative so you get 17/3 correct?
          – Daphne
          Jul 15 at 11:04












          Can you give some intuition as in why we take the derivative in this case?
          – Daphne
          Jul 15 at 11:04




          Can you give some intuition as in why we take the derivative in this case?
          – Daphne
          Jul 15 at 11:04












          6c-34.please note that minimum of the poly is the root of the last you mentioned
          – dmtri
          Jul 15 at 11:06




          6c-34.please note that minimum of the poly is the root of the last you mentioned
          – dmtri
          Jul 15 at 11:06












          You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
          – dmtri
          Jul 15 at 11:09




          You need to find the minimum of the function f=3c^2-34+101. One way to do this is with the help of derivative...
          – dmtri
          Jul 15 at 11:09












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2852388%2flinear-algebra-least-squares%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What is the equation of a 3D cone with generalised tilt?

          Relationship between determinant of matrix and determinant of adjoint?

          Color the edges and diagonals of a regular polygon