The sum of the series $ cos(x)-cos(2x)+cos(3x)-…$












5












$begingroup$


In the book "The spirit of mathematical analysis" of Martin Ohm, the author gives an example of differentiating an infinite series and obtaining an absurd result (page 2)



From the series



$frac{x}{2}=sin(x)-frac{1}{2}sin2x+frac{1}{3}sin(3x)-...$ (1)



If one differentiate terms by terms, one obtains this series



$frac{1}{2}=cos(x)-cos(2x)+cos(3x)-...$ (2)



The author said the last series is divergent, therefore this result is nonsensical.



My question is how does one obtain the first series? What transformation do you perform to obtain $frac{x}{2}$ on the left hand side.



My second question how can we prove that the second series is divergent?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Do you know hay Fourier series are.?
    $endgroup$
    – Julián Aguirre
    Feb 2 at 20:22










  • $begingroup$
    Your second question is easy enough: $cos(nx)$ does not tend to $0$ as $n to infty$, which means the series fails the divergence test.
    $endgroup$
    – Theo Bendit
    Feb 2 at 20:24










  • $begingroup$
    I haven't learnt Fourier series yet. But I am eager to learn, sir.
    $endgroup$
    – James Warthington
    Feb 2 at 20:24










  • $begingroup$
    @Theo Bendit Which test should you perform?
    $endgroup$
    – James Warthington
    Feb 2 at 20:25










  • $begingroup$
    @James Warthington, it is just a basic theorem about series. If $sum a_n$ converges then $a_nto 0$.
    $endgroup$
    – Mark
    Feb 2 at 20:26
















5












$begingroup$


In the book "The spirit of mathematical analysis" of Martin Ohm, the author gives an example of differentiating an infinite series and obtaining an absurd result (page 2)



From the series



$frac{x}{2}=sin(x)-frac{1}{2}sin2x+frac{1}{3}sin(3x)-...$ (1)



If one differentiate terms by terms, one obtains this series



$frac{1}{2}=cos(x)-cos(2x)+cos(3x)-...$ (2)



The author said the last series is divergent, therefore this result is nonsensical.



My question is how does one obtain the first series? What transformation do you perform to obtain $frac{x}{2}$ on the left hand side.



My second question how can we prove that the second series is divergent?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Do you know hay Fourier series are.?
    $endgroup$
    – Julián Aguirre
    Feb 2 at 20:22










  • $begingroup$
    Your second question is easy enough: $cos(nx)$ does not tend to $0$ as $n to infty$, which means the series fails the divergence test.
    $endgroup$
    – Theo Bendit
    Feb 2 at 20:24










  • $begingroup$
    I haven't learnt Fourier series yet. But I am eager to learn, sir.
    $endgroup$
    – James Warthington
    Feb 2 at 20:24










  • $begingroup$
    @Theo Bendit Which test should you perform?
    $endgroup$
    – James Warthington
    Feb 2 at 20:25










  • $begingroup$
    @James Warthington, it is just a basic theorem about series. If $sum a_n$ converges then $a_nto 0$.
    $endgroup$
    – Mark
    Feb 2 at 20:26














5












5








5





$begingroup$


In the book "The spirit of mathematical analysis" of Martin Ohm, the author gives an example of differentiating an infinite series and obtaining an absurd result (page 2)



From the series



$frac{x}{2}=sin(x)-frac{1}{2}sin2x+frac{1}{3}sin(3x)-...$ (1)



If one differentiate terms by terms, one obtains this series



$frac{1}{2}=cos(x)-cos(2x)+cos(3x)-...$ (2)



The author said the last series is divergent, therefore this result is nonsensical.



My question is how does one obtain the first series? What transformation do you perform to obtain $frac{x}{2}$ on the left hand side.



My second question how can we prove that the second series is divergent?










share|cite|improve this question











$endgroup$




In the book "The spirit of mathematical analysis" of Martin Ohm, the author gives an example of differentiating an infinite series and obtaining an absurd result (page 2)



From the series



$frac{x}{2}=sin(x)-frac{1}{2}sin2x+frac{1}{3}sin(3x)-...$ (1)



If one differentiate terms by terms, one obtains this series



$frac{1}{2}=cos(x)-cos(2x)+cos(3x)-...$ (2)



The author said the last series is divergent, therefore this result is nonsensical.



My question is how does one obtain the first series? What transformation do you perform to obtain $frac{x}{2}$ on the left hand side.



My second question how can we prove that the second series is divergent?







calculus






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Feb 3 at 1:39







James Warthington

















asked Feb 2 at 20:17









James WarthingtonJames Warthington

48929




48929








  • 1




    $begingroup$
    Do you know hay Fourier series are.?
    $endgroup$
    – Julián Aguirre
    Feb 2 at 20:22










  • $begingroup$
    Your second question is easy enough: $cos(nx)$ does not tend to $0$ as $n to infty$, which means the series fails the divergence test.
    $endgroup$
    – Theo Bendit
    Feb 2 at 20:24










  • $begingroup$
    I haven't learnt Fourier series yet. But I am eager to learn, sir.
    $endgroup$
    – James Warthington
    Feb 2 at 20:24










  • $begingroup$
    @Theo Bendit Which test should you perform?
    $endgroup$
    – James Warthington
    Feb 2 at 20:25










  • $begingroup$
    @James Warthington, it is just a basic theorem about series. If $sum a_n$ converges then $a_nto 0$.
    $endgroup$
    – Mark
    Feb 2 at 20:26














  • 1




    $begingroup$
    Do you know hay Fourier series are.?
    $endgroup$
    – Julián Aguirre
    Feb 2 at 20:22










  • $begingroup$
    Your second question is easy enough: $cos(nx)$ does not tend to $0$ as $n to infty$, which means the series fails the divergence test.
    $endgroup$
    – Theo Bendit
    Feb 2 at 20:24










  • $begingroup$
    I haven't learnt Fourier series yet. But I am eager to learn, sir.
    $endgroup$
    – James Warthington
    Feb 2 at 20:24










  • $begingroup$
    @Theo Bendit Which test should you perform?
    $endgroup$
    – James Warthington
    Feb 2 at 20:25










  • $begingroup$
    @James Warthington, it is just a basic theorem about series. If $sum a_n$ converges then $a_nto 0$.
    $endgroup$
    – Mark
    Feb 2 at 20:26








1




1




$begingroup$
Do you know hay Fourier series are.?
$endgroup$
– Julián Aguirre
Feb 2 at 20:22




$begingroup$
Do you know hay Fourier series are.?
$endgroup$
– Julián Aguirre
Feb 2 at 20:22












$begingroup$
Your second question is easy enough: $cos(nx)$ does not tend to $0$ as $n to infty$, which means the series fails the divergence test.
$endgroup$
– Theo Bendit
Feb 2 at 20:24




$begingroup$
Your second question is easy enough: $cos(nx)$ does not tend to $0$ as $n to infty$, which means the series fails the divergence test.
$endgroup$
– Theo Bendit
Feb 2 at 20:24












$begingroup$
I haven't learnt Fourier series yet. But I am eager to learn, sir.
$endgroup$
– James Warthington
Feb 2 at 20:24




$begingroup$
I haven't learnt Fourier series yet. But I am eager to learn, sir.
$endgroup$
– James Warthington
Feb 2 at 20:24












$begingroup$
@Theo Bendit Which test should you perform?
$endgroup$
– James Warthington
Feb 2 at 20:25




$begingroup$
@Theo Bendit Which test should you perform?
$endgroup$
– James Warthington
Feb 2 at 20:25












$begingroup$
@James Warthington, it is just a basic theorem about series. If $sum a_n$ converges then $a_nto 0$.
$endgroup$
– Mark
Feb 2 at 20:26




$begingroup$
@James Warthington, it is just a basic theorem about series. If $sum a_n$ converges then $a_nto 0$.
$endgroup$
– Mark
Feb 2 at 20:26










4 Answers
4






active

oldest

votes


















4












$begingroup$

It might to better to first study the well known convergent series



$$ln cos left(frac{x}{2}right)=-ln 2 + sum_{k=1}^infty frac{ (-1)^{k-1} cos(kx)}{k}tag{1}$$



You can then naively differentiate this to give the divergent series



$$frac{1}{2}tanleft(frac{x}{2}right)=sum_{k=1}^infty (-1)^{k-1}sin(kx)$$



You can examine the nature of the divergences through looking at the partial sums. They appear to be correlated plus and minus going divergences. If you want to claim that this function can be integrated with rigour (which I've read somewhere is possible [possibly in a pamphlet by Hardy on Fourier Series] ) I think you must prove that these "correlated" plus and minus going divergences somehow cancel each other out in the integration process.



At $x=pi/2$ you have the series.



$$frac{1}{2}=1-1+1-1+...$$



A proof for series (1) is here and you should be able to prove your series in a similar fashion by changing to the exponential form.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
    $endgroup$
    – James Warthington
    Feb 2 at 21:46





















4












$begingroup$

The first series is nothing more than the Fourier series of the $2pi$-periodic odd function



$$
y=frac{x}{2},quadpi<x<pi.
$$



Indeed the coefficients of the expansion $frac{x}{2}=sumlimits_{n=1}^infty b_nsin nx$ are:
$$
b_n=frac{1}{pi}int_{-pi}^pifrac{x}{2}sin nx;dx=frac{1}{pi}left[-frac{x}{2n}cos nxright]_{-pi}^pi=-frac{1}{npi}frac{pi(-1)^n+pi(-1)^n}{2}=frac{(-1)^{n+1}}{n}.
$$



The answer to the second question is most easily obtained through exponential representation of cosine and well-known expression for the partial sums of geometrical series:
$$begin {array}{}
S_N(x)&=sum_{n=1}^N (-1)^{n+1}cos nx\
&=sum_{n=1}^N(-1)^{n+1}frac {e^{inx}+e^{-inx}}{2}\
&=frac12left [frac {e^{ix}-(-1)^{N+2}e^{(N+1)ix}}{1+e^{ix}}+
frac {e^{-ix}-(-1)^{N+2}e^{-(N+1)ix}}{1+e^{-ix}}right]\
&=frac12left [frac {e^{ix/2}-(-1)^{N+2}e^{(N+1/2)ix}}{e^{-ix/2}+e^{ix/2}}+
frac {e^{-ix/2}-(-1)^{N+2}e^{-(N+1/2)ix}}{e^{ix/2}+e^{-ix/2}}right]\
&=frac12left [1-(-1)^{N}frac{cos(N+1/2)x}{cos (x/2)}right].
end {array}
$$



From this one can conclude that $S_N (x) $ does not converge for any value of $x $.






share|cite|improve this answer











$endgroup$





















    2












    $begingroup$

    For the first series, consider that you look for the imaginary part of
    $$sum_{n=1}^infty (-1)^{n-1} frac {e^{i n x}} n=sum_{n=1}^infty (-1)^{n-1} frac {left( e^{i x}right)^n} n=log left(1+e^{i x}right)$$So
    $$sum_{n=1}^infty (-1)^{n-1} frac {sin(n x)} n=frac{1}{2} i left(log left(1+e^{-i x}right)-log left(1+e^{i x}right)right)=frac{1}{2} left(arg left(1+e^{i x}right)- arg left(1+e^{-i x}right)right)=frac x 2$$ provided $-pi leq x leq pi$ .






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
      $endgroup$
      – James Warthington
      Feb 27 at 1:30



















    1












    $begingroup$

    The first equation's right-hand side is $Imln(1+exp ix)$. The second equation's right-hand side can only have convergent partial sums if $lim_{ntoinfty}cos nx=0$, but this clearly fails for $x/pi$ rational. A famous but less obvious result is that other real $x$ also do not obtain such a limit.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      I have never seen $ln(1+expix)$ before, what is it?
      $endgroup$
      – James Warthington
      Feb 2 at 20:46












    • $begingroup$
      @JamesWharthington You may want to learn about complex exponentials and logarithms.
      $endgroup$
      – J.G.
      Feb 2 at 20:48












    Your Answer








    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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
    },
    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%2f3097750%2fthe-sum-of-the-series-cosx-cos2x-cos3x%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4












    $begingroup$

    It might to better to first study the well known convergent series



    $$ln cos left(frac{x}{2}right)=-ln 2 + sum_{k=1}^infty frac{ (-1)^{k-1} cos(kx)}{k}tag{1}$$



    You can then naively differentiate this to give the divergent series



    $$frac{1}{2}tanleft(frac{x}{2}right)=sum_{k=1}^infty (-1)^{k-1}sin(kx)$$



    You can examine the nature of the divergences through looking at the partial sums. They appear to be correlated plus and minus going divergences. If you want to claim that this function can be integrated with rigour (which I've read somewhere is possible [possibly in a pamphlet by Hardy on Fourier Series] ) I think you must prove that these "correlated" plus and minus going divergences somehow cancel each other out in the integration process.



    At $x=pi/2$ you have the series.



    $$frac{1}{2}=1-1+1-1+...$$



    A proof for series (1) is here and you should be able to prove your series in a similar fashion by changing to the exponential form.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
      $endgroup$
      – James Warthington
      Feb 2 at 21:46


















    4












    $begingroup$

    It might to better to first study the well known convergent series



    $$ln cos left(frac{x}{2}right)=-ln 2 + sum_{k=1}^infty frac{ (-1)^{k-1} cos(kx)}{k}tag{1}$$



    You can then naively differentiate this to give the divergent series



    $$frac{1}{2}tanleft(frac{x}{2}right)=sum_{k=1}^infty (-1)^{k-1}sin(kx)$$



    You can examine the nature of the divergences through looking at the partial sums. They appear to be correlated plus and minus going divergences. If you want to claim that this function can be integrated with rigour (which I've read somewhere is possible [possibly in a pamphlet by Hardy on Fourier Series] ) I think you must prove that these "correlated" plus and minus going divergences somehow cancel each other out in the integration process.



    At $x=pi/2$ you have the series.



    $$frac{1}{2}=1-1+1-1+...$$



    A proof for series (1) is here and you should be able to prove your series in a similar fashion by changing to the exponential form.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
      $endgroup$
      – James Warthington
      Feb 2 at 21:46
















    4












    4








    4





    $begingroup$

    It might to better to first study the well known convergent series



    $$ln cos left(frac{x}{2}right)=-ln 2 + sum_{k=1}^infty frac{ (-1)^{k-1} cos(kx)}{k}tag{1}$$



    You can then naively differentiate this to give the divergent series



    $$frac{1}{2}tanleft(frac{x}{2}right)=sum_{k=1}^infty (-1)^{k-1}sin(kx)$$



    You can examine the nature of the divergences through looking at the partial sums. They appear to be correlated plus and minus going divergences. If you want to claim that this function can be integrated with rigour (which I've read somewhere is possible [possibly in a pamphlet by Hardy on Fourier Series] ) I think you must prove that these "correlated" plus and minus going divergences somehow cancel each other out in the integration process.



    At $x=pi/2$ you have the series.



    $$frac{1}{2}=1-1+1-1+...$$



    A proof for series (1) is here and you should be able to prove your series in a similar fashion by changing to the exponential form.






    share|cite|improve this answer











    $endgroup$



    It might to better to first study the well known convergent series



    $$ln cos left(frac{x}{2}right)=-ln 2 + sum_{k=1}^infty frac{ (-1)^{k-1} cos(kx)}{k}tag{1}$$



    You can then naively differentiate this to give the divergent series



    $$frac{1}{2}tanleft(frac{x}{2}right)=sum_{k=1}^infty (-1)^{k-1}sin(kx)$$



    You can examine the nature of the divergences through looking at the partial sums. They appear to be correlated plus and minus going divergences. If you want to claim that this function can be integrated with rigour (which I've read somewhere is possible [possibly in a pamphlet by Hardy on Fourier Series] ) I think you must prove that these "correlated" plus and minus going divergences somehow cancel each other out in the integration process.



    At $x=pi/2$ you have the series.



    $$frac{1}{2}=1-1+1-1+...$$



    A proof for series (1) is here and you should be able to prove your series in a similar fashion by changing to the exponential form.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Feb 2 at 21:41

























    answered Feb 2 at 21:35









    James ArathoonJames Arathoon

    1,608423




    1,608423












    • $begingroup$
      I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
      $endgroup$
      – James Warthington
      Feb 2 at 21:46




















    • $begingroup$
      I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
      $endgroup$
      – James Warthington
      Feb 2 at 21:46


















    $begingroup$
    I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
    $endgroup$
    – James Warthington
    Feb 2 at 21:46






    $begingroup$
    I have found these series in chapter 3 of Fourier's Analytical Theory of Heat:books.google.com/…
    $endgroup$
    – James Warthington
    Feb 2 at 21:46













    4












    $begingroup$

    The first series is nothing more than the Fourier series of the $2pi$-periodic odd function



    $$
    y=frac{x}{2},quadpi<x<pi.
    $$



    Indeed the coefficients of the expansion $frac{x}{2}=sumlimits_{n=1}^infty b_nsin nx$ are:
    $$
    b_n=frac{1}{pi}int_{-pi}^pifrac{x}{2}sin nx;dx=frac{1}{pi}left[-frac{x}{2n}cos nxright]_{-pi}^pi=-frac{1}{npi}frac{pi(-1)^n+pi(-1)^n}{2}=frac{(-1)^{n+1}}{n}.
    $$



    The answer to the second question is most easily obtained through exponential representation of cosine and well-known expression for the partial sums of geometrical series:
    $$begin {array}{}
    S_N(x)&=sum_{n=1}^N (-1)^{n+1}cos nx\
    &=sum_{n=1}^N(-1)^{n+1}frac {e^{inx}+e^{-inx}}{2}\
    &=frac12left [frac {e^{ix}-(-1)^{N+2}e^{(N+1)ix}}{1+e^{ix}}+
    frac {e^{-ix}-(-1)^{N+2}e^{-(N+1)ix}}{1+e^{-ix}}right]\
    &=frac12left [frac {e^{ix/2}-(-1)^{N+2}e^{(N+1/2)ix}}{e^{-ix/2}+e^{ix/2}}+
    frac {e^{-ix/2}-(-1)^{N+2}e^{-(N+1/2)ix}}{e^{ix/2}+e^{-ix/2}}right]\
    &=frac12left [1-(-1)^{N}frac{cos(N+1/2)x}{cos (x/2)}right].
    end {array}
    $$



    From this one can conclude that $S_N (x) $ does not converge for any value of $x $.






    share|cite|improve this answer











    $endgroup$


















      4












      $begingroup$

      The first series is nothing more than the Fourier series of the $2pi$-periodic odd function



      $$
      y=frac{x}{2},quadpi<x<pi.
      $$



      Indeed the coefficients of the expansion $frac{x}{2}=sumlimits_{n=1}^infty b_nsin nx$ are:
      $$
      b_n=frac{1}{pi}int_{-pi}^pifrac{x}{2}sin nx;dx=frac{1}{pi}left[-frac{x}{2n}cos nxright]_{-pi}^pi=-frac{1}{npi}frac{pi(-1)^n+pi(-1)^n}{2}=frac{(-1)^{n+1}}{n}.
      $$



      The answer to the second question is most easily obtained through exponential representation of cosine and well-known expression for the partial sums of geometrical series:
      $$begin {array}{}
      S_N(x)&=sum_{n=1}^N (-1)^{n+1}cos nx\
      &=sum_{n=1}^N(-1)^{n+1}frac {e^{inx}+e^{-inx}}{2}\
      &=frac12left [frac {e^{ix}-(-1)^{N+2}e^{(N+1)ix}}{1+e^{ix}}+
      frac {e^{-ix}-(-1)^{N+2}e^{-(N+1)ix}}{1+e^{-ix}}right]\
      &=frac12left [frac {e^{ix/2}-(-1)^{N+2}e^{(N+1/2)ix}}{e^{-ix/2}+e^{ix/2}}+
      frac {e^{-ix/2}-(-1)^{N+2}e^{-(N+1/2)ix}}{e^{ix/2}+e^{-ix/2}}right]\
      &=frac12left [1-(-1)^{N}frac{cos(N+1/2)x}{cos (x/2)}right].
      end {array}
      $$



      From this one can conclude that $S_N (x) $ does not converge for any value of $x $.






      share|cite|improve this answer











      $endgroup$
















        4












        4








        4





        $begingroup$

        The first series is nothing more than the Fourier series of the $2pi$-periodic odd function



        $$
        y=frac{x}{2},quadpi<x<pi.
        $$



        Indeed the coefficients of the expansion $frac{x}{2}=sumlimits_{n=1}^infty b_nsin nx$ are:
        $$
        b_n=frac{1}{pi}int_{-pi}^pifrac{x}{2}sin nx;dx=frac{1}{pi}left[-frac{x}{2n}cos nxright]_{-pi}^pi=-frac{1}{npi}frac{pi(-1)^n+pi(-1)^n}{2}=frac{(-1)^{n+1}}{n}.
        $$



        The answer to the second question is most easily obtained through exponential representation of cosine and well-known expression for the partial sums of geometrical series:
        $$begin {array}{}
        S_N(x)&=sum_{n=1}^N (-1)^{n+1}cos nx\
        &=sum_{n=1}^N(-1)^{n+1}frac {e^{inx}+e^{-inx}}{2}\
        &=frac12left [frac {e^{ix}-(-1)^{N+2}e^{(N+1)ix}}{1+e^{ix}}+
        frac {e^{-ix}-(-1)^{N+2}e^{-(N+1)ix}}{1+e^{-ix}}right]\
        &=frac12left [frac {e^{ix/2}-(-1)^{N+2}e^{(N+1/2)ix}}{e^{-ix/2}+e^{ix/2}}+
        frac {e^{-ix/2}-(-1)^{N+2}e^{-(N+1/2)ix}}{e^{ix/2}+e^{-ix/2}}right]\
        &=frac12left [1-(-1)^{N}frac{cos(N+1/2)x}{cos (x/2)}right].
        end {array}
        $$



        From this one can conclude that $S_N (x) $ does not converge for any value of $x $.






        share|cite|improve this answer











        $endgroup$



        The first series is nothing more than the Fourier series of the $2pi$-periodic odd function



        $$
        y=frac{x}{2},quadpi<x<pi.
        $$



        Indeed the coefficients of the expansion $frac{x}{2}=sumlimits_{n=1}^infty b_nsin nx$ are:
        $$
        b_n=frac{1}{pi}int_{-pi}^pifrac{x}{2}sin nx;dx=frac{1}{pi}left[-frac{x}{2n}cos nxright]_{-pi}^pi=-frac{1}{npi}frac{pi(-1)^n+pi(-1)^n}{2}=frac{(-1)^{n+1}}{n}.
        $$



        The answer to the second question is most easily obtained through exponential representation of cosine and well-known expression for the partial sums of geometrical series:
        $$begin {array}{}
        S_N(x)&=sum_{n=1}^N (-1)^{n+1}cos nx\
        &=sum_{n=1}^N(-1)^{n+1}frac {e^{inx}+e^{-inx}}{2}\
        &=frac12left [frac {e^{ix}-(-1)^{N+2}e^{(N+1)ix}}{1+e^{ix}}+
        frac {e^{-ix}-(-1)^{N+2}e^{-(N+1)ix}}{1+e^{-ix}}right]\
        &=frac12left [frac {e^{ix/2}-(-1)^{N+2}e^{(N+1/2)ix}}{e^{-ix/2}+e^{ix/2}}+
        frac {e^{-ix/2}-(-1)^{N+2}e^{-(N+1/2)ix}}{e^{ix/2}+e^{-ix/2}}right]\
        &=frac12left [1-(-1)^{N}frac{cos(N+1/2)x}{cos (x/2)}right].
        end {array}
        $$



        From this one can conclude that $S_N (x) $ does not converge for any value of $x $.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Feb 3 at 21:55

























        answered Feb 2 at 22:43









        useruser

        6,56011031




        6,56011031























            2












            $begingroup$

            For the first series, consider that you look for the imaginary part of
            $$sum_{n=1}^infty (-1)^{n-1} frac {e^{i n x}} n=sum_{n=1}^infty (-1)^{n-1} frac {left( e^{i x}right)^n} n=log left(1+e^{i x}right)$$So
            $$sum_{n=1}^infty (-1)^{n-1} frac {sin(n x)} n=frac{1}{2} i left(log left(1+e^{-i x}right)-log left(1+e^{i x}right)right)=frac{1}{2} left(arg left(1+e^{i x}right)- arg left(1+e^{-i x}right)right)=frac x 2$$ provided $-pi leq x leq pi$ .






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
              $endgroup$
              – James Warthington
              Feb 27 at 1:30
















            2












            $begingroup$

            For the first series, consider that you look for the imaginary part of
            $$sum_{n=1}^infty (-1)^{n-1} frac {e^{i n x}} n=sum_{n=1}^infty (-1)^{n-1} frac {left( e^{i x}right)^n} n=log left(1+e^{i x}right)$$So
            $$sum_{n=1}^infty (-1)^{n-1} frac {sin(n x)} n=frac{1}{2} i left(log left(1+e^{-i x}right)-log left(1+e^{i x}right)right)=frac{1}{2} left(arg left(1+e^{i x}right)- arg left(1+e^{-i x}right)right)=frac x 2$$ provided $-pi leq x leq pi$ .






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
              $endgroup$
              – James Warthington
              Feb 27 at 1:30














            2












            2








            2





            $begingroup$

            For the first series, consider that you look for the imaginary part of
            $$sum_{n=1}^infty (-1)^{n-1} frac {e^{i n x}} n=sum_{n=1}^infty (-1)^{n-1} frac {left( e^{i x}right)^n} n=log left(1+e^{i x}right)$$So
            $$sum_{n=1}^infty (-1)^{n-1} frac {sin(n x)} n=frac{1}{2} i left(log left(1+e^{-i x}right)-log left(1+e^{i x}right)right)=frac{1}{2} left(arg left(1+e^{i x}right)- arg left(1+e^{-i x}right)right)=frac x 2$$ provided $-pi leq x leq pi$ .






            share|cite|improve this answer









            $endgroup$



            For the first series, consider that you look for the imaginary part of
            $$sum_{n=1}^infty (-1)^{n-1} frac {e^{i n x}} n=sum_{n=1}^infty (-1)^{n-1} frac {left( e^{i x}right)^n} n=log left(1+e^{i x}right)$$So
            $$sum_{n=1}^infty (-1)^{n-1} frac {sin(n x)} n=frac{1}{2} i left(log left(1+e^{-i x}right)-log left(1+e^{i x}right)right)=frac{1}{2} left(arg left(1+e^{i x}right)- arg left(1+e^{-i x}right)right)=frac x 2$$ provided $-pi leq x leq pi$ .







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Feb 3 at 5:26









            Claude LeiboviciClaude Leibovici

            126k1158135




            126k1158135












            • $begingroup$
              Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
              $endgroup$
              – James Warthington
              Feb 27 at 1:30


















            • $begingroup$
              Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
              $endgroup$
              – James Warthington
              Feb 27 at 1:30
















            $begingroup$
            Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
            $endgroup$
            – James Warthington
            Feb 27 at 1:30




            $begingroup$
            Do you know anyone to obtain this result without recoursing to complex analysis? I haven't studied complex analysis yet so I don't understand your answer.
            $endgroup$
            – James Warthington
            Feb 27 at 1:30











            1












            $begingroup$

            The first equation's right-hand side is $Imln(1+exp ix)$. The second equation's right-hand side can only have convergent partial sums if $lim_{ntoinfty}cos nx=0$, but this clearly fails for $x/pi$ rational. A famous but less obvious result is that other real $x$ also do not obtain such a limit.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              I have never seen $ln(1+expix)$ before, what is it?
              $endgroup$
              – James Warthington
              Feb 2 at 20:46












            • $begingroup$
              @JamesWharthington You may want to learn about complex exponentials and logarithms.
              $endgroup$
              – J.G.
              Feb 2 at 20:48
















            1












            $begingroup$

            The first equation's right-hand side is $Imln(1+exp ix)$. The second equation's right-hand side can only have convergent partial sums if $lim_{ntoinfty}cos nx=0$, but this clearly fails for $x/pi$ rational. A famous but less obvious result is that other real $x$ also do not obtain such a limit.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              I have never seen $ln(1+expix)$ before, what is it?
              $endgroup$
              – James Warthington
              Feb 2 at 20:46












            • $begingroup$
              @JamesWharthington You may want to learn about complex exponentials and logarithms.
              $endgroup$
              – J.G.
              Feb 2 at 20:48














            1












            1








            1





            $begingroup$

            The first equation's right-hand side is $Imln(1+exp ix)$. The second equation's right-hand side can only have convergent partial sums if $lim_{ntoinfty}cos nx=0$, but this clearly fails for $x/pi$ rational. A famous but less obvious result is that other real $x$ also do not obtain such a limit.






            share|cite|improve this answer









            $endgroup$



            The first equation's right-hand side is $Imln(1+exp ix)$. The second equation's right-hand side can only have convergent partial sums if $lim_{ntoinfty}cos nx=0$, but this clearly fails for $x/pi$ rational. A famous but less obvious result is that other real $x$ also do not obtain such a limit.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Feb 2 at 20:44









            J.G.J.G.

            33.5k23252




            33.5k23252












            • $begingroup$
              I have never seen $ln(1+expix)$ before, what is it?
              $endgroup$
              – James Warthington
              Feb 2 at 20:46












            • $begingroup$
              @JamesWharthington You may want to learn about complex exponentials and logarithms.
              $endgroup$
              – J.G.
              Feb 2 at 20:48


















            • $begingroup$
              I have never seen $ln(1+expix)$ before, what is it?
              $endgroup$
              – James Warthington
              Feb 2 at 20:46












            • $begingroup$
              @JamesWharthington You may want to learn about complex exponentials and logarithms.
              $endgroup$
              – J.G.
              Feb 2 at 20:48
















            $begingroup$
            I have never seen $ln(1+expix)$ before, what is it?
            $endgroup$
            – James Warthington
            Feb 2 at 20:46






            $begingroup$
            I have never seen $ln(1+expix)$ before, what is it?
            $endgroup$
            – James Warthington
            Feb 2 at 20:46














            $begingroup$
            @JamesWharthington You may want to learn about complex exponentials and logarithms.
            $endgroup$
            – J.G.
            Feb 2 at 20:48




            $begingroup$
            @JamesWharthington You may want to learn about complex exponentials and logarithms.
            $endgroup$
            – J.G.
            Feb 2 at 20:48


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics 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%2fmath.stackexchange.com%2fquestions%2f3097750%2fthe-sum-of-the-series-cosx-cos2x-cos3x%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith