Wave with oscillating frequency

Click For Summary
SUMMARY

The discussion focuses on generating sine waves with a slowly oscillating frequency using the function f(t) = sin(2πt[5 + cos(2πt/10)]). The user, Nikolaus, encounters unexpected behavior in the wave's maxima and minima. Expert advice clarifies that the instantaneous radian frequency must be defined correctly as dφ/dt = 2π(5 + cos(πt/5)), leading to the integration φ = 10πt + 10sin(πt/5). This correction allows for the desired frequency modulation.

PREREQUISITES
  • Understanding of sine wave functions and their properties
  • Familiarity with frequency modulation concepts
  • Basic knowledge of calculus, specifically integration
  • Experience with programming or data analysis tools for wave generation
NEXT STEPS
  • Implement the corrected function f(t) = sin(10πt + 10sin(πt/5)) in a programming language of choice
  • Explore frequency modulation techniques in signal processing
  • Learn about phase modulation and its applications in wave generation
  • Investigate data visualization tools to analyze the generated sine waves
USEFUL FOR

Data analysts, signal processing engineers, and anyone interested in generating and analyzing modulated sine waves for various applications.

Nikratio
Messages
13
Reaction score
0
Hello,

In order to test-drive a data analysis program, I am looking for a function that generates sine waves with slowly oscillating frequency, i.e. the distance between the maxima should be slowly changing.

I thought that I could simply achieve this by using a function of the form
[tex] f(t) = \sin\Bigl( 2 \pi t \bigl[ 5 + \cos( 2 \pi t / 10 ) \bigr] \Bigl)[/tex]
and expected to get something that oscillates with a frequency that slowly changes between 4 and 6 over when t goes from 0 to 10.

However, the function behaves in a very different way. It reaches a maximum of f(t)~0.5 at t~3 and has to minima very close to each other at t~4.2.

Can someone help me to understand (a) why the above function doesn't behave the way I expect it to and (b) what function I could use to generate the desired data?


Nikolaus
 
Physics news on Phys.org
Hi Nik, you've fallen for a really common mistake with regard to frequency modulation.

In general the instantaneous radian frequency (w=2 pi f) is the time rate of change of phase (phi), this of course is not the same thing as "phase" divided by "t" except for the special case where the phase is a linear function of "t", that is where [itex]\phi = 2 \pi f t[/tex].<br /> <br /> So what you really want is,<br /> <br /> [tex]\frac{d\phi}{d t} = 2 \pi ( 5 + \cos(\pi t /5) )[/tex]<br /> <br /> Which upon integration gives,<br /> <br /> [tex]\phi = 10 \pi t + 10 \sin(\pi t /5)[/tex]<br /> <br /> Try using f(t)=sin(phi), with phi as given above and I think you'll find it does what you're looking for.[/itex]
 
Yes, that was it! Thank you very much!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 77 ·
3
Replies
77
Views
6K
  • · Replies 47 ·
2
Replies
47
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
3
Views
2K