Maclaurin series for $f(x)=ln(1+tanx)$

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











up vote
0
down vote

favorite












How to find the Maclaurin series for $f(x)=ln(1+tan x)$. I tried it by successively differentiating it up to four times but it is very time consuming.







share|cite|improve this question





















  • It is not a "nice" expansion as you can see by just checking WolframAlpha (link)
    – Benjamin Dickman
    Jul 14 at 16:58














up vote
0
down vote

favorite












How to find the Maclaurin series for $f(x)=ln(1+tan x)$. I tried it by successively differentiating it up to four times but it is very time consuming.







share|cite|improve this question





















  • It is not a "nice" expansion as you can see by just checking WolframAlpha (link)
    – Benjamin Dickman
    Jul 14 at 16:58












up vote
0
down vote

favorite









up vote
0
down vote

favorite











How to find the Maclaurin series for $f(x)=ln(1+tan x)$. I tried it by successively differentiating it up to four times but it is very time consuming.







share|cite|improve this question













How to find the Maclaurin series for $f(x)=ln(1+tan x)$. I tried it by successively differentiating it up to four times but it is very time consuming.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 14 at 17:30









Bernard

110k635103




110k635103









asked Jul 14 at 16:51









jiren

284




284











  • It is not a "nice" expansion as you can see by just checking WolframAlpha (link)
    – Benjamin Dickman
    Jul 14 at 16:58
















  • It is not a "nice" expansion as you can see by just checking WolframAlpha (link)
    – Benjamin Dickman
    Jul 14 at 16:58















It is not a "nice" expansion as you can see by just checking WolframAlpha (link)
– Benjamin Dickman
Jul 14 at 16:58




It is not a "nice" expansion as you can see by just checking WolframAlpha (link)
– Benjamin Dickman
Jul 14 at 16:58










2 Answers
2






active

oldest

votes

















up vote
3
down vote













According to OEIS, the series can be written as $$log (1+tan x) = sum_n=0^infty fraca_nn! x^n,$$ where $$a_n = sum_m=0^(n-1)/2 sum_j=0^2m binomj+n-2m-1n-2m-1 frac(j+n-2m)!n-2m , 2^2m-j (-1)^n-m+j-1 leftn atop j+n-2mright$$ where $a atop b$ is a Stirling number of the second kind. Numeric calculation with Mathematica supports this; e.g.,



S[u_] := (Range[u + 1] - 1)! CoefficientList[Normal[Series[Log[1 + Tan[x]],
x, 0, u]], x] - Table[Sum[Binomial[j + n - 2 m - 1, n - 2 m - 1]
(j + n - 2 m)! 2^(2 m - j) (-1)^(n - m + j - 1) StirlingS2[n,
j + n - 2 m]/(n - 2 m), m, 0, (n - 1)/2, j, 0, 2 m], n, 0, u]


Then S[50] for example gives a list of zeros, indicating equality.






share|cite|improve this answer





















  • May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
    – Claude Leibovici
    Jul 15 at 8:49










  • @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
    – heropup
    Jul 15 at 19:19










  • @ClaudeLeibovici Possibly related.
    – Simply Beautiful Art
    Aug 7 at 19:05

















up vote
3
down vote













For this kind of work, I think that composition of series is a simple way
$$tan(x)=x+fracx^33+frac2 x^515+frac17 x^7315+Oleft(x^9right)$$
Let $t$ to be the above development and use
$$log(1+t)=t-fract^22+fract^33-fract^44+cdots$$ and use the binomial expansion (stopping when you find powers of $x$ greater than $7$ to get
$$ln(1+tan(x))=x-fracx^22+frac2 x^33-frac7 x^412+frac2 x^53-frac31
x^645+frac244 x^7315+Oleft(x^8right)$$
Notice that using this process, we could continue for ever; for example
$$sin (log (tan (x)+1))=x-fracx^22+fracx^32-fracx^43+frac13 x^560-frac23
x^6360-frac271 x^72520+Oleft(x^8right)$$
$$tan (sin (log (tan (x)+1)))=x-fracx^22+frac5 x^36-frac5 x^46+frac11 x^510-frac229
x^6180+frac323 x^7210+Oleft(x^8right)$$ and so on.






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%2f2851771%2fmaclaurin-series-for-fx-ln1-tanx%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    According to OEIS, the series can be written as $$log (1+tan x) = sum_n=0^infty fraca_nn! x^n,$$ where $$a_n = sum_m=0^(n-1)/2 sum_j=0^2m binomj+n-2m-1n-2m-1 frac(j+n-2m)!n-2m , 2^2m-j (-1)^n-m+j-1 leftn atop j+n-2mright$$ where $a atop b$ is a Stirling number of the second kind. Numeric calculation with Mathematica supports this; e.g.,



    S[u_] := (Range[u + 1] - 1)! CoefficientList[Normal[Series[Log[1 + Tan[x]],
    x, 0, u]], x] - Table[Sum[Binomial[j + n - 2 m - 1, n - 2 m - 1]
    (j + n - 2 m)! 2^(2 m - j) (-1)^(n - m + j - 1) StirlingS2[n,
    j + n - 2 m]/(n - 2 m), m, 0, (n - 1)/2, j, 0, 2 m], n, 0, u]


    Then S[50] for example gives a list of zeros, indicating equality.






    share|cite|improve this answer





















    • May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
      – Claude Leibovici
      Jul 15 at 8:49










    • @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
      – heropup
      Jul 15 at 19:19










    • @ClaudeLeibovici Possibly related.
      – Simply Beautiful Art
      Aug 7 at 19:05














    up vote
    3
    down vote













    According to OEIS, the series can be written as $$log (1+tan x) = sum_n=0^infty fraca_nn! x^n,$$ where $$a_n = sum_m=0^(n-1)/2 sum_j=0^2m binomj+n-2m-1n-2m-1 frac(j+n-2m)!n-2m , 2^2m-j (-1)^n-m+j-1 leftn atop j+n-2mright$$ where $a atop b$ is a Stirling number of the second kind. Numeric calculation with Mathematica supports this; e.g.,



    S[u_] := (Range[u + 1] - 1)! CoefficientList[Normal[Series[Log[1 + Tan[x]],
    x, 0, u]], x] - Table[Sum[Binomial[j + n - 2 m - 1, n - 2 m - 1]
    (j + n - 2 m)! 2^(2 m - j) (-1)^(n - m + j - 1) StirlingS2[n,
    j + n - 2 m]/(n - 2 m), m, 0, (n - 1)/2, j, 0, 2 m], n, 0, u]


    Then S[50] for example gives a list of zeros, indicating equality.






    share|cite|improve this answer





















    • May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
      – Claude Leibovici
      Jul 15 at 8:49










    • @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
      – heropup
      Jul 15 at 19:19










    • @ClaudeLeibovici Possibly related.
      – Simply Beautiful Art
      Aug 7 at 19:05












    up vote
    3
    down vote










    up vote
    3
    down vote









    According to OEIS, the series can be written as $$log (1+tan x) = sum_n=0^infty fraca_nn! x^n,$$ where $$a_n = sum_m=0^(n-1)/2 sum_j=0^2m binomj+n-2m-1n-2m-1 frac(j+n-2m)!n-2m , 2^2m-j (-1)^n-m+j-1 leftn atop j+n-2mright$$ where $a atop b$ is a Stirling number of the second kind. Numeric calculation with Mathematica supports this; e.g.,



    S[u_] := (Range[u + 1] - 1)! CoefficientList[Normal[Series[Log[1 + Tan[x]],
    x, 0, u]], x] - Table[Sum[Binomial[j + n - 2 m - 1, n - 2 m - 1]
    (j + n - 2 m)! 2^(2 m - j) (-1)^(n - m + j - 1) StirlingS2[n,
    j + n - 2 m]/(n - 2 m), m, 0, (n - 1)/2, j, 0, 2 m], n, 0, u]


    Then S[50] for example gives a list of zeros, indicating equality.






    share|cite|improve this answer













    According to OEIS, the series can be written as $$log (1+tan x) = sum_n=0^infty fraca_nn! x^n,$$ where $$a_n = sum_m=0^(n-1)/2 sum_j=0^2m binomj+n-2m-1n-2m-1 frac(j+n-2m)!n-2m , 2^2m-j (-1)^n-m+j-1 leftn atop j+n-2mright$$ where $a atop b$ is a Stirling number of the second kind. Numeric calculation with Mathematica supports this; e.g.,



    S[u_] := (Range[u + 1] - 1)! CoefficientList[Normal[Series[Log[1 + Tan[x]],
    x, 0, u]], x] - Table[Sum[Binomial[j + n - 2 m - 1, n - 2 m - 1]
    (j + n - 2 m)! 2^(2 m - j) (-1)^(n - m + j - 1) StirlingS2[n,
    j + n - 2 m]/(n - 2 m), m, 0, (n - 1)/2, j, 0, 2 m], n, 0, u]


    Then S[50] for example gives a list of zeros, indicating equality.







    share|cite|improve this answer













    share|cite|improve this answer



    share|cite|improve this answer











    answered Jul 15 at 8:08









    heropup

    59.8k65895




    59.8k65895











    • May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
      – Claude Leibovici
      Jul 15 at 8:49










    • @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
      – heropup
      Jul 15 at 19:19










    • @ClaudeLeibovici Possibly related.
      – Simply Beautiful Art
      Aug 7 at 19:05
















    • May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
      – Claude Leibovici
      Jul 15 at 8:49










    • @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
      – heropup
      Jul 15 at 19:19










    • @ClaudeLeibovici Possibly related.
      – Simply Beautiful Art
      Aug 7 at 19:05















    May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
    – Claude Leibovici
    Jul 15 at 8:49




    May I ask ? How did you find it ? What is amazing is the asymptotics given in the EOIS page. Cheers.
    – Claude Leibovici
    Jul 15 at 8:49












    @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
    – heropup
    Jul 15 at 19:19




    @ClaudeLeibovici I used Mathematica to numerically compute $a_n$ for $n le 10$ using Series and then used OEIS to search for the sequence, which brought me to that page and the rest of the information. If you read the linked preprint by Kruchinin, it tells you a lot about how the formula was obtained. As for the asymptotics, I have no clue.
    – heropup
    Jul 15 at 19:19












    @ClaudeLeibovici Possibly related.
    – Simply Beautiful Art
    Aug 7 at 19:05




    @ClaudeLeibovici Possibly related.
    – Simply Beautiful Art
    Aug 7 at 19:05










    up vote
    3
    down vote













    For this kind of work, I think that composition of series is a simple way
    $$tan(x)=x+fracx^33+frac2 x^515+frac17 x^7315+Oleft(x^9right)$$
    Let $t$ to be the above development and use
    $$log(1+t)=t-fract^22+fract^33-fract^44+cdots$$ and use the binomial expansion (stopping when you find powers of $x$ greater than $7$ to get
    $$ln(1+tan(x))=x-fracx^22+frac2 x^33-frac7 x^412+frac2 x^53-frac31
    x^645+frac244 x^7315+Oleft(x^8right)$$
    Notice that using this process, we could continue for ever; for example
    $$sin (log (tan (x)+1))=x-fracx^22+fracx^32-fracx^43+frac13 x^560-frac23
    x^6360-frac271 x^72520+Oleft(x^8right)$$
    $$tan (sin (log (tan (x)+1)))=x-fracx^22+frac5 x^36-frac5 x^46+frac11 x^510-frac229
    x^6180+frac323 x^7210+Oleft(x^8right)$$ and so on.






    share|cite|improve this answer



























      up vote
      3
      down vote













      For this kind of work, I think that composition of series is a simple way
      $$tan(x)=x+fracx^33+frac2 x^515+frac17 x^7315+Oleft(x^9right)$$
      Let $t$ to be the above development and use
      $$log(1+t)=t-fract^22+fract^33-fract^44+cdots$$ and use the binomial expansion (stopping when you find powers of $x$ greater than $7$ to get
      $$ln(1+tan(x))=x-fracx^22+frac2 x^33-frac7 x^412+frac2 x^53-frac31
      x^645+frac244 x^7315+Oleft(x^8right)$$
      Notice that using this process, we could continue for ever; for example
      $$sin (log (tan (x)+1))=x-fracx^22+fracx^32-fracx^43+frac13 x^560-frac23
      x^6360-frac271 x^72520+Oleft(x^8right)$$
      $$tan (sin (log (tan (x)+1)))=x-fracx^22+frac5 x^36-frac5 x^46+frac11 x^510-frac229
      x^6180+frac323 x^7210+Oleft(x^8right)$$ and so on.






      share|cite|improve this answer

























        up vote
        3
        down vote










        up vote
        3
        down vote









        For this kind of work, I think that composition of series is a simple way
        $$tan(x)=x+fracx^33+frac2 x^515+frac17 x^7315+Oleft(x^9right)$$
        Let $t$ to be the above development and use
        $$log(1+t)=t-fract^22+fract^33-fract^44+cdots$$ and use the binomial expansion (stopping when you find powers of $x$ greater than $7$ to get
        $$ln(1+tan(x))=x-fracx^22+frac2 x^33-frac7 x^412+frac2 x^53-frac31
        x^645+frac244 x^7315+Oleft(x^8right)$$
        Notice that using this process, we could continue for ever; for example
        $$sin (log (tan (x)+1))=x-fracx^22+fracx^32-fracx^43+frac13 x^560-frac23
        x^6360-frac271 x^72520+Oleft(x^8right)$$
        $$tan (sin (log (tan (x)+1)))=x-fracx^22+frac5 x^36-frac5 x^46+frac11 x^510-frac229
        x^6180+frac323 x^7210+Oleft(x^8right)$$ and so on.






        share|cite|improve this answer















        For this kind of work, I think that composition of series is a simple way
        $$tan(x)=x+fracx^33+frac2 x^515+frac17 x^7315+Oleft(x^9right)$$
        Let $t$ to be the above development and use
        $$log(1+t)=t-fract^22+fract^33-fract^44+cdots$$ and use the binomial expansion (stopping when you find powers of $x$ greater than $7$ to get
        $$ln(1+tan(x))=x-fracx^22+frac2 x^33-frac7 x^412+frac2 x^53-frac31
        x^645+frac244 x^7315+Oleft(x^8right)$$
        Notice that using this process, we could continue for ever; for example
        $$sin (log (tan (x)+1))=x-fracx^22+fracx^32-fracx^43+frac13 x^560-frac23
        x^6360-frac271 x^72520+Oleft(x^8right)$$
        $$tan (sin (log (tan (x)+1)))=x-fracx^22+frac5 x^36-frac5 x^46+frac11 x^510-frac229
        x^6180+frac323 x^7210+Oleft(x^8right)$$ and so on.







        share|cite|improve this answer















        share|cite|improve this answer



        share|cite|improve this answer








        edited Jul 16 at 3:13


























        answered Jul 15 at 6:39









        Claude Leibovici

        112k1055126




        112k1055126






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2851771%2fmaclaurin-series-for-fx-ln1-tanx%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Relationship between determinant of matrix and determinant of adjoint?

            Color the edges and diagonals of a regular polygon