Finding coefficients in polynomials

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











up vote
3
down vote

favorite












Find $p$ and $q$, if $x^3-2x^2+p+q$ is divided by $x^2+x-2$.
I have found $x =-2$ and $x=1$ however when placed into polynomial I am unable to find a value for $p$ and $q$.










share|cite|improve this question









New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • I suspect that you mean $x^3-2x^2+px+q$. Otherwise there is no need for $q$.
    – Dietrich Burde
    1 hour ago











  • Hint: Compute $left(x^2+x-2right)(x-3)$
    – robjohn♦
    9 mins ago















up vote
3
down vote

favorite












Find $p$ and $q$, if $x^3-2x^2+p+q$ is divided by $x^2+x-2$.
I have found $x =-2$ and $x=1$ however when placed into polynomial I am unable to find a value for $p$ and $q$.










share|cite|improve this question









New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • I suspect that you mean $x^3-2x^2+px+q$. Otherwise there is no need for $q$.
    – Dietrich Burde
    1 hour ago











  • Hint: Compute $left(x^2+x-2right)(x-3)$
    – robjohn♦
    9 mins ago













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Find $p$ and $q$, if $x^3-2x^2+p+q$ is divided by $x^2+x-2$.
I have found $x =-2$ and $x=1$ however when placed into polynomial I am unable to find a value for $p$ and $q$.










share|cite|improve this question









New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Find $p$ and $q$, if $x^3-2x^2+p+q$ is divided by $x^2+x-2$.
I have found $x =-2$ and $x=1$ however when placed into polynomial I am unable to find a value for $p$ and $q$.







algebra-precalculus polynomials






share|cite|improve this question









New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited 50 mins ago









greedoid

29.5k93879




29.5k93879






New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









Sherma

191




191




New contributor




Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Sherma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • I suspect that you mean $x^3-2x^2+px+q$. Otherwise there is no need for $q$.
    – Dietrich Burde
    1 hour ago











  • Hint: Compute $left(x^2+x-2right)(x-3)$
    – robjohn♦
    9 mins ago

















  • I suspect that you mean $x^3-2x^2+px+q$. Otherwise there is no need for $q$.
    – Dietrich Burde
    1 hour ago











  • Hint: Compute $left(x^2+x-2right)(x-3)$
    – robjohn♦
    9 mins ago
















I suspect that you mean $x^3-2x^2+px+q$. Otherwise there is no need for $q$.
– Dietrich Burde
1 hour ago





I suspect that you mean $x^3-2x^2+px+q$. Otherwise there is no need for $q$.
– Dietrich Burde
1 hour ago













Hint: Compute $left(x^2+x-2right)(x-3)$
– robjohn♦
9 mins ago





Hint: Compute $left(x^2+x-2right)(x-3)$
– robjohn♦
9 mins ago











4 Answers
4






active

oldest

votes

















up vote
2
down vote













Hint: Multiply out $(x^2+x-2)(x-a)=x^3-2x^2+px+q$ and compare coefficients.



For the polynomial $x^3-2x^2+px+q$ the comparison gives a solution, namely $a=3$, $p=-5$ and $q=6$. For the above polynomial (with typo) there is no solution.






share|cite|improve this answer






















  • Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
    – Sherma
    56 mins ago










  • @Sherma You could just correct the typo in your question, then it works.
    – Dietrich Burde
    43 mins ago

















up vote
2
down vote













Hint: If $x-a$ divide $p(x)$ then $p(a)=0$, so



since $x^2+x-2=(x+2)(x-1)$ divide $p(x)= x^3-2x^2+p+q$ we have $p(-2)=0$ and $p(1)=0$






share|cite|improve this answer





























    up vote
    2
    down vote













    Or you can use Vieta formulas: You find $x_1=-2$ and $x_2=1$ so, since $$x_1+x_2+x_3 = 2implies x_3= 3$$



    so $$p = x_1x_2+x_2x_3+x_3x_1=...;;;rm and;;;q =-x_1x_2x_3 = 6$$






    share|cite|improve this answer



























      up vote
      1
      down vote













      One can also reduce $x^3 - 2 x^2 + p x + q$ modulo $x^2 + x - 2$ and then demand that the resulting polynomial is identical to zero. This then means that all the coefficients of that polynomial are zero, and that yields the solution. Modulo $q(x) = x^2 + x - 2$ we have:



      $$x^2 bmod q(x)= -x + 2$$



      and



      $$x^3 bmod q(x)= left(-x^2 + 2 xright) bmod q(x) = 3 x-2 $$



      Therefore:



      $left(x^3 - 2 x^2 + p x + qright) bmod q(x) = (5+p) x + q-6$



      which implies that $p = -5$ and $q = 6$.






      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: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        noCode: true, onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );






        Sherma is a new contributor. Be nice, and check out our Code of Conduct.









         

        draft saved


        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2933452%2ffinding-coefficients-in-polynomials%23new-answer', 'question_page');

        );

        Post as a guest






























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        2
        down vote













        Hint: Multiply out $(x^2+x-2)(x-a)=x^3-2x^2+px+q$ and compare coefficients.



        For the polynomial $x^3-2x^2+px+q$ the comparison gives a solution, namely $a=3$, $p=-5$ and $q=6$. For the above polynomial (with typo) there is no solution.






        share|cite|improve this answer






















        • Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
          – Sherma
          56 mins ago










        • @Sherma You could just correct the typo in your question, then it works.
          – Dietrich Burde
          43 mins ago














        up vote
        2
        down vote













        Hint: Multiply out $(x^2+x-2)(x-a)=x^3-2x^2+px+q$ and compare coefficients.



        For the polynomial $x^3-2x^2+px+q$ the comparison gives a solution, namely $a=3$, $p=-5$ and $q=6$. For the above polynomial (with typo) there is no solution.






        share|cite|improve this answer






















        • Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
          – Sherma
          56 mins ago










        • @Sherma You could just correct the typo in your question, then it works.
          – Dietrich Burde
          43 mins ago












        up vote
        2
        down vote










        up vote
        2
        down vote









        Hint: Multiply out $(x^2+x-2)(x-a)=x^3-2x^2+px+q$ and compare coefficients.



        For the polynomial $x^3-2x^2+px+q$ the comparison gives a solution, namely $a=3$, $p=-5$ and $q=6$. For the above polynomial (with typo) there is no solution.






        share|cite|improve this answer














        Hint: Multiply out $(x^2+x-2)(x-a)=x^3-2x^2+px+q$ and compare coefficients.



        For the polynomial $x^3-2x^2+px+q$ the comparison gives a solution, namely $a=3$, $p=-5$ and $q=6$. For the above polynomial (with typo) there is no solution.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited 1 hour ago

























        answered 1 hour ago









        Dietrich Burde

        75.3k64185




        75.3k64185











        • Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
          – Sherma
          56 mins ago










        • @Sherma You could just correct the typo in your question, then it works.
          – Dietrich Burde
          43 mins ago
















        • Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
          – Sherma
          56 mins ago










        • @Sherma You could just correct the typo in your question, then it works.
          – Dietrich Burde
          43 mins ago















        Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
        – Sherma
        56 mins ago




        Thanks much "no solution". Maybe teacher had a typo in posting the question. Thanks much
        – Sherma
        56 mins ago












        @Sherma You could just correct the typo in your question, then it works.
        – Dietrich Burde
        43 mins ago




        @Sherma You could just correct the typo in your question, then it works.
        – Dietrich Burde
        43 mins ago










        up vote
        2
        down vote













        Hint: If $x-a$ divide $p(x)$ then $p(a)=0$, so



        since $x^2+x-2=(x+2)(x-1)$ divide $p(x)= x^3-2x^2+p+q$ we have $p(-2)=0$ and $p(1)=0$






        share|cite|improve this answer


























          up vote
          2
          down vote













          Hint: If $x-a$ divide $p(x)$ then $p(a)=0$, so



          since $x^2+x-2=(x+2)(x-1)$ divide $p(x)= x^3-2x^2+p+q$ we have $p(-2)=0$ and $p(1)=0$






          share|cite|improve this answer
























            up vote
            2
            down vote










            up vote
            2
            down vote









            Hint: If $x-a$ divide $p(x)$ then $p(a)=0$, so



            since $x^2+x-2=(x+2)(x-1)$ divide $p(x)= x^3-2x^2+p+q$ we have $p(-2)=0$ and $p(1)=0$






            share|cite|improve this answer














            Hint: If $x-a$ divide $p(x)$ then $p(a)=0$, so



            since $x^2+x-2=(x+2)(x-1)$ divide $p(x)= x^3-2x^2+p+q$ we have $p(-2)=0$ and $p(1)=0$







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited 59 mins ago

























            answered 1 hour ago









            greedoid

            29.5k93879




            29.5k93879




















                up vote
                2
                down vote













                Or you can use Vieta formulas: You find $x_1=-2$ and $x_2=1$ so, since $$x_1+x_2+x_3 = 2implies x_3= 3$$



                so $$p = x_1x_2+x_2x_3+x_3x_1=...;;;rm and;;;q =-x_1x_2x_3 = 6$$






                share|cite|improve this answer
























                  up vote
                  2
                  down vote













                  Or you can use Vieta formulas: You find $x_1=-2$ and $x_2=1$ so, since $$x_1+x_2+x_3 = 2implies x_3= 3$$



                  so $$p = x_1x_2+x_2x_3+x_3x_1=...;;;rm and;;;q =-x_1x_2x_3 = 6$$






                  share|cite|improve this answer






















                    up vote
                    2
                    down vote










                    up vote
                    2
                    down vote









                    Or you can use Vieta formulas: You find $x_1=-2$ and $x_2=1$ so, since $$x_1+x_2+x_3 = 2implies x_3= 3$$



                    so $$p = x_1x_2+x_2x_3+x_3x_1=...;;;rm and;;;q =-x_1x_2x_3 = 6$$






                    share|cite|improve this answer












                    Or you can use Vieta formulas: You find $x_1=-2$ and $x_2=1$ so, since $$x_1+x_2+x_3 = 2implies x_3= 3$$



                    so $$p = x_1x_2+x_2x_3+x_3x_1=...;;;rm and;;;q =-x_1x_2x_3 = 6$$







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered 55 mins ago









                    greedoid

                    29.5k93879




                    29.5k93879




















                        up vote
                        1
                        down vote













                        One can also reduce $x^3 - 2 x^2 + p x + q$ modulo $x^2 + x - 2$ and then demand that the resulting polynomial is identical to zero. This then means that all the coefficients of that polynomial are zero, and that yields the solution. Modulo $q(x) = x^2 + x - 2$ we have:



                        $$x^2 bmod q(x)= -x + 2$$



                        and



                        $$x^3 bmod q(x)= left(-x^2 + 2 xright) bmod q(x) = 3 x-2 $$



                        Therefore:



                        $left(x^3 - 2 x^2 + p x + qright) bmod q(x) = (5+p) x + q-6$



                        which implies that $p = -5$ and $q = 6$.






                        share|cite|improve this answer
























                          up vote
                          1
                          down vote













                          One can also reduce $x^3 - 2 x^2 + p x + q$ modulo $x^2 + x - 2$ and then demand that the resulting polynomial is identical to zero. This then means that all the coefficients of that polynomial are zero, and that yields the solution. Modulo $q(x) = x^2 + x - 2$ we have:



                          $$x^2 bmod q(x)= -x + 2$$



                          and



                          $$x^3 bmod q(x)= left(-x^2 + 2 xright) bmod q(x) = 3 x-2 $$



                          Therefore:



                          $left(x^3 - 2 x^2 + p x + qright) bmod q(x) = (5+p) x + q-6$



                          which implies that $p = -5$ and $q = 6$.






                          share|cite|improve this answer






















                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            One can also reduce $x^3 - 2 x^2 + p x + q$ modulo $x^2 + x - 2$ and then demand that the resulting polynomial is identical to zero. This then means that all the coefficients of that polynomial are zero, and that yields the solution. Modulo $q(x) = x^2 + x - 2$ we have:



                            $$x^2 bmod q(x)= -x + 2$$



                            and



                            $$x^3 bmod q(x)= left(-x^2 + 2 xright) bmod q(x) = 3 x-2 $$



                            Therefore:



                            $left(x^3 - 2 x^2 + p x + qright) bmod q(x) = (5+p) x + q-6$



                            which implies that $p = -5$ and $q = 6$.






                            share|cite|improve this answer












                            One can also reduce $x^3 - 2 x^2 + p x + q$ modulo $x^2 + x - 2$ and then demand that the resulting polynomial is identical to zero. This then means that all the coefficients of that polynomial are zero, and that yields the solution. Modulo $q(x) = x^2 + x - 2$ we have:



                            $$x^2 bmod q(x)= -x + 2$$



                            and



                            $$x^3 bmod q(x)= left(-x^2 + 2 xright) bmod q(x) = 3 x-2 $$



                            Therefore:



                            $left(x^3 - 2 x^2 + p x + qright) bmod q(x) = (5+p) x + q-6$



                            which implies that $p = -5$ and $q = 6$.







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered 35 mins ago









                            Count Iblis

                            8,01621332




                            8,01621332




















                                Sherma is a new contributor. Be nice, and check out our Code of Conduct.









                                 

                                draft saved


                                draft discarded


















                                Sherma is a new contributor. Be nice, and check out our Code of Conduct.












                                Sherma is a new contributor. Be nice, and check out our Code of Conduct.











                                Sherma is a new contributor. Be nice, and check out our Code of Conduct.













                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2933452%2ffinding-coefficients-in-polynomials%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Comments

                                Popular posts from this blog

                                Long meetings (6-7 hours a day): Being “babysat” by supervisor

                                Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                                Confectionery