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
2
down vote

favorite












Question is: integration of $1over 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


















  • 8




    $(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
2
down vote

favorite












Question is: integration of $1over 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


















  • 8




    $(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
2
down vote

favorite









up vote
2
down vote

favorite











Question is: integration of $1over 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: integration of $1over 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













share|cite|improve this question




share|cite|improve this question








edited Aug 11 at 14:20







user582949

















asked Aug 11 at 14:15









Shauna

286




286







  • 8




    $(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












  • 8




    $(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







8




8




$(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










5 Answers
5






active

oldest

votes

















up vote
8
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










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

















up vote
6
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
4
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
    3
    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
    2
    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




















      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






























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      8
      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










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














      up vote
      8
      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










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












      up vote
      8
      down vote










      up vote
      8
      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

      113k665207




      113k665207











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










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
















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










      • @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












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




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










      up vote
      6
      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
      6
      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
      6
      down vote










      up vote
      6
      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
      4
      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
        4
        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
          4
          down vote










          up vote
          4
          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

          119k16101182




          119k16101182




















              up vote
              3
              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
              3
              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
              3
              down vote










              up vote
              3
              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 Aug 12 at 13:59

























              answered Aug 11 at 14:20









              Deepesh Meena

              2,688721




              2,688721











              • -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
              2
              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
                2
                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
                  2
                  down vote










                  up vote
                  2
                  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



























                       

                      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













































































                      Comments

                      Popular posts from this blog

                      What does second last employer means? [closed]

                      List of Gilmore Girls characters

                      One-line joke