From the given condition, we have
6∫x1f(t)dt=3x f(x)−x3
⇒6f(x)=3f(x)+3xf′(x)−3x2
⇒xf′(x)−f(x)=x2
⇒f′(x)−1xf(x)=x
which is linear differential equation, whose I.F.=e−∫1xdx=e−lnx=1x
Solution of the given equation is
f(x).1x=∫x.1xdx+c
⇒f(x)=x2+cx
Initially, for x=1, f(1)=2⇒c=1
⇒ f(x)=x2+x
⇒ f(2)=4+2=6