9
$\begingroup$

$$\sin x + \cos x = \sqrt{2} \sin(x + \pi/4)$$

Is there an easy way to visualize this identity or to convert the left-hand side to the right-hand side?

In general, can $p \sin x + q \cos x$ for some integers $p$ and $q$ be easily expressed as $\sin($something$)$ or $\cos($something$)$? If so, how can that be done?

$\endgroup$
  • $\begingroup$ If you want to visualize the identity for $\sin x+\cos x$, you could use a picture similar to the one I've posted in this answer. $\endgroup$ – Martin Sleziak May 21 '13 at 9:46
12
$\begingroup$

Given $p \sin x + q \cos x$, divide the expression by $\sqrt{p^2+q^2}$ to get $a \sin x + b \cos x$ for $a^2 + b^2 = 1$. Now name $a = \cos \alpha$ and $b = \sin \alpha$. Notice that what you got is the expansion of $\sin(x+\alpha)$. In the given case, $a = b = \frac{\sqrt{2}}{2}$ so $\alpha = \frac{\pi}{4}$.

| cite | improve this answer | |
$\endgroup$
  • $\begingroup$ I don't see how you get a and b from p and q. Can you elaborate some more? $\endgroup$ – hollow7 Aug 12 '12 at 14:09
  • 1
    $\begingroup$ $a = p/\sqrt{p^2+q^2}$, $b = q/\sqrt{p^2+q^2}$. $\endgroup$ – Karolis Juodelė Aug 12 '12 at 14:11
17
$\begingroup$

Intuitive visualization:

diagrams

The sine of $t$ is the $y$ coordinate of an initially horizontal unit vector as it rotates counterclockwise by $t$ radians about the origin.

The cosine of $t$ is the $y$ coordinate of an initially vertical unit vector at it rotates counterclockwise by $t$ radians about the origin.

Then $\sin t+\cos t$ is the $y$ coordinate about the shown sum of the horizontal and vertial unit vectors as the whole diagram rotates counterclockwise by $t$ radians about the origin.

But that is the same as rotating the dotted vector about the origin by $t$ radians. It has length $\sqrt 2$, and in its initial position it is already roated by $\pi/4$ radians. Thus, we can make the dotted vector by taking the sine, rotating it by an extra $\pi/4$ radians, and then scaling everything by $\sqrt 2$.

The generalization to $p\sin t+q\sin t$ should be clear.

| cite | improve this answer | |
$\endgroup$
  • $\begingroup$ Great explanation. $\endgroup$ – timur Aug 12 '12 at 22:23
  • $\begingroup$ Awesome! :) It should be shown in schools when teaching about trigonometric identities... $\endgroup$ – tomasz Aug 12 '12 at 22:30
  • $\begingroup$ ABSOLUTELY BEAUTIFUL!!! $\endgroup$ – John R. Strohm Mar 31 '16 at 22:23
6
$\begingroup$

Proof without words:

PWW: p sin + q cos

(See also this answer.)

| cite | improve this answer | |
$\endgroup$
3
$\begingroup$

$$\sqrt 2\sin\left(x+\frac{\pi}{4}\right)=\sqrt 2\left(\sin x\cos \frac{\pi}{4}+\sin\frac{\pi}{4}\cos x\right)=$$ $$\sqrt 2\left(\sin x\frac{1}{\sqrt 2}+\cos x\frac{1}{\sqrt 2}\right)=\sin x+\cos x$$

| cite | improve this answer | |
$\endgroup$
1
$\begingroup$

$$\sin(x+y)=\sin(x)\cos(y)+\cos(x)\sin(y)$$

So to simplify your second expression write $p=r\cos(y)$ and $q=r\sin(y)$ so that $r=\sqrt{p^2+q^2}$ and $y=\arctan (\frac q p)$, then:

$$p\sin(x)+q\cos(x) = r\sin(x+y)$$

| cite | improve this answer | |
$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.