2
$\begingroup$

I am having a problem from an old exam saying the following

a) Prove that $ \langle f,g\rangle = \frac{2}{\pi} \int f(t)g(t)\,\mathrm{d}t $ gives a inner product on $C[0,\pi]$

b) Find real constants $a,b$ to minimize integral $ \int_0^\pi \left( 1 - a \sin(t) - b \sin(3t) \right)^2 \, \mathrm{d}t $ Hint: The functions $\sin(t),\sin(3)t$ form a ortonormal set

I have been able to prove a), but I am usnure what to do about b). I know I have to use some properites of the inner product, to minimize the integral but I am unsure how to proceed.

I know the basic calculus, and some basic linear algebra, but I am terrible at combining them.

1 Answers 1

3

It is my experience that if you're given a "hint," you still have to prove it. However, assuming you can do this, we can proceed:

$(1-a\sin(t)-b\sin(3t))^2 =$

$1 + a^2\sin^2(t) + b^2\sin^2(t) - 2a\sin(t)- 2b\sin(3t) - 2ab\sin(t)\sin(3t)$.

Thus by linearity of integration (all the integrals have $dt$): $\int_0^\pi(1-a\sin(t)-b\sin(3t))^2 =$

$\int_0^\pi1 + a^2\int_0^\pi\sin^2(t) + b^2\int_0^\pi\sin^2(t) - 2a\int_0^\pi\sin(t)- 2b\int_0^\pi\sin(3t) - 2ab\int_0^\pi\sin(t)\sin(3t)$.

By the 'normal' part of orthonormality, we know $\langle u_i,u_i\rangle =\int_0^\pi\sin^2(t) = \int_0^\pi\sin^2(3t) = \frac{\pi}{2}$, so the above expressions becomes:

$\pi + \frac{\pi}{2}a^2 + \frac{\pi}{2}b^2 - 2a\int_0^\pi\sin(t)- 2b\int_0^\pi\sin(3t) - 2ab\int_0^\pi\sin(t)\sin(3t)$.

By the 'ortho' part, we have $\langle u_i, u_j\rangle = \int_0^\pi\sin(t)\sin(3t)=0$ so it becomes

$\pi + \frac{\pi}{2}a^2 + \frac{\pi}{2}b^2 - 2a\int_0^\pi\sin(t)- 2b\int_0^\pi\sin(3t)$.

Can you take it from here?

  • 0
    Also: yes, $(a,b) = (2,\frac{2}{3})$ looks correct.2012-05-28