Solutions which use matrices would be greatly appreciated.
Find the trigonometric function of the form $f(t) = c_0+c_1\sin(t)+c_2\cos(t)$ that best fits the data points $(0,0), (1,1), (2,2), (3,3)$ using least squares.
My question is, would I go about this in the same way as I would if I was using a least squares approach to fit 4 sets of coordinates to a quadratic line? Or does the trigonometry result in me having to go about this question in a different way? If so, how?