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

Trumpet valves, lengths, and pitch

How would this chord from "Rocket Man" be analyzed?

My admission is revoked after accepting the admission offer

Israeli soda type drink

How to open locks without disable device?

What is the best way to deal with NPC-NPC combat?

How to get even lighting when using flash for group photos near wall?

Is this homebrew racial feat, Stonehide, balanced?

Need of separate security plugins for both root and subfolder sites Wordpress?

std::is_constructible on incomplete types

Error: Syntax error. Missing ')' for CASE Statement

How to use @AuraEnabled base class method in Lightning Component?

Check if a string is entirely made of the same substring

What to do with someone that cheated their way through university and a PhD program?

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

Can I criticise the more senior developers around me for not writing clean code?

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

How long after the last departure shall the airport stay open for an emergency return?

Retract an already submitted recommendation letter (written for an undergrad student)

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

What is the ongoing value of the Kanban board to the developers as opposed to management

All ASCII characters with a given bit count

Split coins into combinations of different denominations

Suing a Police Officer Instead of the Police Department



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









      user64494

      3,61411122




      3,61411122










      asked 10 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
              7 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 7 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
                      7 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
                      7 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 8 hours ago









                    Bob HanlonBob Hanlon

                    61.8k33598




                    61.8k33598











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

















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
















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





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

                    Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

                    Fil:Tokke komm.svg

                    Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?