A formula for sinusoidal graphs of this form?

In summary, sinusoidal graphs of the form y = A sin(Bx + C) + D can be described using the amplitude A, period (2π/B), phase shift C, and vertical shift D. The amplitude represents the distance from the midline to the peak or trough of the graph, while the period is the distance between two consecutive peaks or troughs. The phase shift is the horizontal displacement of the graph, and the vertical shift is the vertical displacement. Understanding these components can help in graphing and analyzing sinusoidal functions.
  • #1
Carla17
2
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
  • #2
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.
 
  • #3
Something like [itex]x(t)= A sin(\omega (sin(kt))[/itex] should work.
 
  • #4
HallsofIvy said:
Something like [itex]x(t)= A sin(\omega (sin(kt))[/itex] 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 derivitive of that integral -- i.e. as the signal that you're trying to carry.
 
  • #5
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:
  • #6
Why don't you guys use the obvious form

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

with [itex]\omega_\text{carrier}>\omega_\text{mod}[/itex]? Am I missing something?
 
  • #7
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.
 
  • #8
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 ;)

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

What is a sinusoidal graph?

A sinusoidal graph is a type of graph that represents a periodic function, meaning it repeats itself over a certain interval. It is often used to model phenomena that exhibit cyclical behavior, such as temperature, sound, or light.

What is the formula for a sinusoidal graph?

The formula for a sinusoidal graph of the form y = A sin(Bx + C) + D is y = A sin(2π/B(x - C/B)) + D. This formula includes four parameters: A, B, C, and D, which determine the amplitude, frequency, phase shift, and vertical shift of the graph, respectively.

How do you determine the amplitude of a sinusoidal graph?

The amplitude of a sinusoidal graph is the distance between the maximum and minimum values of the function. In the formula y = A sin(Bx + C) + D, the amplitude is equal to the absolute value of A. For example, if A = 2, then the amplitude is 2.

What is the period of a sinusoidal graph?

The period of a sinusoidal graph is the length of one complete cycle, or the distance between two consecutive peaks or troughs. It can be calculated using the formula T = 2π/B, where B is the frequency parameter in the formula y = A sin(Bx + C) + D.

How do you graph a sinusoidal function?

To graph a sinusoidal function, you can first determine the amplitude, period, and phase shift by looking at the parameters in the formula y = A sin(Bx + C) + D. Then, plot the points using the amplitude, period, and phase shift as a guide. You can also use a calculator or graphing software to graph the function accurately.

Similar threads

  • General Math
Replies
1
Views
747
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
140
  • Introductory Physics Homework Help
Replies
4
Views
946
  • Introductory Physics Homework Help
Replies
6
Views
948
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
15
Views
2K
Replies
3
Views
5K
  • Calculus and Beyond Homework Help
Replies
22
Views
3K
Replies
1
Views
965
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
Back
Top