How to know when to complete the square

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











up vote
5
down vote

favorite












Question is:




$$int fracdx x^2+8x+20$$




Why can I not just solve for $A/(x+2) +B/(x+10)$ and integrate it this way?



The answer on symbolab shows I need to complete the square of the denominator first but I don't know hen to do that or when to factor it out.



Any help would be great!










share|cite|improve this question



















  • 9




    $(x+2)(x+10)=x^2+12x+20$, not $x^2+8x+20$. You can indeed solve it by your method, but you will need to use the appropriate factors $x^2+8x+20=(x+4-2i)(x+4+2i)$.
    – user583012
    Aug 11 at 14:18











  • You can use this: en.wikipedia.org/wiki/… after you integrated to get back to a "real looking" form.
    – Zacky
    Aug 11 at 14:34














up vote
5
down vote

favorite












Question is:




$$int fracdx x^2+8x+20$$




Why can I not just solve for $A/(x+2) +B/(x+10)$ and integrate it this way?



The answer on symbolab shows I need to complete the square of the denominator first but I don't know hen to do that or when to factor it out.



Any help would be great!










share|cite|improve this question



















  • 9




    $(x+2)(x+10)=x^2+12x+20$, not $x^2+8x+20$. You can indeed solve it by your method, but you will need to use the appropriate factors $x^2+8x+20=(x+4-2i)(x+4+2i)$.
    – user583012
    Aug 11 at 14:18











  • You can use this: en.wikipedia.org/wiki/… after you integrated to get back to a "real looking" form.
    – Zacky
    Aug 11 at 14:34












up vote
5
down vote

favorite









up vote
5
down vote

favorite











Question is:




$$int fracdx x^2+8x+20$$




Why can I not just solve for $A/(x+2) +B/(x+10)$ and integrate it this way?



The answer on symbolab shows I need to complete the square of the denominator first but I don't know hen to do that or when to factor it out.



Any help would be great!










share|cite|improve this question















Question is:




$$int fracdx x^2+8x+20$$




Why can I not just solve for $A/(x+2) +B/(x+10)$ and integrate it this way?



The answer on symbolab shows I need to complete the square of the denominator first but I don't know hen to do that or when to factor it out.



Any help would be great!







integration






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 2 days ago









Michael Hardy

206k23187466




206k23187466










asked Aug 11 at 14:15









Shauna

406




406







  • 9




    $(x+2)(x+10)=x^2+12x+20$, not $x^2+8x+20$. You can indeed solve it by your method, but you will need to use the appropriate factors $x^2+8x+20=(x+4-2i)(x+4+2i)$.
    – user583012
    Aug 11 at 14:18











  • You can use this: en.wikipedia.org/wiki/… after you integrated to get back to a "real looking" form.
    – Zacky
    Aug 11 at 14:34












  • 9




    $(x+2)(x+10)=x^2+12x+20$, not $x^2+8x+20$. You can indeed solve it by your method, but you will need to use the appropriate factors $x^2+8x+20=(x+4-2i)(x+4+2i)$.
    – user583012
    Aug 11 at 14:18











  • You can use this: en.wikipedia.org/wiki/… after you integrated to get back to a "real looking" form.
    – Zacky
    Aug 11 at 14:34







9




9




$(x+2)(x+10)=x^2+12x+20$, not $x^2+8x+20$. You can indeed solve it by your method, but you will need to use the appropriate factors $x^2+8x+20=(x+4-2i)(x+4+2i)$.
– user583012
Aug 11 at 14:18





$(x+2)(x+10)=x^2+12x+20$, not $x^2+8x+20$. You can indeed solve it by your method, but you will need to use the appropriate factors $x^2+8x+20=(x+4-2i)(x+4+2i)$.
– user583012
Aug 11 at 14:18













You can use this: en.wikipedia.org/wiki/… after you integrated to get back to a "real looking" form.
– Zacky
Aug 11 at 14:34




You can use this: en.wikipedia.org/wiki/… after you integrated to get back to a "real looking" form.
– Zacky
Aug 11 at 14:34










6 Answers
6






active

oldest

votes

















up vote
9
down vote













If the roots are real, you can factor in binomials and convert to simple fractions.



But if they are complex, it may be better to just complete the square in order to stay in the reals.



E.g., it is easier to deal with



$$intfracdxx^2+1$$ than with



$$intfracdx(x-i)(x+i).$$






share|cite|improve this answer




















  • Is it?$$
    – tomasz
    Aug 12 at 15:54






  • 1




    @tomasz: It is.
    – Yves Daoust
    Aug 12 at 16:05

















up vote
8
down vote













Beacuse $(x+2)(x+10)= x^2+12x+20$ and not $x^2+8x+20$






share|cite|improve this answer




















  • Of course!! I can't believe how stupid that question was thanks guys.
    – Shauna
    Aug 11 at 14:19

















up vote
5
down vote













Because it is not true that $x^2+8x+20=(x+2)(x+10)$. Completing the square is a natural choice whenever (as in this case) the quadratic has no real roots.






share|cite|improve this answer





























    up vote
    5
    down vote













    You're factoring wrong, the right factorization is $x^2+8x+20=(x+4-2i)(x+4+2i)$
    I think completing a square is a natural choice if quadratic doesn't have real roots.



    $$x^2+8x+20=x^2+8x+16+4=(x+4)^2+2^2$$



    $$int frac1(x+4)^2+2^2,dx = frac12arctanleft(fracx+42right)+C $$






    share|cite|improve this answer






















    • -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
      – Ant
      Aug 12 at 11:31











    • but OP was doing wrong factorization of the polynomial
      – Deepesh Meena
      Aug 12 at 11:35










    • $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
      – Deepesh Meena
      Aug 12 at 11:39










    • Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
      – Ant
      Aug 12 at 13:22











    • sure I have edited the answer
      – Deepesh Meena
      Aug 12 at 13:59

















    up vote
    4
    down vote













    A more general answer to the question "when should I complete the square?" is:



    • If you are fundamentally concerned with the roots of the quadratic, you should factorise (since factorising gives you the roots for free).

    • If you are more concerned with the curve as a whole, then completing the square can often help, because then you get the transformations of $y=x^2$ that produce the quadratic.





    share|cite|improve this answer



























      up vote
      0
      down vote













      One really quick way to tell whether $ax^2+bx+c$ can be factored using real numbers (where $a,b,c$ are assumed to be real) is by the discriminant $b^2-4ac.$ If the discriminant is negative, you can't factor the polynomial using real numbers. If the discriminant is $0,$ then you have a perfect square and you don't need partial fractions. If the discriminant is positive, then use partial fractions.



      Even if you need imaginary numbers to do the factorization, you can still do a partial fraction decomposition, thus:
      $$
      frac 1 x^2+8x+20 = fraci/4x+4+2i - fraci/4x+4-2i.
      $$
      The reason for avoiding this is not in the arithmetic or the algebra, but rather, complications enter when you do calculus with complex numbers, so that is saved for a later course.



      Sometimes more insight follows from completing the square than from thinking about the discriminant:
      beginalign
      & int fracdxx^2+8x+20 = int fracdx(x+4)^2+4 = frac 1 2 intfracdx/2left(fracx+4 2 right)^2 + 1 \[10pt]
      = & frac 1 2 int fracduu^2+1 = frac 1 2 arctan u + C = cdotscdots
      endalign



      The fact that you get $(cdotscdots)^2+4,$ with $+4$ rather than with a negative number there, is what tells you you can't factor this using real numbers. If there had been a negative number, this could be factored as a difference of two squares.






      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
        );



        );













         

        draft saved


        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2879443%2fhow-to-know-when-to-complete-the-square%23new-answer', 'question_page');

        );

        Post as a guest






























        6 Answers
        6






        active

        oldest

        votes








        6 Answers
        6






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        9
        down vote













        If the roots are real, you can factor in binomials and convert to simple fractions.



        But if they are complex, it may be better to just complete the square in order to stay in the reals.



        E.g., it is easier to deal with



        $$intfracdxx^2+1$$ than with



        $$intfracdx(x-i)(x+i).$$






        share|cite|improve this answer




















        • Is it?$$
          – tomasz
          Aug 12 at 15:54






        • 1




          @tomasz: It is.
          – Yves Daoust
          Aug 12 at 16:05














        up vote
        9
        down vote













        If the roots are real, you can factor in binomials and convert to simple fractions.



        But if they are complex, it may be better to just complete the square in order to stay in the reals.



        E.g., it is easier to deal with



        $$intfracdxx^2+1$$ than with



        $$intfracdx(x-i)(x+i).$$






        share|cite|improve this answer




















        • Is it?$$
          – tomasz
          Aug 12 at 15:54






        • 1




          @tomasz: It is.
          – Yves Daoust
          Aug 12 at 16:05












        up vote
        9
        down vote










        up vote
        9
        down vote









        If the roots are real, you can factor in binomials and convert to simple fractions.



        But if they are complex, it may be better to just complete the square in order to stay in the reals.



        E.g., it is easier to deal with



        $$intfracdxx^2+1$$ than with



        $$intfracdx(x-i)(x+i).$$






        share|cite|improve this answer












        If the roots are real, you can factor in binomials and convert to simple fractions.



        But if they are complex, it may be better to just complete the square in order to stay in the reals.



        E.g., it is easier to deal with



        $$intfracdxx^2+1$$ than with



        $$intfracdx(x-i)(x+i).$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 11 at 14:23









        Yves Daoust

        114k666209




        114k666209











        • Is it?$$
          – tomasz
          Aug 12 at 15:54






        • 1




          @tomasz: It is.
          – Yves Daoust
          Aug 12 at 16:05
















        • Is it?$$
          – tomasz
          Aug 12 at 15:54






        • 1




          @tomasz: It is.
          – Yves Daoust
          Aug 12 at 16:05















        Is it?$$
        – tomasz
        Aug 12 at 15:54




        Is it?$$
        – tomasz
        Aug 12 at 15:54




        1




        1




        @tomasz: It is.
        – Yves Daoust
        Aug 12 at 16:05




        @tomasz: It is.
        – Yves Daoust
        Aug 12 at 16:05










        up vote
        8
        down vote













        Beacuse $(x+2)(x+10)= x^2+12x+20$ and not $x^2+8x+20$






        share|cite|improve this answer




















        • Of course!! I can't believe how stupid that question was thanks guys.
          – Shauna
          Aug 11 at 14:19














        up vote
        8
        down vote













        Beacuse $(x+2)(x+10)= x^2+12x+20$ and not $x^2+8x+20$






        share|cite|improve this answer




















        • Of course!! I can't believe how stupid that question was thanks guys.
          – Shauna
          Aug 11 at 14:19












        up vote
        8
        down vote










        up vote
        8
        down vote









        Beacuse $(x+2)(x+10)= x^2+12x+20$ and not $x^2+8x+20$






        share|cite|improve this answer












        Beacuse $(x+2)(x+10)= x^2+12x+20$ and not $x^2+8x+20$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 11 at 14:17







        user582949


















        • Of course!! I can't believe how stupid that question was thanks guys.
          – Shauna
          Aug 11 at 14:19
















        • Of course!! I can't believe how stupid that question was thanks guys.
          – Shauna
          Aug 11 at 14:19















        Of course!! I can't believe how stupid that question was thanks guys.
        – Shauna
        Aug 11 at 14:19




        Of course!! I can't believe how stupid that question was thanks guys.
        – Shauna
        Aug 11 at 14:19










        up vote
        5
        down vote













        Because it is not true that $x^2+8x+20=(x+2)(x+10)$. Completing the square is a natural choice whenever (as in this case) the quadratic has no real roots.






        share|cite|improve this answer


























          up vote
          5
          down vote













          Because it is not true that $x^2+8x+20=(x+2)(x+10)$. Completing the square is a natural choice whenever (as in this case) the quadratic has no real roots.






          share|cite|improve this answer
























            up vote
            5
            down vote










            up vote
            5
            down vote









            Because it is not true that $x^2+8x+20=(x+2)(x+10)$. Completing the square is a natural choice whenever (as in this case) the quadratic has no real roots.






            share|cite|improve this answer














            Because it is not true that $x^2+8x+20=(x+2)(x+10)$. Completing the square is a natural choice whenever (as in this case) the quadratic has no real roots.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 11 at 14:28

























            answered Aug 11 at 14:19









            José Carlos Santos

            122k16101186




            122k16101186




















                up vote
                5
                down vote













                You're factoring wrong, the right factorization is $x^2+8x+20=(x+4-2i)(x+4+2i)$
                I think completing a square is a natural choice if quadratic doesn't have real roots.



                $$x^2+8x+20=x^2+8x+16+4=(x+4)^2+2^2$$



                $$int frac1(x+4)^2+2^2,dx = frac12arctanleft(fracx+42right)+C $$






                share|cite|improve this answer






















                • -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
                  – Ant
                  Aug 12 at 11:31











                • but OP was doing wrong factorization of the polynomial
                  – Deepesh Meena
                  Aug 12 at 11:35










                • $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
                  – Deepesh Meena
                  Aug 12 at 11:39










                • Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
                  – Ant
                  Aug 12 at 13:22











                • sure I have edited the answer
                  – Deepesh Meena
                  Aug 12 at 13:59














                up vote
                5
                down vote













                You're factoring wrong, the right factorization is $x^2+8x+20=(x+4-2i)(x+4+2i)$
                I think completing a square is a natural choice if quadratic doesn't have real roots.



                $$x^2+8x+20=x^2+8x+16+4=(x+4)^2+2^2$$



                $$int frac1(x+4)^2+2^2,dx = frac12arctanleft(fracx+42right)+C $$






                share|cite|improve this answer






















                • -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
                  – Ant
                  Aug 12 at 11:31











                • but OP was doing wrong factorization of the polynomial
                  – Deepesh Meena
                  Aug 12 at 11:35










                • $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
                  – Deepesh Meena
                  Aug 12 at 11:39










                • Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
                  – Ant
                  Aug 12 at 13:22











                • sure I have edited the answer
                  – Deepesh Meena
                  Aug 12 at 13:59












                up vote
                5
                down vote










                up vote
                5
                down vote









                You're factoring wrong, the right factorization is $x^2+8x+20=(x+4-2i)(x+4+2i)$
                I think completing a square is a natural choice if quadratic doesn't have real roots.



                $$x^2+8x+20=x^2+8x+16+4=(x+4)^2+2^2$$



                $$int frac1(x+4)^2+2^2,dx = frac12arctanleft(fracx+42right)+C $$






                share|cite|improve this answer














                You're factoring wrong, the right factorization is $x^2+8x+20=(x+4-2i)(x+4+2i)$
                I think completing a square is a natural choice if quadratic doesn't have real roots.



                $$x^2+8x+20=x^2+8x+16+4=(x+4)^2+2^2$$



                $$int frac1(x+4)^2+2^2,dx = frac12arctanleft(fracx+42right)+C $$







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited 2 days ago

























                answered Aug 11 at 14:20









                Deepesh Meena

                3,6912825




                3,6912825











                • -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
                  – Ant
                  Aug 12 at 11:31











                • but OP was doing wrong factorization of the polynomial
                  – Deepesh Meena
                  Aug 12 at 11:35










                • $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
                  – Deepesh Meena
                  Aug 12 at 11:39










                • Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
                  – Ant
                  Aug 12 at 13:22











                • sure I have edited the answer
                  – Deepesh Meena
                  Aug 12 at 13:59
















                • -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
                  – Ant
                  Aug 12 at 11:31











                • but OP was doing wrong factorization of the polynomial
                  – Deepesh Meena
                  Aug 12 at 11:35










                • $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
                  – Deepesh Meena
                  Aug 12 at 11:39










                • Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
                  – Ant
                  Aug 12 at 13:22











                • sure I have edited the answer
                  – Deepesh Meena
                  Aug 12 at 13:59















                -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
                – Ant
                Aug 12 at 11:31





                -1 If the question is "Why do I have to complete the square to solve the integral", an answer showing you completing the square and solving the integral is pointless. The OP is specifically asking why the other method doesn't work, he's not interested in how to solve the integral with this method.
                – Ant
                Aug 12 at 11:31













                but OP was doing wrong factorization of the polynomial
                – Deepesh Meena
                Aug 12 at 11:35




                but OP was doing wrong factorization of the polynomial
                – Deepesh Meena
                Aug 12 at 11:35












                $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
                – Deepesh Meena
                Aug 12 at 11:39




                $x^2+8x+20=(x+4-2i)(x+4+2i)$ I think completing a square is a natural choice if quadratic doesn't have real roots
                – Deepesh Meena
                Aug 12 at 11:39












                Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
                – Ant
                Aug 12 at 13:22





                Sure, I agree. But then the answer (that was given) is "You're factoring wrong, if you do it correctly it will work too". But I think that showing how the square completion work is just unhelpful. If you instead add this to your ansswer, show how factorization works, and then make a comparison with the "completing the square method", elaborating on why you think it's easier / more natural, then I would upvote it. But as it is you're just ignoring the OP question and just showing that you can do that integral, which is unhelpful
                – Ant
                Aug 12 at 13:22













                sure I have edited the answer
                – Deepesh Meena
                Aug 12 at 13:59




                sure I have edited the answer
                – Deepesh Meena
                Aug 12 at 13:59










                up vote
                4
                down vote













                A more general answer to the question "when should I complete the square?" is:



                • If you are fundamentally concerned with the roots of the quadratic, you should factorise (since factorising gives you the roots for free).

                • If you are more concerned with the curve as a whole, then completing the square can often help, because then you get the transformations of $y=x^2$ that produce the quadratic.





                share|cite|improve this answer
























                  up vote
                  4
                  down vote













                  A more general answer to the question "when should I complete the square?" is:



                  • If you are fundamentally concerned with the roots of the quadratic, you should factorise (since factorising gives you the roots for free).

                  • If you are more concerned with the curve as a whole, then completing the square can often help, because then you get the transformations of $y=x^2$ that produce the quadratic.





                  share|cite|improve this answer






















                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    A more general answer to the question "when should I complete the square?" is:



                    • If you are fundamentally concerned with the roots of the quadratic, you should factorise (since factorising gives you the roots for free).

                    • If you are more concerned with the curve as a whole, then completing the square can often help, because then you get the transformations of $y=x^2$ that produce the quadratic.





                    share|cite|improve this answer












                    A more general answer to the question "when should I complete the square?" is:



                    • If you are fundamentally concerned with the roots of the quadratic, you should factorise (since factorising gives you the roots for free).

                    • If you are more concerned with the curve as a whole, then completing the square can often help, because then you get the transformations of $y=x^2$ that produce the quadratic.






                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Aug 11 at 19:46









                    Patrick Stevens

                    27.1k52769




                    27.1k52769




















                        up vote
                        0
                        down vote













                        One really quick way to tell whether $ax^2+bx+c$ can be factored using real numbers (where $a,b,c$ are assumed to be real) is by the discriminant $b^2-4ac.$ If the discriminant is negative, you can't factor the polynomial using real numbers. If the discriminant is $0,$ then you have a perfect square and you don't need partial fractions. If the discriminant is positive, then use partial fractions.



                        Even if you need imaginary numbers to do the factorization, you can still do a partial fraction decomposition, thus:
                        $$
                        frac 1 x^2+8x+20 = fraci/4x+4+2i - fraci/4x+4-2i.
                        $$
                        The reason for avoiding this is not in the arithmetic or the algebra, but rather, complications enter when you do calculus with complex numbers, so that is saved for a later course.



                        Sometimes more insight follows from completing the square than from thinking about the discriminant:
                        beginalign
                        & int fracdxx^2+8x+20 = int fracdx(x+4)^2+4 = frac 1 2 intfracdx/2left(fracx+4 2 right)^2 + 1 \[10pt]
                        = & frac 1 2 int fracduu^2+1 = frac 1 2 arctan u + C = cdotscdots
                        endalign



                        The fact that you get $(cdotscdots)^2+4,$ with $+4$ rather than with a negative number there, is what tells you you can't factor this using real numbers. If there had been a negative number, this could be factored as a difference of two squares.






                        share|cite|improve this answer
























                          up vote
                          0
                          down vote













                          One really quick way to tell whether $ax^2+bx+c$ can be factored using real numbers (where $a,b,c$ are assumed to be real) is by the discriminant $b^2-4ac.$ If the discriminant is negative, you can't factor the polynomial using real numbers. If the discriminant is $0,$ then you have a perfect square and you don't need partial fractions. If the discriminant is positive, then use partial fractions.



                          Even if you need imaginary numbers to do the factorization, you can still do a partial fraction decomposition, thus:
                          $$
                          frac 1 x^2+8x+20 = fraci/4x+4+2i - fraci/4x+4-2i.
                          $$
                          The reason for avoiding this is not in the arithmetic or the algebra, but rather, complications enter when you do calculus with complex numbers, so that is saved for a later course.



                          Sometimes more insight follows from completing the square than from thinking about the discriminant:
                          beginalign
                          & int fracdxx^2+8x+20 = int fracdx(x+4)^2+4 = frac 1 2 intfracdx/2left(fracx+4 2 right)^2 + 1 \[10pt]
                          = & frac 1 2 int fracduu^2+1 = frac 1 2 arctan u + C = cdotscdots
                          endalign



                          The fact that you get $(cdotscdots)^2+4,$ with $+4$ rather than with a negative number there, is what tells you you can't factor this using real numbers. If there had been a negative number, this could be factored as a difference of two squares.






                          share|cite|improve this answer






















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            One really quick way to tell whether $ax^2+bx+c$ can be factored using real numbers (where $a,b,c$ are assumed to be real) is by the discriminant $b^2-4ac.$ If the discriminant is negative, you can't factor the polynomial using real numbers. If the discriminant is $0,$ then you have a perfect square and you don't need partial fractions. If the discriminant is positive, then use partial fractions.



                            Even if you need imaginary numbers to do the factorization, you can still do a partial fraction decomposition, thus:
                            $$
                            frac 1 x^2+8x+20 = fraci/4x+4+2i - fraci/4x+4-2i.
                            $$
                            The reason for avoiding this is not in the arithmetic or the algebra, but rather, complications enter when you do calculus with complex numbers, so that is saved for a later course.



                            Sometimes more insight follows from completing the square than from thinking about the discriminant:
                            beginalign
                            & int fracdxx^2+8x+20 = int fracdx(x+4)^2+4 = frac 1 2 intfracdx/2left(fracx+4 2 right)^2 + 1 \[10pt]
                            = & frac 1 2 int fracduu^2+1 = frac 1 2 arctan u + C = cdotscdots
                            endalign



                            The fact that you get $(cdotscdots)^2+4,$ with $+4$ rather than with a negative number there, is what tells you you can't factor this using real numbers. If there had been a negative number, this could be factored as a difference of two squares.






                            share|cite|improve this answer












                            One really quick way to tell whether $ax^2+bx+c$ can be factored using real numbers (where $a,b,c$ are assumed to be real) is by the discriminant $b^2-4ac.$ If the discriminant is negative, you can't factor the polynomial using real numbers. If the discriminant is $0,$ then you have a perfect square and you don't need partial fractions. If the discriminant is positive, then use partial fractions.



                            Even if you need imaginary numbers to do the factorization, you can still do a partial fraction decomposition, thus:
                            $$
                            frac 1 x^2+8x+20 = fraci/4x+4+2i - fraci/4x+4-2i.
                            $$
                            The reason for avoiding this is not in the arithmetic or the algebra, but rather, complications enter when you do calculus with complex numbers, so that is saved for a later course.



                            Sometimes more insight follows from completing the square than from thinking about the discriminant:
                            beginalign
                            & int fracdxx^2+8x+20 = int fracdx(x+4)^2+4 = frac 1 2 intfracdx/2left(fracx+4 2 right)^2 + 1 \[10pt]
                            = & frac 1 2 int fracduu^2+1 = frac 1 2 arctan u + C = cdotscdots
                            endalign



                            The fact that you get $(cdotscdots)^2+4,$ with $+4$ rather than with a negative number there, is what tells you you can't factor this using real numbers. If there had been a negative number, this could be factored as a difference of two squares.







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered 2 days ago









                            Michael Hardy

                            206k23187466




                            206k23187466



























                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2879443%2fhow-to-know-when-to-complete-the-square%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Popular posts from this blog

                                How to check contact read email or not when send email to Individual?

                                Bahrain

                                Postfix configuration issue with fips on centos 7; mailgun relay