Answer
See answer below
Work Step by Step
We see that: $f_3(x)-f_2(x)=\cos^2x-\sin^2x=\cos 2x=f_1(x)$ for all $x \in (-\infty,+\infty)$
Hence the set $\{f_1,f_2,f_3\}$ is linearly dependent in $C^{\infty }(-\infty, + \infty)$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.