Fourier Series: Is $cos(n pi)$ the same thing as $cos(-npi)$?












-1












$begingroup$


For a Fourier series calculation, if you have bounds from $-1$ to $+1$ and you are plugging it into the function $cos(n pi)$, would it result in $0$? Thank you for any clarification.










share|cite|improve this question











$endgroup$








  • 6




    $begingroup$
    Cosine is an even function.
    $endgroup$
    – T. Bongers
    Dec 14 '18 at 0:28










  • $begingroup$
    As Bongers said, $cos$ is an even function. Even more, we know that $$forall ninmathbb Z,cos(npi)=(-1)^n.$$
    $endgroup$
    – Scientifica
    Dec 14 '18 at 0:33
















-1












$begingroup$


For a Fourier series calculation, if you have bounds from $-1$ to $+1$ and you are plugging it into the function $cos(n pi)$, would it result in $0$? Thank you for any clarification.










share|cite|improve this question











$endgroup$








  • 6




    $begingroup$
    Cosine is an even function.
    $endgroup$
    – T. Bongers
    Dec 14 '18 at 0:28










  • $begingroup$
    As Bongers said, $cos$ is an even function. Even more, we know that $$forall ninmathbb Z,cos(npi)=(-1)^n.$$
    $endgroup$
    – Scientifica
    Dec 14 '18 at 0:33














-1












-1








-1





$begingroup$


For a Fourier series calculation, if you have bounds from $-1$ to $+1$ and you are plugging it into the function $cos(n pi)$, would it result in $0$? Thank you for any clarification.










share|cite|improve this question











$endgroup$




For a Fourier series calculation, if you have bounds from $-1$ to $+1$ and you are plugging it into the function $cos(n pi)$, would it result in $0$? Thank you for any clarification.







differential-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 14 '18 at 0:36









Eevee Trainer

5,3881836




5,3881836










asked Dec 14 '18 at 0:28









JamesJames

1




1








  • 6




    $begingroup$
    Cosine is an even function.
    $endgroup$
    – T. Bongers
    Dec 14 '18 at 0:28










  • $begingroup$
    As Bongers said, $cos$ is an even function. Even more, we know that $$forall ninmathbb Z,cos(npi)=(-1)^n.$$
    $endgroup$
    – Scientifica
    Dec 14 '18 at 0:33














  • 6




    $begingroup$
    Cosine is an even function.
    $endgroup$
    – T. Bongers
    Dec 14 '18 at 0:28










  • $begingroup$
    As Bongers said, $cos$ is an even function. Even more, we know that $$forall ninmathbb Z,cos(npi)=(-1)^n.$$
    $endgroup$
    – Scientifica
    Dec 14 '18 at 0:33








6




6




$begingroup$
Cosine is an even function.
$endgroup$
– T. Bongers
Dec 14 '18 at 0:28




$begingroup$
Cosine is an even function.
$endgroup$
– T. Bongers
Dec 14 '18 at 0:28












$begingroup$
As Bongers said, $cos$ is an even function. Even more, we know that $$forall ninmathbb Z,cos(npi)=(-1)^n.$$
$endgroup$
– Scientifica
Dec 14 '18 at 0:33




$begingroup$
As Bongers said, $cos$ is an even function. Even more, we know that $$forall ninmathbb Z,cos(npi)=(-1)^n.$$
$endgroup$
– Scientifica
Dec 14 '18 at 0:33










1 Answer
1






active

oldest

votes


















1












$begingroup$

Cosine is an even function, i.e. $cos(-x) = cos(x)$.



Thus, as a result,



$$cos(-n pi) = cos(n pi)$$



The integrals of even functions $f$, further, can be given by



$$int_{-a}^a f(x)dx = 2 cdot int_0^a f(x)dx$$



If $f$ was odd (and thus $f(-x)=-f(x)$), as with the $sin(x)$ function, however, we'd have



$$int_{-a}^a f(x)dx = 0$$



Since $cos(x)$ is an even function, though, the first integral applies. (Not the second as you posit in your question.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
    $endgroup$
    – James
    Dec 14 '18 at 1:23












  • $begingroup$
    I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:12










  • $begingroup$
    There might be more conditions to it, though, so it's just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:13










  • $begingroup$
    Okay thank you. I will just calculate it all out to be safe.
    $endgroup$
    – James
    Dec 14 '18 at 2:16











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%2f3038774%2ffourier-series-is-cosn-pi-the-same-thing-as-cos-n-pi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

Cosine is an even function, i.e. $cos(-x) = cos(x)$.



Thus, as a result,



$$cos(-n pi) = cos(n pi)$$



The integrals of even functions $f$, further, can be given by



$$int_{-a}^a f(x)dx = 2 cdot int_0^a f(x)dx$$



If $f$ was odd (and thus $f(-x)=-f(x)$), as with the $sin(x)$ function, however, we'd have



$$int_{-a}^a f(x)dx = 0$$



Since $cos(x)$ is an even function, though, the first integral applies. (Not the second as you posit in your question.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
    $endgroup$
    – James
    Dec 14 '18 at 1:23












  • $begingroup$
    I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:12










  • $begingroup$
    There might be more conditions to it, though, so it's just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:13










  • $begingroup$
    Okay thank you. I will just calculate it all out to be safe.
    $endgroup$
    – James
    Dec 14 '18 at 2:16
















1












$begingroup$

Cosine is an even function, i.e. $cos(-x) = cos(x)$.



Thus, as a result,



$$cos(-n pi) = cos(n pi)$$



The integrals of even functions $f$, further, can be given by



$$int_{-a}^a f(x)dx = 2 cdot int_0^a f(x)dx$$



If $f$ was odd (and thus $f(-x)=-f(x)$), as with the $sin(x)$ function, however, we'd have



$$int_{-a}^a f(x)dx = 0$$



Since $cos(x)$ is an even function, though, the first integral applies. (Not the second as you posit in your question.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
    $endgroup$
    – James
    Dec 14 '18 at 1:23












  • $begingroup$
    I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:12










  • $begingroup$
    There might be more conditions to it, though, so it's just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:13










  • $begingroup$
    Okay thank you. I will just calculate it all out to be safe.
    $endgroup$
    – James
    Dec 14 '18 at 2:16














1












1








1





$begingroup$

Cosine is an even function, i.e. $cos(-x) = cos(x)$.



Thus, as a result,



$$cos(-n pi) = cos(n pi)$$



The integrals of even functions $f$, further, can be given by



$$int_{-a}^a f(x)dx = 2 cdot int_0^a f(x)dx$$



If $f$ was odd (and thus $f(-x)=-f(x)$), as with the $sin(x)$ function, however, we'd have



$$int_{-a}^a f(x)dx = 0$$



Since $cos(x)$ is an even function, though, the first integral applies. (Not the second as you posit in your question.)






share|cite|improve this answer









$endgroup$



Cosine is an even function, i.e. $cos(-x) = cos(x)$.



Thus, as a result,



$$cos(-n pi) = cos(n pi)$$



The integrals of even functions $f$, further, can be given by



$$int_{-a}^a f(x)dx = 2 cdot int_0^a f(x)dx$$



If $f$ was odd (and thus $f(-x)=-f(x)$), as with the $sin(x)$ function, however, we'd have



$$int_{-a}^a f(x)dx = 0$$



Since $cos(x)$ is an even function, though, the first integral applies. (Not the second as you posit in your question.)







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 14 '18 at 0:33









Eevee TrainerEevee Trainer

5,3881836




5,3881836












  • $begingroup$
    Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
    $endgroup$
    – James
    Dec 14 '18 at 1:23












  • $begingroup$
    I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:12










  • $begingroup$
    There might be more conditions to it, though, so it's just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:13










  • $begingroup$
    Okay thank you. I will just calculate it all out to be safe.
    $endgroup$
    – James
    Dec 14 '18 at 2:16


















  • $begingroup$
    Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
    $endgroup$
    – James
    Dec 14 '18 at 1:23












  • $begingroup$
    I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:12










  • $begingroup$
    There might be more conditions to it, though, so it's just a guess.
    $endgroup$
    – Eevee Trainer
    Dec 14 '18 at 2:13










  • $begingroup$
    Okay thank you. I will just calculate it all out to be safe.
    $endgroup$
    – James
    Dec 14 '18 at 2:16
















$begingroup$
Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
$endgroup$
– James
Dec 14 '18 at 1:23






$begingroup$
Thank you for the feedback. I have another followup question: when you are solving for a_(sub)n and b_(sub)n, is there a simple way to tell if one of them is equal to zero based on whether the function is even or odd? Or do you have to perform all the calculations? Thank you again
$endgroup$
– James
Dec 14 '18 at 1:23














$begingroup$
I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
$endgroup$
– Eevee Trainer
Dec 14 '18 at 2:12




$begingroup$
I always perform all of the calculations just for its own sake. I guess if you're on a symmetric interval $(-a,a)$ and the function is odd, the cosine terms (the $a_n$) might disappear, and if the function is even then the sine terms (the $b_n$) would, but this is just a guess.
$endgroup$
– Eevee Trainer
Dec 14 '18 at 2:12












$begingroup$
There might be more conditions to it, though, so it's just a guess.
$endgroup$
– Eevee Trainer
Dec 14 '18 at 2:13




$begingroup$
There might be more conditions to it, though, so it's just a guess.
$endgroup$
– Eevee Trainer
Dec 14 '18 at 2:13












$begingroup$
Okay thank you. I will just calculate it all out to be safe.
$endgroup$
– James
Dec 14 '18 at 2:16




$begingroup$
Okay thank you. I will just calculate it all out to be safe.
$endgroup$
– James
Dec 14 '18 at 2:16


















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%2f3038774%2ffourier-series-is-cosn-pi-the-same-thing-as-cos-n-pi%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

Bressuire

Cabo Verde

Gyllenstierna