If cos(pi*n) = (-1)^n is cos(-pi*n) = (-1)^n

  • Thread starter Thread starter mrmerchant786
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 7K views
mrmerchant786

Homework Statement


i wassolving a Fourier series integral, and needed some help
if cos(pi*n) = (-1)^n is cos(-pi*n) = (-1)^n ?

Homework Equations


i think it is because cos is an even function so -x of the function should still remain the same, because if you look at the graph and flip it its still the same graph

if someone could reply to confirm my thoughts or tell me why its wrong, that would be great thanks :)

The Attempt at a Solution

 
Physics news on Phys.org
mrmerchant786 said:

Homework Statement


i wassolving a Fourier series integral, and needed some help
if cos(pi*n) = (-1)^n is cos(-pi*n) = (-1)^n ?

Homework Equations


i think it is because cos is an even function so -x of the function should still remain the same, because if you look at the graph and flip it its still the same graph

if someone could reply to confirm my thoughts or tell me why its wrong, that would be great thanks :)

The Attempt at a Solution


you are correct because ##\cos (x) = \cos (-x)##.
 
Buffu said:
you are correct because ##\cos (x) = \cos (-x)##.
thanks :smile:, thought so