10

I'm trying to simplify the following sum of sines with different amplitudes $$ a \sin(\theta) + b \sin(\phi) = ??? \,\,\,\,\, (1) $$

I know that $$ a \sin(\theta) + a \sin(\phi) = a\cdot2\sin\left(\frac{\theta+\phi}{2}\right)\cos\left(\frac{\theta-\phi}{2}\right) $$

But how do I do the same thing in the case where both sines have different amplitudes, as in (1).

Thanks!

daniloz
  • 135

2 Answers2

10

I'll try to give both geometrical solution and a solution using complex numbers.

But perhaps you might have a look at Wikipedia first, their explanation is probably better than mine. (They certainly have nicer pictures.)

Wikipedia

You can find very similar formulas in Wikipedia's List of trigonometric identities. (Here is also link to the current revision of the Wikipedia article. I hope I have not made mistake somewhere and their formulas are equivalent to mine.)

A link to Phasor addition (current revision) is also given there. This Wikipedia article might help to visualize the whole thing.

Geometry

We have situation as in the following picture: enter image description here

Note that the $y$-coordinates of the two vectors are precisely the values you want to add together. So we would like to know the length and the angle for the sum of these two vectors.

We simply rotate the situation. We denote $\alpha=\phi-\theta$. enter image description here

We want to find the values $c$ and $\varkappa$. Once we know them, we get $$a\sin\theta+b\sin\phi= c\sin(\theta+\varkappa).$$

For $c$ we can simply use law of cosines: $$c^2=a^2+b^2+2ab\cos\alpha$$ (Note that the angle in the bottom triangle is $\pi-\alpha$.)

We can calculate $\varkappa$ using law of sines: $$\frac{\sin(\pi-\alpha)}{\sin\varkappa} = \frac cb \qquad \Rightarrow \qquad \sin\varkappa=\frac{b\sin\alpha}c$$

Note that this does not determine $\varkappa$ uniquely, but you can find out whether $\varkappa>\pi/2$ or $\varkappa<\pi/2$ by checking the sign of $x$-coordinate of the sum of the two vectors, which is $a+b\cos\alpha$.

Complex numbers

We want to get $$ae^{i\theta}+be^{i\phi}=ce^{i(\theta+\varkappa)}\tag{1}$$ (If we get such an expression then the imaginary part is a formula for sines.)

This is equivalent to $$a+be^{i(\phi-\theta)}=ce^{i\varkappa}.\tag{2}$$

To find $c$ we simply compute the absolute value of both sides. On the LHS we get $(a+be^{i(\phi-\theta)})(a-be^{i(\phi-\theta)})=a^2+b^2+2ab\cos(\phi-\theta)$, hence $$c^2=a^2+b^2+2ab\cos(\phi-\theta).$$

We also have $$e^{i\varkappa}=\frac ac+\frac bce^{i(\phi-\theta)}\\ \cos\varkappa+i\sin\varkappa = \frac ac+\frac bc\cos(\phi-\theta)+i\frac bc\sin(\phi-\theta)$$ Comparing the imaginary parts yields $$\sin\varkappa=\frac bc\sin(\phi-\theta).$$

The remark that we have to do a little more to find which of the two possible values of $\varkappa$ we should choose applies here, too.

  • Martin, is there a similar identity for $a \cos \theta + b \cos \phi$? I am trying to apply this result to a proof of the linearity of a rotation of 2D vectors:

    https://math.stackexchange.com/questions/4664525/prove-2d-rotation-by-theta-is-a-linear-transformation-using-trig-identities-f

    – EthanAlvaree Mar 23 '23 at 00:39
  • @EthanAlvaree I guess you already have a satisfactory answer - I see that there is already an accepted answer in the linked question. Still, I will at least add that the same diagram gives you $a\cos\theta+b\cos\phi= c\cos(\theta+\varkappa)$. (I mentioned sine - which we get from the y-coordinate. The x-coordinate gives use cosine.) And, of course, you can also check the formulas in the linked Wikipedia article. – Martin Sleziak Mar 25 '23 at 06:40
1

Answer is simple: you can't do that. This pattern is too complex to make some reasonable simplification. Of course you can for example compare $a$ and $b$. Let's assume that $b>a$. Then $b=a+t$ for some positive $t$ and you can get $$a\sin\theta+b\sin\phi=a\sin\theta+a\sin\phi+t\sin\phi=2a\sin\frac{\theta+\phi}{2}\cos\frac{\theta-\phi}{2}+t\sin\phi,$$ but I don't think that we could call that a simplification:)