My professor gave us this problem and I'm still trying to figure it out.
Given $f(x)=c_{1}sin(\pi x)+c_{2}cos(\pi x)$
Minimize $(f(0)-5)^{2}+(f(\frac{1}{4}))^2+(f(\frac{1}{2})+1)^{2}$
He gave us some partial work, but I don't understand it.
$\left \| Ax-b \right \|^{2}\rightarrow min$
$x=\begin{vmatrix} c_{1}\\ c_{2} \end{vmatrix}$
$b=\begin{bmatrix} -5\\ 0 \\1 \end{bmatrix}$
$A=\begin{bmatrix} 0 & 1\\ \frac{1}{\sqrt2}& \frac{1}{\sqrt2}\\ 1& 0 \end{bmatrix}$
$A^{T}Ax=A^{T}b$
I believe that we are solving for C1 and C2.
I now see how to find matrix A. Matrix A is found by computing the values of f(x) in the sin() and cos() functions. Column C1 is the sin() and column C2 is the cos().