Question

Find the least squares approximation of f(x) = 3x² + 7 overthe interval [0, 2n] by a trigonometric polynomial of order 3or less.

Fig: 1

Fig: 2