FullSimplify a trigonometric expression doesn't work as expected












1












$begingroup$


I know this kind of question is frequent asked, yet each case has its own particularities. I will show my problem.



I define the following:



f[k_] := Binomial[n, k] (Sin[Φ]^2)^k (Cos[Φ]^2)^(n - k);
g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);


After that I want to perform the sum:



FullSimplify[Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}],
Element[n, Integers] && n > 0 && Element[Φ, Reals] && 0 < Φ < Pi/2]


And I got the result:



4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n)


This as much as I can simplify the expression. However, according to book the result of the sum is just 4n



H[n_]=Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}]]//FullSimplify

Table[H[i],{i,1,10}]//FullSimplify
{4, 8, 12, 16, 20, 24, 28, 32, 36, 40}


If I introduce the Assumptions in the following way at the beginning of the notebook:



$Assumptions = n ∈ Integers && n < 100 && 
n > 0 && Φ ∈ Reals && 0 < Φ < Pi/2


The result of the simplification is yet worse.



The problem is that I have to perform some summations similar to this, but this time I don't have previous knowledge of the solution










share|improve this question











$endgroup$

















    1












    $begingroup$


    I know this kind of question is frequent asked, yet each case has its own particularities. I will show my problem.



    I define the following:



    f[k_] := Binomial[n, k] (Sin[Φ]^2)^k (Cos[Φ]^2)^(n - k);
    g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);


    After that I want to perform the sum:



    FullSimplify[Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}],
    Element[n, Integers] && n > 0 && Element[Φ, Reals] && 0 < Φ < Pi/2]


    And I got the result:



    4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
    1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n)


    This as much as I can simplify the expression. However, according to book the result of the sum is just 4n



    H[n_]=Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}]]//FullSimplify

    Table[H[i],{i,1,10}]//FullSimplify
    {4, 8, 12, 16, 20, 24, 28, 32, 36, 40}


    If I introduce the Assumptions in the following way at the beginning of the notebook:



    $Assumptions = n ∈ Integers && n < 100 && 
    n > 0 && Φ ∈ Reals && 0 < Φ < Pi/2


    The result of the simplification is yet worse.



    The problem is that I have to perform some summations similar to this, but this time I don't have previous knowledge of the solution










    share|improve this question











    $endgroup$















      1












      1








      1


      1



      $begingroup$


      I know this kind of question is frequent asked, yet each case has its own particularities. I will show my problem.



      I define the following:



      f[k_] := Binomial[n, k] (Sin[Φ]^2)^k (Cos[Φ]^2)^(n - k);
      g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);


      After that I want to perform the sum:



      FullSimplify[Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}],
      Element[n, Integers] && n > 0 && Element[Φ, Reals] && 0 < Φ < Pi/2]


      And I got the result:



      4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
      1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n)


      This as much as I can simplify the expression. However, according to book the result of the sum is just 4n



      H[n_]=Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}]]//FullSimplify

      Table[H[i],{i,1,10}]//FullSimplify
      {4, 8, 12, 16, 20, 24, 28, 32, 36, 40}


      If I introduce the Assumptions in the following way at the beginning of the notebook:



      $Assumptions = n ∈ Integers && n < 100 && 
      n > 0 && Φ ∈ Reals && 0 < Φ < Pi/2


      The result of the simplification is yet worse.



      The problem is that I have to perform some summations similar to this, but this time I don't have previous knowledge of the solution










      share|improve this question











      $endgroup$




      I know this kind of question is frequent asked, yet each case has its own particularities. I will show my problem.



      I define the following:



      f[k_] := Binomial[n, k] (Sin[Φ]^2)^k (Cos[Φ]^2)^(n - k);
      g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);


      After that I want to perform the sum:



      FullSimplify[Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}],
      Element[n, Integers] && n > 0 && Element[Φ, Reals] && 0 < Φ < Pi/2]


      And I got the result:



      4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
      1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n)


      This as much as I can simplify the expression. However, according to book the result of the sum is just 4n



      H[n_]=Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}]]//FullSimplify

      Table[H[i],{i,1,10}]//FullSimplify
      {4, 8, 12, 16, 20, 24, 28, 32, 36, 40}


      If I introduce the Assumptions in the following way at the beginning of the notebook:



      $Assumptions = n ∈ Integers && n < 100 && 
      n > 0 && Φ ∈ Reals && 0 < Φ < Pi/2


      The result of the simplification is yet worse.



      The problem is that I have to perform some summations similar to this, but this time I don't have previous knowledge of the solution







      simplifying-expressions summation assumptions trigonometry






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 hours ago









      user64494

      3,61411122




      3,61411122










      asked 9 hours ago









      PopeyePopeye

      557




      557






















          2 Answers
          2






          active

          oldest

          votes


















          3












          $begingroup$

          Eliminating the trigonometric terms work in this case:



          expr = 4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
          1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n);

          FullSimplify[expr /. Φ -> ArcCos[q], 0 < q < 1]



          4n






          share|improve this answer









          $endgroup$





















            2












            $begingroup$

            Clear["Global`*"];

            $Assumptions =
            Element[n, Integers] && n > 0 && 0 < Φ < Pi/2;

            f[k_] := Binomial[n, k] (Sin[Φ]^2)^
            k (Cos[Φ]^2)^(n - k);
            g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);

            seq = Table[
            Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify,
            {n, 1, 10}]

            (* {4, 8, 12, 16, 20, 24, 28, 32, 36, 40} *)


            Using FindSequenceFunction,



            H[n_] = FindSequenceFunction[seq, n]

            (* 4 n *)


            Verifying over wider range,



            And @@ Table[
            H[n] == Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify, {n,
            1, 25}]

            (* True *)





            share|improve this answer









            $endgroup$













            • $begingroup$
              Thank, that's very useful answer. That function may be helpful
              $endgroup$
              – Popeye
              6 hours ago














            Your Answer








            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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%2f196933%2ffullsimplify-a-trigonometric-expression-doesnt-work-as-expected%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3












            $begingroup$

            Eliminating the trigonometric terms work in this case:



            expr = 4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
            1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n);

            FullSimplify[expr /. Φ -> ArcCos[q], 0 < q < 1]



            4n






            share|improve this answer









            $endgroup$


















              3












              $begingroup$

              Eliminating the trigonometric terms work in this case:



              expr = 4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
              1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n);

              FullSimplify[expr /. Φ -> ArcCos[q], 0 < q < 1]



              4n






              share|improve this answer









              $endgroup$
















                3












                3








                3





                $begingroup$

                Eliminating the trigonometric terms work in this case:



                expr = 4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
                1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n);

                FullSimplify[expr /. Φ -> ArcCos[q], 0 < q < 1]



                4n






                share|improve this answer









                $endgroup$



                Eliminating the trigonometric terms work in this case:



                expr = 4 n^2 Cos[Φ]^2 HypergeometricPFQ[{-n,1-n/2-1/2 n Cos[2 Φ],1-n/2- 
                1/2 n Cos[2 Φ]},{-n Cos[Φ]^2,-n Cos[Φ]^2},-Cot[Φ]^2] Sin[Φ]^(-2+2 n);

                FullSimplify[expr /. Φ -> ArcCos[q], 0 < q < 1]



                4n







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 6 hours ago









                Chip HurstChip Hurst

                23.8k15995




                23.8k15995























                    2












                    $begingroup$

                    Clear["Global`*"];

                    $Assumptions =
                    Element[n, Integers] && n > 0 && 0 < Φ < Pi/2;

                    f[k_] := Binomial[n, k] (Sin[Φ]^2)^
                    k (Cos[Φ]^2)^(n - k);
                    g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);

                    seq = Table[
                    Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify,
                    {n, 1, 10}]

                    (* {4, 8, 12, 16, 20, 24, 28, 32, 36, 40} *)


                    Using FindSequenceFunction,



                    H[n_] = FindSequenceFunction[seq, n]

                    (* 4 n *)


                    Verifying over wider range,



                    And @@ Table[
                    H[n] == Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify, {n,
                    1, 25}]

                    (* True *)





                    share|improve this answer









                    $endgroup$













                    • $begingroup$
                      Thank, that's very useful answer. That function may be helpful
                      $endgroup$
                      – Popeye
                      6 hours ago


















                    2












                    $begingroup$

                    Clear["Global`*"];

                    $Assumptions =
                    Element[n, Integers] && n > 0 && 0 < Φ < Pi/2;

                    f[k_] := Binomial[n, k] (Sin[Φ]^2)^
                    k (Cos[Φ]^2)^(n - k);
                    g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);

                    seq = Table[
                    Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify,
                    {n, 1, 10}]

                    (* {4, 8, 12, 16, 20, 24, 28, 32, 36, 40} *)


                    Using FindSequenceFunction,



                    H[n_] = FindSequenceFunction[seq, n]

                    (* 4 n *)


                    Verifying over wider range,



                    And @@ Table[
                    H[n] == Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify, {n,
                    1, 25}]

                    (* True *)





                    share|improve this answer









                    $endgroup$













                    • $begingroup$
                      Thank, that's very useful answer. That function may be helpful
                      $endgroup$
                      – Popeye
                      6 hours ago
















                    2












                    2








                    2





                    $begingroup$

                    Clear["Global`*"];

                    $Assumptions =
                    Element[n, Integers] && n > 0 && 0 < Φ < Pi/2;

                    f[k_] := Binomial[n, k] (Sin[Φ]^2)^
                    k (Cos[Φ]^2)^(n - k);
                    g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);

                    seq = Table[
                    Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify,
                    {n, 1, 10}]

                    (* {4, 8, 12, 16, 20, 24, 28, 32, 36, 40} *)


                    Using FindSequenceFunction,



                    H[n_] = FindSequenceFunction[seq, n]

                    (* 4 n *)


                    Verifying over wider range,



                    And @@ Table[
                    H[n] == Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify, {n,
                    1, 25}]

                    (* True *)





                    share|improve this answer









                    $endgroup$



                    Clear["Global`*"];

                    $Assumptions =
                    Element[n, Integers] && n > 0 && 0 < Φ < Pi/2;

                    f[k_] := Binomial[n, k] (Sin[Φ]^2)^
                    k (Cos[Φ]^2)^(n - k);
                    g[k_] := 2 (f[n - k - 1] (k + 1) - f[n - k] k);

                    seq = Table[
                    Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify,
                    {n, 1, 10}]

                    (* {4, 8, 12, 16, 20, 24, 28, 32, 36, 40} *)


                    Using FindSequenceFunction,



                    H[n_] = FindSequenceFunction[seq, n]

                    (* 4 n *)


                    Verifying over wider range,



                    And @@ Table[
                    H[n] == Tan[Φ]^2*Sum[g[k]^2/f[n - k], {k, 0, n}] // Simplify, {n,
                    1, 25}]

                    (* True *)






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 6 hours ago









                    Bob HanlonBob Hanlon

                    61.8k33598




                    61.8k33598












                    • $begingroup$
                      Thank, that's very useful answer. That function may be helpful
                      $endgroup$
                      – Popeye
                      6 hours ago




















                    • $begingroup$
                      Thank, that's very useful answer. That function may be helpful
                      $endgroup$
                      – Popeye
                      6 hours ago


















                    $begingroup$
                    Thank, that's very useful answer. That function may be helpful
                    $endgroup$
                    – Popeye
                    6 hours ago






                    $begingroup$
                    Thank, that's very useful answer. That function may be helpful
                    $endgroup$
                    – Popeye
                    6 hours ago




















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematica Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f196933%2ffullsimplify-a-trigonometric-expression-doesnt-work-as-expected%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Category:香港粉麵

                    List *all* the tuples!

                    Channel [V]