Dwolfson
- 9
- 0
Homework Statement
Minimize ||cos(2x) - f(x)|| where f(x) is a a function in the span of {(1,sin(x),cos(x)}
Where the inner produect is defined (1/pi)(integral from -pi to pi of f(x)g(x) dx)
Homework Equations
I found f(x) to be zero. Is this correct I am uneasy about this solution.
The Attempt at a Solution
My solution I took the inner product of cos(2x) with each of the elements of the set {(1,sin(x),cos(x)}
Knowing that the projection of cos(2x) onto this span would give me the smallest norm.
I found that the projection of cos(2x) onto this set is 0.. Because given this inner product definition cos(2x) is orthogonal to {(1,sin(x),cos(x)}.
I am uneasy about this answer because intuitively it does not seem that f(x)=0 would minimize the norm of ||cos(2x)-f(x)||
Thanks.