Remainder of the polynomial: What is wrong with this approach?












0












$begingroup$



Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.




$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$



When $x^2=-1$,



$$
P(x)=-5+x+2x+1+1 = 3x-3
$$



Exactly, why the method above, does not work for the following question?




Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.




$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$



$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$



However, if I factor $P(x)$ by $x$,



$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$



and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)



Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
    $endgroup$
    – Jyrki Lahtonen
    Dec 30 '18 at 10:00


















0












$begingroup$



Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.




$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$



When $x^2=-1$,



$$
P(x)=-5+x+2x+1+1 = 3x-3
$$



Exactly, why the method above, does not work for the following question?




Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.




$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$



$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$



However, if I factor $P(x)$ by $x$,



$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$



and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)



Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
    $endgroup$
    – Jyrki Lahtonen
    Dec 30 '18 at 10:00
















0












0








0





$begingroup$



Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.




$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$



When $x^2=-1$,



$$
P(x)=-5+x+2x+1+1 = 3x-3
$$



Exactly, why the method above, does not work for the following question?




Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.




$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$



$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$



However, if I factor $P(x)$ by $x$,



$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$



and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)



Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)










share|cite|improve this question











$endgroup$





Find the remainder when $P(x)=5x^6 + x^5 - 2x^3 - x^2 + 1$ is divided
by $x^2+1$.




$$
P(x)=(x^2+1)cdot Q(x)+R(x)
$$



When $x^2=-1$,



$$
P(x)=-5+x+2x+1+1 = 3x-3
$$



Exactly, why the method above, does not work for the following question?




Find the remainder when $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x$ is divided
by $x^3-x$.




$$
P(x)=(x^3-x)cdot Q(x)+R(x)=x(x+1)(x-1)cdot Q(x) + R(x)
$$



$P(1)=5$, but $P(-1)=-5$, and $P(0)=0$



However, if I factor $P(x)$ by $x$,



$$
P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)
$$



and consider $P(1)$ and $P(-1)$ without the factored $x$, then I get $5x$ in both cases. (The correct answer.)



Question: I can solve the question by slightly different methods where there is no confusion or ambiguity involved. I just like to know the above method does not work with this problem. (And by “exactly why” I mean to ask, how am I supposed to foresee that the above method should not be applied directly.)







polynomials






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 30 '18 at 9:40







blackened

















asked Dec 30 '18 at 9:21









blackenedblackened

400313




400313








  • 1




    $begingroup$
    You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
    $endgroup$
    – Jyrki Lahtonen
    Dec 30 '18 at 10:00
















  • 1




    $begingroup$
    You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
    $endgroup$
    – Jyrki Lahtonen
    Dec 30 '18 at 10:00










1




1




$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00






$begingroup$
You got $R(1)=P(1)=5$, $R(-1)=P(-1)=-5$, $R(0)=P(0)=0$. Aren't these all compatible with $R(x)=5x$?? In other words, I think the problem was in the step when you tried to extract $R(x)$ from those three data points. The Chinese remainder theorem is usually called upon at that point.
$endgroup$
– Jyrki Lahtonen
Dec 30 '18 at 10:00












2 Answers
2






active

oldest

votes


















1












$begingroup$

I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).



r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    The first method does work:



    When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.



    When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.






    share|cite|improve this answer









    $endgroup$













      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%2f3056641%2fremainder-of-the-polynomial-what-is-wrong-with-this-approach%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









      1












      $begingroup$

      I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).



      r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x






      share|cite|improve this answer









      $endgroup$


















        1












        $begingroup$

        I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).



        r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x






        share|cite|improve this answer









        $endgroup$
















          1












          1








          1





          $begingroup$

          I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).



          r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x






          share|cite|improve this answer









          $endgroup$



          I think the problem is, with P(1), P(-1) and P(0), you are actually getting the value of r(1), r(-1) and r(0), instead of r(x).



          r(x) is linear in this case, so you are able to get the correct answer by factoring P(x) by x







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 30 '18 at 9:38









          Mengqi ChenMengqi Chen

          165




          165























              1












              $begingroup$

              The first method does work:



              When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.



              When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                The first method does work:



                When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.



                When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  The first method does work:



                  When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.



                  When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.






                  share|cite|improve this answer









                  $endgroup$



                  The first method does work:



                  When $x^3=x$, we have $P(x)=x^{81}+x^{49}+x^{25}+x^9 + x= x+x+x+x+x = 5x$.



                  When $x^3=x$, we have $P(x)=x(x^{80}+x^{48}+x^{24}+x^8 + 1)= x(x^2+x^2+x^2+x^2+1) = x(4x^2+1)=4x^3+x=5x$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 30 '18 at 9:53









                  lhflhf

                  165k10171396




                  165k10171396






























                      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%2f3056641%2fremainder-of-the-polynomial-what-is-wrong-with-this-approach%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

                      Bressuire

                      Cabo Verde

                      Gyllenstierna