i)     By calculation, we have
P= ( ta+b+1 a+b+1 )2 = t2(a+b+1) (a+b+1 )2 ,

and
Q=( t2a+1 2a+1 )( t2b+1 2b+1 )= t2(a+b+1) (2a+1)(2b+1) .

Thus we must decide which of the two expressions
(a+b+1 )2 ,      (2a+1)(2b+1)

is the smallest.

Since
(a+b+1 )2 -(2a+1)(2b+1)=(a-b )2 0

we see that PQ.
(ii)     By computing [f(x)+λg(x )]2 and integrating, we have
U+2Vλ+W λ2 0, ()
for all λ, where
U= 0 t [f(x )]2 dx,   V= 0 t f(x)g(x)dx,   W= 0 t [g(x )]2 dx.

The condition that () holds for all λ is UW V2 which is the required inequality.