The stuff below doesn't help you with the problem--- that's Qmechanic's answer. You're supposed to use conservation of energy to infer the work done. But you asked what is the work done by friction for sliding on a polynomial curve:
But for a given polynomial, you know the height is y(x), so the speed, ignoring friction, would be
$$ v = \sqrt{2g (h_0 - y(x)) } $$
The centripetal force to keep you on the curve is
$$ F_c = {v^2 \over R} $$
Where R is the radius of curvature:
$$ {1\over R(x)} = {y'' \sqrt{(1+y'^2)} \over (1+y')^2} $$
while the normal force is by the cosine of the slope angle
$$ N = {mg\over \sqrt{1+y'^2}} $$
The work done by friction is the coefficient of friction $\mu$ times the total of these two forces, integrated over the curve:
$$ {dW\over \mu} = ({ 2g v^2 \over R} + mg {1\over \sqrt{1+y'^2}}) ds $$
Where $ds = \sqrt{1+y'^2} dx $, so that this is
$$ {W\over \mu} = \int { v^2 y'' (1+y'^2)\over (1+y')^2} + mg dx $$
Notably, the square roots cancel, and the second part, the friction for slow velocities, is just $\mu mg\Delta x $ for any curve, it's how far in X you moved.