I am simply plotting a sum of two different sine waves:


According to this article about beat, the sum should be an enveloped sine wave:

However, when I do this myself, the result is different:

I notice the red sum wave simply has the frequency of the higher frequency wave, and its amplitude's pattern follows the amplitude's pattern of the other one, not oscillates between $\pm g(t)=\pm\sqrt{a^2+b^2+2*a*b*\cos(\epsilon\omega_0*t)}$ as it theoretically should be.

Where did I do wrong? Here are the code input for MathStudio:

Slider([b, e], .1, 10, 0.1)
Plot(a*sin(w*x), color=PaleGreen)
Plot(b*sin((1+e)*w*x), color=LightBlue)
Plot(a*sin(w*x)+b*sin((1+e)*w*x), color=Crimson)
/*Plot(sqrt(a^2+b^2+2*a*b*cos(e*w*x)) */
  • $\begingroup$ You should see the effect if you make $\epsilon << 1$ $\endgroup$ – WW1 Jul 1 '17 at 20:41
  • $\begingroup$ When the two sine waves have almost the same frequency you get the upper graph. When one has much lower frequency than the other you get the lower graph. $\endgroup$ – md2perpe Jul 1 '17 at 23:35
  • $\begingroup$ @WW1 why does that happen? The article uses $\epsilon=0.1$, which I also used, but I didn't see the expected result. $\endgroup$ – Ooker Jul 2 '17 at 4:52
  • $\begingroup$ Why do you say you used the same number as the article? $10 \neq 0.1.$ If you have another attempt with the slider at the far left (so that $e = 0.1$) then you should be showing us that attempt instead of the one with $e=10.$ $\endgroup$ – David K Mar 24 at 19:22
  • $\begingroup$ @DavidK sorry. At the time of posting I don't know the importance of $\epsilon$, so I just pick a random graph. $\endgroup$ – Ooker Mar 25 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.