Prove linearity of the derivative. Also, prove Mean value theorem in R