On the interval with weight function
You can earn partial credit on this problem.