How to find the phase-shift from the sum of two sines?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I want to find out how interference of two sine waves can affect the output-phase of the interfered wave.



Consider two waves,



$$ E_1 = sin(x) \
E_2 = 2 sin(x + delta)
$$



First off, I don't know how to prove it, but I can see visually (plotting numerically) that the sum of these waves looks a new sine wave.



I want to find out what the phase of $E_1 + E_2 $ looks like. First I tried finding using functions like ArcSin() and Ln() but ran into trouble for both methods. For example when I try ArcSin(Sin[x] + 2*Sin(x - $delta$)), I get answers that disagree with my numerical answers.



Numerically, I solve for zeros and find the one with a positive derivative in a 2-pi region.



Now I plot the phase-shift of $E_3$ as a function of $delta$ (in blue) and compare it to $E_2$ (in purple):



enter image description here



Is there a "formula" I can use to find this answer without having to trace through one of the zeros? I think the key when using something like ArcSin is using the right normalization (I think it only works for sine of amplitude 1), but I'm not sure exactly the proper way of doing it.







share|cite|improve this question















  • 1




    I think this link might be useful for you: scipp.ucsc.edu/~haber/ph5B/addsine.pdf
    – Karn Watcharasupat
    Aug 6 at 2:22














up vote
2
down vote

favorite
1












I want to find out how interference of two sine waves can affect the output-phase of the interfered wave.



Consider two waves,



$$ E_1 = sin(x) \
E_2 = 2 sin(x + delta)
$$



First off, I don't know how to prove it, but I can see visually (plotting numerically) that the sum of these waves looks a new sine wave.



I want to find out what the phase of $E_1 + E_2 $ looks like. First I tried finding using functions like ArcSin() and Ln() but ran into trouble for both methods. For example when I try ArcSin(Sin[x] + 2*Sin(x - $delta$)), I get answers that disagree with my numerical answers.



Numerically, I solve for zeros and find the one with a positive derivative in a 2-pi region.



Now I plot the phase-shift of $E_3$ as a function of $delta$ (in blue) and compare it to $E_2$ (in purple):



enter image description here



Is there a "formula" I can use to find this answer without having to trace through one of the zeros? I think the key when using something like ArcSin is using the right normalization (I think it only works for sine of amplitude 1), but I'm not sure exactly the proper way of doing it.







share|cite|improve this question















  • 1




    I think this link might be useful for you: scipp.ucsc.edu/~haber/ph5B/addsine.pdf
    – Karn Watcharasupat
    Aug 6 at 2:22












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I want to find out how interference of two sine waves can affect the output-phase of the interfered wave.



Consider two waves,



$$ E_1 = sin(x) \
E_2 = 2 sin(x + delta)
$$



First off, I don't know how to prove it, but I can see visually (plotting numerically) that the sum of these waves looks a new sine wave.



I want to find out what the phase of $E_1 + E_2 $ looks like. First I tried finding using functions like ArcSin() and Ln() but ran into trouble for both methods. For example when I try ArcSin(Sin[x] + 2*Sin(x - $delta$)), I get answers that disagree with my numerical answers.



Numerically, I solve for zeros and find the one with a positive derivative in a 2-pi region.



Now I plot the phase-shift of $E_3$ as a function of $delta$ (in blue) and compare it to $E_2$ (in purple):



enter image description here



Is there a "formula" I can use to find this answer without having to trace through one of the zeros? I think the key when using something like ArcSin is using the right normalization (I think it only works for sine of amplitude 1), but I'm not sure exactly the proper way of doing it.







share|cite|improve this question











I want to find out how interference of two sine waves can affect the output-phase of the interfered wave.



Consider two waves,



$$ E_1 = sin(x) \
E_2 = 2 sin(x + delta)
$$



First off, I don't know how to prove it, but I can see visually (plotting numerically) that the sum of these waves looks a new sine wave.



I want to find out what the phase of $E_1 + E_2 $ looks like. First I tried finding using functions like ArcSin() and Ln() but ran into trouble for both methods. For example when I try ArcSin(Sin[x] + 2*Sin(x - $delta$)), I get answers that disagree with my numerical answers.



Numerically, I solve for zeros and find the one with a positive derivative in a 2-pi region.



Now I plot the phase-shift of $E_3$ as a function of $delta$ (in blue) and compare it to $E_2$ (in purple):



enter image description here



Is there a "formula" I can use to find this answer without having to trace through one of the zeros? I think the key when using something like ArcSin is using the right normalization (I think it only works for sine of amplitude 1), but I'm not sure exactly the proper way of doing it.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Aug 6 at 2:06









Steven Sagona

1257




1257







  • 1




    I think this link might be useful for you: scipp.ucsc.edu/~haber/ph5B/addsine.pdf
    – Karn Watcharasupat
    Aug 6 at 2:22












  • 1




    I think this link might be useful for you: scipp.ucsc.edu/~haber/ph5B/addsine.pdf
    – Karn Watcharasupat
    Aug 6 at 2:22







1




1




I think this link might be useful for you: scipp.ucsc.edu/~haber/ph5B/addsine.pdf
– Karn Watcharasupat
Aug 6 at 2:22




I think this link might be useful for you: scipp.ucsc.edu/~haber/ph5B/addsine.pdf
– Karn Watcharasupat
Aug 6 at 2:22










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










beginalign
& sin x + 2sin(x+delta) \[10pt]
= & sin x + 2sin xcosdelta + 2cos x sindelta \[10pt]
= & (1+2cosdelta) sin x + (2sindelta) cos x \[10pt]
= & Asin x + Bcos x \[10pt]
= & sqrtA^2+B^2,, left( frac A sqrtA^2+B^2,, ,sin x + frac B sqrtA^2+B^2,, , cos x right) \[10pt]
= & sqrtA^2+B^2,, big( cosvarphi sin x + sinvarphi cos x big) \
& qquad textThese coefficients can be written as the cosine and sine \
& qquad textof some angle $varphi$ because the sum of their squares is $1.$ \[10pt]
= & sqrtA^2+B^2,, , sin(x+varphi).
endalign



In this case we have
$$
A^2+B^2 = (1+4cosdelta + 4cos^2delta) + 4sin^2delta = 5 + 4cosdelta.
$$






share|cite|improve this answer




























    up vote
    2
    down vote













    We can write $E_1$ and $E_2$ as the imaginary parts of $e^ix$ and $2 e^i(x+delta)$, and by linearity $E_1 + E_2$ will be the imaginary part of the sum of these two complex numbers:



    $$e^ix + 2e^i(x+delta) = e^ix(1 + 2 e^idelta) = e^ix(1 + 2 cos delta + i 2 sin delta) = e^ixleft(sqrt1+ 4 cosdelta + 4 cos^2delta + 4 sin^2 deltae^ioperatornameatan2(2sindelta,1+2cosdelta)right) $$
    $$ = sqrt5+ 4 cosdelta e^i[x + operatornameatan2(2sindelta,1+2cosdelta)].$$



    Taking the imaginary part, we therefore find



    $$ E_1 + E_2 = left(sqrt5+ 4 cosdeltaright) sinleft(x + operatornameatan2 left( 2sindelta, 1+2cosdeltaright) right),$$



    so the phase-shift is given by



    $$operatornameatan2left(2sindelta,1+2cosdeltaright).$$






    share|cite|improve this answer























    • Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
      – Michael Hardy
      Aug 6 at 4:46











    • @MichaelHardy Thanks for the tip.
      – Matthew Kvalheim
      Aug 6 at 5:32










    Your Answer




    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "69"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873520%2fhow-to-find-the-phase-shift-from-the-sum-of-two-sines%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    beginalign
    & sin x + 2sin(x+delta) \[10pt]
    = & sin x + 2sin xcosdelta + 2cos x sindelta \[10pt]
    = & (1+2cosdelta) sin x + (2sindelta) cos x \[10pt]
    = & Asin x + Bcos x \[10pt]
    = & sqrtA^2+B^2,, left( frac A sqrtA^2+B^2,, ,sin x + frac B sqrtA^2+B^2,, , cos x right) \[10pt]
    = & sqrtA^2+B^2,, big( cosvarphi sin x + sinvarphi cos x big) \
    & qquad textThese coefficients can be written as the cosine and sine \
    & qquad textof some angle $varphi$ because the sum of their squares is $1.$ \[10pt]
    = & sqrtA^2+B^2,, , sin(x+varphi).
    endalign



    In this case we have
    $$
    A^2+B^2 = (1+4cosdelta + 4cos^2delta) + 4sin^2delta = 5 + 4cosdelta.
    $$






    share|cite|improve this answer

























      up vote
      1
      down vote



      accepted










      beginalign
      & sin x + 2sin(x+delta) \[10pt]
      = & sin x + 2sin xcosdelta + 2cos x sindelta \[10pt]
      = & (1+2cosdelta) sin x + (2sindelta) cos x \[10pt]
      = & Asin x + Bcos x \[10pt]
      = & sqrtA^2+B^2,, left( frac A sqrtA^2+B^2,, ,sin x + frac B sqrtA^2+B^2,, , cos x right) \[10pt]
      = & sqrtA^2+B^2,, big( cosvarphi sin x + sinvarphi cos x big) \
      & qquad textThese coefficients can be written as the cosine and sine \
      & qquad textof some angle $varphi$ because the sum of their squares is $1.$ \[10pt]
      = & sqrtA^2+B^2,, , sin(x+varphi).
      endalign



      In this case we have
      $$
      A^2+B^2 = (1+4cosdelta + 4cos^2delta) + 4sin^2delta = 5 + 4cosdelta.
      $$






      share|cite|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        beginalign
        & sin x + 2sin(x+delta) \[10pt]
        = & sin x + 2sin xcosdelta + 2cos x sindelta \[10pt]
        = & (1+2cosdelta) sin x + (2sindelta) cos x \[10pt]
        = & Asin x + Bcos x \[10pt]
        = & sqrtA^2+B^2,, left( frac A sqrtA^2+B^2,, ,sin x + frac B sqrtA^2+B^2,, , cos x right) \[10pt]
        = & sqrtA^2+B^2,, big( cosvarphi sin x + sinvarphi cos x big) \
        & qquad textThese coefficients can be written as the cosine and sine \
        & qquad textof some angle $varphi$ because the sum of their squares is $1.$ \[10pt]
        = & sqrtA^2+B^2,, , sin(x+varphi).
        endalign



        In this case we have
        $$
        A^2+B^2 = (1+4cosdelta + 4cos^2delta) + 4sin^2delta = 5 + 4cosdelta.
        $$






        share|cite|improve this answer













        beginalign
        & sin x + 2sin(x+delta) \[10pt]
        = & sin x + 2sin xcosdelta + 2cos x sindelta \[10pt]
        = & (1+2cosdelta) sin x + (2sindelta) cos x \[10pt]
        = & Asin x + Bcos x \[10pt]
        = & sqrtA^2+B^2,, left( frac A sqrtA^2+B^2,, ,sin x + frac B sqrtA^2+B^2,, , cos x right) \[10pt]
        = & sqrtA^2+B^2,, big( cosvarphi sin x + sinvarphi cos x big) \
        & qquad textThese coefficients can be written as the cosine and sine \
        & qquad textof some angle $varphi$ because the sum of their squares is $1.$ \[10pt]
        = & sqrtA^2+B^2,, , sin(x+varphi).
        endalign



        In this case we have
        $$
        A^2+B^2 = (1+4cosdelta + 4cos^2delta) + 4sin^2delta = 5 + 4cosdelta.
        $$







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Aug 6 at 4:23









        Michael Hardy

        204k23186463




        204k23186463




















            up vote
            2
            down vote













            We can write $E_1$ and $E_2$ as the imaginary parts of $e^ix$ and $2 e^i(x+delta)$, and by linearity $E_1 + E_2$ will be the imaginary part of the sum of these two complex numbers:



            $$e^ix + 2e^i(x+delta) = e^ix(1 + 2 e^idelta) = e^ix(1 + 2 cos delta + i 2 sin delta) = e^ixleft(sqrt1+ 4 cosdelta + 4 cos^2delta + 4 sin^2 deltae^ioperatornameatan2(2sindelta,1+2cosdelta)right) $$
            $$ = sqrt5+ 4 cosdelta e^i[x + operatornameatan2(2sindelta,1+2cosdelta)].$$



            Taking the imaginary part, we therefore find



            $$ E_1 + E_2 = left(sqrt5+ 4 cosdeltaright) sinleft(x + operatornameatan2 left( 2sindelta, 1+2cosdeltaright) right),$$



            so the phase-shift is given by



            $$operatornameatan2left(2sindelta,1+2cosdeltaright).$$






            share|cite|improve this answer























            • Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
              – Michael Hardy
              Aug 6 at 4:46











            • @MichaelHardy Thanks for the tip.
              – Matthew Kvalheim
              Aug 6 at 5:32














            up vote
            2
            down vote













            We can write $E_1$ and $E_2$ as the imaginary parts of $e^ix$ and $2 e^i(x+delta)$, and by linearity $E_1 + E_2$ will be the imaginary part of the sum of these two complex numbers:



            $$e^ix + 2e^i(x+delta) = e^ix(1 + 2 e^idelta) = e^ix(1 + 2 cos delta + i 2 sin delta) = e^ixleft(sqrt1+ 4 cosdelta + 4 cos^2delta + 4 sin^2 deltae^ioperatornameatan2(2sindelta,1+2cosdelta)right) $$
            $$ = sqrt5+ 4 cosdelta e^i[x + operatornameatan2(2sindelta,1+2cosdelta)].$$



            Taking the imaginary part, we therefore find



            $$ E_1 + E_2 = left(sqrt5+ 4 cosdeltaright) sinleft(x + operatornameatan2 left( 2sindelta, 1+2cosdeltaright) right),$$



            so the phase-shift is given by



            $$operatornameatan2left(2sindelta,1+2cosdeltaright).$$






            share|cite|improve this answer























            • Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
              – Michael Hardy
              Aug 6 at 4:46











            • @MichaelHardy Thanks for the tip.
              – Matthew Kvalheim
              Aug 6 at 5:32












            up vote
            2
            down vote










            up vote
            2
            down vote









            We can write $E_1$ and $E_2$ as the imaginary parts of $e^ix$ and $2 e^i(x+delta)$, and by linearity $E_1 + E_2$ will be the imaginary part of the sum of these two complex numbers:



            $$e^ix + 2e^i(x+delta) = e^ix(1 + 2 e^idelta) = e^ix(1 + 2 cos delta + i 2 sin delta) = e^ixleft(sqrt1+ 4 cosdelta + 4 cos^2delta + 4 sin^2 deltae^ioperatornameatan2(2sindelta,1+2cosdelta)right) $$
            $$ = sqrt5+ 4 cosdelta e^i[x + operatornameatan2(2sindelta,1+2cosdelta)].$$



            Taking the imaginary part, we therefore find



            $$ E_1 + E_2 = left(sqrt5+ 4 cosdeltaright) sinleft(x + operatornameatan2 left( 2sindelta, 1+2cosdeltaright) right),$$



            so the phase-shift is given by



            $$operatornameatan2left(2sindelta,1+2cosdeltaright).$$






            share|cite|improve this answer















            We can write $E_1$ and $E_2$ as the imaginary parts of $e^ix$ and $2 e^i(x+delta)$, and by linearity $E_1 + E_2$ will be the imaginary part of the sum of these two complex numbers:



            $$e^ix + 2e^i(x+delta) = e^ix(1 + 2 e^idelta) = e^ix(1 + 2 cos delta + i 2 sin delta) = e^ixleft(sqrt1+ 4 cosdelta + 4 cos^2delta + 4 sin^2 deltae^ioperatornameatan2(2sindelta,1+2cosdelta)right) $$
            $$ = sqrt5+ 4 cosdelta e^i[x + operatornameatan2(2sindelta,1+2cosdelta)].$$



            Taking the imaginary part, we therefore find



            $$ E_1 + E_2 = left(sqrt5+ 4 cosdeltaright) sinleft(x + operatornameatan2 left( 2sindelta, 1+2cosdeltaright) right),$$



            so the phase-shift is given by



            $$operatornameatan2left(2sindelta,1+2cosdeltaright).$$







            share|cite|improve this answer















            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 7 at 5:22


























            answered Aug 6 at 2:27









            Matthew Kvalheim

            671416




            671416











            • Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
              – Michael Hardy
              Aug 6 at 4:46











            • @MichaelHardy Thanks for the tip.
              – Matthew Kvalheim
              Aug 6 at 5:32
















            • Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
              – Michael Hardy
              Aug 6 at 4:46











            • @MichaelHardy Thanks for the tip.
              – Matthew Kvalheim
              Aug 6 at 5:32















            Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
            – Michael Hardy
            Aug 6 at 4:46





            Note the conspicuous typographical difference between $itextatan2(cdots)$ and $ioperatornameatan2(cdots).$ With operatornameatan2 the amount of space to the left and right of $operatornameatan2$ depends on the context. I edited this answer accordingly. $qquad$
            – Michael Hardy
            Aug 6 at 4:46













            @MichaelHardy Thanks for the tip.
            – Matthew Kvalheim
            Aug 6 at 5:32




            @MichaelHardy Thanks for the tip.
            – Matthew Kvalheim
            Aug 6 at 5:32












             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873520%2fhow-to-find-the-phase-shift-from-the-sum-of-two-sines%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?