Hi, i spent too much time on this one problem. Any help would be helpful.

Let f(x) = x^2 for [0, 1]. The average value of f on [0, 1] is 1/3. Find a non negative weight function w such that the weighted average of f on [0, 1] is a) 1/2 b) 3/5 c) 2/3.

This is the formula that should help out.

weighted average = Integral( w(x)f(x) , x, a, b) / Integral( w(x), x, a, b)

w(x) is the weighted function.

Thanks for any help or advice you can give.