How can I get the exact answer of the maximum of this function?

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











up vote
4
down vote

favorite












I am trying to find the maximum of a fuction: $ f(x)=sqrtx^2+9-sqrtx^2-sqrt3 x+1 $.



I tried



 Maximize[Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3]*x + 1], x]


and I got




[Sqrt](9 +
Root[-3 + #1^2 &,
243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
71 #1 #2^5 + 35 #2^6 &, 2, 2]^2) - [Sqrt](1 -
Sqrt[3] Root[-3 + #1^2 &,
243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
71 #1 #2^5 + 35 #2^6 &, 2, 2] +
Root[-3 + #1^2 &,
243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
71 #1 #2^5 + 35 #2^6 &, 2, 2]^2), x ->
Root[-3 + #1^2 &,
243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
71 #1 #2^5 + 35 #2^6 &, 2, 2]




The exact answer is $sqrt7$.



How can I get the exact answer of the maximum of this function?










share|improve this question



























    up vote
    4
    down vote

    favorite












    I am trying to find the maximum of a fuction: $ f(x)=sqrtx^2+9-sqrtx^2-sqrt3 x+1 $.



    I tried



     Maximize[Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3]*x + 1], x]


    and I got




    [Sqrt](9 +
    Root[-3 + #1^2 &,
    243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
    71 #1 #2^5 + 35 #2^6 &, 2, 2]^2) - [Sqrt](1 -
    Sqrt[3] Root[-3 + #1^2 &,
    243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
    71 #1 #2^5 + 35 #2^6 &, 2, 2] +
    Root[-3 + #1^2 &,
    243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
    71 #1 #2^5 + 35 #2^6 &, 2, 2]^2), x ->
    Root[-3 + #1^2 &,
    243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
    71 #1 #2^5 + 35 #2^6 &, 2, 2]




    The exact answer is $sqrt7$.



    How can I get the exact answer of the maximum of this function?










    share|improve this question

























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I am trying to find the maximum of a fuction: $ f(x)=sqrtx^2+9-sqrtx^2-sqrt3 x+1 $.



      I tried



       Maximize[Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3]*x + 1], x]


      and I got




      [Sqrt](9 +
      Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2]^2) - [Sqrt](1 -
      Sqrt[3] Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2] +
      Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2]^2), x ->
      Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2]




      The exact answer is $sqrt7$.



      How can I get the exact answer of the maximum of this function?










      share|improve this question















      I am trying to find the maximum of a fuction: $ f(x)=sqrtx^2+9-sqrtx^2-sqrt3 x+1 $.



      I tried



       Maximize[Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3]*x + 1], x]


      and I got




      [Sqrt](9 +
      Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2]^2) - [Sqrt](1 -
      Sqrt[3] Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2] +
      Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2]^2), x ->
      Root[-3 + #1^2 &,
      243 - 567 #1 #2 + 1557 #2^2 - 702 #1 #2^3 + 485 #2^4 -
      71 #1 #2^5 + 35 #2^6 &, 2, 2]




      The exact answer is $sqrt7$.



      How can I get the exact answer of the maximum of this function?







      calculus-and-analysis mathematical-optimization






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday









      Αλέξανδρος Ζεγγ

      2,424725




      2,424725










      asked yesterday









      minhthien_2016

      469310




      469310




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          7
          down vote



          accepted










          First set the function definition



          Clear[f]
          f[x_] := Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3] x + 1]



          Method I



          The conventional method, by finding the stationary point first:



          Solve[f'[x] == 0, x][[1]]
          f[x] /. %
          (f''[x] /. %%) < 0



          x -> (3 Sqrt[3])/5
          Sqrt[7]
          True




          Method II



          By using ToRadicals to transform Root:



          Maximize[f[x], x] // ToRadicals



          Sqrt[7], x -> (3 Sqrt[3])/5






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



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183280%2fhow-can-i-get-the-exact-answer-of-the-maximum-of-this-function%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            7
            down vote



            accepted










            First set the function definition



            Clear[f]
            f[x_] := Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3] x + 1]



            Method I



            The conventional method, by finding the stationary point first:



            Solve[f'[x] == 0, x][[1]]
            f[x] /. %
            (f''[x] /. %%) < 0



            x -> (3 Sqrt[3])/5
            Sqrt[7]
            True




            Method II



            By using ToRadicals to transform Root:



            Maximize[f[x], x] // ToRadicals



            Sqrt[7], x -> (3 Sqrt[3])/5






            share|improve this answer


























              up vote
              7
              down vote



              accepted










              First set the function definition



              Clear[f]
              f[x_] := Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3] x + 1]



              Method I



              The conventional method, by finding the stationary point first:



              Solve[f'[x] == 0, x][[1]]
              f[x] /. %
              (f''[x] /. %%) < 0



              x -> (3 Sqrt[3])/5
              Sqrt[7]
              True




              Method II



              By using ToRadicals to transform Root:



              Maximize[f[x], x] // ToRadicals



              Sqrt[7], x -> (3 Sqrt[3])/5






              share|improve this answer
























                up vote
                7
                down vote



                accepted







                up vote
                7
                down vote



                accepted






                First set the function definition



                Clear[f]
                f[x_] := Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3] x + 1]



                Method I



                The conventional method, by finding the stationary point first:



                Solve[f'[x] == 0, x][[1]]
                f[x] /. %
                (f''[x] /. %%) < 0



                x -> (3 Sqrt[3])/5
                Sqrt[7]
                True




                Method II



                By using ToRadicals to transform Root:



                Maximize[f[x], x] // ToRadicals



                Sqrt[7], x -> (3 Sqrt[3])/5






                share|improve this answer














                First set the function definition



                Clear[f]
                f[x_] := Sqrt[x^2 + 9] - Sqrt[x^2 - Sqrt[3] x + 1]



                Method I



                The conventional method, by finding the stationary point first:



                Solve[f'[x] == 0, x][[1]]
                f[x] /. %
                (f''[x] /. %%) < 0



                x -> (3 Sqrt[3])/5
                Sqrt[7]
                True




                Method II



                By using ToRadicals to transform Root:



                Maximize[f[x], x] // ToRadicals



                Sqrt[7], x -> (3 Sqrt[3])/5







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered yesterday









                Αλέξανδρος Ζεγγ

                2,424725




                2,424725



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183280%2fhow-can-i-get-the-exact-answer-of-the-maximum-of-this-function%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