FullSimplify a trigonometric expression doesn't work as expected Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Simplifying a trigonometric expressionWhy FullSimplify doesn't work here?Why doesn't FullSimplify work properly on this?Prevent FullSimplify from converting trigonometric expressions to exponentialGetting long complex-valued integrals when simpler real-valued expressions existIntegrate wrong for absolute value of trig functionSimplify trigonometric expressionFullSimplify doesn't work in one caseSimple case for FullSimplify doesn't workSimplifying symbolic integration with trigonometric functions

Why does the Cisco show run command not show the full version, while the show version command does?

Split coins into combinations of different denominations

Determining the ideals of a quotient ring

How to translate "red flag" into Spanish?

All ASCII characters with a given bit count

Is Diceware more secure than a long passphrase?

Map material from china not allowed to leave the country

What is a 'Key' in computer science?

Suing a Police Officer Instead of the Police Department

Dynamic Return Type

Why did Israel vote against lifting the American embargo on Cuba?

Is it acceptable to use working hours to read general interest books?

Why is this method for solving linear equations systems using determinants works?

Raising a bilingual kid. When should we introduce the majority language?

Israeli soda type drink

What is this word supposed to be?

Is updating Emacs and installing Emacs the same thing?

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

c++ diamond problem - How to call base method only once

My admission is revoked after accepting the admission offer

Implementing 3DES algorithm in Java: is my code secure?

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Co-worker works way more than he should

The art of proof summarizing. Are there known rules, or is it a purely common sense matter?



FullSimplify a trigonometric expression doesn't work as expected



Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Simplifying a trigonometric expressionWhy FullSimplify doesn't work here?Why doesn't FullSimplify work properly on this?Prevent FullSimplify from converting trigonometric expressions to exponentialGetting long complex-valued integrals when simpler real-valued expressions existIntegrate wrong for absolute value of trig functionSimplify trigonometric expressionFullSimplify doesn't work in one caseSimple case for FullSimplify doesn't workSimplifying symbolic integration with trigonometric functions










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 3 hours ago









      user64494

      3,61411122




      3,61411122










      asked 5 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
              2 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 2 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
                      2 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
                      2 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 3 hours ago









                    Bob HanlonBob Hanlon

                    61.8k33598




                    61.8k33598











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

















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
















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





                    $begingroup$
                    Thank, that's very useful answer. That function may be helpful
                    $endgroup$
                    – Popeye
                    2 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

                    Saint-André (Pyrenaeus Orientalis) Nexus interni Nexus externi | Tabula navigationisOpenStreetMapGeoNames66168De hoc commune apud cassini.ehess.frHuius communis pagina interretialisAmplifica

                    Constantinus Vanšenkin Nexus externi | Tabula navigationisБольшая российская энциклопедияAmplifica

                    Montigny (Ligerula) Nexus interni Nexus externi | Tabula navigationisGeoNames45214Amplifica