Lemma (uniform approximation by step functions): if f is continuous on [0,2Ο] it is uniformly continuous, so for every Ξ΅>0 there is Ξ΄>0 with β£xβyβ£<Ξ΄ββ£f(x)βf(y)β£<Ξ΅.
Split [0,2Ο] by a partition 0=x0β<x1β<β―<xmβ=2Ο (each width <Ξ΄), with intervals Ikβ=[xkβ1β,xkβ) for k<m and the last interval Imβ=[xmβ1β,2Ο] closed at the right endpoint, so the partition covers all of [0,2Ο] including x=2Ο.
Define the step function s taking the constant value f(xkβ1β) (left endpoint) on each Ikβ (with s(2Ο)=f(xmβ1β) as well).
For xβIkβ, β£xβxkβ1ββ£<Ξ΄, so β£f(x)βs(x)β£<Ξ΅ β this holds at every point of [0,2Ο], i.e. β₯fβsβ₯ββ<Ξ΅.
Lemma proved.
Fix Ξ΅>0 and pick a step function s with β₯fβsβ₯ββ<Ξ΅ by the lemma.
By the triangle inequality β£bnβ(f)β£β€β£bnβ(fβs)β£+β£bnβ(s)β£.
The first term satisfies β£bnβ(fβs)β£β€Ο1ββ«02Οββ£fβsβ£β£sin(nx)β£dxβ€Ο1βΞ΅β
2Ο=2Ξ΅ β independent of n.
The second term β£bnβ(s)β£β0 as nββ by problem 2.
So choose N large enough that β£bnβ(s)β£<Ξ΅ for nβ₯N; for those n, β£bnβ(f)β£<2Ξ΅+Ξ΅=3Ξ΅.
Since Ξ΅ is arbitrary, bnβ(f)β0.
The same argument with β£cos(nx)β£β€1 gives anβ(f)β0.
Every step is complete β nothing is left at idea level.