Period of added/multiplied sines/cosines

  • Thread starter Thread starter mklein
  • Start date Start date
  • Tags Tags
    Period
AI Thread Summary
The discussion centers on understanding the periods of sine and cosine functions when added or multiplied, particularly in the context of programming a Fourier transform. When two waves are added, their common period is determined by the lowest common multiple of their individual periods. For example, the fundamental period of y=cos(2π2x) + cos(2π3x) is calculated as 1/6. In contrast, when two functions are multiplied, the product-to-sum formulas or complex exponentials can simplify the analysis, as they allow for easier manipulation of the functions. The period of the sum of exponentials follows the same rules as sines and cosines, relying on the greatest common multiple for calculations.
mklein
Messages
43
Reaction score
0
Dear all

I am looking to write my own computer program for a Fourier transform. However my maths is very rusty and I will need to recap some things.

I am struggling a little bit to recall the rules for the period of sines (or cosines) when they are MULTIPLIED. I haven't had much luck Googling this.

Am I right in thinking that for two waves ADDED their common period is their two periods multiplied (the lowest common multiple) ?

e.g.

y=cos(2.pi.2x) + cos(2.pi.3x) Fundamental period = 1/2 x 1/3 = 1/6?

But what if the two sines (or cosines) are multiplied?

e.g.

y=cos(2.pi.2x).cos(2.pi.3x)

Can anybody explain the rules for the addition and multiplication cases, without going into heavy maths?

Thank you

Matt
 
Mathematics news on Phys.org
Hi mklein! :smile:


mklein said:
Dear all

I am looking to write my own computer program for a Fourier transform. However my maths is very rusty and I will need to recap some things.

I am struggling a little bit to recall the rules for the period of sines (or cosines) when they are MULTIPLIED. I haven't had much luck Googling this.

Am I right in thinking that for two waves ADDED their common period is their two periods multiplied (the lowest common multiple) ?

e.g.

y=cos(2.pi.2x) + cos(2.pi.3x) Fundamental period = 1/2 x 1/3 = 1/6?

But what if the two sines (or cosines) are multiplied?

e.g.

y=cos(2.pi.2x).cos(2.pi.3x)

Can anybody explain the rules for the addition and multiplication cases, without going into heavy maths?

Thank you

Matt

You can always apply the product-to-sum formula's http://www.sosmath.com/trig/prodform/prodform.html This reduces the case of products to the case of sums!
 
The easy way to deal with this is not to use sines and cosines, but instead to use complex exponentials. I don't know if that comes under the category of heavy maths in your book, but regardless I would really recommend it as worth your time to learn. It'll make the subsequent math much simpler.

Using complex exponentials, the elements of the Fourier transform are not sines and cosines, but exponential functions of the form e^{i \omega x}; with i=\sqrt{-1}. These are easy to multiply: e^{i \omega x}e^{i \phi x}=e^{i \left(\omega + \phi \right)x}.

For addition, the rule for exponentials is the same as for sines as cosines. e^{2 \pi i m x}+e^{2 \pi i n x} has period 1/GCM(n,m), GCM being the greatest common multiple. In your example, the period of e^{2 \pi i 2 x}+e^{2 \pi i 3 x} would be 1.
 
Dear pmsrw3 and micromass

These are two very good suggestions, and I shall look into them, thank you. I can just about handle this level of maths!

Thanks

Matt
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...

Similar threads

Back
Top