How do you solve this question?:$$(7\cos(x)-\sin(x))^2=A\cos(2x)+B\sin(2x)+C$$ is for all $x$. Here $A$, $B$ and $C$ is constants. I need to know $A$, $B$ and $C$ to pass this. They are integers.
I got this far: (LS = left side) $$LS = 49\cos^2(x)+\sin^2(x)+14\sin(x)\cos(x)$$
And then i follow some steps online and got right side to $$RS = (A+C)\cos^2(x)+(C-A)\sin^2(x)+2B\sin(x)\cos(x)$$
Only problem is that i get C to 49/2.