- #1
rayman123
- 152
- 0
Homework Statement
find a and b that the integral is minimaized
Homework Equations
[itex]\int_{0}^{2\pi}|e^x-ae^{ix}-b^{-ix}|^2dx[/itex]
[itex]<f,g>=\frac{1}{2\pi}\int_{0}^{2\pi}f(x)\overline{g(x)}dx[/itex]
where a [itex]a=<e^x,e^{ix}>= \frac{1}{2\pi}\int_{0}^{2\pi}e^xe^{-ix}dx=\frac{1}{2\pi}\frac{e^{2\pi}-1}{1-i}[/itex]
[itex]b=<e^x,e^{-ix}>= \frac{1}{2\pi}\int_{0}^{2\pi}e^xe^{ix}dx=\frac{1}{4\pi}(e^{2\pi}-1)(1-i)[/itex]
which is correct but then how to do the same for the following integral?
Homework Equations
[itex]\int_{-1}^{1}|e^x-ax-b|^2dx[/itex]
[itex]a=<e^x,>= \frac{1}{2\pi}\int_{-1}^{1}xe^xdx[/itex]?
[itex]b=<e^x,-1>= \frac{1}{2\pi}\int_{-1}^{1}-e^xdx[/itex]?
the answer to the second integral is
[itex]a= 3e^{-1}, b= (e-e^{-1})/2[/itex]
It is a bit strange because i think [tex] \frac{1}{2\pi} [/tex] should not be in front of the second integral because in the answer there is not pi term...