For the function $f(x)=a+bx,0\leq x\leq1,$ to be a valid probability density function,which one of the following statements is correct?