I am trying to show that the set $\{1, \cos(t), \cos^2(t), \dots, \cos^6(t)\}$ is a linearly independent set.
I am able to use MATLAB.
However, I am not so sure on how to show that none of these results are a scalar multiple of themselves, or a linear combination of other vectors..
I saw this post here regarding the same problem: Showing that $\{ 1, \cos t, \cos^2 t, \dots, \cos^6 t \}$ is a linearly independent set, however, it did not really help me make progress.
I would appreciate it if someone could help me figure this problem out.
You can try with the Wronskian of the set $S = \{1,\cos t,\cdots,\cos^6t\}$. In general if a set of function $\{f_1, f_2, \cdots, f_n\}$ is linearly dependent in an interval $I$ then $W(x\in I) = 0$, where
$$ W(f_1, f_2,\cdots, f_n)(x) = \left|\begin{array}{cccc} f_1^{(0)}(x) & f_2^{(0)}(x) & \cdots & f_n^{(0)}(x) \\ f_1^{(1)}(x) & f_2^{(1)}(x) & \cdots & f_n^{(1)}(x) \\ && \vdots & \\ f_1^{(n-1)}(x) & f_2^{(n-1)}(x) & \cdots & f_n^{(n-1)}(x) \\ \end{array}\right| $$
where $f_j^{(i)}$ means the $i$-the derivative of the $j$-th function. To calculate this determinant you can use symbolic variables in Matlab, and this is what you should get
$$ W(1,\cos t\cdots, \cos^6t)(t) = -24~883~200 \sin^{21}(t) $$
which should tell you in which interval the set $S$ is linearly independent