[Math] Equating coefficients explanation for trigonometric identities

trigonometry

Equating coefficients for the trigonometric identities does not make sense for me and I will explain why:

If I use the example

Write $5\cos x – 3 \sin x$ in the form $k\sin(x – \alpha)$, where $0 \le \alpha \le 360$.

$=5\cos x – 3\sin x = k\sin(x – \alpha)$

$= k(\sin x\cos \alpha – \cos x\sin \alpha)$

$= k\cos\alpha\sin x – k \sin\alpha\cos x$ — no idea why x and $\alpha$ switch here

$= k \cos \alpha = -3$

I have no idea where $k\cos\alpha = -3$ comes from when in the previous expression, $k\cos\alpha$ is on the left of the minus sign so surely it should be $k\cos\alpha = 5$

Then we have

$= k \sin \alpha = -5$

Same as above, $k \sin \alpha$ is on the right hand side of the minus so I have no idea why it is now assigned to -5.

It is like I have to do the opposite to get the actual value. Really confused.

Best Answer

It is because $\sin x$ and $\cos x$ are linearly independent -- if you are given $$A\sin x + B\cos x \equiv 0$$ then both $A=B=0$.


Proof: If given $A\sin x + B\cos x \equiv 0$, then $$\begin{align*} A\sin x + B\cos x &\equiv 0\\ A\sin0^\circ + B\cos 0^\circ &= 0 &\iff&&B = 0\\ A\sin 90^\circ + B\cos 90^\circ &= 0 &\iff &&A=0 \end{align*}$$


So you have made to the point that

$$\begin{align*} 5\cos x -3\sin x &\equiv k\cos\alpha\sin x - k\sin\alpha\cos x\\ 5\cos x+k\sin\alpha\cos x -3\sin x-k\cos\alpha\sin x &\equiv 0\\ (5+ k\sin\alpha)\cos x + (-3-k\cos\alpha)\sin x &\equiv 0 \end{align*}$$

From the result above, $$\begin{align*} 5+k\sin\alpha &= 0&\iff&&-k\sin\alpha &= 5\\ -3-k\cos\alpha &= 0 &\iff&&k\cos\alpha &= -3 \end{align*}$$ which is the result of directly matching the coefficients of $\cos x$ and $\sin x$.

Related Question