A formula for sinusoidal graphs of this form?

Click For Summary
SUMMARY

This discussion focuses on generating sinusoidal graphs where time itself oscillates sinusoidally, impacting the amplitude of the graph. The proposed mathematical form for this function is x(t) = A sin(ω(t + (1/k)sin(kt))), ensuring that the inner time function increases monotonically. Participants emphasize the importance of integrating the function to modulate the frequency accurately, leading to a corrected formula: f(t) = A sin((ω_max - ω_min)/2 * (sin(ω_mod t + φ_mod) + 1) + ω_min t + φ_carrier). This approach ensures that the argument of the outer sine function remains monotone increasing.

PREREQUISITES
  • Understanding of sinusoidal functions and their properties
  • Familiarity with mathematical integration and its applications in modulation
  • Knowledge of angular frequency and its significance in waveforms
  • Proficiency in using graphing tools like Excel or Wolfram Alpha
NEXT STEPS
  • Research the mathematical principles of frequency modulation in waveforms
  • Explore the use of integrals in signal processing
  • Learn about the impact of sampling rates on graph accuracy
  • Experiment with graphing software to visualize complex sinusoidal functions
USEFUL FOR

Mathematicians, signal processing engineers, and software developers working on data visualization or simulation of oscillatory systems will benefit from this discussion.

Carla17
Messages
2
Reaction score
0
Hey all

I am trying to generate a graph of a sinusoidally oscillation against time. However, the time itself is passing sinusodally, i.e time flows faster at some points and slower at others. I'm doing this as I need test data for a program I've written to decode real world data I'm generating which comes in this format.

Here is an excel graph of the closest I've come (amplitude = sin(time*sin(time))), however this is not quite correct, as it goes off as time increases (as the time between oscillations get closer and closer. but between t=10 and t =20 you can get a good idea of what I'm after.)

I have also stuck a very crude sketch of the type of output I desire. What's the mathematical form of this?

Many thanks for your help.

C x

pic_of_desired_output.jpg
 
Mathematics news on Phys.org
BTW, in the excel version, the only reason my graph doesn't reach an amplitude of 1 consistently is due to a low sampling rate.
 
Something like x(t)= A sin(\omega (sin(kt)) should work.
 
HallsofIvy said:
Something like x(t)= A sin(\omega (sin(kt)) should work.

I think I first encountered this problem in 1975 of so at the University of Illinois. An older student, Rob Kolstad, was trying to do a graph of a frequency modulation wave form for use in a course he was running on a CAI system named PLATO. He was trying to do much the same thing, modulating a sine function into the frequency of a sine wave carrier.

He was smart enough to realize that you have to add a constant offset to the inner sin function so that it's always positive. But, as I recall, that still gives an answer that's wrong.

You want to use the _integral_ of the function that you are trying to modulate onto the carrier. That way the frequency of the function that you are graphing varies as the derivative of that integral -- i.e. as the signal that you're trying to carry.
 
Welcome to PF, Carla17! :smile:

Your inner time function should increase monotonously.
##\sin(time)## does not do that.

Try for instance ##x + \sin(x)## instead.
That one will just be increasing monotonously.The complete function would be something like:
$$amplitude = \sin(\omega (t + \frac 1 k \sin(kt)))$$
where
##\omega## is the average angular frequency of the high frequency wave,
##k## is the angular frequency of the compression/decompression cycle,
##\frac 1 k## is the compensating factor to make the time just increasing, you may want to dampen it with another factor.​
Here's an example: http://m.wolframalpha.com/input/?i=sin(11*(t+++(1/3)*sin(2*t))&x=0&y=0
It graphs ##\sin(11 (t + \frac 1 3 \sin(2t)))##.
 
Last edited:
Why don't you guys use the obvious form

f(t)=<br /> A\sin\left(<br /> \left( \frac{\omega_\text{max}-\omega_\text{min}}{2}<br /> \left(<br /> \sin\left(<br /> \omega_\text{mod}t+\phi_\text{mod} <br /> \right)+1<br /> \right)+\omega_\text{min}<br /> \right)t + \phi_\text{carrier}<br /> \right)

with \omega_\text{carrier}&gt;\omega_\text{mod}? Am I missing something?
 
Am I missing something?

Yes.

Look at your the argument to the outer sine function. Is it monotone increasing? Are you sure? Have you tested it with some sample values? Have you graphed it? If you don't believe that it needs to be monotone increasing, have you actually picked some test parameters and graphed the function you propose?

"I like Serena" has pointed out that the argument to the outer sin function must be monotone increasing.

I have pointed out that it should be the integral of the [hopefully positive] function that you were trying to modulate onto the carrier.
 
Oh you're right the frequency should be integrated to get the phase, it cannot simply be multiplied by t. Sorry for that. This should be better. And it plots ok ;)

<br /> f(t)= <br /> A\sin\left( <br /> \frac{\omega_\text{max}-\omega_\text{min}}{2} <br /> \left( \frac{<br /> \sin\left( <br /> \omega_\text{mod}t+\phi_\text{mod} <br /> \right)}{\omega_\text{mod}}+t <br /> \right)+\omega_\text{min} t + \phi_\text{carrier} <br /> \right)<br />
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
977
  • · Replies 3 ·
Replies
3
Views
3K
Replies
17
Views
3K
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K