Decide whether or not the set of functions
$$S= \left\{\cos^2(x),\cos(2x),\pi \right\}.$$
is linearly dependent or independent. Defend your decision.
I know that in order to solve this I need to test for dependence and check if there are any non-trivial solutions that will give me a $0$, hence linearly independent. So I started off by saying that in order for $\pi$ to be $0$, its coefficient (say $c_3$) has to equal $0$, and if that is true I can continue to solve for the other two by plugging in specific $x$'s and solving for $c_1$ and $c_2$. My question is if this process is correct, and is this really linearly independent or dependent?