Proving $sumlimits_{k=0}^{n}cos(kx)=frac{1}{2}+frac{sin(frac{2n+1}{2}x)}{2sin(x/2)}$












10












$begingroup$


I am being asked to prove that $$sumlimits_{k=0}^{n}cos(kx)=frac{1}{2}+frac{sin(frac{2n+1}{2}x)}{2sin(x/2)}$$



I have some progress made, but I am stuck and could use some help.



What I did:



It holds that
$$sumlimits_{k=0}^{n}cos(kx)=sumlimits_{k=0}^{n}Re(cos(kx))=sumlimits_{k=0}^{n}Re(cos(x)^{k})=Re(sumlimits_{k=0}^{n}cos(x)^{k})=Releft(cos(0)cdotfrac{cos(x)^{n}-1}{cos(x)-1}right)=Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)
$$



For any $z_{1},z_{2}inmathbb{C}$ we have it that if $z_{1}=a+bi,z_{2}=c+di$
then $$frac{z_{1}}{z_{2}}=frac{z_{1}overline{z2}}{|z_{2}|^{2}}=frac{(a+bi)(c-di)}{|z_{2}|^{2}}=frac{ac-bd+i(bc-ad)}{|z_{2}|^{2}}$$
hence $$Releft(frac{z_{1}}{z_{2}}right)=frac{Re(z_{1})Re(z_{2})-Im(z_{1})Im(z_{2})}{|z_{2}|^{2}}$$



Thus, $$Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)=frac{(cos(nx)-1)(cos(x)-1)-sin(nx)sin(x)}{(cos(x)-1)^{2}+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{cos^{2}(x)-2cos(x)+1+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2cos(x)+2}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(cos(x)-1)}=
frac{=cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(-2cdotsin^{2}(x/2))}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(x(n+1))-cos(nx)-cos(x)+1}{4sin^{2}(x/2)}
$$



This is the part where I am stuck, I would appriciate any help or hint on how to continue.



Edit: Given the corrections by André I get:



$$(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$$



so $$cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$$



Edit 2: I found anoter mistake in the above, I will try to correct



Edit 3: When multiplying correctly the above it works out :-)










share|cite|improve this question











$endgroup$












  • $begingroup$
    possible duplicate of How can we sum up $sin$ and $cos$ series when the angles are in arithmetic progression?
    $endgroup$
    – Hans Lundmark
    Oct 31 '12 at 9:07






  • 3




    $begingroup$
    Hmm... I'm unsure about this being a duplicate. (a) the formulas are not exactly the same, and (b) a large part of this question is helping the OP with their attempt.
    $endgroup$
    – Douglas S. Stones
    Oct 31 '12 at 10:36










  • $begingroup$
    Replaced Sigma by sum.
    $endgroup$
    – Did
    Oct 31 '12 at 11:36
















10












$begingroup$


I am being asked to prove that $$sumlimits_{k=0}^{n}cos(kx)=frac{1}{2}+frac{sin(frac{2n+1}{2}x)}{2sin(x/2)}$$



I have some progress made, but I am stuck and could use some help.



What I did:



It holds that
$$sumlimits_{k=0}^{n}cos(kx)=sumlimits_{k=0}^{n}Re(cos(kx))=sumlimits_{k=0}^{n}Re(cos(x)^{k})=Re(sumlimits_{k=0}^{n}cos(x)^{k})=Releft(cos(0)cdotfrac{cos(x)^{n}-1}{cos(x)-1}right)=Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)
$$



For any $z_{1},z_{2}inmathbb{C}$ we have it that if $z_{1}=a+bi,z_{2}=c+di$
then $$frac{z_{1}}{z_{2}}=frac{z_{1}overline{z2}}{|z_{2}|^{2}}=frac{(a+bi)(c-di)}{|z_{2}|^{2}}=frac{ac-bd+i(bc-ad)}{|z_{2}|^{2}}$$
hence $$Releft(frac{z_{1}}{z_{2}}right)=frac{Re(z_{1})Re(z_{2})-Im(z_{1})Im(z_{2})}{|z_{2}|^{2}}$$



Thus, $$Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)=frac{(cos(nx)-1)(cos(x)-1)-sin(nx)sin(x)}{(cos(x)-1)^{2}+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{cos^{2}(x)-2cos(x)+1+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2cos(x)+2}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(cos(x)-1)}=
frac{=cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(-2cdotsin^{2}(x/2))}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(x(n+1))-cos(nx)-cos(x)+1}{4sin^{2}(x/2)}
$$



This is the part where I am stuck, I would appriciate any help or hint on how to continue.



Edit: Given the corrections by André I get:



$$(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$$



so $$cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$$



Edit 2: I found anoter mistake in the above, I will try to correct



Edit 3: When multiplying correctly the above it works out :-)










share|cite|improve this question











$endgroup$












  • $begingroup$
    possible duplicate of How can we sum up $sin$ and $cos$ series when the angles are in arithmetic progression?
    $endgroup$
    – Hans Lundmark
    Oct 31 '12 at 9:07






  • 3




    $begingroup$
    Hmm... I'm unsure about this being a duplicate. (a) the formulas are not exactly the same, and (b) a large part of this question is helping the OP with their attempt.
    $endgroup$
    – Douglas S. Stones
    Oct 31 '12 at 10:36










  • $begingroup$
    Replaced Sigma by sum.
    $endgroup$
    – Did
    Oct 31 '12 at 11:36














10












10








10


13



$begingroup$


I am being asked to prove that $$sumlimits_{k=0}^{n}cos(kx)=frac{1}{2}+frac{sin(frac{2n+1}{2}x)}{2sin(x/2)}$$



I have some progress made, but I am stuck and could use some help.



What I did:



It holds that
$$sumlimits_{k=0}^{n}cos(kx)=sumlimits_{k=0}^{n}Re(cos(kx))=sumlimits_{k=0}^{n}Re(cos(x)^{k})=Re(sumlimits_{k=0}^{n}cos(x)^{k})=Releft(cos(0)cdotfrac{cos(x)^{n}-1}{cos(x)-1}right)=Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)
$$



For any $z_{1},z_{2}inmathbb{C}$ we have it that if $z_{1}=a+bi,z_{2}=c+di$
then $$frac{z_{1}}{z_{2}}=frac{z_{1}overline{z2}}{|z_{2}|^{2}}=frac{(a+bi)(c-di)}{|z_{2}|^{2}}=frac{ac-bd+i(bc-ad)}{|z_{2}|^{2}}$$
hence $$Releft(frac{z_{1}}{z_{2}}right)=frac{Re(z_{1})Re(z_{2})-Im(z_{1})Im(z_{2})}{|z_{2}|^{2}}$$



Thus, $$Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)=frac{(cos(nx)-1)(cos(x)-1)-sin(nx)sin(x)}{(cos(x)-1)^{2}+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{cos^{2}(x)-2cos(x)+1+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2cos(x)+2}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(cos(x)-1)}=
frac{=cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(-2cdotsin^{2}(x/2))}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(x(n+1))-cos(nx)-cos(x)+1}{4sin^{2}(x/2)}
$$



This is the part where I am stuck, I would appriciate any help or hint on how to continue.



Edit: Given the corrections by André I get:



$$(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$$



so $$cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$$



Edit 2: I found anoter mistake in the above, I will try to correct



Edit 3: When multiplying correctly the above it works out :-)










share|cite|improve this question











$endgroup$




I am being asked to prove that $$sumlimits_{k=0}^{n}cos(kx)=frac{1}{2}+frac{sin(frac{2n+1}{2}x)}{2sin(x/2)}$$



I have some progress made, but I am stuck and could use some help.



What I did:



It holds that
$$sumlimits_{k=0}^{n}cos(kx)=sumlimits_{k=0}^{n}Re(cos(kx))=sumlimits_{k=0}^{n}Re(cos(x)^{k})=Re(sumlimits_{k=0}^{n}cos(x)^{k})=Releft(cos(0)cdotfrac{cos(x)^{n}-1}{cos(x)-1}right)=Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)
$$



For any $z_{1},z_{2}inmathbb{C}$ we have it that if $z_{1}=a+bi,z_{2}=c+di$
then $$frac{z_{1}}{z_{2}}=frac{z_{1}overline{z2}}{|z_{2}|^{2}}=frac{(a+bi)(c-di)}{|z_{2}|^{2}}=frac{ac-bd+i(bc-ad)}{|z_{2}|^{2}}$$
hence $$Releft(frac{z_{1}}{z_{2}}right)=frac{Re(z_{1})Re(z_{2})-Im(z_{1})Im(z_{2})}{|z_{2}|^{2}}$$



Thus, $$Releft(frac{cos(x)^{n}-1}{cos(x)-1}right)=frac{(cos(nx)-1)(cos(x)-1)-sin(nx)sin(x)}{(cos(x)-1)^{2}+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{cos^{2}(x)-2cos(x)+1+sin^{2}(x)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2cos(x)+2}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(cos(x)-1)}=
frac{=cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{-2(-2cdotsin^{2}(x/2))}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(nx)cos(x)-cos(nx)-cos(x)+1-sin(nx)sin(x)}{4sin^{2}(x/2)}=frac{cos(x(n+1))-cos(nx)-cos(x)+1}{4sin^{2}(x/2)}
$$



This is the part where I am stuck, I would appriciate any help or hint on how to continue.



Edit: Given the corrections by André I get:



$$(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$$



so $$cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$$



Edit 2: I found anoter mistake in the above, I will try to correct



Edit 3: When multiplying correctly the above it works out :-)







complex-analysis trigonometry complex-numbers summation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 6 '18 at 11:20









Larry

2,43331130




2,43331130










asked Oct 31 '12 at 9:03









BelgiBelgi

14.7k1154115




14.7k1154115












  • $begingroup$
    possible duplicate of How can we sum up $sin$ and $cos$ series when the angles are in arithmetic progression?
    $endgroup$
    – Hans Lundmark
    Oct 31 '12 at 9:07






  • 3




    $begingroup$
    Hmm... I'm unsure about this being a duplicate. (a) the formulas are not exactly the same, and (b) a large part of this question is helping the OP with their attempt.
    $endgroup$
    – Douglas S. Stones
    Oct 31 '12 at 10:36










  • $begingroup$
    Replaced Sigma by sum.
    $endgroup$
    – Did
    Oct 31 '12 at 11:36


















  • $begingroup$
    possible duplicate of How can we sum up $sin$ and $cos$ series when the angles are in arithmetic progression?
    $endgroup$
    – Hans Lundmark
    Oct 31 '12 at 9:07






  • 3




    $begingroup$
    Hmm... I'm unsure about this being a duplicate. (a) the formulas are not exactly the same, and (b) a large part of this question is helping the OP with their attempt.
    $endgroup$
    – Douglas S. Stones
    Oct 31 '12 at 10:36










  • $begingroup$
    Replaced Sigma by sum.
    $endgroup$
    – Did
    Oct 31 '12 at 11:36
















$begingroup$
possible duplicate of How can we sum up $sin$ and $cos$ series when the angles are in arithmetic progression?
$endgroup$
– Hans Lundmark
Oct 31 '12 at 9:07




$begingroup$
possible duplicate of How can we sum up $sin$ and $cos$ series when the angles are in arithmetic progression?
$endgroup$
– Hans Lundmark
Oct 31 '12 at 9:07




3




3




$begingroup$
Hmm... I'm unsure about this being a duplicate. (a) the formulas are not exactly the same, and (b) a large part of this question is helping the OP with their attempt.
$endgroup$
– Douglas S. Stones
Oct 31 '12 at 10:36




$begingroup$
Hmm... I'm unsure about this being a duplicate. (a) the formulas are not exactly the same, and (b) a large part of this question is helping the OP with their attempt.
$endgroup$
– Douglas S. Stones
Oct 31 '12 at 10:36












$begingroup$
Replaced Sigma by sum.
$endgroup$
– Did
Oct 31 '12 at 11:36




$begingroup$
Replaced Sigma by sum.
$endgroup$
– Did
Oct 31 '12 at 11:36










4 Answers
4






active

oldest

votes


















5












$begingroup$

There are faster ways to go, but if you want to continue along the path you have taken, you are quite close to the end. Please see the remark for a couple of small things that need to be corrected in the calculation. Essentially the same trigonometric tricks continue to work.



By a double angle formula for the cosine, we have
$$cos x=1-2sin^2(x/2),$$ so
$$frac{1-cos x}{4sin^2(x/2)}=frac{1}{2},$$ part of what you are aiming for. However, this could have been obtained in a simpler way in the third displayed formula after the "Thus," in the OP.



And the front part will "simplify" by a difference of $cos$ formula, obtained from $$cos(a+b)=cos acos b-sin asin b,qquad cos(a-b)=cos acos b+sin asin b.$$ Subtract. We get
$$cos(a+b)-cos(a-b)=-2sin asin b.$$
Let $a+b=x(n+1)$, and $a-b=nx$. So $a=dfrac{x(2n+1)}{2}$ and $b=dfrac{x}{2}$.



Remark: There is a little sign glitch in the calculation of $(a+bi)(c-di)$. Note that the real part should be $ac+bd$. Also, when you are summing the geometric progression, we need $text{cis}^{n+1}$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:09












  • $begingroup$
    Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:17










  • $begingroup$
    I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:38










  • $begingroup$
    I'll try to correct the second mistake you found, thanks!
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:39










  • $begingroup$
    I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:44



















12












$begingroup$

Just multiply both sides by $2sin(x/2)$ and use Briggs' formula:
$$ 2 sin(x/2)cos(kx) = sin((k+1/2)x)-sin((k-1/2)x)$$
to get a telescoping sum.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Isn't there a nice way to continue my work ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 9:18



















11












$begingroup$

$$sum_{0le rle n}e^{ikx}=frac{e^{i(n+1)x}-1}{e^{ix}-1}$$



$$=frac{e^{frac{i(n+1)x}2}}{e^{frac{ix}2}}frac{left(e^{frac{i(n+1)x}2}-e^{-frac{i(n+1)x}2}right)}{left( e^{frac{ix}2}-e^{-frac{ix}2}right)}$$



$$=e^{frac{inx}2}frac{2isinfrac{(n+1)x}2}{2isin{frac{x}2}}$$ as $e^{iy}-e^{-iy}=2isin y,$



$$=(cosfrac{nx}2+isinfrac{nx}2)frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}$$ using Euler's identity.



Its real part is $$cosfrac{nx}2 frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}=frac{2cosfrac{nx}2sinfrac{(n+1)x}2}{2sin{frac{x}2}}=frac{sinfrac{(2n+1)x}2+sin{frac{x}2}}{2sin{frac{x}2}}$$ using $2sin Acos B=sin(A+B)+sin(A-B)$






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:56










  • $begingroup$
    @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
    $endgroup$
    – lab bhattacharjee
    Oct 31 '12 at 11:10





















3












$begingroup$

Here is the simplest way I've found.
begin{align}
1+2sum_{k=1}^ncos(theta) & = sum_{k=-n}^n e^{iktheta} \
& = frac{e^{i(n+1/2)theta}-e^{-i(n-1/2)theta}}{e^{itheta /2}-e^{-itheta / 2}} \
& =frac{sin(n+1/2)theta}{sin(theta/2)} \
end{align}
which can easily be rearranged to get the desired identity.
See https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Lagrange's_trigonometric_identities






share|cite|improve this answer









$endgroup$













    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',
    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%2f225941%2fproving-sum-limits-k-0n-coskx-frac12-frac-sin-frac2n12x%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









    5












    $begingroup$

    There are faster ways to go, but if you want to continue along the path you have taken, you are quite close to the end. Please see the remark for a couple of small things that need to be corrected in the calculation. Essentially the same trigonometric tricks continue to work.



    By a double angle formula for the cosine, we have
    $$cos x=1-2sin^2(x/2),$$ so
    $$frac{1-cos x}{4sin^2(x/2)}=frac{1}{2},$$ part of what you are aiming for. However, this could have been obtained in a simpler way in the third displayed formula after the "Thus," in the OP.



    And the front part will "simplify" by a difference of $cos$ formula, obtained from $$cos(a+b)=cos acos b-sin asin b,qquad cos(a-b)=cos acos b+sin asin b.$$ Subtract. We get
    $$cos(a+b)-cos(a-b)=-2sin asin b.$$
    Let $a+b=x(n+1)$, and $a-b=nx$. So $a=dfrac{x(2n+1)}{2}$ and $b=dfrac{x}{2}$.



    Remark: There is a little sign glitch in the calculation of $(a+bi)(c-di)$. Note that the real part should be $ac+bd$. Also, when you are summing the geometric progression, we need $text{cis}^{n+1}$.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:09












    • $begingroup$
      Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:17










    • $begingroup$
      I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:38










    • $begingroup$
      I'll try to correct the second mistake you found, thanks!
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:39










    • $begingroup$
      I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:44
















    5












    $begingroup$

    There are faster ways to go, but if you want to continue along the path you have taken, you are quite close to the end. Please see the remark for a couple of small things that need to be corrected in the calculation. Essentially the same trigonometric tricks continue to work.



    By a double angle formula for the cosine, we have
    $$cos x=1-2sin^2(x/2),$$ so
    $$frac{1-cos x}{4sin^2(x/2)}=frac{1}{2},$$ part of what you are aiming for. However, this could have been obtained in a simpler way in the third displayed formula after the "Thus," in the OP.



    And the front part will "simplify" by a difference of $cos$ formula, obtained from $$cos(a+b)=cos acos b-sin asin b,qquad cos(a-b)=cos acos b+sin asin b.$$ Subtract. We get
    $$cos(a+b)-cos(a-b)=-2sin asin b.$$
    Let $a+b=x(n+1)$, and $a-b=nx$. So $a=dfrac{x(2n+1)}{2}$ and $b=dfrac{x}{2}$.



    Remark: There is a little sign glitch in the calculation of $(a+bi)(c-di)$. Note that the real part should be $ac+bd$. Also, when you are summing the geometric progression, we need $text{cis}^{n+1}$.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:09












    • $begingroup$
      Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:17










    • $begingroup$
      I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:38










    • $begingroup$
      I'll try to correct the second mistake you found, thanks!
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:39










    • $begingroup$
      I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:44














    5












    5








    5





    $begingroup$

    There are faster ways to go, but if you want to continue along the path you have taken, you are quite close to the end. Please see the remark for a couple of small things that need to be corrected in the calculation. Essentially the same trigonometric tricks continue to work.



    By a double angle formula for the cosine, we have
    $$cos x=1-2sin^2(x/2),$$ so
    $$frac{1-cos x}{4sin^2(x/2)}=frac{1}{2},$$ part of what you are aiming for. However, this could have been obtained in a simpler way in the third displayed formula after the "Thus," in the OP.



    And the front part will "simplify" by a difference of $cos$ formula, obtained from $$cos(a+b)=cos acos b-sin asin b,qquad cos(a-b)=cos acos b+sin asin b.$$ Subtract. We get
    $$cos(a+b)-cos(a-b)=-2sin asin b.$$
    Let $a+b=x(n+1)$, and $a-b=nx$. So $a=dfrac{x(2n+1)}{2}$ and $b=dfrac{x}{2}$.



    Remark: There is a little sign glitch in the calculation of $(a+bi)(c-di)$. Note that the real part should be $ac+bd$. Also, when you are summing the geometric progression, we need $text{cis}^{n+1}$.






    share|cite|improve this answer











    $endgroup$



    There are faster ways to go, but if you want to continue along the path you have taken, you are quite close to the end. Please see the remark for a couple of small things that need to be corrected in the calculation. Essentially the same trigonometric tricks continue to work.



    By a double angle formula for the cosine, we have
    $$cos x=1-2sin^2(x/2),$$ so
    $$frac{1-cos x}{4sin^2(x/2)}=frac{1}{2},$$ part of what you are aiming for. However, this could have been obtained in a simpler way in the third displayed formula after the "Thus," in the OP.



    And the front part will "simplify" by a difference of $cos$ formula, obtained from $$cos(a+b)=cos acos b-sin asin b,qquad cos(a-b)=cos acos b+sin asin b.$$ Subtract. We get
    $$cos(a+b)-cos(a-b)=-2sin asin b.$$
    Let $a+b=x(n+1)$, and $a-b=nx$. So $a=dfrac{x(2n+1)}{2}$ and $b=dfrac{x}{2}$.



    Remark: There is a little sign glitch in the calculation of $(a+bi)(c-di)$. Note that the real part should be $ac+bd$. Also, when you are summing the geometric progression, we need $text{cis}^{n+1}$.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Oct 31 '12 at 10:37

























    answered Oct 31 '12 at 9:58









    André NicolasAndré Nicolas

    454k36430817




    454k36430817












    • $begingroup$
      I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:09












    • $begingroup$
      Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:17










    • $begingroup$
      I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:38










    • $begingroup$
      I'll try to correct the second mistake you found, thanks!
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:39










    • $begingroup$
      I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:44


















    • $begingroup$
      I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:09












    • $begingroup$
      Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:17










    • $begingroup$
      I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:38










    • $begingroup$
      I'll try to correct the second mistake you found, thanks!
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:39










    • $begingroup$
      I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:44
















    $begingroup$
    I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:09






    $begingroup$
    I am having a little problem with this, I get the answer with a minus sign. can you please help me with telling me where I did wrong ? $cos(x(n+1))-cos(nx)=-2sin(xn+frac{x}{2})sin(frac{x}{2})$ thus $frac{cos(x(n+1))-cos(nx)}{4sin^{2}(x/2)}=frac{-2sin(xn+frac{x}{2})sin(frac{x}{2})}{4sin^{2}(x/2)}=-frac{sin(xn+frac{x}{2})}{2sin(frac{x}{2})}$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:09














    $begingroup$
    Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:17




    $begingroup$
    Am I doing the last step wrong or do you think I have a previous minus sign error somewhere ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:17












    $begingroup$
    I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:38




    $begingroup$
    I corrected that error after you last comment, but its still not working right: $(cos(nx)-1)(cos(x)-1)+sin(nx)sin(x)=cos(nx)cos(x)-cos(nx)-cos(x)+1+sin(nx)sin(x)$ so $cos(nx)cos(x)+sin(nx)sin(x)=cos(xn-x)-cos(nx)=cos(x(n-1))-cos(nx)$. If $a+b=xn-x,a-b=xn$ then $a=xn-frac{x}{2},b=-frac{x}{2}$ so $-2sin(a)sin(b)=-2sin(x(n-1))sin(-frac{x}{2})=+2sin(x(n-1))sin(frac{x}{2})$. So when $sin(frac{x}{2})$ cancels out we get $frac{sin(x(n-1))}{2sin(frac{x}{2})}$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:38












    $begingroup$
    I'll try to correct the second mistake you found, thanks!
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:39




    $begingroup$
    I'll try to correct the second mistake you found, thanks!
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:39












    $begingroup$
    I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:44




    $begingroup$
    I still have a problem after your last correction: $(cos(nx+x)-1)(cos(x)-1)+sin(nx+x)sin(x)=cos(nx+x)cos(x)-cos(nx)-cos(x)+1+sin(nx+x)sin(x)$ so $cos(nx+x)cos(x)+sin(nx+x)sin(x)=cos(xn+x-x)-cos(nx)=0$
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:44











    12












    $begingroup$

    Just multiply both sides by $2sin(x/2)$ and use Briggs' formula:
    $$ 2 sin(x/2)cos(kx) = sin((k+1/2)x)-sin((k-1/2)x)$$
    to get a telescoping sum.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Isn't there a nice way to continue my work ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 9:18
















    12












    $begingroup$

    Just multiply both sides by $2sin(x/2)$ and use Briggs' formula:
    $$ 2 sin(x/2)cos(kx) = sin((k+1/2)x)-sin((k-1/2)x)$$
    to get a telescoping sum.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      Isn't there a nice way to continue my work ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 9:18














    12












    12








    12





    $begingroup$

    Just multiply both sides by $2sin(x/2)$ and use Briggs' formula:
    $$ 2 sin(x/2)cos(kx) = sin((k+1/2)x)-sin((k-1/2)x)$$
    to get a telescoping sum.






    share|cite|improve this answer









    $endgroup$



    Just multiply both sides by $2sin(x/2)$ and use Briggs' formula:
    $$ 2 sin(x/2)cos(kx) = sin((k+1/2)x)-sin((k-1/2)x)$$
    to get a telescoping sum.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Oct 31 '12 at 9:07









    Jack D'AurizioJack D'Aurizio

    291k33284666




    291k33284666












    • $begingroup$
      Isn't there a nice way to continue my work ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 9:18


















    • $begingroup$
      Isn't there a nice way to continue my work ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 9:18
















    $begingroup$
    Isn't there a nice way to continue my work ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 9:18




    $begingroup$
    Isn't there a nice way to continue my work ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 9:18











    11












    $begingroup$

    $$sum_{0le rle n}e^{ikx}=frac{e^{i(n+1)x}-1}{e^{ix}-1}$$



    $$=frac{e^{frac{i(n+1)x}2}}{e^{frac{ix}2}}frac{left(e^{frac{i(n+1)x}2}-e^{-frac{i(n+1)x}2}right)}{left( e^{frac{ix}2}-e^{-frac{ix}2}right)}$$



    $$=e^{frac{inx}2}frac{2isinfrac{(n+1)x}2}{2isin{frac{x}2}}$$ as $e^{iy}-e^{-iy}=2isin y,$



    $$=(cosfrac{nx}2+isinfrac{nx}2)frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}$$ using Euler's identity.



    Its real part is $$cosfrac{nx}2 frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}=frac{2cosfrac{nx}2sinfrac{(n+1)x}2}{2sin{frac{x}2}}=frac{sinfrac{(2n+1)x}2+sin{frac{x}2}}{2sin{frac{x}2}}$$ using $2sin Acos B=sin(A+B)+sin(A-B)$






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:56










    • $begingroup$
      @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
      $endgroup$
      – lab bhattacharjee
      Oct 31 '12 at 11:10


















    11












    $begingroup$

    $$sum_{0le rle n}e^{ikx}=frac{e^{i(n+1)x}-1}{e^{ix}-1}$$



    $$=frac{e^{frac{i(n+1)x}2}}{e^{frac{ix}2}}frac{left(e^{frac{i(n+1)x}2}-e^{-frac{i(n+1)x}2}right)}{left( e^{frac{ix}2}-e^{-frac{ix}2}right)}$$



    $$=e^{frac{inx}2}frac{2isinfrac{(n+1)x}2}{2isin{frac{x}2}}$$ as $e^{iy}-e^{-iy}=2isin y,$



    $$=(cosfrac{nx}2+isinfrac{nx}2)frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}$$ using Euler's identity.



    Its real part is $$cosfrac{nx}2 frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}=frac{2cosfrac{nx}2sinfrac{(n+1)x}2}{2sin{frac{x}2}}=frac{sinfrac{(2n+1)x}2+sin{frac{x}2}}{2sin{frac{x}2}}$$ using $2sin Acos B=sin(A+B)+sin(A-B)$






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:56










    • $begingroup$
      @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
      $endgroup$
      – lab bhattacharjee
      Oct 31 '12 at 11:10
















    11












    11








    11





    $begingroup$

    $$sum_{0le rle n}e^{ikx}=frac{e^{i(n+1)x}-1}{e^{ix}-1}$$



    $$=frac{e^{frac{i(n+1)x}2}}{e^{frac{ix}2}}frac{left(e^{frac{i(n+1)x}2}-e^{-frac{i(n+1)x}2}right)}{left( e^{frac{ix}2}-e^{-frac{ix}2}right)}$$



    $$=e^{frac{inx}2}frac{2isinfrac{(n+1)x}2}{2isin{frac{x}2}}$$ as $e^{iy}-e^{-iy}=2isin y,$



    $$=(cosfrac{nx}2+isinfrac{nx}2)frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}$$ using Euler's identity.



    Its real part is $$cosfrac{nx}2 frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}=frac{2cosfrac{nx}2sinfrac{(n+1)x}2}{2sin{frac{x}2}}=frac{sinfrac{(2n+1)x}2+sin{frac{x}2}}{2sin{frac{x}2}}$$ using $2sin Acos B=sin(A+B)+sin(A-B)$






    share|cite|improve this answer











    $endgroup$



    $$sum_{0le rle n}e^{ikx}=frac{e^{i(n+1)x}-1}{e^{ix}-1}$$



    $$=frac{e^{frac{i(n+1)x}2}}{e^{frac{ix}2}}frac{left(e^{frac{i(n+1)x}2}-e^{-frac{i(n+1)x}2}right)}{left( e^{frac{ix}2}-e^{-frac{ix}2}right)}$$



    $$=e^{frac{inx}2}frac{2isinfrac{(n+1)x}2}{2isin{frac{x}2}}$$ as $e^{iy}-e^{-iy}=2isin y,$



    $$=(cosfrac{nx}2+isinfrac{nx}2)frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}$$ using Euler's identity.



    Its real part is $$cosfrac{nx}2 frac{sinfrac{(n+1)x}2}{sin{frac{x}2}}=frac{2cosfrac{nx}2sinfrac{(n+1)x}2}{2sin{frac{x}2}}=frac{sinfrac{(2n+1)x}2+sin{frac{x}2}}{2sin{frac{x}2}}$$ using $2sin Acos B=sin(A+B)+sin(A-B)$







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Oct 31 '12 at 9:58

























    answered Oct 31 '12 at 9:52









    lab bhattacharjeelab bhattacharjee

    226k15157275




    226k15157275












    • $begingroup$
      Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:56










    • $begingroup$
      @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
      $endgroup$
      – lab bhattacharjee
      Oct 31 '12 at 11:10




















    • $begingroup$
      Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
      $endgroup$
      – Belgi
      Oct 31 '12 at 10:56










    • $begingroup$
      @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
      $endgroup$
      – lab bhattacharjee
      Oct 31 '12 at 11:10


















    $begingroup$
    Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:56




    $begingroup$
    Can you please provide some insight on how did you know to factor the denomenator numerator in that way in the second line ?
    $endgroup$
    – Belgi
    Oct 31 '12 at 10:56












    $begingroup$
    @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
    $endgroup$
    – lab bhattacharjee
    Oct 31 '12 at 11:10






    $begingroup$
    @Belgi, we know $e^{2y}-1=e^y(e^y-e^{-y})$ and my target was to utilize $e^{iy}-e^{-iy}=2isin y$. You may have a look into the last approach of math.stackexchange.com/questions/183859/…
    $endgroup$
    – lab bhattacharjee
    Oct 31 '12 at 11:10













    3












    $begingroup$

    Here is the simplest way I've found.
    begin{align}
    1+2sum_{k=1}^ncos(theta) & = sum_{k=-n}^n e^{iktheta} \
    & = frac{e^{i(n+1/2)theta}-e^{-i(n-1/2)theta}}{e^{itheta /2}-e^{-itheta / 2}} \
    & =frac{sin(n+1/2)theta}{sin(theta/2)} \
    end{align}
    which can easily be rearranged to get the desired identity.
    See https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Lagrange's_trigonometric_identities






    share|cite|improve this answer









    $endgroup$


















      3












      $begingroup$

      Here is the simplest way I've found.
      begin{align}
      1+2sum_{k=1}^ncos(theta) & = sum_{k=-n}^n e^{iktheta} \
      & = frac{e^{i(n+1/2)theta}-e^{-i(n-1/2)theta}}{e^{itheta /2}-e^{-itheta / 2}} \
      & =frac{sin(n+1/2)theta}{sin(theta/2)} \
      end{align}
      which can easily be rearranged to get the desired identity.
      See https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Lagrange's_trigonometric_identities






      share|cite|improve this answer









      $endgroup$
















        3












        3








        3





        $begingroup$

        Here is the simplest way I've found.
        begin{align}
        1+2sum_{k=1}^ncos(theta) & = sum_{k=-n}^n e^{iktheta} \
        & = frac{e^{i(n+1/2)theta}-e^{-i(n-1/2)theta}}{e^{itheta /2}-e^{-itheta / 2}} \
        & =frac{sin(n+1/2)theta}{sin(theta/2)} \
        end{align}
        which can easily be rearranged to get the desired identity.
        See https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Lagrange's_trigonometric_identities






        share|cite|improve this answer









        $endgroup$



        Here is the simplest way I've found.
        begin{align}
        1+2sum_{k=1}^ncos(theta) & = sum_{k=-n}^n e^{iktheta} \
        & = frac{e^{i(n+1/2)theta}-e^{-i(n-1/2)theta}}{e^{itheta /2}-e^{-itheta / 2}} \
        & =frac{sin(n+1/2)theta}{sin(theta/2)} \
        end{align}
        which can easily be rearranged to get the desired identity.
        See https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Lagrange's_trigonometric_identities







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Apr 5 '18 at 2:28









        Caleb FitzgeraldCaleb Fitzgerald

        363




        363






























            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%2f225941%2fproving-sum-limits-k-0n-coskx-frac12-frac-sin-frac2n12x%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

            How to send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?