On the flat straight road, the cyclist will travel at a constant speed if the work done by the cyclist is equal to the sum of the energy lost to air resistance by the cyclist and the frictional losses within the bike. On the slope, the cyclist must do work against gravity in order to keep travelling along the road at a constant speed, and so the required work done that must come from the cyclist increases.